
/* =========================================================
   1. RESET DASAR
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   2. GLOBAL FONT SETTINGS
   ========================================================= */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px; 
  background: #EBFAFF;
}

/* Judul */
h1 {
  font-size: 22px;
  font-weight: bold;
  color: #111;
  margin-bottom: 5px;
  line-height: 1;
}

h2 {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin: 5px 0;
  line-height: 1;
}

h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 5px 0;
  line-height: 1;
}


/* Paragraf */
p {
  font-size: 14px;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* =========================================================
   3. NAVBAR
   ========================================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00B0F0;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 45px;
  margin-right: 10px;
}

.navbar .logo span {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 12px 20px;
  display: inline-block;
  transition: 0.3s ease;
}

.navbar ul li a:hover {
  background: #009AD0;
  color: yellow;
}

/* Submenu */
.navbar ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0078A2;
  display: none;
  min-width: 180px;
  flex-direction: column;
}

.navbar ul li:hover ul {
  display: flex;
}

.navbar ul li ul li a {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ===============================
   NAVBAR SEARCH
=============================== */
/* SEARCH BOX */
.navbar-search {
  position: relative;
}

.navbar-search input {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 13px;
  width: 180px;
}

/* SEARCH RESULT */
#searchResults {
  background: none;
  border: none;
  box-shadow: none;
}

#searchResults a {
  display: block;
  padding: 6px 10px;
  color: #222;
  text-decoration: none;
}

#searchResults a:hover {
  background: rgba(0,0,0,0.05);
}


/* =========================================================
   4. BANNER
   ========================================================= */
.banner {
  position: relative;
}

.banner img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  top: 90%;
  transform: translateY(-50%);
  text-shadow:
    0 6px 9px rgba(255,255,255,0.7),
    0 0 13px rgba(0,0,0,0.6);
  color: white;
}

/* Kiri */
.banner-text.left {
  left: 60px;
  font-size: 16px;
  font-family: 'Trebuchet MS', sans-serif;
  font-style: italic;
}

/* Kanan */
.banner-text.right {
  right: 60px;
  font-size: 28px;
  font-family: 'Mistral', sans-serif;
}

/* =========================================================
   5. DUA KOLOM
   ========================================================= */
.two-column {
  display: flex;
  gap: 20px;
  margin: 20px auto;
  padding: 0 40px;
  max-width: 1200px;
}

