/* =========================================
   DESIGN TOKENS - Minimalist Green / White
   ========================================= */
:root {
    /* Hijau */
    --green-50:  #F1FAF4;
    --green-100: #DCF2E4;
    --green-200: #BCE5CC;
    --green-500: #1FA75C;   /* aksen utama */
    --green-600: #17854A;   /* hover */
    --green-700: #116339;

    /* Netral */
    --surface:   #FFFFFF;
    --bg:        #F7FAF8;
    --border:    #E6EBE8;
    --ink:       #16241C;
    --ink-soft:  #55635C;
    --ink-mute:  #8B978F;

    /* Status */
    --danger:    #DC2626;
    --warning:   #D97706;
    --info:      #2563EB;

    /* Bentuk */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --shadow: 0 1px 2px rgba(16, 40, 28, 0.04);

    /* Alias lama (dipakai style per-halaman) */
    --primary-color: var(--green-700);
    --accent-color:  var(--green-500);
    --accent-hover:  var(--green-600);
    --bg-color:      var(--bg);
    --text-color:    var(--ink);
    --text-light:    #FFFFFF;
    --danger-color:  var(--danger);
    --success-bg:    var(--green-50);
}

/* ===== tema bersama (public/shared.css) ===== */
@import url('https://fonts.googleapis.com/css2?family=Amiri&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

body, h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #FFFFFF;
  color: #000000;
  overflow-x: hidden; /* Mencegah layar goyang ke samping di HP */
}

* {
  box-sizing: border-box; /* INI KUNCINYA: Agar padding tidak bikin elemen melebar */
}

/* ======================================================= */
/* --- KONTROL VISIBILITAS (DESKTOP VS MOBILE) --- */
/* ======================================================= */
/* Secara default di Laptop/PC, elemen khusus HP disembunyikan */
.mobile-only {
  display: none !important;
}

header {
  background-color: #ffffff;
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 80px;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.title-arab {
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: normal;
}

.title-indo {
  font-weight: 600;
  font-size: 18px;
}

.header-right {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  background-color:#5d8771;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background-color: var(--ink-soft);
  color: #fff;
}

nav {
    background-color: transparent;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
  }

  nav a {
    text-decoration: none;
    color: #000;
    padding: 10px 12px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
  }

  nav a:hover {
    color: var(--green-600);
  }

  .dropdown {
    position: relative;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 999;
  }

  .dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: #333;
    white-space: nowrap;
    transition: background-color 0.2s ease;
  }

  .dropdown-content a:hover {
    background-color: #f1f1f1;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown:hover > a {
    color: var(--green-600);
  }

.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  background: url('../images/hero.jpg') center/cover no-repeat;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  animation: fadeInBg 2s ease-out forwards;
}

.hero h1, .hero p, .hero a {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInText 1s ease-out forwards;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  animation-delay: 0.5s;
}

.hero p {
  font-size: 24px;
  opacity: 0.95;
  margin-bottom: 40px;
  animation-delay: 1s;
}

.hero a.btn-dark {
  animation-delay: 1.5s;
}

@keyframes fadeInText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBg {
  from {
    background-color: rgba(0,0,0,0);
  }
  to {
    background-color: rgba(0,0,0,0.3);
  }
}

.btn-dark {
  padding: 16px 32px;
  background-color: var(--green-500);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-dark:hover {
  background-color: var(--green-600);
}

/* --- Gaya untuk Bagian Baru --- */
.section-padding {
  padding: 60px 40px;
  text-align: center;
}

.section-padding h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--ink);
}

/* Gaya untuk Bagian Mengapa Memilih Kami */
.why-choose-us .cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.why-choose-us .reason-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.why-choose-us .reason-card:hover {
  transform: translateY(-8px);
}

.why-choose-us .reason-card .icon {
  font-size: 48px;
  color: #5d8771;
  margin-bottom: 15px;
}

.why-choose-us .reason-card h3 {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}

.why-choose-us .reason-card p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Gaya untuk Sekilas Kehidupan Santri (Dinamis) */
.student-life-glimpse {
  overflow: hidden; 
  position: relative;
}

.carousel-container {
  display: flex;
  white-space: nowrap;
  animation: scrollGallery 30s linear infinite; 
}

.carousel-container:hover {
  animation-play-state: paused; 
}

.student-life-glimpse .gallery-item {
  flex: 0 0 auto; 
  width: 300px; 
  height: 200px; 
  margin-right: 20px; 
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease; 
}

.student-life-glimpse .gallery-item:hover {
  transform: translateY(-5px);
}

.student-life-glimpse .gallery-item img {
  width: 100%;
  height: 100%; 
  object-fit: cover;
  display: block;
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1920px); }
}

/* Gaya untuk Testimoni */
.testimonials {
  background-color: #f0fafa;
}

.testimonials .testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials .testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials .testimonial-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #5d8771;
}

.testimonials .testimonial-card p {
  font-size: 18px;
  color: #333;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 15px;
}

.testimonials .testimonial-card .author {
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
}

.testimonials .testimonial-card .role {
  font-size: 15px;
  color: var(--ink-soft);
}

/* Gaya untuk Fakta Singkat & Pencapaian */
.facts-achievements .facts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.facts-achievements .fact-item {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.facts-achievements .fact-item .number {
  font-size: 48px;
  font-weight: 700;
  color: #5d8771;
  margin-bottom: 10px;
}

.facts-achievements .fact-item .description {
  font-size: 18px;
  color: #333;
}

/* Gaya untuk Artikel Pilihan */
.featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.card-container {
    display: flex; 
    flex-wrap: wrap; 
    gap: 32px;
    justify-content: center;
}

.card {
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 22px;
  margin: 16px;
  color: var(--ink);
}

.card p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 16px 16px;
}

.card a.btn { 
  margin: 0 16px 16px;
  padding: 8px 12px;
  background-color: var(--green-500);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  display: inline-block;
}

.card a.btn:hover {
  background-color: var(--green-600);
}

.btn-secondary {
  padding: 12px 25px;
  background-color: #5d8771;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 40px;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #4b6f5d;
}

footer {
  background-color: #ffffff;
  padding: 20px 40px;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}

footer p {
  margin-bottom: 8px;
  font-size: 15px;  
  text-align: center;
  color: #000000;
}

.social-icons {
  margin-top: 20px;
}

/* ========================================= */
/* --- KHUSUS HALAMAN AKADEMIK & ARTIKEL --- */
/* ========================================= */
.content-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}
h1.page-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--ink);
}
.section-title {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--ink);
}
.sub-section-title {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--ink);
}

.content-container p {
    text-align: justify;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}
.content-container ul, .content-container ol {
    margin-left: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}
.content-container ul li, .content-container ol li {
    margin-bottom: 8px;
}
.content-container a {
    color: var(--green-600);
    text-decoration: none;
}
.content-container a:hover {
    text-decoration: underline;
}

.content-container a.download-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 12px 25px;
    background-color: #5d8771;
    color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.content-container a.download-button:hover {
    background-color: var(--ink-soft);
    color: #FFFFFF;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.course-table th, .course-table td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 15px;
}
.course-table th {
    background-color: #f2f2f2;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}
.course-table tbody tr:nth-child(even) {
    background-color: var(--bg);
}
.course-table tbody tr:hover {
    background-color: #eef;
}
.course-category {
    background-color: #e6f7ff;
    font-weight: bold;
    text-align: center;
    color: var(--green-600);
}

/* ========================================= */
/* --- KHUSUS HALAMAN SEMUA BERITA       --- */
/* ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

a.card {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
}
a.card h3, a.card p {
    text-decoration: none !important;
}

/* ========================================= */
/* --- KHUSUS HALAMAN DETAIL BACA BERITA --- */
/* ========================================= */
.detail {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.detail h1 {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 20px;
}
.detail img {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}
.detail p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-top: 20px;
}
.pdf-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--green-500);
  color: white;
  border-radius: 5px;
  text-decoration: none;
}
.pdf-link:hover {
  background-color: var(--green-600);
}
a.back-button {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: var(--green-500);
  font-weight: bold;
}