.left-content {
  flex: 2;
  background: #f0f0f0;
  padding: 15px;
  border-radius: 5px;
  border: 2px solid #bde6f5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.right-content {
  flex: 1;
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #bde6f5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* =========================================================
   6. CONTAINER
   ========================================================= */
.container {
  max-width: 1116px;
  margin: 20px auto;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  border: 2px solid #bde6f5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.container > * + * {
  margin-top: 15px;
}

.container ol {
  margin-left: 25px;    /* sama seperti padding-left */
}


.container ol li {
    font-size: 14px;
    line-height: 1.6;
  }

/* =========================================================
   7. TABEL 4 KOLOM
   ========================================================= */
.table-container {
  max-width: 1116px;
  margin: 20px auto;
  padding: 20px 40px;
  background: #fdf7fb;
  border-radius: 10px;
  border: 2px solid #bde6f5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.table-4col {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.table-4col thead th {
  background: #D00068;
  color: white;
  padding: 12px;
  border: 1px solid #bb0055;
}

.table-4col tbody td {
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.table-4col tbody tr:nth-child(even) td {
  background: #f7e8f0;
}

.table-4col tbody tr:hover td {
  background: #ffe3f0;
  transition: 0.2s;
}

.kolom-kiri {
  width: 50px;   /* atur lebar sesuai kebutuhan */
  text-align: center; /* opsional: biar teks rata kiri */
  white-space: nowrap; /* opsional: cegah teks turun ke bawah */
}
.baris-atas {
  /* width: 50px;    atur lebar sesuai kebutuhan */
  text-align: center; /* opsional: biar teks rata kiri */
  /* white-space: nowrap; /* opsional: cegah teks turun ke bawah */
}

/* =========================================================
   8. SARAN & PESAN
   ========================================================= */
.saran-pesan-section {
  background: #E7F7FF;
  border: 2px solid #bde6f5;
  border-radius: 15px;
  padding: 25px;
  margin: 40px auto;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.saran-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.saran-header i {
  font-size: 28px;
  color: #007baf;
  background: #d9f3ff;
  padding: 10px;
  border-radius: 50%;
}

.saran-header h2 {
  font-size: 24px;
  color: #004d66;
}

/* Frame Google Form */
.saran-frame iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
}

/* =========================================================
   ARTIKEL CARD WRAPPER
========================================================= */
.artikel-section {
  max-width: 1168px;
  margin: 30px auto;
  padding: 0 20px;
}

.artikel-section-title {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ================= Article Card =================== */
.artikel-card {
  display: flex;
  background: #ffffff;
  border: 2px solid #bde6f5;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 18px;
  gap: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.artikel-card:hover {
  background: #f4fbff;
  transition: 0.3s;
}

/* Gambar Card */
.artikel-thumb {
  width: 180px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}

/* Area tulisan */
.artikel-info {
  flex: 1;
}

.artikel-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #00354d;
}

.artikel-date {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.artikel-snippet {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

/* LINK “Selengkapnya →“ */
.artikel-more {
  font-size: 14px;
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
}

.artikel-more:hover {
  text-decoration: underline;
}

/* ================= FULL ARTICLE =================== */
#artikel-view {
  display: none;
  max-width: 1116px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 2px solid #bde6f5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Judul artikel */
.artikel-template-header h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.artikel-template-date {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* Gambar dalam artikel penuh */
.artikel-template-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}


<div id="artikel-list" class="artikel-list"></div>
<div id="artikel-view" class="artikel-view" style="display:none;"></div>

/* ============================
   GABUNGAN: artikel-download + download-simple
   ============================ */

/* Style tombol download */
.artikel-download,
.download-simple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4CAF50, #43a047);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
    width: fit-content;
}

/* Hover */
.artikel-download:hover,
.download-simple:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* Fokus */
.artikel-download:focus,
.download-simple:focus {
    outline: 2px solid #007bff;
    outline-offset: 3px;
}

/* Ukuran Icon */
.artikel-download i,
.download-simple i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Animasi icon saat hover */
.artikel-download:hover i,
.download-simple:hover i {
    transform: translateX(3px);
}

/* =======================================================
   FOOTER UTAMA
   ======================================================= */
.custom-footer {
    background: #00a8e8;
    padding: 40px 10px 20px 10px;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* ================================
   CONTAINER UTAMA 4 KOLOM
   ================================ */
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ← dari 3 kolom menjadi 4 kolom */
    gap: 50px;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}

/* ================================
   JUDUL KOLOM
   ================================ */
.footer-column h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: black;
    position: relative;
    padding-bottom: 6px;
}

.footer-column h3::after {
    content: "";
    display: block;
    width: 140px;
    height: 2px;
    margin-top: 5px;
    background: linear-gradient(to right, #000, #fff);
    border-radius: 2px;
}

/* ================================
   KOLOM 1 — HUBUNGI KAMI
   ================================ */
.footer-location {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
    color: white;
}

.footer-location i {
    margin-right: 8px;
    margin-top: 4px;
    font-size: 13px;
    color: white;
}

.footer-column p {
    margin: 5px 0;
    font-size: 14px;
    color: white;
}

/* ================================
   KOLOM 2 — TAGS
   ================================ */
.tags a span {
    display: inline-block;
    padding: 4px 4px;
    margin: 5px;
    border: 1px solid #fff;
    border-radius: 0px;
    color: #fff;
    transition: 0.3s ease;
    font-size: 13px;
}

.tags a span:hover {
    background: ;
    border-color: gold;
    color: gold;
}

/* ================================
   KOLOM 3 — IKUTI KAMI
   ================================ */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* ================================
   KOLOM 4 — LAYANAN (BARU)
   ================================ */
.layanan-list a {
    display: block;
    margin: 6px 0;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.layanan-list a:hover {
    color: gold;
}

/* =======================================================
   BOTTOM BAR 1 — ISI GAMBAR KE KANAN
   ======================================================= */
.footer-bottom-bar1 {
    /*-- max-width: 1200px;--*/
    margin: 40px auto 10px auto;
    padding: 0 5px;
    background: #EBFAFF;
}

.footer-bottom-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-bottom-images img {
    width: 90px;
    height: auto;
    border-radius: 8px;
}

/* =======================================================
   BOTTOM BAR 2 — COPYRIGHT
   ======================================================= */
.footer-bottom {
    background: #0078A2;
    text-align: center;
    padding: 5px 8px;
    margin-top: 0px;
    color: #fff;
    font-size: 14px;
    font-style:italic;
    /*-- max-width: 1200px;    Tambahkan ini */
    margin-left: auto;   /* Supaya center */
    margin-right: auto;  /* Supaya center */
    
}

.footer-bottom .footer-school {
    color: gold;
    font-weight: bold;
}

/* ===== POPUP ===== */
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.popup-content {
    background: #fff;
    width: 95%;
    max-width: 450px;
    margin: 6% auto;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    animation: fadeIn .3s;
}

.popup-content img {
    width: 85%;
    max-width: 320%;
    max-height: 240%;      /* ⬅ batasi tinggi gambar */
    height: 85%;
    object-fit: contain;  /* ⬅ gambar selalu utuh */
    display: block;
    margin: 0 auto 15px;   /* ⬅ posisi tengah */
    border-radius: 10px;
}


.popup-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #008fcc;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    margin-top: -10px;
}

.popup-view {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: #0066cc;
  text-decoration: underline;
}


@keyframes fadeIn {
    from { opacity:0; }
    to { opacity:1; }
}

/* =======================================================
   POPUP SARAN
   ======================================================= */

#popup-saran {
  position: fixed;
  top: 70px;       /* sesuaikan dengan tinggi navbar */
  right: 20px;
  background-color: rgba(0, 176, 240, 0.5);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  z-index: 9999;   /* supaya tidak ketutup elemen lain */
}

#popup-saran:hover {
  background-color: rgba(0, 0, 0, 0.5);
   color: yellow;
}



/* =======================================================
   RESPONSIVE MOBILE
   ======================================================= */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* jadi 1 kolom */
        text-align: center;
    }

    .footer-column h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom-images {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .artikel-card {
    flex-direction: column;
  }

  .artikel-thumb {
    width: 100%;
    height: 180px;
  }
}

@media(max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 60px);
    gap: 6px;
  }
  .gallery-grid img {
    width: 60px;
    height: 60px;
  }
}



