/* ========================================= */
/* --- KHUSUS HALAMAN GALERI             --- */
/* ========================================= */
.filter-buttons { margin-bottom: 30px; }
.filter-buttons button {
    margin: 5px; padding: 10px 20px; border: none; background: #5d8771;
    color: #fff; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.filter-buttons button:hover { background: #4b6f5d; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    text-align: left;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.gallery-item h4 {
    font-size: 16px;
    color: var(--ink);
    padding: 10px 15px;
    margin: 0;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img { max-width: 90%; max-height: 80%; border-radius: 10px; }
.lightbox:target { display: flex; }
.close { position: absolute; top: 20px; right: 30px; font-size: 30px; color: #fff; text-decoration: none; }

/* ========================================= */
/* --- KHUSUS HALAMAN KONTAK             --- */
/* ========================================= */
.contact-section { padding: 60px 20px; text-align: center; min-height: 60vh; }
.contact-section h2 { color: var(--ink); font-size: 32px; margin-bottom: 10px; }

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    align-items: stretch;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    text-align: left;
    border-top: 5px solid #5d8771;
    display: flex;
    flex-direction: column;
}

.contact-card h3 { color: #5d8771; margin-bottom: 15px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.contact-card p { color: var(--ink-soft); margin-bottom: 10px; text-align: justify; flex-grow: 1; }

.action-group {
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: bold;
    color: white; border: none; cursor: pointer; font-size: 15px; transition: 0.3s;
}

.action-btn:hover { opacity: 0.8; transform: translateY(-2px); }
.bg-wa { background-color: #25D366; }
.bg-gmail { background-color: #DB4437; }
.bg-email { background-color: #5d8771; }

.map-box { 
    margin-top: 15px; 
    border-radius: 10px; 
    overflow: hidden; 
    height: 250px; 
    border: 1px solid var(--border); 
}

/* ========================================= */
/* --- KHUSUS HALAMAN PROFIL             --- */
/* ========================================= */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}
.profile-table td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    vertical-align: top;
    font-size: 16px;
}
.profile-table td:first-child {
    width: 5%;
    font-weight: bold;
    text-align: center;
}
.profile-table td:nth-child(2) {
    width: 25%;
    font-weight: 500;
}
.profile-table td:nth-child(3) {
    width: 70%;
    padding-left: 5px;
}
.profile-table tr:nth-child(even) {
    background-color: var(--bg);
}
@media (max-width: 600px) {
    .profile-table td { padding: 10px 8px; font-size: 14px; }
    .profile-table td:nth-child(2) { width: 35%; }
    .profile-table td:nth-child(3) { width: 60%; word-break: break-word; }
}

/* ========================================= */
/* --- KHUSUS SEARCH BAR HEADER (MODERN) --- */
/* ========================================= */
.search-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50px; 
    padding: 5px 5px 5px 20px; 
    margin-right: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.search-form:focus-within {
    border-color: #5d8771;
    box-shadow: 0 6px 15px rgba(93, 135, 113, 0.15);
}
.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    width: 150px;
    color: #333;
    transition: width 0.4s ease;
}
.search-input:focus {
    width: 220px; 
}
.search-btn {
    background-color: #5d8771;
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-btn:hover {
    background-color: #4b6f5d;
    transform: scale(1.08); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ========================================= */
/* --- KHUSUS HAMBURGER MENU (MOBILE)    --- */
/* ========================================= */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #000;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

#header-container {
  position: relative;
  z-index: 1000;
  width: 100%;
}

/* --- RESPONSIVE @MEDIA (HP) --- */
@media (max-width: 768px) {

  /* 1. Sembunyikan elemen Header Kanan (Desktop Only) di HP */
  .desktop-only {
    display: none !important;
  }

  /* 2. Tampilkan elemen yang khusus HP (Mobile Only) */
  .mobile-only {
    display: block !important;
  }

  /* 3. Tampilan khusus Tombol Mobile di menu vertikal */
  .mobile-buttons.mobile-only {
    display: flex !important;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  /* 4. Tampilan khusus Search Bar Mobile di menu vertikal */
  .mobile-search {
    padding: 15px;
    border-bottom: 1px solid var(--border);
  }
  .search-form-mobile {
    display: flex;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .search-form-mobile input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
  }
  .search-form-mobile button {
    background: #5d8771;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
  }

  /* 5. Tampilkan Hamburger & Sesuaikan Header */
  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  header {
    padding: 12px 18px;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .logo { height: 50px; flex-shrink: 0; }
  .title-arab { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .title-indo { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* 6. Atur ulang Navigasi menjadi Vertikal dan tersembunyi */
  nav {
    position: absolute;
    top: 100%; /* Tepat di bawah header berapapun tinggi header */
    left: -100%; /* Default disembunyikan ke kiri */
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    text-align: center;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    padding: 0;
    gap: 0;
    z-index: 1000;
  }

  nav.active {
    left: 0; /* Muncul jika class .active ditambah via JavaScript */
  }

  nav a {
    padding: 15px;
    display: block;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  /* 7. Perbaiki Dropdown agar tidak berantakan di HP */
  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    display: none;
    background-color: var(--bg);
    min-width: 100%;
  }

  /* 8. Ubah Grid Berita jadi 1 kolom di HP */
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* ===== halaman: kontak ===== */
body[data-page="kontak"] /* Styling tambahan khusus section informasi UKT */
    .ukt-info-section {
      max-width: 1200px;
      margin: 40px auto;
      padding: 0 20px;
    }
body[data-page="kontak"] .ukt-info-container {
      background: #fff;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      margin-top: 20px;
    }
body[data-page="kontak"] .ukt-info-section h3 {
      color: var(--ink);
      border-bottom: 2px solid #eaeaea;
      padding-bottom: 10px;
      margin-top: 30px;
      margin-bottom: 15px;
    }
body[data-page="kontak"] .ukt-info-section h3:first-child {
      margin-top: 0;
    }
body[data-page="kontak"] .ukt-info-section p,
body[data-page="kontak"] .ukt-info-section li {
      color: var(--ink-soft);
      line-height: 1.6;
      font-size: 15px;
    }
body[data-page="kontak"] .ukt-info-section ul,
body[data-page="kontak"] .ukt-info-section ol {
      padding-left: 20px;
      margin-bottom: 20px;
    }
body[data-page="kontak"] .ukt-info-section li {
      margin-bottom: 8px;
    }

/* =========================================================
   ANIMASI RINGAN & MICRO-INTERACTIONS (ACADEMIC CLEAN)
   ========================================================= */

/* Efek Muncul Halus saat Scroll (Scroll-Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay bertahap untuk barisan kartu */
.cards-wrapper .reason-card:nth-child(1),
.facts-grid .fact-item:nth-child(1),
.testimonial-container .testimonial-card:nth-child(1) { transition-delay: 0.05s; }

.cards-wrapper .reason-card:nth-child(2),
.facts-grid .fact-item:nth-child(2),
.testimonial-container .testimonial-card:nth-child(2) { transition-delay: 0.12s; }

.cards-wrapper .reason-card:nth-child(3),
.facts-grid .fact-item:nth-child(3),
.testimonial-container .testimonial-card:nth-child(3) { transition-delay: 0.19s; }

.cards-wrapper .reason-card:nth-child(4) { transition-delay: 0.26s; }

/* Micro-interaction Hover yang Wajar, Bersih & Halus */
.why-choose-us .reason-card,
.card,
.facts-achievements .fact-item,
.testimonials .testimonial-card {
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.why-choose-us .reason-card:hover,
.card:hover,
.testimonials .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(17, 99, 57, 0.08);
  border-color: var(--green-200);
}

.facts-achievements .fact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 99, 57, 0.07);
}

.btn-dark, .btn-secondary {
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dark:hover, .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 99, 57, 0.2);
}

/* Aksesibilitas: Matikan animasi bila user menyalakan Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .carousel-container {
    animation: none !important;
  }
  .why-choose-us .reason-card:hover,
  .card:hover,
  .testimonials .testimonial-card:hover,
  .facts-achievements .fact-item:hover,
  .btn-dark:hover,
  .btn-secondary:hover {
    transform: none !important;
  }
}

/* =========================================================
   PENEMPATAN IKLAN / SPONSOR (RAPI, ETIS & ANTI-CLS)
   ========================================================= */
.site-ad-wrapper {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.site-ad-wrapper .ad-box {
  background: #FAFCFA;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  min-height: 110px; /* Mencegah layout shift (CLS) saat iklan loading */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.site-ad-wrapper .ad-box:hover {
  border-color: var(--green-200);
}

.site-ad-wrapper .ad-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
