/* ==========================================================================
   SMKS AS-SYIFA KISARAN - PORTAL RESMI
   "Berakhlak • Berilmu • Berprestasi"
   ========================================================================== */

:root {
  --primary: #0a563b;
  --primary-dark: #063d29;
  --primary-light: #108e62;
  --primary-subtle: #e8f5ef;
  --primary-border: #bce3d1;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-gold-text: #b45309;
  --accent-green: #10b981;

  /* Harmonized Fresh Lively Green Theme Palette (Segar & Bersemangat) */
  --bg-main: #d8f3e2;           /* Background utama halaman (fresh vibrant soft green) */
  --bg-alt: #c8edd6;            /* Background section alternatif (energetic soft mint) */
  --bg-accent: #b7e5c6;         /* Background aksen hijau segar */
  --surface: #ffffff;           /* Surface kartu putih bersih */
  --surface-alt: #ebf9f1;       /* Surface sekunder lembut cerah */
  --surface-muted: #d5f1df;     /* Surface dalam kartu (quote/stat/box mini) */
  --surface-border: #a4ddb7;    /* Border segar hijau harmonis */
  --surface-border-subtle: #c1ebd1;
  --text-main: #0c2919;         /* Teks utama (deep forest charcoal) */
  --text-muted: #27563c;        /* Teks sekunder (deep moss slate) */
  --text-light: #528065;

  --shadow-sm: 0 1px 3px rgba(10,86,59,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 14px rgba(10,86,59,0.08), 0 2px 6px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(10,86,59,0.12), 0 4px 10px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  background-color: #042e1f !important;
}

html {
  height: 100% !important;
  background-color: #042e1f !important;
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
  overscroll-behavior-x: none !important;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: transparent;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
  overscroll-behavior-x: none !important;
  overflow-x: hidden;
}

.site-main-content {
  background-color: transparent;
  flex: 1 0 auto !important;
  width: 100%;
  min-height: auto;
}

/* ==========================================================================
   HOMEPAGE BACKGROUND (BERANDA ONLY)
   Dedicated background image styling strictly scoped to Beranda (Homepage).
   All subpages (body.page-subpage / .is-subpage) remain 100% untouched.
   ========================================================================== */
body.page-home {
  background-color: #d8f3e2 !important;
  background-image: url('../images/bg-home.png') !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  background-attachment: scroll !important;
}

body.page-home .site-main-content.is-home-page,
body.page-home .home-page-wrapper,
body.page-home .alumni-review-section,
body.page-home .mitra-section {
  background-color: transparent !important;
  background: transparent !important;
}

/* ==========================================================================
   PROFIL PAGE BACKGROUND (PROFIL ONLY)
   Dedicated background image styling strictly scoped to Profil Sekolah.
   ========================================================================== */
body.page-profil {
  background-color: #d8f3e2 !important;
  background-image: url('../images/bg-profil.png') !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  background-attachment: scroll !important;
}

body.page-profil .site-main-content,
body.page-profil .site-main-content.is-subpage,
body.page-profil .subpage-body-container {
  background-color: transparent !important;
  background: transparent !important;
}

/* ==========================================================================
   AKADEMIK PAGE BACKGROUND (AKADEMIK ONLY)
   Dedicated background image styling strictly scoped to Akademik & Jurusan.
   ========================================================================== */
body.page-akademik {
  background-color: #d8f3e2 !important;
  background-image: url('../images/bg-akademik.png') !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  background-attachment: scroll !important;
}

body.page-akademik .site-main-content,
body.page-akademik .site-main-content.is-subpage,
body.page-akademik .subpage-body-container {
  background-color: transparent !important;
  background: transparent !important;
}

/* ==========================================================================
   PPDB PAGE BACKGROUND (PPDB ONLY)
   Dedicated background image styling strictly scoped to PPDB Online.
   ========================================================================== */
body.page-ppdb {
  background-color: #d8f3e2 !important;
  background-image: url('../images/bg-ppdb.png') !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  background-attachment: scroll !important;
}

body.page-ppdb .site-main-content,
body.page-ppdb .site-main-content.is-subpage,
body.page-ppdb .subpage-body-container,
body.page-ppdb .ppdb-body-wrap {
  background-color: transparent !important;
  background: transparent !important;
}

/* ==========================================================================
   KESISWAAN PAGE BACKGROUND (KESISWAAN ONLY)
   Dedicated background image styling strictly scoped to Kesiswaan & OSIS.
   ========================================================================== */
body.page-kesiswaan,
body[class*="page-kesiswaan"] {
  background-color: #d8f3e2 !important;
  background-image: url('../images/bg-kesiswaan.png') !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  background-attachment: scroll !important;
}

body.page-kesiswaan .site-main-content,
body.page-kesiswaan .site-main-content.is-subpage,
body.page-kesiswaan .subpage-body-container,
body[class*="page-kesiswaan"] .site-main-content,
body[class*="page-kesiswaan"] .site-main-content.is-subpage,
body[class*="page-kesiswaan"] .subpage-body-container {
  background-color: transparent !important;
  background: transparent !important;
}

/* ==========================================================================
   INFORMASI PAGE BACKGROUND (INFORMASI ONLY)
   Dedicated background image styling strictly scoped to Informasi & Berita.
   ========================================================================== */
body.page-informasi,
body[class*="page-informasi"],
body[class*="page-berita"] {
  background-color: #d8f3e2 !important;
  background-image: url('../images/bg-informasi.png') !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  background-attachment: scroll !important;
}

body.page-informasi .site-main-content,
body.page-informasi .site-main-content.is-subpage,
body.page-informasi .subpage-body-container,
body[class*="page-informasi"] .site-main-content,
body[class*="page-informasi"] .site-main-content.is-subpage,
body[class*="page-informasi"] .subpage-body-container,
body[class*="page-berita"] .site-main-content,
body[class*="page-berita"] .site-main-content.is-subpage,
body[class*="page-berita"] .subpage-body-container {
  background-color: transparent !important;
  background: transparent !important;
}

/* ==========================================================================
   FASILITAS PAGE BACKGROUND (FASILITAS ONLY)
   Dedicated background image styling strictly scoped to Fasilitas Kampus.
   ========================================================================== */
body.page-fasilitas,
body[class*="page-fasilitas"] {
  background-color: #d8f3e2 !important;
  background-image: url('../images/bg-fasilitas.png') !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  background-attachment: scroll !important;
}

body.page-fasilitas .site-main-content,
body.page-fasilitas .site-main-content.is-subpage,
body.page-fasilitas .subpage-body-container,
body[class*="page-fasilitas"] .site-main-content,
body[class*="page-fasilitas"] .site-main-content.is-subpage,
body[class*="page-fasilitas"] .subpage-body-container {
  background-color: transparent !important;
  background: transparent !important;
}

/* ==========================================================================
   SUBPAGE DESIGN SYSTEM & HARMONIZED COLOR PALETTE
   Provides a soothing, modern, soft neutral-mint background for all subpages,
   leaving Beranda (body.page-home / .is-home-page) 100% UNTOUCHED!
   ========================================================================== */
.is-subpage {
  /* Harmonious Soft Neutral & Mint Subpage Palette */
  --bg-main: #f4f8f5;           /* Soft, calming, airy neutral-mint background */
  --bg-alt: #edf5f0;            /* Gentle secondary background tint */
  --bg-accent: #e2f0e7;         /* Subtle mint accent */
  --surface: #ffffff;           /* Crisp clean white surface */
  --surface-alt: #f8faf8;       /* Very subtle off-white for inner card boxes */
  --surface-muted: #eef6f1;     /* Inner pill/box background */
  --surface-border: #dbeae0;    /* Crisp, clean, soft border */
  --surface-border-subtle: #e9f2ec;
  --text-main: #0c261a;         /* High-contrast deep forest charcoal */
  --text-muted: #335342;        /* Elegant slate-moss text */
  --text-light: #5d7e6e;        /* Subtle secondary text */
  
  --shadow-sm: 0 1px 3px rgba(10, 86, 59, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px rgba(10, 86, 59, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 28px rgba(10, 86, 59, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);

  color: var(--text-main);
}


a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==========================================================================
   TOP BAR & NAVIGATION (ROCK-SOLID STICKY HEADER DOCKED AT TOP)
   ========================================================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 86, 59, 0.1);
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  margin: 0 !important;
  box-shadow: 0 2px 14px rgba(10, 86, 59, 0.06);
  transition: all 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(10, 86, 59, 0.12) !important;
  border-bottom-color: rgba(10, 86, 59, 0.18) !important;
  background: rgba(255, 255, 255, 0.99) !important;
}

.site-header .container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Brand / Logo & School Name */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 16px;
  flex-shrink: 0;
}

.brand-logo-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 1px 4px rgba(10, 86, 59, 0.06);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-wrapper:hover .brand-logo-box {
  transform: scale(1.03);
  box-shadow: 0 3px 8px rgba(10, 86, 59, 0.12);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-info h1 {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.18;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.brand-info p {
  font-size: 0.67rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1.5px solid var(--surface-border);
    box-shadow: 0 2px 10px rgba(10, 86, 59, 0.05);
    background: #ffffff;
    z-index: 99999;
  }
  .site-header .container {
    padding: 0 16px;
  }
  .nav-container {
    height: 62px;
  }
  .brand-wrapper {
    flex: 1;
    gap: 10px;
    margin-right: 10px;
  }
  .brand-info h1 {
    font-size: 0.94rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-info p {
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 420px) {
  .brand-logo-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 2.5px;
    border-radius: 9px;
  }
  .brand-info h1 {
    font-size: 0.88rem;
  }
  .brand-info p {
    font-size: 0.64rem;
  }
}

@media (max-width: 350px) {
  .brand-info h1 {
    font-size: 0.82rem;
  }
  .brand-info p {
    font-size: 0.60rem;
  }
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
  }
}

.nav-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
  padding: 7px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(10, 86, 59, 0.06);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(10, 86, 59, 0.08);
  font-weight: 700;
  border-radius: 8px;
}

.nav-link.pill-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #0d6e4a 100%);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 14px;
  border: none;
  box-shadow: 0 3px 10px rgba(10, 86, 59, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.nav-link.pill-highlight:hover {
  background: linear-gradient(135deg, #0d6e4a 0%, #08432d 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(10, 86, 59, 0.24);
}

.nav-link.pill-highlight .nav-arrow {
  color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link.pill-highlight:hover .nav-arrow {
  color: #ffffff !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-toggle-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.btn-portal-login {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--primary) 0%, #0d6e4a 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(10, 86, 59, 0.2);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-portal-login:hover {
  background: linear-gradient(135deg, #0d6e4a 0%, #08432d 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(10, 86, 59, 0.26);
}

.btn-portal-login i {
  font-size: 0.8rem;
}

@media (min-width: 1024px) and (max-width: 1240px) {
  .site-header {
    margin: 0 !important;
    max-width: 100%;
    border-radius: 0;
  }
  .brand-wrapper {
    margin-right: 8px;
    gap: 8px;
  }
  .brand-info h1 {
    font-size: 0.86rem;
  }
  .brand-info p {
    font-size: 0.62rem;
  }
  .main-nav {
    gap: 1px;
  }
  .nav-link {
    font-size: 0.77rem;
    padding: 5px 7px;
    gap: 3px;
  }
  .btn-portal-login {
    padding: 7px 11px;
    font-size: 0.77rem;
    gap: 5px;
  }
  .btn-portal-login span {
    font-size: 0.76rem;
  }
}

/* Mobile Toggler Button (Persis Tampilan Kotak Rounded Bergaris di Gambar) */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--primary-border);
  background: #ebf8f0;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(10, 86, 59, 0.08);
  transition: all 0.2s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle.active {
  background: #d9f3e3;
  border-color: var(--primary);
}

.toggler-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.toggler-bars .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (max-width: 1023px) {
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .search-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    border-radius: 8px;
    background: #ebf8f0;
    border: 1.5px solid var(--primary-border);
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(10, 86, 59, 0.08);
    transition: all 0.2s ease;
  }
  .search-toggle-btn:hover,
  .search-toggle-btn:active {
    background: #d9f3e3;
    border-color: var(--primary);
    color: var(--primary-dark);
  }
  .btn-portal-login {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

.mobile-search-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: 1.5px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(10, 86, 59, 0.04);
  font-family: inherit;
  text-align: left;
  transition: all 0.2s ease;
}

.mobile-search-trigger:hover,
.mobile-search-trigger:active {
  border-color: var(--primary);
  background: #f0fdf4;
  color: var(--primary);
}

.mobile-search-trigger i {
  color: var(--primary);
  font-size: 1rem;
}

/* ==========================================================================
   MOBILE DROPDOWN NAVIGATION MENU (PERSIS DESAIN TAMPILAN MOBILE DI GAMBAR)
   ========================================================================== */
.mobile-nav-collapse {
  display: none;
  background: #f4faf6;
  border-top: 1px solid var(--surface-border);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 16px 30px -4px rgba(10, 86, 59, 0.12);
  width: 100%;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-collapse.show {
  display: block;
  animation: mobileNavSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-inner {
  padding: 16px 20px 24px 20px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Item Beranda (Active State: background hijau lembut cerah, font hijau tema) */
.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-item:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mobile-nav-item.active {
  background: #d5eedd;
  color: var(--primary-dark);
  font-weight: 800;
  border: 1px solid var(--surface-border);
}

/* Dropdown Menu Items (Profil, Akademik, Kesiswaan, Informasi, dll) */
.mobile-nav-dropdown {
  width: 100%;
}

.mobile-nav-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-dropdown-toggle:hover {
  background: #e2f5ea;
  color: var(--primary);
}

.mobile-nav-dropdown-toggle.active {
  color: var(--primary-dark);
  background: #e2f5ea;
  font-weight: 700;
}

.mobile-dropdown-caret {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-dropdown.open .mobile-dropdown-caret {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-nav-dropdown.open .mobile-nav-dropdown-toggle {
  background: #e2f5ea;
}

/* Submenu Accordion */
.mobile-nav-sublist {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  margin: 4px 0 8px 14px;
  background: #ebf7f0;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}

.mobile-nav-dropdown.open .mobile-nav-sublist {
  display: flex;
}

.mobile-nav-sublist a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mobile-nav-sublist a i {
  font-size: 0.82rem;
  width: 18px;
  text-align: center;
  color: var(--primary);
}

.mobile-nav-sublist a:hover {
  background: #d8f1e2;
  color: var(--primary-dark);
}

.mobile-nav-sublist a:hover i {
  color: var(--primary);
}

/* Action Buttons di Bagian Bawah Mobile Menu */
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-border-subtle);
  width: 100%;
}

/* 1. Tombol Pill Hijau PPDB Online (Clean Text Sesuai Tema Hijau Tanpa Icon) */
.btn-mobile-ppdb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0a563b 0%, #108e62 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 11px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(10, 86, 59, 0.32);
  margin-bottom: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-mobile-ppdb:hover,
.btn-mobile-ppdb:active {
  background: linear-gradient(135deg, #063d29 0%, #0a563b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 86, 59, 0.4);
  color: #ffffff !important;
}

.mobile-bolt-icon {
  display: none !important;
}

/* 2. Tombol Forest Green Card Login Sistem (Elegan, Berwibawa & Senada) */
.btn-mobile-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #063d29 0%, #0a563b 50%, #0d6e4b 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(6, 61, 41, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-mobile-login:hover,
.btn-mobile-login:active {
  background: linear-gradient(135deg, #042a1c 0%, #063d29 50%, #0a563b 100%);
  box-shadow: 0 6px 20px rgba(6, 61, 41, 0.38);
  color: #ffffff !important;
}

.btn-mobile-login i {
  font-size: 1.05rem;
  color: #34d399; /* Vibrant mint emerald icon */
  transition: transform 0.2s ease;
}

.btn-mobile-login:hover i {
  transform: translateX(3px);
}

.btn-mobile-login i {
  font-size: 1.05rem;
}

@media (min-width: 1024px) {
  .mobile-nav-collapse {
    display: none !important;
  }
}

/* ==========================================================================
   HERO SECTION (FULL-WIDTH BACKGROUND CAROUSEL)
   ========================================================================== */
.hero-section {
  padding: 24px 0 36px;
}

.hero-banner {
  position: relative;
  border-radius: 28px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: #06281a;
}

@media (min-width: 992px) {
  .hero-banner {
    min-height: 520px;
  }
}

/* 1. Full-Bleed Background Carousel Slider */
.hero-slider-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.06);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Rich Gradient Overlay for High Readability */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(5, 38, 25, 0.95) 0%, 
    rgba(5, 38, 25, 0.88) 42%, 
    rgba(5, 38, 25, 0.55) 70%, 
    rgba(5, 38, 25, 0.3) 100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-slide-overlay {
    background: linear-gradient(
      180deg, 
      rgba(5, 38, 25, 0.94) 0%, 
      rgba(5, 38, 25, 0.86) 60%, 
      rgba(5, 38, 25, 0.75) 100%
    );
  }
}

/* 2. Hero Content (Overlaid on Background) */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 28px;
  max-width: 680px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 64px 48px 80px;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    padding: 72px 56px 84px;
    max-width: 740px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.9rem;
  }
}

.hero-desc {
  font-size: 1.05rem;
  color: #f1f5f9;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 32px;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-hero-primary {
  background: #10b981;
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-hero-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: pointer;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* 3. Indicators */
.hero-slider-indicators {
  position: absolute;
  bottom: 28px;
  left: 32px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

@media (min-width: 768px) {
  .hero-slider-indicators {
    left: 48px;
  }
}

.indicator-dot {
  width: 24px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  width: 44px;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

/* 4. Floating Video Pill */
.hero-video-pill {
  position: absolute;
  bottom: 28px;
  right: 32px;
  background: rgba(5, 46, 31, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 11px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 5;
  max-width: 360px;
}

@media (max-width: 768px) {
  .hero-video-pill {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 20px 28px 28px;
    max-width: none;
  }
  .hero-slider-indicators {
    bottom: 16px;
  }
}

.hero-video-pill:hover {
  background: rgba(5, 46, 31, 0.98);
  transform: translateY(-2px);
  border-color: #34d399;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.play-circle {
  width: 38px;
  height: 38px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.video-pill-text {
  font-size: 0.82rem;
  color: #ffffff;
  line-height: 1.3;
}

.video-pill-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ==========================================================================
   QUICK ACCESS / FITUR UNGGULAN (8 KARTU)
   ========================================================================== */
.quick-access-section {
  margin-top: -12px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .quick-access-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .quick-access-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
  }
}

.quick-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.quick-card.featured-card {
  background: #ecfdf5;
  border: 2px solid var(--primary);
  box-shadow: 0 6px 16px rgba(10,86,59,0.12);
}

.quick-card.featured-card:hover {
  border-color: var(--primary-dark);
}

.quick-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.quick-card:hover .quick-icon-wrap {
  transform: scale(1.1);
}

.quick-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.quick-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Icon Wrap Themes */
.icon-teal { background: #e0f2fe; color: #0284c7; }
.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }
.icon-indigo { background: #e0e7ff; color: #4f46e5; }
.icon-emerald { background: #0a563b; color: #ffffff; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-purple { background: #f3e8ff; color: #9333ea; }

/* ==========================================================================
   SECTION COMMON HEADERS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.section-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-see-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-see-all:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   ROW: GURU & TENAGA PENDIDIK + STATISTIK SEKOLAH
   ========================================================================== */
.school-info-row {
  margin-bottom: 40px;
}

.info-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .info-grid-2col {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.card-panel {
  min-width: 0;
}

.card-panel {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Guru Grid */
.guru-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .guru-grid {
    grid-template-columns: 1fr;
  }
}

.guru-card {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  text-align: center;
  align-items: center;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.guru-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 86, 59, 0.1);
  border-color: var(--primary-border);
  background: #ffffff;
}

.guru-photo-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  margin: 0 auto 10px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.guru-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.3s ease;
}

.guru-card:hover .guru-photo {
  transform: scale(1.08);
}

.guru-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  width: 100%;
}

.guru-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 2px;
  text-align: center;
  word-break: normal;
}

.guru-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 10px;
  text-align: center;
  flex-grow: 1;
}

.btn-guru-action {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto;
  transition: var(--transition);
}



.guru-card.kepsek-card {
  border: 1.5px solid var(--primary);
  background: #f0fdf4;
}

.guru-card.kepsek-card .btn-guru-action {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.guru-card.kepsek-card .btn-guru-action:hover {
  background: var(--primary-dark);
}

/* Statistik Section */
.stat-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 576px) {
  .stat-badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-badge {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  transition: var(--transition);
}

.stat-badge:hover {
  border-color: var(--primary-border);
  background: #ecfdf5;
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 0.85rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.charts-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 576px) {
  .charts-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.chart-card {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 14px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.chart-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.chart-container-bar {
  height: 140px;
  position: relative;
}

.chart-container-donut {
  height: 140px;
  position: relative;
}

/* ==========================================================================
   PRESTASI TERBARU SECTION
   ========================================================================== */
.prestasi-section {
  margin-bottom: 40px;
}

.prestasi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .prestasi-grid {
    grid-template-columns: 0.95fr 1.05fr 1fr;
  }
}

.prestasi-featured-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.trophy-media-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111827;
  position: relative;
}

.trophy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prestasi-featured-card:hover .trophy-img {
  transform: scale(1.04);
}

.prestasi-featured-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prestasi-badge-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.prestasi-featured-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 6px;
}

.prestasi-featured-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-prestasi-detail {
  margin-top: auto;
  align-self: flex-start;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-prestasi-detail:hover {
  background: var(--primary-dark);
}

/* Prestasi List Items */
.prestasi-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prestasi-item-row {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.prestasi-item-row:hover {
  transform: translateX(4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.prestasi-trophy-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gold-light);
  color: var(--accent-gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.prestasi-item-info {
  flex-grow: 1;
}

.prestasi-rank-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.prestasi-comp-name {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.prestasi-year-badge {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 2px;
}

/* Prestasi Students Banner Card */
.prestasi-banner-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  box-shadow: var(--shadow-md);
}

.prestasi-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.prestasi-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,61,41,0.2) 0%, rgba(6,61,41,0.85) 75%, #063d29 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.prestasi-banner-tag {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 8px;
}

.prestasi-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.btn-banner-explore {
  background: #10b981;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-banner-explore:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* ==========================================================================
   ROW 3: BERITA + AGENDA + LOKASI
   ========================================================================== */
.bottom-info-row {
  margin-bottom: 56px;
}

.bottom-grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .bottom-grid-3col {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }
}

/* Berita List */
.news-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 576px) {
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.news-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-muted);
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-thumb {
  transform: scale(1.05);
}

.news-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.news-title {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
  flex-grow: 1;
}

.news-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Agenda List */
.agenda-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-item-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.agenda-item-card:hover {
  transform: translateX(4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.agenda-date-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1.5px solid var(--primary-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}

.agenda-day {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.agenda-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-top: 2px;
}

.agenda-details {
  flex-grow: 1;
}

.agenda-event-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.agenda-event-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Lokasi Kami Map */
.location-panel {
  display: flex;
  flex-direction: column;
}

.map-embed-container {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  position: relative;
  margin-bottom: 12px;
}

.map-bg-mock {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin {
  width: 32px;
  height: 32px;
  background: #ef4444;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239,68,68,0.4);
  animation: bounce 2s infinite ease-in-out;
}

.map-pin::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  50% { transform: translateY(-8px) rotate(-45deg); }
}

.location-address {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.location-address strong {
  color: var(--text-main);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.btn-open-map {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  transition: var(--transition);
}

.btn-open-map:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #042e1f;
  color: #ffffff;
  padding: 56px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 4px solid #10b981;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 10;
  box-shadow: 0 100vh 0 0 #042e1f;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 28px;
  }
}

.footer-brand h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-col h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.82rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-link:hover {
  background: #10b981;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 38px 0 max(24px, env(safe-area-inset-bottom)) !important;
  }
  .footer-top-grid {
    gap: 24px !important;
    margin-bottom: 24px !important;
  }
  .footer-bottom {
    padding-top: 18px !important;
    text-align: center;
  }
}

/* ==========================================================================
   APP-LIKE MOBILE BOTTOM NAVIGATION BAR (DEPRECATED - MENGGUNAKAN TOP NAVBAR SESUAI DESAIN)
   ========================================================================== */
.mobile-bottom-nav {
  display: none !important;
}

/* ==========================================================================
   INTERACTIVE MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop:not(.active) {
  display: none !important;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
}

/* Form Styling */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--surface-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,86,59,0.15);
}

.btn-submit-form {
  background: var(--primary);
  color: #ffffff;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-form:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   DROPDOWN NAVIGATION (PREMIUM & SEAMLESS HOVER/CLICK)
   ========================================================================== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown .nav-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown.is-open .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(10, 86, 59, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(10, 86, 59, 0.1);
  padding: 8px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  pointer-events: none;
}

/* Invisible bridge so cursor moving from link to dropdown NEVER loses hover! */
.nav-dropdown-content::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

/* Active / Hover states */
.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.is-open .nav-dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-dropdown-content a i {
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  color: var(--primary-light);
  transition: transform 0.2s ease;
}

.nav-dropdown-content a:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
  transform: translateX(3px);
}

.nav-dropdown-content a:hover i {
  color: var(--primary);
  transform: scale(1.15);
}

/* OBSOLETE MOBILE OVERLAY */
.mobile-menu-overlay { display: none !important; }

/* SWIPER CAROUSEL */
.heroSwiper .swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.heroSwiper .swiper-pagination-bullet-active { opacity: 1; background: var(--primary); }


/* ==========================================================================
   SAMBUTAN KEPALA SEKOLAH (BESAR, RESMI & PROMINENT)
   ========================================================================== */
.sambutan-section {
  padding: 60px 0 30px;
}

.sambutan-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 10px 30px rgba(10, 86, 59, 0.08);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.sambutan-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 960px) {
  .sambutan-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.sambutan-leader-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leader-photo-card {
  text-align: center;
  width: 100%;
}

.leader-photo-frame {
  position: relative;
  width: 230px;
  height: 280px;
  margin: 0 auto 16px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(10, 86, 59, 0.2);
  border: 4px solid var(--primary-light);
}

.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-badge-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.leader-info-box {
  text-align: center;
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
}

.leader-nip {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.leader-edu {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.leader-action-wrap {
  margin-top: 6px;
}

.btn-leader-video {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-leader-video:hover {
  background: var(--primary);
  color: #ffffff;
}

.sambutan-text-col {
  display: flex;
  flex-direction: column;
}

.section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  width: fit-content;
}

.sambutan-main-title {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0 0 16px;
}

.sambutan-body-content {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.85;
}

.greeting-lead {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.sambutan-highlights-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-alt);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.highlight-icon.icon-emerald { background: var(--primary-subtle); color: var(--primary); }
.highlight-icon.icon-teal { background: #e0f2fe; color: #0284c7; }
.highlight-icon.icon-amber { background: #fef3c7; color: #d97706; }

.highlight-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.highlight-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.sambutan-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--surface-border);
  padding-top: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 14px;
}

.signature-block {
  display: flex;
  flex-direction: column;
}

.signature-place {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.signature-signer {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.signature-role {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.btn-more-profile {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-more-profile:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   JURUSAN CARDS GRID
   ========================================================================== */
.jurusan-section {
  padding: 60px 0;
}

.jurusan-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.jurusan-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  padding: 26px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.jurusan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 86, 59, 0.12);
  border-color: var(--primary-light);
}

.jurusan-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.jurusan-icon-box.icon-emerald { background: var(--primary-subtle); color: var(--primary); }
.jurusan-icon-box.icon-blue { background: #e0f2fe; color: #0284c7; }
.jurusan-icon-box.icon-purple { background: #f3e8ff; color: #7c3aed; }
.jurusan-icon-box.icon-amber { background: #fef3c7; color: #d97706; }

.jurusan-code {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.jurusan-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 10px;
  line-height: 1.3;
}

.jurusan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.jurusan-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.8rem;
  color: var(--text-main);
}

.jurusan-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.jurusan-specs li i {
  color: var(--primary);
  font-size: 0.72rem;
}

.jurusan-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-top: auto;
  transition: var(--transition);
}

.jurusan-link:hover {
  gap: 10px;
}

/* ==========================================================================
   NEWS SECTION & FILTER TABS
   ========================================================================== */
.news-section {
  padding: 60px 0;
}

.news-filter-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0;
}

.news-filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--surface-border);
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.news-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.news-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 86, 59, 0.2);
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.news-thumb-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb {
  transform: scale(1.05);
}

.news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 86, 59, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 10px;
}

.news-snippet {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: var(--transition);
}

.news-read-btn:hover {
  gap: 10px;
}

.news-bottom-action {
  text-align: center;
  margin-top: 36px;
}

.btn-more-news {
  background: var(--surface-alt);
  color: var(--text-main);
  border: 1.5px solid var(--surface-border);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-more-news:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   AGENDA SECTION
   ========================================================================== */
.agenda-section {
  padding: 60px 0;
}

.agenda-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.agenda-item-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition);
}

.agenda-item-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.agenda-calendar-tile {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agenda-day-num {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.agenda-month-txt {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agenda-text-info {
  flex-grow: 1;
}

.agenda-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.35;
}

.agenda-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.agenda-details-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.agenda-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   WHY US (KEUNGGULAN SEKOLAH)
   ========================================================================== */
.why-us-section {
  padding: 60px 0;
  background: var(--surface-alt);
}

.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.why-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  padding: 24px;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.why-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.why-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   CTA PPDB BANNER
   ========================================================================== */
.cta-ppdb-section {
  padding: 60px 0;
}

.cta-ppdb-banner {
  background: linear-gradient(135deg, #094a32 0%, #063826 100%);
  border-radius: 24px;
  padding: 48px 36px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(10, 86, 59, 0.25);
}

.cta-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 14px;
}

.cta-content h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.cta-btn-wrap {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #ffffff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-cta-primary:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-wa {
  background: #25d366;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-cta-wa:hover {
  background: #20ba59;
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   SUBPAGE STICKY JUMP LINK
   ========================================================================== */
.subpage-jump-link {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  background: var(--surface-alt);
}

.subpage-jump-link:hover {
  background: var(--primary);
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}


/* ==========================================================================
   SECTION COMMON HEADERS & PRESTASI STYLES (ENHANCED)
   ========================================================================== */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.badge-sub {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.section-subheading {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 8px auto 0;
  line-height: 1.6;
}

.section-title-center {
  text-align: center;
  margin-bottom: 32px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  text-decoration: none;
  transition: var(--transition);
}

.btn-view-all:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(3px);
}

.prestasi-section {
  padding: 60px 0;
}

.prestasi-featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .prestasi-featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.trophy-highlight-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.trophy-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 86, 59, 0.12);
  border-color: var(--primary);
}

.trophy-img-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.trophy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.trophy-highlight-card:hover .trophy-img {
  transform: scale(1.05);
}

.trophy-info-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.trophy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
}

.trophy-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 10px;
}

.trophy-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.btn-trophy-detail {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: var(--transition);
}

.btn-trophy-detail:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
  color: #ffffff;
}

.prestasi-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.prestasi-item-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.prestasi-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 86, 59, 0.1);
  border-color: var(--primary-light);
}

.prestasi-badge-level {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  gap: 2px;
}

.prestasi-badge-level span {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prestasi-item-info {
  flex-grow: 1;
}

.prestasi-item-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.35;
}

.prestasi-item-student {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prestasi-item-org {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* Quick Access Spacing Refinement */
.quick-access-section {
  padding: 30px 0 10px;
  position: relative;
  z-index: 10;
}


.guru-card-item {
  display: flex;
  flex-direction: column;
}

.jurusan-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-item-card {
  display: flex;
  flex-direction: column;
}

.sambutan-cta-links {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ==========================================================================
   MODERN DATA TABLES SYSTEM (PREMIUM, TIDY & SLEEK)
   ========================================================================== */
.table-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}

.table-card-header {
  padding: 16px 22px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-card-title i {
  color: var(--primary);
  font-size: 1.1rem;
}

.table-card-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary-subtle);
  color: var(--primary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  text-align: left;
}

.modern-table thead th {
  background: linear-gradient(135deg, #0a563b 0%, #063826 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 16px;
  border: none;
  white-space: nowrap;
}

.modern-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-main);
  font-weight: 500;
  vertical-align: middle;
}

.modern-table tbody tr:nth-child(even) {
  background-color: #f6faf7;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr {
  transition: background-color 0.15s ease;
}

.modern-table tbody tr:hover {
  background-color: #f0fdf4;
}

/* Badges for table statuses and categories */
.tbl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.tbl-badge.gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tbl-badge.silver {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
}

.tbl-badge.bronze {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.tbl-badge.emerald {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tbl-badge.blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tbl-badge.purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.tbl-badge.amber {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fcd34d;
}

.tbl-time-pill {
  background: var(--surface-muted);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--surface-border);
  white-space: nowrap;
}


/* ==========================================================================
   CAROUSEL HERO REFINEMENTS (SMOOTH CROSSFADE, NATURAL MOVEMENT)
   ========================================================================== */
.hero-banner {
  min-height: 440px;
}

@media (max-width: 640px) {
  .hero-banner {
    min-height: 360px;
    border-radius: 20px;
  }
  .hero-content {
    padding: 24px 18px;
  }
  .hero-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
  .hero-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.03);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

/* ==========================================================================
   LAYOUT COMPACTNESS & SPACING REFINEMENTS
   ========================================================================== */
.quick-access-section {
  padding: 16px 0 10px;
}

.sambutan-section {
  margin-bottom: 36px;
}

.jurusan-section {
  margin-bottom: 36px;
}

.news-section {
  margin-bottom: 36px;
}

.prestasi-section {
  margin-bottom: 36px;
}

.school-info-row {
  margin-bottom: 36px;
}

.agenda-section {
  margin-bottom: 36px;
}

/* ==========================================================================
   MITRA DUDI (2-BARIS CONTINUOUS INFINITE MARQUEE)
   ========================================================================== */
.mitra-section {
  padding: 38px 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--surface-border);
}

.mitra-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  cursor: grab;
  user-select: none;
}

.mitra-marquee-wrapper:active {
  cursor: grabbing;
}

.marquee-row-outer {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.marquee-track.row-left {
  animation: marqueeLeft 58s linear infinite !important;
}

.marquee-track.row-right {
  animation: marqueeRight 58s linear infinite !important;
}

/* Direction Reversal via Scroll/Gesture */
.mitra-marquee-wrapper.reversed .marquee-track.row-left {
  animation-direction: reverse !important;
}

.mitra-marquee-wrapper.reversed .marquee-track.row-right {
  animation-direction: reverse !important;
}

/* Continuous movement */
.mitra-marquee-wrapper .marquee-track {
  animation-play-state: running !important;
}

/* Alumni marquee: always flows to the right, never reverses */
.alumni-marquee-wrapper .marquee-track.row-right,
.alumni-marquee-wrapper.reversed .marquee-track.row-right {
  animation: marqueeRight 60s linear infinite !important;
  animation-direction: normal !important;
}

.alumni-marquee-wrapper:hover .marquee-track.row-right {
  animation-play-state: paused !important;
}

@keyframes marqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (hover: hover) {
  .mitra-marquee-wrapper:hover .marquee-track,
  .alumni-marquee-wrapper:hover .marquee-track {
    /* animation-play-state: running; */
  }
}

.mitra-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.mitra-badge-item:hover {
  border-color: var(--primary-border);
  background: #f0fdf4;
  transform: translateY(-2px);
}

.mitra-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  border: 1px solid var(--surface-border);
  flex-shrink: 0;
}

.mitra-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.mitra-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: #e3ede5;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  font-weight: 600;
}

/* ==========================================================================
   REVIEW ALUMNI (2-BARIS CONTINUOUS TESTIMONIAL TICKER)
   ========================================================================== */
.alumni-review-section {
  padding: 42px 0 52px;
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--surface-border);
}

.alumni-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  cursor: grab;
  user-select: none;
}

.alumni-marquee-wrapper:active {
  cursor: grabbing;
}

.alumni-card-item {
  width: clamp(280px, 32vw, 360px);
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  outline: none;
}

.alumni-card-item:hover,
.alumni-card-item:focus-visible {
  border-color: #0a563b;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 86, 59, 0.12);
}

.alumni-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alumni-photo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0a563b;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.alumni-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.alumni-avatar.avatar-purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.alumni-meta {
  flex-grow: 1;
  min-width: 0;
}

.alumni-name-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.alumni-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alumni-verified {
  color: #10b981;
  font-size: 0.76rem;
}

.alumni-batch {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.alumni-stars {
  color: #f59e0b;
  font-size: 0.68rem;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.alumni-job {
  font-size: 0.74rem;
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e3ede5;
  padding: 4px 10px;
  border-radius: 8px;
}

.alumni-job-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-main);
  font-weight: 700;
  background: #e3ede5;
  padding: 5px 10px;
  border-radius: 8px;
}

.alumni-job-row i {
  color: var(--primary);
  font-size: 0.74rem;
}

.alumni-edu-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: #1e40af;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.alumni-quote {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.alumni-card-action {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--surface-border);
}

.alumni-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0a563b;
  transition: all 0.2s ease;
}

.alumni-card-item:hover .alumni-read-more {
  gap: 8px;
  color: #053b28;
  text-decoration: underline;
}

/* ==========================================================================
   ALUMNI SUCCESS STORY MODAL (PREMIUM DIALOG)
   ========================================================================== */
.alumni-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.alumni-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.alumni-modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.alumni-modal-backdrop.active .alumni-modal-card {
  transform: scale(1) translateY(0);
}

.alumni-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.9);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.alumni-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

.alumni-modal-header {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, #0a563b 0%, #0d6848 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.alumni-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.alumni-modal-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.alumni-modal-foto {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.alumni-modal-initials {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a563b;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.alumni-modal-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 2px solid #ffffff;
}

.alumni-modal-profile {
  flex: 1;
  min-width: 0;
}

.alumni-modal-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 6px;
  color: #d1fae5;
}

.alumni-modal-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.alumni-modal-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #a7f3d0;
  font-weight: 500;
}

.alumni-modal-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.alumni-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .alumni-modal-grid {
    grid-template-columns: 1fr;
  }
}

.alumni-modal-info-box {
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alumni-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.alumni-info-icon.edu-icon {
  background: #dbeafe;
  color: #1e40af;
}

.alumni-info-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.alumni-info-val {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.alumni-modal-quote-wrap {
  background: #fdfbf7;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 18px;
}

.alumni-quote-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  margin-bottom: 8px;
}

.quote-decor {
  font-size: 1rem;
  color: #f59e0b;
}

.alumni-modal-quote-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
  font-style: italic;
}

.alumni-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-border);
}

.alumni-modal-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.alumni-modal-trust i {
  color: #d97706;
  font-size: 0.88rem;
}

.btn-alumni-modal-close {
  background: #0a563b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 22px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-alumni-modal-close:hover {
  background: #06402b;
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE FIRST OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .mitra-badge-item {
    padding: 6px 12px;
  }
  .mitra-name {
    font-size: 0.75rem;
  }
  .mitra-tag {
    font-size: 0.62rem;
    padding: 1px 6px;
  }
  .alumni-card-item {
    width: 270px;
    padding: 12px;
  }
  .alumni-quote {
    font-size: 0.76rem;
  }
}


/* ==========================================================================
   ENHANCED MARQUEE & PARTNER BRAND LOGOS (SLOW, NO-STOP, BRAND LOGO TILES)
   ========================================================================== */
.marquee-track.row-left {
  animation: marqueeLeft 58s linear infinite !important;
}

.marquee-track.row-right {
  animation: marqueeRight 58s linear infinite !important;
}

.mitra-marquee-wrapper.reversed .marquee-track.row-left {
  animation-direction: reverse !important;
}

.mitra-marquee-wrapper.reversed .marquee-track.row-right {
  animation-direction: reverse !important;
}

.mitra-marquee-wrapper .marquee-track {
  animation-play-state: running !important;
}

/* Pure Brand Logo Cards */
.mitra-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 64px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.mitra-logo-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px rgba(10, 86, 59, 0.08);
  background: #ffffff;
}

.mitra-logo-card svg {
  max-width: 100%;
  max-height: 38px;
  height: auto;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .mitra-logo-card {
    width: 124px;
    height: 52px;
    padding: 8px 12px;
    border-radius: 10px;
  }
  .mitra-logo-card svg {
    max-height: 28px;
  }
}

/* ==========================================================================
   SIDE-BY-SIDE KEPALA SEKOLAH & PROFIL GURU (COMPACT, DENSE & BALANCED)
   ========================================================================== */
.leadership-faculty-section {
  padding: 10px 0 36px;
}

.leadership-faculty-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .leadership-faculty-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Left Column: Kepsek Card */
.kepsek-compact-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.kepsek-compact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
}

.kepsek-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.kepsek-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.kepsek-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--primary-border);
}

.kepsek-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.kepsek-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.kepsek-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.kepsek-nip {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: block;
}

.kepsek-quote-box {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.quote-symbol {
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0.35;
  margin-bottom: 4px;
}

.kepsek-quote-text {
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.kepsek-features-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.kepsek-pill {
  font-size: 0.73rem;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kepsek-footer-actions {
  display: flex;
  gap: 10px;
}

.btn-kepsek-profile {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-kepsek-profile:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-kepsek-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--surface-border);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-kepsek-video:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* Right Column: Faculty Compact Card */
.faculty-compact-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.faculty-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.faculty-sub-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.faculty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0 2px 0;
}

.faculty-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.faculty-view-all {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  white-space: nowrap;
}

.teacher-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .teacher-mini-grid {
    grid-template-columns: 1fr;
  }
}

.teacher-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.teacher-mini-card:hover {
  background: #f0fdf4;
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.teacher-mini-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--surface-border);
}

.teacher-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-mini-info {
  flex-grow: 1;
  min-width: 0;
}

.teacher-mini-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-mini-subject {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-mini-edu {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-mini-arrow {
  font-size: 0.7rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.teacher-mini-card:hover .teacher-mini-arrow {
  transform: translateX(2px);
  color: var(--primary);
}

.faculty-footer-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
}

.faculty-stat-mini {
  text-align: center;
}

.faculty-stat-mini .stat-num {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.faculty-stat-mini .stat-lbl {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   MOBILE FIRST CUTOFFS & TABLE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991px) {
  body {
    padding-bottom: 0 !important;
  }
}

.page-header {
  position: relative;
  padding: 52px 20px 42px;
  background: linear-gradient(135deg, #094a32 0%, #063826 100%);
  color: white;
  text-align: center;
  overflow: hidden;
  scroll-margin-top: 85px;
}

@media (max-width: 768px) {
  .page-header {
    padding: 38px 16px 28px !important;
  }
  .page-header h1,
  .page-header .page-title {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .page-header p {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
  }
  .subpage-jump-nav {
    position: relative !important;
    top: auto !important;
    z-index: 20;
  }
}

/* ==========================================================================
   UNIVERSAL ZERO CUT-OFF RESPONSIVE TABLES (MOBILE-FIRST)
   Eliminates all horizontal scrolling/cropping across all tables on mobile.
   ========================================================================== */
.table-scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  .table-responsive,
  .ppdb-table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 16px !important;
    display: block !important;
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    background: #ffffff;
  }

  .table-scroll-hint {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #047857;
    background: #ecfdf5;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px dashed #a7f3d0;
    font-weight: 700;
  }
  
  .table-responsive .modern-table {
    display: table !important;
    width: 100% !important;
    min-width: 660px !important;
    border-collapse: collapse !important;
    margin: 0 !important;
  }
  
  .table-responsive .modern-table thead {
    display: table-header-group !important;
  }

  .table-responsive .modern-table thead th {
    display: table-cell !important;
    padding: 10px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }
  
  .table-responsive .modern-table tbody {
    display: table-row-group !important;
  }
  
  .table-responsive .modern-table tbody tr {
    display: table-row !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
  }
  
  .table-responsive .modern-table tbody td {
    display: table-cell !important;
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border-bottom: 1px solid var(--surface-border) !important;
  }
  
  .table-responsive .modern-table tbody td:first-child:not([colspan]) {
    display: table-cell !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--surface-border) !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    color: var(--text-main) !important;
    padding: 10px 12px !important;
    margin-bottom: 0 !important;
  }
  .table-responsive .modern-table tbody td:first-child:not([colspan])::before {
    content: none !important;
  }

  .table-responsive .modern-table tbody tr td[colspan] {
    display: table-cell !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
    background: #edf7f1 !important;
    padding: 10px 14px !important;
  }
}

  /* PPDB Schedule Table Mobile Stacked Card System */
  .ppdb-table-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .ppdb-schedule-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: none !important;
  }

  .ppdb-schedule-table thead {
    display: none !important;
  }

  .ppdb-schedule-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .ppdb-schedule-table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid var(--surface-border) !important;
    border-radius: 16px !important;
    padding: 16px 18px !important;
    box-shadow: 0 3px 12px rgba(10, 86, 59, 0.05) !important;
    box-sizing: border-box !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .ppdb-schedule-table tbody tr:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 6px 18px rgba(10, 86, 59, 0.09) !important;
  }

  .ppdb-schedule-table td {
    display: block !important;
    width: 100% !important;
    padding: 4px 0 !important;
    border: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  /* Cell 1: Tahap Number Badge */
  .ppdb-schedule-table td:nth-child(1) {
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    background: var(--primary-subtle) !important;
    border: 1px solid var(--primary-border) !important;
    padding: 3px 12px !important;
    border-radius: 9999px !important;
    margin-bottom: 8px !important;
    width: auto !important;
  }
  .ppdb-schedule-table td:nth-child(1)::before {
    content: "Tahap #";
    font-weight: 800;
  }

  /* Cell 2: Kegiatan / Tahapan Title */
  .ppdb-schedule-table td:nth-child(2) {
    margin-bottom: 10px !important;
  }
  .ppdb-schedule-table td:nth-child(2) div {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    color: var(--text-main) !important;
    font-weight: 800 !important;
  }

  /* Cell 3: Tanggal Pelaksanaan */
  .ppdb-schedule-table td:nth-child(3) {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 6px !important;
    background: var(--surface-alt) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    white-space: normal !important;
  }

  /* Cell 4: Waktu / Lokasi */
  .ppdb-schedule-table td:nth-child(4) {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    margin-bottom: 8px !important;
    padding-left: 4px !important;
    white-space: normal !important;
  }

  /* Cell 5: Keterangan */
  .ppdb-schedule-table td:nth-child(5) {
    display: block !important;
    font-size: 0.84rem !important;
    color: var(--text-muted) !important;
    background: #f7faf8 !important;
    border-left: 3px solid var(--primary) !important;
    padding: 8px 12px !important;
    border-radius: 0 8px 8px 0 !important;
    line-height: 1.5 !important;
  }
  .ppdb-schedule-table td:nth-child(5)::before {
    content: "Keterangan: ";
    font-weight: 700;
    color: var(--text-main);
  }
}



/* ==========================================================================
   SUBPAGE HEADER & NAVIGATION RESPONSIVE REFINEMENTS (MOBILE-FIRST)
   ========================================================================== */
.page-header {
  position: relative;
  padding: 50px 20px 40px;
  background: linear-gradient(135deg, #094a32 0%, #063826 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  scroll-margin-top: 85px;
}

.page-header-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-header {
    padding: 36px 16px 26px !important;
  }
  .page-title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .page-subtitle {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }
}


/* ==========================================================================
   HOMEPAGE EXACT MOCKUP STYLING (MODULAR CARDS & REFINED PROPORTIONS)
   ========================================================================== */
.home-page-wrapper {
  background-color: transparent;
  padding: 20px 0 48px;
}

.home-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Card Panel Base */
.card-panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  padding: 22px;
  box-shadow: 0 3px 12px rgba(10, 86, 59, 0.04);
  margin-bottom: 24px;
  min-width: 0;
}

@media (max-width: 768px) {
  .card-panel {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 16px;
  }
}

/* Section Header Inside Card */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e8f5e9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.section-icon-badge.icon-gold {
  background: #fef3c7;
  color: #d97706;
}

.section-icon-badge.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.section-see-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.section-see-all:hover {
  transform: translateX(3px);
}


/* ==========================================================================
   GLOBAL OFFSIDE & HORIZONTAL OVERFLOW PREVENTION
   ========================================================================== */
html, body {
  overflow-x: clip !important;
  width: 100% !important;
  max-width: 100vw !important;
}

.home-page-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.home-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .home-container {
    padding: 0 16px;
  }
}

/* Helper Badges */
.badge-green {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.news-cat-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   1. HERO BANNER (FULL-BLEED 3-IMAGE CAROUSEL BACKGROUND)
   ========================================================================== */
.hero-section {
  width: 100%;
  margin-bottom: 24px;
}

.hero-banner {
  position: relative;
  border-radius: 24px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 40, 26, 0.2);
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: #06281a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 992px) {
  .hero-banner {
    min-height: 520px;
  }
}

.hero-slider-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(5, 38, 25, 0.94) 0%, 
    rgba(5, 38, 25, 0.86) 46%, 
    rgba(5, 38, 25, 0.50) 75%, 
    rgba(5, 38, 25, 0.25) 100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-slide-overlay {
    background: linear-gradient(
      180deg, 
      rgba(5, 38, 25, 0.94) 0%, 
      rgba(5, 38, 25, 0.88) 60%, 
      rgba(5, 38, 25, 0.78) 100%
    );
  }
}

.hero-flex-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 56px 44px;
  gap: 32px;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .hero-flex-layout {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 20px 64px;
    gap: 24px;
  }
}

.hero-content {
  max-width: 660px;
  padding: 0;
  position: relative;
}

.hero-right-video-wrap {
  flex-shrink: 0;
  margin-bottom: 6px;
}

.hero-video-floating-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.hero-video-floating-bar:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-3px) scale(1.02);
  border-color: #10b981;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.hero-video-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #10b981;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Hero Navigation Arrows (Removed per user request) */
.hero-arrow {
  display: none !important;
}

/* Centered Pill Indicators */
.hero-slider-indicators {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.indicator-dot.active {
  width: 30px;
  height: 10px;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

/* ==========================================================================
   2. QUICK ACCESS BAR (8 CARDS IN 1 ROW ON DESKTOP)
   ========================================================================== */
.quick-access-8grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 1140px) {
  .quick-access-8grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .quick-access-8grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.quick-access-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.04);
}

.quick-access-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.16);
}

.quick-access-card.featured-green {
  border: 2px solid #10b981;
  background: #eef8f2;
}

.qa-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}

.quick-access-card:hover .qa-icon-wrap {
  transform: scale(1.1);
}

.qa-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.25;
}

.qa-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   3. LEADERSHIP & FACULTY (SIDE BY SIDE SIMETRIS)
   ========================================================================== */
.leadership-faculty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .leadership-faculty-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* KIRI: Sambutan Kepala Sekolah */
.kepsek-speech-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.kepsek-speech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
}

.kepsek-profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.kepsek-photo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.kepsek-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid #10b981;
}

.kepsek-meta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0 2px;
  line-height: 1.25;
}

.kepsek-meta-nip {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.kepsek-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 3px 10px;
  border-radius: 999px;
}

.kepsek-speech-quote {
  background: #edf5ef;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.kepsek-quote-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0;
  font-style: italic;
}

.kepsek-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kepsek-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
}

.btn-kepsek-speech-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-kepsek-speech-video:hover {
  background: #047857;
  transform: translateY(-2px);
}

.btn-kepsek-speech-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.btn-kepsek-speech-more:hover {
  background: var(--primary-subtle);
}

/* KANAN: Profil Guru (2x2 Grid Lega) */
.faculty-side-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 4px 16px rgba(10, 86, 59, 0.04);
  overflow: hidden;
}

.teacher-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 540px) {
  .teacher-2x2-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.teacher-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}

.teacher-item-card:hover {
  background: #ffffff;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.teacher-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--surface-border);
}

.teacher-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.teacher-info-box {
  min-width: 0;
  flex: 1;
}

.teacher-info-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-info-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-info-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faculty-bottom-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
  margin-top: auto;
}

.faculty-stat-chip {
  text-align: center;
  background: #edf5ef;
  border-radius: 10px;
  padding: 8px 4px;
}

.faculty-stat-chip strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.faculty-stat-chip span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   4. STATISTIK & PRESTASI
   ========================================================================== */
.stat-4badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 580px) {
  .stat-4badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-badge-mini {
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}

.stat-badge-mini .stat-icon {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-badge-mini .stat-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-badge-mini .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.charts-split-mockup {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .charts-split-mockup {
    grid-template-columns: 1fr;
  }
}

.chart-box-mini {
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden !important;
}

.chart-canvas-wrap {
  height: 135px;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.chart-donut-flex-container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 135px;
  width: 100%;
  box-sizing: border-box;
}

.chart-donut-wrap {
  width: 105px;
  height: 105px;
  position: relative;
  flex-shrink: 0;
}

.chart-donut-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.donut-center-stat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.donut-center-stat span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.donut-legend-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.donut-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donut-leg-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: block;
}

.prestasi-ranked-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prestasi-ranked-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.prestasi-ranked-item:hover {
  background: #ffffff;
  border-color: #10b981;
  transform: translateX(4px);
}

.prestasi-trophy-icon {
  font-size: 1.4rem;
  color: #16a34a;
  flex-shrink: 0;
}

/* ==========================================================================
   5. ROW 3: BERITA, AGENDA, LOKASI
   ========================================================================== */
.bottom-3col-row {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.8fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .bottom-3col-row {
    grid-template-columns: 1fr;
  }
}

.news-4mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .news-4mini-grid {
    grid-template-columns: 1fr;
  }
}

.news-mini-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(10, 86, 59, 0.03);
  transition: all 0.2s ease;
}

.news-mini-card:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 6px 16px rgba(10, 86, 59, 0.08);
}

.news-mini-thumb {
  width: 100%;
  height: 110px;
  overflow: hidden;
}

.news-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-mini-card:hover .news-mini-thumb img {
  transform: scale(1.05);
}

.news-mini-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-mini-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.news-mini-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-mini-link {
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agenda-mock-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-mock-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}

.agenda-mock-item:hover {
  background: #ffffff;
  border-color: #10b981;
}

.agenda-mock-date {
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  flex-shrink: 0;
}

.agenda-mock-date .day {
  font-size: 1.15rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.agenda-mock-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
}

.agenda-mock-info h4 {
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-main);
}

.agenda-mock-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.lokasi-mock-body {
  display: flex;
  flex-direction: column;
}

.lokasi-mock-map {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--surface-border);
}

.lokasi-mock-address {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-mock-peta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-subtle);
  color: var(--primary) !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.btn-mock-peta:hover {
  background: var(--primary);
  color: white !important;
}

.lokasi-mock-contacts {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   6. REVIEW ALUMNI SECTION (DI ATAS MITRA)
   ========================================================================== */
.alumni-review-section {
  padding: 40px 0 28px;
  background: var(--bg-alt);
  border-top: 1px solid var(--surface-border);
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

.section-title-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.section-title-center .badge-sub {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.section-title-center .section-heading {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-title-center .section-subheading {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.alumni-marquee-wrapper {
  position: relative;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.alumni-card-item {
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10, 86, 59, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.alumni-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.alumni-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f5e9;
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.alumni-meta {
  flex: 1;
  min-width: 0;
}

.alumni-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.alumni-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alumni-verified {
  color: #10b981;
  font-size: 0.85rem;
}

.alumni-batch {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.alumni-stars {
  color: #f59e0b;
  font-size: 0.75rem;
  display: flex;
  gap: 2px;
}

.alumni-job {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e3ede5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  width: fit-content;
}

.alumni-quote {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   7. MITRA DUDI SECTION (DI BAWAH ALUMNI, HANYA 1 BARIS, ULTRA CALM 75s)
   ========================================================================== */
.mitra-section {
  padding: 38px 0 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--surface-border);
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

.mitra-marquee-wrapper {
  position: relative;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

.marquee-row-outer {
  display: flex;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

/* Alumni Track */
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

/* ALUMNI TRACK - GULIR KE KANAN */
.marquee-track.row-right {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: marqueeRight 65s linear infinite !important;
}

/* MITRA SINGLE ROW TRACK - GULIR KE KIRI (CALM 75s) */
.marquee-single-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation: marqueeLeft 75s linear infinite !important;
}

/* Both continuous steady movement, never stopping, no direction change on scroll */
.mitra-marquee-wrapper .marquee-single-track,
.alumni-marquee-wrapper .marquee-track {
  animation-play-state: running !important;
}

@keyframes marqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Continuous movement: NEVER stops */
.mitra-marquee-wrapper .marquee-single-track,
.alumni-marquee-wrapper .marquee-track {
  animation-play-state: running !important;
}

/* Mitra Logo Card (Clean SVG vector brand logo & uploaded brand card) */
.mitra-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 10px 22px;
  height: 56px;
  min-width: 140px;
  box-shadow: 0 2px 6px rgba(10, 86, 59, 0.03);
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
}

.mitra-logo-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #10b981;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.16);
  background: #ffffff;
}

.mitra-logo-card svg {
  height: 30px;
  max-width: 145px;
  width: auto;
  display: block;
}

/* Dynamic Mitra Card from Database */
.dynamic-mitra-card {
  text-decoration: none;
  color: inherit;
  height: 56px;
  padding: 8px 18px;
  min-width: auto;
  white-space: nowrap;
}
.mitra-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mitra-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.dynamic-mitra-card:hover .mitra-icon-badge {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.08);
}
.mitra-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mitra-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.dynamic-mitra-card:hover .mitra-name {
  color: #059669;
}
.mitra-cat-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.mitra-ext-link {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.dynamic-mitra-card:hover .mitra-ext-link {
  color: #10b981;
  opacity: 1;
  transform: translate(2px, -2px);
}
.mitra-img-logo {
  max-height: 36px;
  max-width: 130px;
  object-fit: contain;
}



/* ==========================================================================
   PRELOADER / SPLASH SCREEN (ANIMASI LOGO KEDIP-KEDIP PELAN)
   ========================================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  background-color: #052619;
  background: radial-gradient(circle at 50% 45%, #073b27 0%, #052619 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 90vw;
}

.preloader-logo-container {
  position: relative;
  width: clamp(120px, 24vw, 160px);
  height: clamp(120px, 24vw, 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.preloader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.45));
  animation: logoGentleBreathe 2.6s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.preloader-pulse-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.35);
  animation: pulseRingExpand 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes logoGentleBreathe {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.72;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 32px rgba(16, 185, 129, 0.85));
  }
}

@keyframes pulseRingExpand {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.preloader-brand-title {
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.preloader-brand-tagline {
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  color: #a7f3d0;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 22px 0;
  text-transform: uppercase;
}

.preloader-loading-track {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.preloader-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 999px;
  animation: loadingBarSlide 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loadingBarSlide {
  0% {
    left: -50%;
    width: 40%;
  }
  50% {
    left: 25%;
    width: 60%;
  }
  100% {
    left: 100%;
    width: 40%;
  }
}

.preloader-status-text {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   PORTAL LOGIN PAGE (DEDICATED RESPONSIVE 2-COLUMN AUTH SCREEN)
   ========================================================================== */
.login-body-wrapper {
  margin: 0;
  padding: 0;
  background: #052619;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
}

.login-page-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  background: radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(6, 78, 59, 0.2) 0%, transparent 50%),
              #052619;
  box-sizing: border-box;
}

.login-floating-back-btn {
  position: absolute;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
  z-index: 10;
}


.login-floating-home-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-floating-home-btn:hover {
  background: #10b981;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
  .login-floating-home-btn {
    top: 14px;
    right: 14px;
    font-size: 0.78rem;
    padding: 6px 14px;
  }
}

.login-floating-back-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .login-floating-back-btn {
    top: 14px;
    left: 14px;
    font-size: 0.78rem;
    padding: 6px 14px;
  }
}

.login-master-container {
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  max-width: 1040px;
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.2);
  align-items: stretch;
  margin: 40px auto 20px;
}

@media (max-width: 900px) {
  .login-master-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 50px auto 20px;
    border-radius: 22px;
  }
}

/* KOLOM KIRI: Identitas & Branding */
.login-left-brand-panel {
  background: linear-gradient(145deg, #042116 0%, #073b27 50%, #0b5639 100%);
  color: #ffffff;
  padding: 56px 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

@media (max-width: 900px) {
  .login-left-brand-panel {
    padding: 36px 24px;
    text-align: center;
  }
}

.login-brand-decor-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.login-brand-decor-orb.orb-1 {
  width: 260px;
  height: 260px;
  background: rgba(16, 185, 129, 0.2);
  top: -80px;
  right: -80px;
}

.login-brand-decor-orb.orb-2 {
  width: 220px;
  height: 220px;
  background: rgba(5, 150, 105, 0.25);
  bottom: -60px;
  left: -60px;
}

.login-left-content {
  position: relative;
  z-index: 2;
}

.login-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.login-left-logo-wrap {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .login-left-logo-wrap {
    margin: 0 auto 16px;
    width: 86px;
    height: 86px;
  }
}

.login-left-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.login-left-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.login-left-motto {
  font-size: 0.85rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.05em;
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.login-left-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .login-features-list {
    display: none; /* Hide on mobile to keep login fast & compact */
  }
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 14px;
}

.login-feature-item .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.login-feature-item strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
}

.login-feature-item span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

.login-left-footer {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* KOLOM KANAN: Form & Pilihan Akses Luar */
.login-right-form-panel {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

@media (max-width: 768px) {
  .login-right-form-panel {
    padding: 28px 20px;
  }
}

/* 1. Box Pilihan Akses Luar (Non-Admin) */
.non-admin-access-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.non-admin-access-box:hover {
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.non-admin-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.non-admin-text-wrap {
  flex: 1;
  min-width: 0;
}

.non-admin-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.non-admin-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #064e3b;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.non-admin-desc {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-access-public {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #047857;
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

.btn-access-public:hover {
  background: #065f46;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.35);
}

@media (max-width: 480px) {
  .non-admin-access-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-access-public {
    width: 100%;
    justify-content: center;
  }
}

/* Header Form */
.login-form-header {
  margin-bottom: 20px;
}

.login-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #047857;
  background: #e8f5e9;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.login-form-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.login-form-subtitle {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

/* Alert Box */
.login-alert-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  margin-bottom: 18px;
  line-height: 1.4;
}

.login-alert-box.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.login-alert-box.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Form Groups */
.form-group-login {
  margin-bottom: 18px;
}

.login-field-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.login-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

.forgot-pass-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: #047857;
  text-decoration: none;
}

.forgot-pass-link:hover {
  text-decoration: underline;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.login-input-field {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 1.5px solid var(--surface-border);
  border-radius: 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--surface-muted);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.login-input-field:focus {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.login-input-field:focus + .input-icon,
.login-input-wrap:focus-within .input-icon {
  color: #047857;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: #047857;
}

/* Extra row: Remember me */
.login-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.remember-me-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-me-checkbox input {
  display: none;
}

.custom-chk {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remember-me-checkbox input:checked + .custom-chk {
  background: #10b981;
  border-color: #10b981;
}

.remember-me-checkbox input:checked + .custom-chk::after {
  content: '✓';
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.remember-label {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

/* Tombol Submit */
.btn-login-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3);
}

.btn-login-action:hover {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.4);
}

.btn-login-action:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
}

.login-form-body {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   GLOBAL SEARCH MODAL POPUP (KANAN ATAS)
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 38, 25, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.search-modal-backdrop:not(.active) {
  display: none !important;
}

.search-modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.search-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 660px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-modal-backdrop.active .search-modal-card {
  transform: translateY(0);
}

.search-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--surface-border);
}

.search-modal-header .search-icon {
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.search-modal-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
}

.search-modal-close-btn {
  background: var(--surface-muted);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-modal-close-btn:hover {
  background: var(--surface-muted);
  color: var(--text-main);
}

.search-modal-body {
  padding: 18px 20px;
  max-height: 440px;
  overflow-y: auto;
}

.search-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.search-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-tag-chip:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: #f4f8f5;
  border: 1px solid var(--surface-border);
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: #ffffff;
  border-color: #10b981;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.search-result-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e8f5e9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-info h5 {
  margin: 0 0 2px 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.search-result-info p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0284c7;
  flex-shrink: 0;
}

/* ==========================================================================
   SPIDER-WEB INTERACTIVE CANVAS (PC LOGIN BACKGROUND)
   ========================================================================== */
.login-spider-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.login-master-container {
  position: relative;
  z-index: 2;
}

.login-quote-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #10b981;
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.login-quote-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #d1fae5;
  margin: 0;
  font-style: italic;
}

/* Warta & Kabar Sekolah Grid Min-Height */
.news-cards-grid {
  min-height: 400px;
  transition: all 0.3s ease;
}

.news-empty-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--surface-muted);
  border-radius: 14px;
  border: 1px dashed var(--surface-border);
  color: var(--text-muted);
}

.news-empty-notice i {
  font-size: 2.2rem;
  color: #94a3b8;
  margin-bottom: 10px;
  display: block;
}

.news-empty-notice p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   PENYEMPURNAAN SMKS AS-SYIFA: 3 SAMBUTAN, CHATBOT, BACK-TO-TOP & MOBILE
   ========================================================================== */

/* ---------- 1. Tiga Sambutan (Home & Profil) ---------- */
.speeches-section {
  padding: 48px 0;
  margin-bottom: 24px;
}
.speeches-3grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.speech-card-item {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.speech-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}
.speech-card-photo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.speech-card-photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  border: 3px solid var(--primary-subtle);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.speech-card-meta {
  min-width: 0;
  flex: 1;
}
.speech-card-badge {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}
.speech-card-author {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  display: block;
}
.speech-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.speech-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.speech-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}
.speech-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.speech-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
}
.btn-read-speech {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
  transition: gap 0.2s, color 0.2s;
}
.btn-read-speech:hover {
  color: var(--primary-light);
  gap: 12px;
}

/* ---------- 2. Alumni Overhaul (Tanpa Bintang) ---------- */
.alumni-card-item {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 320px;
  max-width: 360px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.alumni-photo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-border);
  flex-shrink: 0;
}
.alumni-job-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.alumni-edu-tag {
  font-size: 0.76rem;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 600;
}

/* ---------- 3. Back to Top Button ---------- */
.back-to-top-btn {
  position: fixed;
  bottom: 98px; /* Tepat di atas launcher chatbot (tinggi 60px + bottom 24px = 84px + jarak 14px) */
  right: 32px;  /* Sejajar tepat di sumbu tengah vertikal chatbot launcher (right 24px + radius 30px = 54px - radius 22px = 32px) */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(10, 86, 59, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 9980;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 86, 59, 0.45);
}
.back-to-top-btn:active {
  transform: translateY(0);
}

/* Sembunyikan Back to Top sementara ketika Chatbot sedang dibuka agar tidak menutupi pesan, input, atau tombol kirim */
body.cb-open .back-to-top-btn,
:has(.cb-root.is-open) .back-to-top-btn,
.cb-root.is-open ~ .back-to-top-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(16px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* ---------- 4. As-Syifa Chatbot Widget ---------- */
.chatbot-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  font-family: var(--font-family);
}
.chatbot-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 20px rgba(10,86,59,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.chatbot-toggle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(10,86,59,0.45);
}
.chatbot-pulse-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Chatbot Panel Dialog */
.chatbot-panel[hidden] {
  display: none !important;
}
.chatbot-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 510px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatPanelIn 0.25s ease;
}
@keyframes chatPanelIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-panel-header {
  background: linear-gradient(135deg, var(--primary) 0%, #063d29 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.chatbot-header-info h4 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}
.chatbot-online-badge {
  font-size: 0.72rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
}
.chatbot-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.chatbot-close-btn:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.15);
}

/* Category Pills in Chat (REMOVED FROM HEADER NAVBAR - DISPLAY NONE) */
.chatbot-category-pills {
  display: none !important;
}

/* Chat Messages */
.chatbot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f4f8f5;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.chat-bubble {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 5px;
  word-break: break-word;
}
.bot-bubble {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: #1e293b;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.user-bubble {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(6,78,59,0.22);
}
.bubble-time {
  font-size: 0.68rem;
  opacity: 0.65;
  align-self: flex-end;
}
.user-bubble .bubble-time {
  color: rgba(255,255,255,0.85);
}

/* Pilihan Topik & Pertanyaan Interaktif Di Dalam Percakapan */
.chat-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  animation: chatFadeIn 0.2s ease;
}
.chat-options-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.chat-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.chat-option-btn {
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  color: #065f46;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  user-select: none;
  text-align: left;
  line-height: 1.3;
}
.chat-option-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(6,78,59,0.2);
}
.chat-option-btn:active {
  transform: translateY(0);
}
.chat-option-btn i {
  font-size: 0.82rem;
  opacity: 0.9;
}
.chat-option-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tombol Aksi Spesifik (Unduh Brosur, Daftar PPDB, WhatsApp) */
.chat-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}
.chat-action-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  border: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(5,150,105,0.25);
  transition: all 0.2s;
  cursor: pointer;
}
.chat-action-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5,150,105,0.35);
  color: #ffffff !important;
}

/* Tombol Pembantu (Lihat Topik Lainnya & Menu Utama) */
.chat-more-btn {
  background: var(--surface-muted);
  border: 1px dashed var(--surface-border);
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  user-select: none;
}
.chat-more-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Typing Indicator Animation */
.typing-bubble {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chat Input Form */
.chatbot-input-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--surface-border);
}
.chatbot-input-form input {
  flex: 1;
  border: 1px solid var(--surface-border);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.chatbot-input-form input:focus {
  border-color: var(--primary);
}
.chatbot-input-form button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.chatbot-input-form button:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* ---------- 5. Mobile Navbar Drawer Refinement ---------- */
@media (max-width: 768px) {
  .speeches-3grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .back-to-top-btn {
    bottom: 82px;
    right: 22px;
    width: 40px;
    height: 40px;
  }
  .brand-logo-img {
    width: 40px !important;
    height: 40px !important;
  }
  .brand-info h1 {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
  }
  .brand-info p {
    font-size: 0.65rem !important;
  }
  .mobile-nav-collapse {
    max-height: 82vh;
    overflow-y: auto;
  }
  .hero-title {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
  }
  .hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
}


/* ==========================================================================
   CHATBOT UI SYNCED TO REFERENCE PROJECT
   ========================================================================== */
/* ==========================================================================
   v2 — CHATBOT / LIVE CHAT
   ========================================================================== */
.cb-root { position: fixed; right: 24px; bottom: 24px; z-index: 9990; font-family: var(--font-family); }
.cb-launcher { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(145deg, var(--primary-light), var(--primary-dark)); color: #fff; box-shadow: 0 10px 28px rgba(10, 86, 59, .45); display: flex; align-items: center; justify-content: center; animation: cbFloat 3.2s ease-in-out infinite; transition: transform .2s; }
.cb-launcher:hover { transform: scale(1.08); }
.cb-launcher:focus-visible { outline: 3px solid #fcd34d; outline-offset: 3px; }
.cb-launcher-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary-light); animation: cbPulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes cbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes cbPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* robot (CSS) */
.cb-robot { position: relative; display: block; width: 34px; height: 34px; }
.cb-robot-antenna { position: absolute; top: -2px; left: 50%; width: 2px; height: 8px; background: #fff; transform: translateX(-50%); }
.cb-robot-antenna::before { content: ''; position: absolute; top: -5px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: #fcd34d; transform: translateX(-50%); animation: cbBlink 1.6s ease-in-out infinite; }
.cb-robot-head { position: absolute; left: 3px; right: 3px; bottom: 2px; height: 24px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cb-robot-head::before, .cb-robot-head::after { content: ''; position: absolute; top: 7px; width: 3px; height: 8px; border-radius: 2px; background: #fff; }
.cb-robot-head::before { left: -3px; } .cb-robot-head::after { right: -3px; }
.cb-robot-head i { width: 6px; height: 7px; border-radius: 50%; background: var(--primary-dark); animation: cbEyes 4s infinite; transform-origin: center; }
@keyframes cbBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cbEyes { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.cb-launcher-close { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; opacity: 0; transform: rotate(-90deg) scale(.5); transition: all .25s; }
.cb-root.is-open .cb-launcher { animation: none; }
.cb-root.is-open .cb-robot { opacity: 0; transform: scale(.5); }
.cb-root.is-open .cb-launcher-close { opacity: 1; transform: none; }
.cb-root.is-open .cb-launcher-ring, .cb-root.is-open .cb-badge, .cb-root.is-open .cb-hint { display: none; }
.cb-robot { transition: all .25s; }
.cb-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.cb-badge[hidden] { display: none; }
.cb-hint { position: absolute; right: 74px; bottom: 12px; white-space: nowrap; background: #fff; color: var(--text-main); font-size: .82rem; font-weight: 700; padding: 10px 14px; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: all .35s cubic-bezier(.2,.9,.3,1.3); }
.cb-hint.is-show { opacity: 1; transform: none; }

/* jendela chat: naik dari bawah */
.cb-window { position: absolute; right: 0; bottom: 78px; width: 370px; max-width: calc(100vw - 28px); height: 540px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(6, 56, 38, .35), 0 0 0 1px rgba(0,0,0,.04); transform-origin: bottom right; visibility: hidden; opacity: 0; transform: translateY(40px) scale(.92); transition: transform .38s cubic-bezier(.2,.9,.3,1.15), opacity .25s ease, visibility 0s linear .38s; }
.cb-root.is-open .cb-window { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.cb-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.cb-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; }
.cb-header strong { display: block; font-size: .95rem; }
.cb-header small { display: flex; align-items: center; gap: 6px; font-size: .72rem; opacity: .9; }
.cb-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; animation: cbBlink 2s infinite; }
.cb-min { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; transition: background .2s; }
.cb-min:hover { background: rgba(255,255,255,.28); }

.cb-messages { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: #f4f8f6; scroll-behavior: smooth; overscroll-behavior: contain; }
.cb-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.55; word-wrap: break-word; animation: cbMsgUp .38s cubic-bezier(.2,.9,.3,1.1) both; }
.cb-msg.cb-bot { align-self: flex-start; background: #fff; color: var(--text-main); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.cb-msg.cb-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.cb-msg.cb-static { animation: none; }
@keyframes cbMsgUp { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.cb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cb-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-subtle); color: var(--primary); border: 1px solid var(--primary-border); font: inherit; font-size: .78rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .2s; }
.cb-link:hover { background: var(--primary); color: #fff; }
.cb-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); animation: cbMsgUp .3s both; }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-light); animation: cbDot 1.1s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; } .cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.cb-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #f4f8f6; border-top: 1px solid #e6efea; scrollbar-width: none; }
.cb-quick::-webkit-scrollbar { display: none; }
.cb-chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--primary-border); background: #fff; color: var(--primary); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; }
.cb-chip:hover { background: var(--primary); color: #fff; }
.cb-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; border-top: 1px solid #e6efea; }
.cb-form input { flex: 1; min-width: 0; border: 1.5px solid var(--surface-border); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: .88rem; outline: none; transition: border-color .2s; }
.cb-form input:focus { border-color: var(--primary-light); }
.cb-form button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; transition: all .2s; flex: none; }
.cb-form button:hover { background: var(--primary-dark); transform: scale(1.06); }

@media (max-width: 991px) {
  .cb-root { right: 18px; bottom: 18px; }
  .cb-launcher { width: 54px; height: 54px; bottom: auto; right: auto; }
  .cb-window { bottom: 66px; width: min(370px, calc(100vw - 32px)); max-width: calc(100vw - 32px); height: min(520px, calc(100dvh - 96px)); max-height: calc(100dvh - 96px); }
  .cb-root.is-open { z-index: 10001; }
  .back-to-top-btn {
    bottom: 86px;
    right: 24px;
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 520px) {
  .cb-root {
    right: 14px;
    bottom: 14px;
  }
  .cb-root.is-open {
    right: 14px;
    bottom: 14px;
    left: auto;
    top: auto;
    z-index: 10001;
  }
  .cb-root.is-open .cb-launcher {
    display: flex;
    width: 50px;
    height: 50px;
    bottom: auto;
    right: auto;
  }
  .cb-window {
    position: absolute;
    right: 0;
    bottom: 60px;
    width: min(350px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    height: min(480px, calc(100dvh - 84px));
    max-height: calc(100dvh - 84px);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(6, 56, 38, 0.42), 0 2px 10px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .cb-root.is-open .cb-window {
    position: absolute;
    inset: auto;
    right: 0;
    bottom: 60px;
    width: min(350px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    height: min(480px, calc(100dvh - 84px));
    max-height: calc(100dvh - 84px);
    border-radius: 20px;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .back-to-top-btn {
    bottom: 76px;
    right: 19px;
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb-launcher, .cb-launcher-ring, .cb-robot-antenna::before, .cb-robot-head i, .cb-dot { animation: none !important; }
  .cb-msg, .cb-typing { animation-duration: .01s !important; }
  .cb-window { transition-duration: .01s; }
  .cb-messages { scroll-behavior: auto; }
}

/* ==========================================================================
   PPDB MODAL ENHANCEMENTS & DOCUMENT UPLOADER STYLING
   ========================================================================== */
.modal-box-lg {
  max-width: 860px !important;
  width: 95% !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-body-scrollable {
  overflow-y: auto !important;
  max-height: calc(90vh - 120px) !important;
  padding: 24px 28px !important;
}

.modal-badge-tag {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.form-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface-border-subtle);
  margin-bottom: 16px;
}

.section-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.form-section-head h5 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--surface-border);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-textarea:focus {
  border-color: var(--primary);
}

.form-note-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #166534;
  margin-bottom: 16px;
}

/* Document Upload Grid */
.upload-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.upload-box-item {
  border: 1.5px dashed var(--surface-border);
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.upload-box-item:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.upload-box-item.file-ready {
  border-style: solid;
  border-color: #10b981;
  background: #ecfdf5;
}

.upload-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-input-field {
  display: none;
}

.upload-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}

.upload-trigger-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.file-chosen-status {
  font-size: 0.74rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Success Modal Styles */
.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.2);
}

.id-card-success-box {
  background: var(--surface-alt);
  border: 2px dashed var(--primary);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.id-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.id-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: 1px;
  margin: 6px 0 16px;
  font-family: monospace, Courier, sans-serif;
}

.id-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-copy-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-id:hover {
  background: var(--primary-subtle);
}

.btn-goto-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.25);
}

.btn-goto-check:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.id-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #78350f;
  background: #fef3c7;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.btn-close-success {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.btn-close-success:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   ENHANCED SUBPAGE DESIGN SYSTEM (SMKS AS-SYIFA KISARAN)
   Applied strictly to all public subpages (.is-subpage)
   Beranda (body.page-home / .is-home-page) is 100% UNTOUCHED
   ========================================================================== */

/* Subpage Main & Content Wrappers */
.is-subpage .subpage-body-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 20px 72px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .is-subpage .subpage-body-container {
    padding: 28px 16px 56px;
  }
}

/* 1. Page Header Component */
.is-subpage .page-header {
  position: relative;
  padding: 56px 20px 48px;
  background: linear-gradient(135deg, #053322 0%, #0a563b 55%, #0e704d 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 86, 59, 0.12);
}

.is-subpage .page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.14) 0%, rgba(52, 211, 153, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.is-subpage .page-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.is-subpage .page-header .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.is-subpage .page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fef08a;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.is-subpage .page-header h1,
.is-subpage .page-header .page-title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.is-subpage .page-header p,
.is-subpage .page-header .page-subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #e2f0e7;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .is-subpage .page-header {
    padding: 38px 16px 32px !important;
  }
  .is-subpage .page-header h1,
  .is-subpage .page-header .page-title {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
  }
  .is-subpage .page-header p,
  .is-subpage .page-header .page-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
}

/* 2. Subpage Jump Navigation Bar - Non-sticky so it scrolls naturally with page content (tidak ngikut saat slide) */
.subpage-jump-nav,
.is-subpage .subpage-jump-nav,
.ppdb-nav-jump {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
  background: #ffffff !important;
  border-bottom: 1.5px solid var(--surface-border) !important;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.04) !important;
  transition: all 0.2s ease;
  width: 100%;
}

.subpage-jump-nav .container,
.is-subpage .subpage-jump-nav .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.subpage-jump-label,
.is-subpage .subpage-jump-label {
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.subpage-jump-link,
.is-subpage .subpage-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--surface-border);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(10, 86, 59, 0.03);
  flex-shrink: 0;
}

.subpage-jump-link:hover,
.subpage-jump-link.active,
.is-subpage .subpage-jump-link:hover,
.is-subpage .subpage-jump-link.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(10, 86, 59, 0.16);
}

.subpage-jump-link:hover i,
.subpage-jump-link.active i,
.is-subpage .subpage-jump-link:hover i,
.is-subpage .subpage-jump-link.active i {
  color: #fde68a !important;
}

/* Mobile & Tablet Pill Bar - Compact, horizontal scrolling, no wrap, non-sticky (tidak ngikut saat slide) */
@media (max-width: 1023px) {
  .subpage-jump-nav,
  .is-subpage .subpage-jump-nav,
  .ppdb-nav-jump {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    background: #ffffff !important;
    border-bottom: 1.5px solid var(--surface-border) !important;
    box-shadow: 0 2px 8px rgba(10, 86, 59, 0.05) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .subpage-jump-nav .container,
  .is-subpage .subpage-jump-nav .container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 9px 14px !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
  }

  .subpage-jump-nav .container::-webkit-scrollbar,
  .is-subpage .subpage-jump-nav .container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .subpage-jump-label,
  .is-subpage .subpage-jump-label {
    font-size: 0.74rem !important;
    padding: 5px 8px 5px 2px !important;
    border-right: 1.5px solid var(--surface-border-subtle) !important;
    margin-right: 2px !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  .subpage-jump-link,
  .is-subpage .subpage-jump-link {
    padding: 6px 13px !important;
    font-size: 0.76rem !important;
    gap: 6px !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
  }
}

/* Universal Anchor Scroll Margins - Guarantees section headings are never covered by sticky bars */
html {
  scroll-behavior: smooth;
}

.card-panel,
.subpage-section-card,
.subpage-body-container section,
.ppdb-section,
section[id],
div[id] {
  scroll-margin-top: 130px !important;
}

@media (min-width: 1024px) {
  .card-panel,
  .subpage-section-card,
  .subpage-body-container section,
  .ppdb-section,
  section[id],
  div[id] {
    scroll-margin-top: 130px !important;
  }
}

/* 3. Section Containers & Card Panels */
.is-subpage .card-panel,
.is-subpage .subpage-section-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 40px;
  box-shadow: 0 4px 18px rgba(10, 86, 59, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.is-subpage .card-panel:hover,
.is-subpage .subpage-section-card:hover {
  border-color: #bce3d1;
  box-shadow: 0 8px 24px rgba(10, 86, 59, 0.06);
}

@media (max-width: 768px) {
  .is-subpage .card-panel,
  .is-subpage .subpage-section-card {
    padding: 22px 18px;
    border-radius: 16px;
    margin-bottom: 24px;
  }
}

/* 4. Section Header Inside Subpage Panels */
.is-subpage .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.is-subpage .section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.is-subpage .section-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #e8f5ef;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(10, 86, 59, 0.08);
}

.is-subpage .section-icon-badge.icon-gold {
  background: #fef3c7;
  color: #d97706;
}

.is-subpage .section-icon-badge.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.is-subpage .section-icon-badge.icon-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.is-subpage .section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.is-subpage .section-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 3px 0 0 0;
  line-height: 1.5;
}

/* 5. Filter Pills / Category Tabs */
.is-subpage .subpage-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-bottom: 24px;
}

.is-subpage .subpage-filter-btn,
.is-subpage .subpage-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.is-subpage .subpage-filter-btn:hover,
.is-subpage .subpage-filter-pill:hover {
  background: var(--surface-alt);
  border-color: #bce3d1;
  color: var(--primary);
  transform: translateY(-1px);
}

.is-subpage .subpage-filter-btn.active,
.is-subpage .subpage-filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 86, 59, 0.22);
}

.is-subpage .subpage-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--surface-border);
  border-radius: 999px;
  padding: 7px 18px;
  width: 320px;
  max-width: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.is-subpage .subpage-search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 86, 59, 0.12);
}

.is-subpage .subpage-search-wrap i {
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.is-subpage .subpage-search-input {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  outline: none;
}

/* 6. Ekstrakurikuler Card System */
.ekskul-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

@media (max-width: 600px) {
  .ekskul-grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.ekskul-item-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.035);
}

.ekskul-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(10, 86, 59, 0.08);
  border-color: #bce3d1;
}

.ekskul-thumb-box {
  width: 100%;
  height: 165px;
  overflow: hidden;
  position: relative;
  background: #edf5f0;
}

.ekskul-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ekskul-item-card:hover .ekskul-thumb-img {
  transform: scale(1.05);
}

.ekskul-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ekskul-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ekskul-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ekskul-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.ekskul-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-top: 2px;
}

.ekskul-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.ekskul-info-bar {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-main);
}

/* 7. OSIS Components */
.osis-pengurus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

@media (max-width: 480px) {
  .osis-pengurus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.osis-member-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.03);
}

.osis-member-card:hover {
  transform: translateY(-3px);
  border-color: #bce3d1;
  box-shadow: 0 8px 20px rgba(10, 86, 59, 0.07);
}

.osis-avatar-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 3px solid #bce3d1;
  box-shadow: 0 4px 10px rgba(10, 86, 59, 0.08);
}

.osis-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.osis-role-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  background: #e8f5ef;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.osis-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px;
  line-height: 1.3;
}

.osis-class {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 8. Table Responsive Wrapper & Modern Table Enhancements */
.is-subpage .table-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10, 86, 59, 0.035);
  margin-top: 28px;
  margin-bottom: 32px;
}

.is-subpage .table-card-header {
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.is-subpage .table-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.is-subpage .table-card-badge {
  background: #e8f5ef;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.is-subpage .table-scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 8px 18px;
  background: #f7faf8;
  border-bottom: 1px solid var(--surface-border-subtle);
}

@media (max-width: 900px) {
  .is-subpage .table-scroll-hint {
    display: flex;
  }
}

.is-subpage .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.is-subpage .modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.is-subpage .modern-table thead th {
  background: #edf5f0;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border-bottom: 2px solid var(--surface-border);
  white-space: nowrap;
}

.is-subpage .modern-table tbody tr {
  border-bottom: 1px solid var(--surface-border-subtle);
  transition: background-color 0.15s ease;
}

.is-subpage .modern-table tbody tr:nth-child(even) {
  background-color: #fbfdfc;
}

.is-subpage .modern-table tbody tr:hover {
  background-color: #f0faf4;
}

.is-subpage .modern-table tbody td {
  padding: 14px 16px;
  color: var(--text-main);
  vertical-align: middle;
}

/* 9. Jurusan & Kurikulum Enhanced Cards */
.jurusan-row-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(10, 86, 59, 0.035);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.jurusan-row-card:hover {
  border-color: #bce3d1;
  box-shadow: 0 8px 24px rgba(10, 86, 59, 0.07);
}

@media (max-width: 900px) {
  .jurusan-row-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }
}

.jurusan-img-frame {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10, 86, 59, 0.06);
  position: relative;
}

.jurusan-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

/* 10. News & Articles Component */
.is-subpage .news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .is-subpage .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.is-subpage .news-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.035);
}

.is-subpage .news-card:hover {
  transform: translateY(-4px);
  border-color: #bce3d1;
  box-shadow: 0 12px 28px rgba(10, 86, 59, 0.08);
}

.is-subpage .news-thumb-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #edf5f0;
}

.is-subpage .news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.is-subpage .news-card:hover .news-thumb {
  transform: scale(1.05);
}

.is-subpage .news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.is-subpage .news-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.42;
  color: var(--text-main);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.42em * 3);
  transition: color 0.2s;
}

.is-subpage .news-card:hover .news-title {
  color: var(--primary);
}

.is-subpage .news-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3);
}

.is-subpage .news-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.is-subpage .news-read-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* 11. Guru / Faculty Cards */
.is-subpage .guru-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 500px) {
  .is-subpage .guru-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.is-subpage .guru-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.035);
}

.is-subpage .guru-card:hover {
  transform: translateY(-4px);
  border-color: #bce3d1;
  box-shadow: 0 12px 24px rgba(10, 86, 59, 0.08);
}

.is-subpage .guru-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 250px;
  max-height: 300px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.is-subpage .guru-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.is-subpage .guru-card:hover .guru-photo {
  transform: scale(1.05);
}

.is-subpage .guru-body {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.is-subpage .guru-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.35;
}

.is-subpage .guru-role {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.is-subpage .btn-guru-action {
  margin-top: auto;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.is-subpage .btn-guru-action:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   COMPREHENSIVE SUBPAGE RESPONSIVE & IMAGE FRAMING SYSTEM
   Harmonized across Desktop, Tablet, and Mobile (320px - 480px - 768px - 1024px)
   Strictly scoped to .is-subpage / body.page-subpage (Zero Home Regression)
   ========================================================================== */

/* 1. Global Subpage Image Framing & Portrait Focal Centering */
.is-subpage img {
  max-width: 100%;
}

.is-subpage .guru-photo {
  object-fit: cover;
  object-position: top center; /* Keeps forehead, hair, and entire face naturally in view without cropping */
}

.is-subpage .org-person-photo,
.org-person-photo {
  object-fit: cover !important;
  object-position: top center !important;
}

.is-subpage .osis-avatar-img {
  object-fit: cover;
  object-position: center top;
}

.is-subpage .ekskul-thumb-img,
.is-subpage .news-thumb,
.is-subpage .jurusan-img-frame img,
.is-subpage .brochure-preview img {
  object-fit: cover;
  object-position: center center;
}

/* 2. Text Safety & Word-Wrapping */
.is-subpage h1,
.is-subpage h2,
.is-subpage h3,
.is-subpage h4,
.is-subpage h5,
.is-subpage h6,
.is-subpage p,
.is-subpage span,
.is-subpage td,
.is-subpage th {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 3. Tablet Breakpoint (max-width: 991px) */
@media (max-width: 991px) {
  .is-subpage .page-header {
    padding: 50px 20px 42px;
  }
  .is-subpage .page-header-title {
    font-size: 2.1rem;
  }
  .is-subpage .jurusan-row-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .is-subpage .jurusan-img-frame {
    height: 200px;
  }
}

/* 4. Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  .is-subpage .subpage-body-container {
    padding: 24px 0 48px;
  }
  .is-subpage .subpage-body-container .container {
    padding: 0 16px;
  }
  .is-subpage .card-panel {
    padding: 22px 18px;
    border-radius: 16px;
    margin-bottom: 24px;
  }
  .is-subpage .page-header {
    padding: 40px 16px 32px;
  }
  .is-subpage .page-header-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  .is-subpage .page-header-lead {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .is-subpage .page-header-tag {
    font-size: 0.74rem;
    padding: 4px 12px;
  }
  .is-subpage .subpage-filter-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding: 4px 2px 10px 2px !important;
    margin-bottom: 18px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .is-subpage .subpage-filter-bar::-webkit-scrollbar {
    display: none !important;
  }
  .is-subpage .subpage-filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 7px 14px !important;
    font-size: 0.78rem !important;
    border-radius: 999px !important;
  }
  .is-subpage .subpage-search-wrap {
    min-width: 100%;
  }
  .is-subpage .guru-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .is-subpage .guru-card {
    padding: 10px !important;
    border-radius: 14px !important;
  }
  .is-subpage .guru-photo-wrap {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 10px !important;
  }
  .is-subpage .guru-name {
    font-size: 0.86rem !important;
    margin-top: 6px !important;
  }
  .is-subpage .guru-role {
    font-size: 0.74rem !important;
  }
  .is-subpage .btn-guru-action {
    padding: 7px 8px !important;
    font-size: 0.74rem !important;
    border-radius: 8px !important;
  }
  .is-subpage .ekskul-grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .is-subpage .ekskul-thumb-box {
    height: 155px;
  }
  .is-subpage .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .is-subpage .news-thumb-wrap {
    height: 190px;
  }
  .is-subpage .agenda-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Safe positioning for Floating Elements on Mobile */
  .back-to-top-btn {
    bottom: 78px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  .cb-launcher {
    bottom: auto;
    right: auto;
    width: 50px;
    height: 50px;
  }
}

/* 5. Small Mobile Breakpoint (max-width: 480px) */
@media (max-width: 480px) {
  .is-subpage .page-header {
    padding: 34px 14px 28px;
  }
  .is-subpage .page-header-title {
    font-size: 1.5rem;
  }
  .is-subpage .card-panel {
    padding: 18px 14px;
  }
  .is-subpage .guru-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .is-subpage .guru-photo-wrap {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    max-height: none !important;
  }
  .is-subpage .guru-name {
    font-size: 0.85rem;
  }
  .is-subpage .guru-role {
    font-size: 0.72rem;
  }
  .is-subpage .osis-pengurus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .is-subpage .osis-member-card {
    padding: 14px 10px;
  }
  .is-subpage .osis-avatar-box {
    width: 64px;
    height: 64px;
  }
  .is-subpage .osis-name {
    font-size: 0.82rem;
  }
}

/* 6. Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .is-subpage *,
  .is-subpage *::before,
  .is-subpage *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   7. SUBPAGE CAROUSEL & SLIDER ENHANCEMENTS (ZERO ARROWS, ULTRA-SMOOTH, RESPONSIVE)
   STRICTLY PROTECTS HOME PAGE (BERANDA REMAINS 100% UNTOUCHED WITH ITS ARROWS)
   ========================================================================== */

/* 7.1. STRICT & EXHAUSTIVE ARROW ELIMINATION ON ALL SUBPAGES (DESKTOP, TABLET, MOBILE) */
body.page-subpage .hero-arrow,
body.page-subpage .carousel-arrow,
body.page-subpage .slider-arrow,
body.page-subpage .carousel-control-prev,
body.page-subpage .carousel-control-next,
body.page-subpage .swiper-button-prev,
body.page-subpage .swiper-button-next,
body.page-subpage .slick-prev,
body.page-subpage .slick-next,
body.page-subpage .splide__arrow,
body.page-subpage .splide__arrows,
body.page-subpage .owl-prev,
body.page-subpage .owl-next,
body.page-subpage .owl-nav,
body.page-subpage [class*="arrow-prev"],
body.page-subpage [class*="arrow-next"],
body.page-subpage [class*="btn-prev"],
body.page-subpage [class*="btn-next"],
body.page-subpage [data-carousel-prev],
body.page-subpage [data-carousel-next],
body.page-subpage [data-slider-prev],
body.page-subpage [data-slider-next],
body.page-subpage [aria-label*="previous" i],
body.page-subpage [aria-label*="next" i],
body.page-subpage [aria-label*="sebelumnya" i],
body.page-subpage [aria-label*="selanjutnya" i],
.is-subpage .hero-arrow,
.is-subpage .carousel-arrow,
.is-subpage .slider-arrow,
.is-subpage .carousel-control-prev,
.is-subpage .carousel-control-next,
.is-subpage .swiper-button-prev,
.is-subpage .swiper-button-next,
.is-subpage .slick-prev,
.is-subpage .slick-next,
.is-subpage .splide__arrow,
.is-subpage .splide__arrows,
.is-subpage .owl-prev,
.is-subpage .owl-next,
.is-subpage .owl-nav,
.is-subpage [class*="arrow-prev"],
.is-subpage [class*="arrow-next"],
.is-subpage [class*="btn-prev"],
.is-subpage [class*="btn-next"],
.is-subpage [data-carousel-prev],
.is-subpage [data-carousel-next],
.is-subpage [data-slider-prev],
.is-subpage [data-slider-next] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Ensure arrows never appear on hover, active, zoom, or focus on subpages */
body.page-subpage .hero-arrow:hover,
body.page-subpage .carousel-arrow:hover,
body.page-subpage .slider-arrow:hover,
body.page-subpage [class*="arrow"]:hover,
.is-subpage .hero-arrow:hover,
.is-subpage .carousel-arrow:hover,
.is-subpage .slider-arrow:hover,
.is-subpage [class*="arrow"]:hover {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 7.2. ULTRA-SMOOTH SUBPAGE CAROUSEL COMPONENT (TOUCH SWIPE & AUTOPLAY) */
.is-subpage .subpage-carousel-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  outline: none;
}

.is-subpage .subpage-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.is-subpage .subpage-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 330px;
}

@media (max-width: 1024px) {
  .is-subpage .subpage-carousel-slide {
    height: 290px;
  }
}

@media (max-width: 768px) {
  .is-subpage .subpage-carousel-slide {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .is-subpage .subpage-carousel-slide {
    height: 205px;
  }
}

@media (max-width: 360px) {
  .is-subpage .subpage-carousel-slide {
    height: 190px;
  }
}

.is-subpage .subpage-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.8s ease;
}

.is-subpage .subpage-carousel-container:hover .subpage-carousel-img {
  transform: scale(1.02);
}

.is-subpage .subpage-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 61, 41, 0.94) 0%, rgba(6, 61, 41, 0.45) 45%, rgba(6, 61, 41, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .is-subpage .subpage-carousel-overlay {
    padding: 20px 20px;
  }
}

@media (max-width: 480px) {
  .is-subpage .subpage-carousel-overlay {
    padding: 16px 14px;
  }
}

.is-subpage .subpage-carousel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 6px;
  align-self: flex-start;
  letter-spacing: 0.04em;
  color: #ffffff;
}

@media (max-width: 480px) {
  .is-subpage .subpage-carousel-tag {
    font-size: 0.68rem;
    padding: 3px 10px;
    margin-bottom: 4px;
  }
}

.is-subpage .subpage-carousel-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  .is-subpage .subpage-carousel-title {
    font-size: 0.98rem;
    line-height: 1.3;
  }
}

.is-subpage .subpage-carousel-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.5;
  max-width: 660px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .is-subpage .subpage-carousel-desc {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .is-subpage .subpage-carousel-desc {
    display: none; /* Keep slide clean & uncrowded on mobile */
  }
}

/* 7.3. PROPORTIONAL DOT PAGINATION INDICATORS (NO ARROWS) */
.is-subpage .subpage-carousel-dots {
  position: absolute;
  bottom: 14px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 480px) {
  .is-subpage .subpage-carousel-dots {
    bottom: 10px;
    right: 12px;
    padding: 4px 8px;
    gap: 5px;
  }
}

.is-subpage .subpage-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.is-subpage .subpage-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.is-subpage .subpage-dot.active {
  width: 24px;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

/* 7.4. MULTI-CARD SLIDERS ON SUBPAGES (RESPONSIVE CAROUSEL CARDS) */
.is-subpage .subpage-multi-card-slider {
  position: relative;
  width: 100%;
}

.is-subpage .subpage-card-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

@media (max-width: 768px) {
  .is-subpage .subpage-card-track.swipeable-mobile {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 12px;
    padding-left: 2px;
    padding-right: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .is-subpage .subpage-card-track.swipeable-mobile::-webkit-scrollbar {
    display: none;
  }

  .is-subpage .subpage-card-track.swipeable-mobile > * {
    flex: 0 0 calc(88% - 10px);
    max-width: calc(88% - 10px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

@media (max-width: 480px) {
  .is-subpage .subpage-card-track.swipeable-mobile > * {
    flex: 0 0 calc(90% - 6px);
    max-width: calc(90% - 6px);
  }
}

@media (max-width: 360px) {
  .is-subpage .subpage-card-track.swipeable-mobile > * {
    flex: 0 0 calc(92% - 4px);
    max-width: calc(92% - 4px);
  }
}

/* Dots for multi-card sliders on mobile */
.is-subpage .multi-card-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .is-subpage .multi-card-dots {
    display: flex;
  }
}

.is-subpage .multi-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
  border: none;
  padding: 0;
  transition: all 0.25s ease;
  cursor: pointer;
}

.is-subpage .multi-card-dot.active {
  width: 22px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(10, 86, 59, 0.35);
}

/* 7.5. PORTRAIT & PHOTO FOCAL RATIOS */
.is-subpage .card-photo-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.is-subpage .card-photo-activity {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* ==========================================================================
   8. KESISWAAN & OSIS DESIGN SYSTEM (HARMONIZED WITH PROFIL SEKOLAH)
   ========================================================================== */

/* 8.1. OSIS Profile & Identity Card */
.is-subpage .osis-identity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .is-subpage .osis-identity-row {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
  }
}

.is-subpage .osis-photo-frame {
  position: relative;
  width: 100%;
  height: 275px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10, 86, 59, 0.06);
  border: 1px solid var(--surface-border);
  background: #edf5f0;
}

@media (max-width: 480px) {
  .is-subpage .osis-photo-frame {
    height: 210px;
  }
}

.is-subpage .osis-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
  display: block;
}

.is-subpage .osis-photo-frame:hover img {
  transform: scale(1.03);
}

.is-subpage .osis-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 61, 41, 0.90);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.is-subpage .osis-identity-content {
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.is-subpage .osis-motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary);
  background: #e8f5ef;
  border: 1px solid #bce3d1;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.is-subpage .osis-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.3;
}

.is-subpage .osis-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 16px;
}

.is-subpage .osis-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-subpage .osis-fact-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.is-subpage .osis-fact-pill i {
  color: var(--primary);
}

/* 8.1.b. OSIS Visi & Misi 2-Column Balanced Grid (Matching Profil Sekolah) */
.is-subpage .osis-visimisi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

@media (max-width: 820px) {
  .is-subpage .osis-visimisi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }
}

.is-subpage .osis-visi-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-top: 3.5px solid var(--primary);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.025);
}

.is-subpage .osis-misi-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-top: 3.5px solid #f59e0b;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.025);
}

.is-subpage .osis-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.is-subpage .osis-panel-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e8f5ef;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.is-subpage .osis-panel-icon.icon-gold {
  background: #fef3c7;
  color: #d97706;
}

.is-subpage .osis-panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.is-subpage .osis-quote-box {
  background: #e8f5ef;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1.5px dashed #bce3d1;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.is-subpage .osis-quote-text {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.7;
  margin: 0;
}

.is-subpage .osis-misi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.is-subpage .osis-misi-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

.is-subpage .osis-misi-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 8.2. Pengurus OSIS Grid & Member Cards (Matching Dewan Guru & Struktur in Profil) */
.is-subpage .osis-subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.is-subpage .osis-subhead-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.is-subpage .osis-subhead-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* BPH 4-Column Balanced Grid */
.is-subpage .osis-pengurus-bph {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .is-subpage .osis-pengurus-bph {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .is-subpage .osis-pengurus-bph {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Sekbid 2-Column Balanced Centered Grid */
.is-subpage .osis-pengurus-sekbid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 680px;
  margin: 0 auto 32px;
}

@media (max-width: 600px) {
  .is-subpage .osis-pengurus-sekbid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 14px;
    margin-bottom: 24px;
  }
}

.is-subpage .osis-member-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.035);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.is-subpage .osis-member-card:hover {
  transform: translateY(-4px);
  border-color: #bce3d1;
  box-shadow: 0 12px 24px rgba(10, 86, 59, 0.08);
}

.is-subpage .osis-member-card.is-leader {
  border-top: 3.5px solid var(--primary);
  box-shadow: 0 4px 14px rgba(10, 86, 59, 0.06);
}

.is-subpage .osis-member-card.is-leader-sub {
  border-top: 3.5px solid #0284c7;
}

.is-subpage .osis-avatar-box {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 3px solid #e8f5ef;
  box-shadow: 0 4px 10px rgba(10, 86, 59, 0.08);
  background: #edf5f0;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

@media (max-width: 480px) {
  .is-subpage .osis-avatar-box {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
  }
}

.is-subpage .osis-member-card:hover .osis-avatar-box {
  transform: scale(1.05);
}

.is-subpage .osis-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.is-subpage .osis-role-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.is-subpage .osis-role-pill.role-ketua {
  background: #e8f5ef;
  color: var(--primary);
  border-color: #bce3d1;
}

.is-subpage .osis-role-pill.role-wakil {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

.is-subpage .osis-role-pill.role-sekretaris {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.is-subpage .osis-role-pill.role-bendahara {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #e9d5ff;
}

.is-subpage .osis-role-pill.role-sekbid {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

.is-subpage .osis-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .is-subpage .osis-name {
    font-size: 0.86rem;
  }
}

.is-subpage .osis-class {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 8.3. 4 Program Kerja Prioritas (Matching Kaprog in Profil) */
.is-subpage .proker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

@media (max-width: 991px) {
  .is-subpage .proker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .is-subpage .proker-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
}

.is-subpage .proker-card {
  background: var(--surface-alt);
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.is-subpage .proker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 86, 59, 0.06);
}

.is-subpage .proker-card.card-emerald {
  border-top: 3px solid var(--primary);
}
.is-subpage .proker-card.card-emerald .proker-icon-circle {
  background: #e8f5ef;
  color: var(--primary);
}

.is-subpage .proker-card.card-sky {
  border-top: 3px solid #0ea5e9;
}
.is-subpage .proker-card.card-sky .proker-icon-circle {
  background: #e0f2fe;
  color: #0284c7;
}

.is-subpage .proker-card.card-amber {
  border-top: 3px solid #f59e0b;
}
.is-subpage .proker-card.card-amber .proker-icon-circle {
  background: #fef3c7;
  color: #d97706;
}

.is-subpage .proker-card.card-purple {
  border-top: 3px solid #8b5cf6;
}
.is-subpage .proker-card.card-purple .proker-icon-circle {
  background: #f3e8ff;
  color: #7c3aed;
}

.is-subpage .proker-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.is-subpage .proker-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.35;
  color: var(--text-main);
}

.is-subpage .proker-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* 8.4. Ekstrakurikuler Grid & Cards */
.is-subpage .ekskul-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .is-subpage .ekskul-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .is-subpage .ekskul-grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.is-subpage .ekskul-item-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.035);
}

.is-subpage .ekskul-item-card:hover {
  transform: translateY(-4px);
  border-color: #bce3d1;
  box-shadow: 0 12px 26px rgba(10, 86, 59, 0.08);
}

.is-subpage .ekskul-thumb-box {
  width: 100%;
  height: 165px;
  overflow: hidden;
  position: relative;
  background: #edf5f0;
}

@media (max-width: 480px) {
  .is-subpage .ekskul-thumb-box {
    height: 150px;
  }
}

.is-subpage .ekskul-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.is-subpage .ekskul-item-card:hover .ekskul-thumb-img {
  transform: scale(1.05);
}

.is-subpage .ekskul-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.is-subpage .ekskul-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.is-subpage .ekskul-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.is-subpage .ekskul-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 3px;
  line-height: 1.3;
  color: var(--text-main);
}

.is-subpage .ekskul-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.is-subpage .ekskul-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}

.is-subpage .ekskul-info-bar {
  background: var(--surface-alt);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  border: 1px solid var(--surface-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-main);
}

/* 8.5. Prestasi & Budaya Karakter Cards (Harmonized with Profil) */
.is-subpage .prestasi-mini-grid,
.is-subpage .karakter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .is-subpage .prestasi-mini-grid,
  .is-subpage .karakter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .is-subpage .prestasi-mini-grid,
  .is-subpage .karakter-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.is-subpage .prestasi-mini-card {
  background: var(--surface-alt);
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 6px rgba(10, 86, 59, 0.025);
}

.is-subpage .prestasi-mini-card:hover {
  transform: translateY(-3px);
  border-color: #bce3d1;
  box-shadow: 0 8px 20px rgba(10, 86, 59, 0.06);
}

.is-subpage .prestasi-mini-card.card-amber {
  border-top: 3.5px solid #f59e0b;
}
.is-subpage .prestasi-mini-card.card-emerald {
  border-top: 3.5px solid var(--primary);
}
.is-subpage .prestasi-mini-card.card-sky {
  border-top: 3.5px solid #0ea5e9;
}
.is-subpage .prestasi-mini-card.card-purple {
  border-top: 3.5px solid #8b5cf6;
}

.is-subpage .prestasi-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}

.is-subpage .prestasi-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-main);
  line-height: 1.4;
}

.is-subpage .prestasi-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
  flex: 1;
}

.is-subpage .prestasi-footer {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--surface-border-subtle);
  padding-top: 10px;
}

/* Karakter Cards */
.is-subpage .karakter-card {
  background: var(--surface-alt);
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 6px rgba(10, 86, 59, 0.025);
}

.is-subpage .karakter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 86, 59, 0.06);
}

.is-subpage .karakter-card.card-emerald {
  border-top: 3.5px solid var(--primary);
}
.is-subpage .karakter-card.card-emerald .karakter-icon-badge {
  background: #e8f5ef;
  color: var(--primary);
}

.is-subpage .karakter-card.card-sky {
  border-top: 3.5px solid #0ea5e9;
}
.is-subpage .karakter-card.card-sky .karakter-icon-badge {
  background: #e0f2fe;
  color: #0284c7;
}

.is-subpage .karakter-card.card-purple {
  border-top: 3.5px solid #8b5cf6;
}
.is-subpage .karakter-card.card-purple .karakter-icon-badge {
  background: #f3e8ff;
  color: #7c3aed;
}

.is-subpage .karakter-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.is-subpage .karakter-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}

.is-subpage .karakter-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--text-main);
}

.is-subpage .karakter-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ==========================================================================
   9. PUSAT INFORMASI, BERITA, PENGUMUMAN & AGENDA (HARMONIZED DESIGN SYSTEM)
   ========================================================================== */

/* 9.1. News Filter Toolbar & Search Bar */
.is-subpage .news-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 28px;
}

.is-subpage .subpage-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 4px 0;
  flex: 1;
}

.is-subpage .subpage-filter-tabs::-webkit-scrollbar {
  display: none;
}

.is-subpage .news-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--surface-border);
  border-radius: 999px;
  padding: 7px 18px;
  width: 320px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.is-subpage .news-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 86, 59, 0.12);
}

.is-subpage .news-search-box i {
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.is-subpage .news-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.84rem;
  color: var(--text-main);
  font-family: inherit;
}

.is-subpage .news-search-input::placeholder {
  color: #94a3b8;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .is-subpage .news-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .is-subpage .news-search-box {
    width: 100%;
  }
}

/* 9.2. News Category Badges & Read Action */
.is-subpage .news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.is-subpage .news-category-badge.badge-akademik {
  background: rgba(14, 165, 233, 0.92);
}
.is-subpage .news-category-badge.badge-prestasi {
  background: rgba(217, 119, 6, 0.92);
}
.is-subpage .news-category-badge.badge-kegiatan {
  background: rgba(6, 61, 41, 0.92);
}
.is-subpage .news-category-badge.badge-pengumuman {
  background: rgba(124, 58, 237, 0.92);
}

.is-subpage .news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 991px) {
  .is-subpage .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .is-subpage .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .is-subpage .news-title,
  .is-subpage .news-snippet {
    min-height: auto;
  }
}

.is-subpage .news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.is-subpage .news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.is-subpage .news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.is-subpage .news-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.is-subpage .news-meta i {
  color: var(--primary);
}

.is-subpage .news-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}

.is-subpage .news-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--primary);
  border: 1px solid var(--surface-border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
}

.is-subpage .news-read-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.is-subpage .news-read-btn.btn-detail {
  background: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.is-subpage .news-read-btn.btn-detail:hover {
  background: var(--primary);
  color: #ffffff;
}

/* 9.3. Pengumuman Card System (Modern, Balanced, Highly Legible) */
.is-subpage .pengumuman-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

@media (max-width: 991px) {
  .is-subpage .pengumuman-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .is-subpage .pengumuman-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.is-subpage .pengumuman-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.035);
  position: relative;
}

.is-subpage .pengumuman-card:hover {
  transform: translateY(-4px);
  border-color: #bce3d1;
  box-shadow: 0 12px 26px rgba(10, 86, 59, 0.08);
}

.is-subpage .pengumuman-card.accent-emerald {
  border-top: 3.5px solid var(--primary);
}
.is-subpage .pengumuman-card.accent-sky {
  border-top: 3.5px solid #0ea5e9;
}
.is-subpage .pengumuman-card.accent-amber {
  border-top: 3.5px solid #f59e0b;
}
.is-subpage .pengumuman-card.accent-purple {
  border-top: 3.5px solid #8b5cf6;
}

.is-subpage .pengumuman-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.is-subpage .pengumuman-cat-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.is-subpage .pengumuman-cat-pill.cat-akademik {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.is-subpage .pengumuman-cat-pill.cat-ppdb {
  background: #e8f5ef;
  color: var(--primary);
  border: 1px solid #bce3d1;
}
.is-subpage .pengumuman-cat-pill.cat-ujian {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.is-subpage .pengumuman-cat-pill.cat-umum {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.is-subpage .pengumuman-priority-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.is-subpage .pengumuman-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.is-subpage .pengumuman-date-row i {
  color: var(--primary);
}

.is-subpage .pengumuman-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}

.is-subpage .pengumuman-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.65em * 3);
}

@media (max-width: 640px) {
  .is-subpage .pengumuman-title,
  .is-subpage .pengumuman-desc {
    min-height: auto;
  }
}

.is-subpage .pengumuman-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--surface-border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

.is-subpage .btn-pengumuman-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
}

.is-subpage .btn-pengumuman-action:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.is-subpage .btn-pengumuman-download {
  background: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.is-subpage .btn-pengumuman-download:hover {
  background: var(--primary);
  color: #ffffff;
}

/* 9.4. Agenda Cards & Calendar Tile System */
.is-subpage .agenda-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 991px) {
  .is-subpage .agenda-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .is-subpage .agenda-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.is-subpage .agenda-item-box {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.035);
}

.is-subpage .agenda-item-box:hover {
  transform: translateY(-3px);
  border-color: #bce3d1;
  box-shadow: 0 10px 24px rgba(10, 86, 59, 0.07);
}

.is-subpage .agenda-calendar-tile {
  width: 58px;
  height: 64px;
  background: linear-gradient(135deg, #0a563b 0%, #0f7a53 100%);
  color: #ffffff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10, 86, 59, 0.2);
}

.is-subpage .agenda-day-num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.is-subpage .agenda-month-txt {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.is-subpage .agenda-text-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.is-subpage .agenda-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.35;
}

.is-subpage .agenda-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.is-subpage .agenda-details-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.is-subpage .agenda-details-meta i {
  color: var(--primary);
}

.is-subpage .agenda-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   OFFICIAL ORGANIZATIONAL CHART SYSTEM (STRUKTUR ORGANISASI SEKOLAH)
   Authentic flowchart representation matching the official school decree
   ========================================================================== */
.org-chart-container {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  overflow: hidden;
  position: relative;
}

.org-chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-border);
}

.org-chart-tabs {
  display: flex;
  gap: 8px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
}

.org-chart-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.org-chart-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 86, 59, 0.25);
}

.org-chart-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.org-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.org-zoom-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

.org-chart-scrollable-area {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.org-chart-scrollable-area::-webkit-scrollbar {
  height: 8px;
}

.org-chart-scrollable-area::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.org-canvas {
  min-width: 1080px;
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
  padding: 28px 24px;
  border: 1.5px solid #000000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: Arial, Helvetica, sans-serif;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

/* KOP SURAT */
.org-kop-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 3.5px double #000000;
  margin-bottom: 18px;
}

.org-kop-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
}

.org-kop-text {
  text-align: center;
}

.org-kop-text h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #000000;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.org-kop-text p {
  font-size: 0.72rem;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 2px;
}

.org-title-bar {
  text-align: center;
  margin-bottom: 24px;
}

.org-title-bar h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid #000000;
}

/* FLOWCHART TREE SYSTEM */
.org-tree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.org-box {
  border: 1.5px solid #000000;
  background: #ffffff;
  text-align: center;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.org-box-header {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 8px;
  border-bottom: 1.5px solid #000000;
  text-transform: uppercase;
  color: #000000;
  line-height: 1.2;
}

.org-box-name {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 8px;
  color: #000000;
  background: #ffffff;
  white-space: nowrap;
  line-height: 1.2;
}

.org-box-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  background: #ffffff;
}

.org-person-photo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #000000;
  background: #f1f5f9;
}

.org-photo-lg {
  width: 44px;
  height: 44px;
}

.org-photo-md {
  width: 36px;
  height: 36px;
}

.org-photo-sm {
  width: 28px;
  height: 28px;
}

.org-person-name {
  font-size: 0.73rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

/* COLOR SCHEMES ACCORDING TO USER'S CHART */
.box-yayasan { width: 340px; }
.box-yayasan .org-box-header { background: #dcfce7; }

.box-kepsek { width: 340px; }
.box-kepsek .org-box-header { background: #bfdbfe; }

.box-komite { width: 215px; }
.box-komite .org-box-header { background: #fecdd3; }

.box-penjamin-mutu {
  width: 200px;
  border: 1.5px solid #000000;
  background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
  color: #000000;
  display: grid;
  place-items: center;
  padding: 10px 8px;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
}

.box-waka { width: 235px; }
.box-waka .org-box-header { background: #e9d5ff; }

.box-unit { min-width: 100px; max-width: 140px; }
.box-unit .org-box-header { background: #fed7aa; font-size: 0.68rem; padding: 4px 6px; }
.box-unit .org-box-name { font-size: 0.66rem; padding: 5px 6px; }
.box-unit .org-box-body { padding: 4px 6px; gap: 6px; }
.box-unit .org-person-name { font-size: 0.64rem; }

.box-koor { min-width: 105px; max-width: 140px; }
.box-koor .org-box-header { background: #fef08a; font-size: 0.68rem; padding: 4px 6px; }
.box-koor .org-box-name { font-size: 0.66rem; padding: 5px 6px; }
.box-koor .org-box-body { padding: 4px 6px; gap: 6px; }
.box-koor .org-person-name { font-size: 0.64rem; }

.box-staff {
  border: 1.5px solid #000000;
  background: #ffffff;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #000000;
  text-align: center;
  border-radius: 3px;
  min-width: 48px;
}

/* LEGENDA & PENGESAHAN */
.org-bottom-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 32px;
  padding-top: 16px;
}

.org-legend-box {
  border: 1.5px solid #000000;
  padding: 8px 14px;
  font-size: 0.72rem;
  border-radius: 3px;
  background: #ffffff;
  line-height: 1.6;
}

.org-signature-box {
  text-align: center;
  font-size: 0.78rem;
  color: #000000;
}

.org-signature-box .sig-title {
  font-weight: 700;
  margin-bottom: 50px;
}

.org-signature-box .sig-name {
  font-weight: 800;
  border-bottom: 1px solid #000000;
  padding-bottom: 2px;
  display: inline-block;
}

/* Tree layout grid and connectors */
.org-v-line {
  width: 1.5px;
  background: #000000;
  margin: 0 auto;
}

.org-v-line-dashed {
  width: 0;
  border-left: 1.5px dashed #000000;
  margin: 0 auto;
}

.org-h-line {
  height: 1.5px;
  background: #000000;
}

.org-h-line-dashed {
  height: 0;
  border-top: 1.5px dashed #000000;
}

/* Wing Row (Komite - Center - Penjamin Mutu) */
.org-mid-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.org-wing-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.org-wing-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 16px;
}

.org-wing-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}

/* Wakas Bus Row */
.org-wakas-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  position: relative;
  margin-top: 0;
}

.org-waka-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.org-waka-kurikulum {
  width: 360px;
}

.org-waka-kesiswaan {
  width: 250px;
}

.org-waka-sarpras {
  width: 450px;
}

/* Sub-branch rows */
.org-sub-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.org-sub-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-staff-group {
  display: flex;
  justify-content: center;
  gap: 6px;
}

/* Mobile hint */
.org-mobile-hint {
  display: none;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
  border: 1px dashed var(--surface-border);
}

@media (max-width: 991px) {
  .org-mobile-hint {
    display: block;
  }
}

/* Document & List tab styling */
.org-doc-preview {
  text-align: center;
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
}

.org-doc-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 1px solid #cbd5e1;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.org-doc-preview img:hover {
  transform: scale(1.005);
}

/* Modal lightbox */
.org-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  backdrop-filter: blur(4px);
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.org-modal-overlay.active {
  display: flex;
}

.org-modal-img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.org-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #ffffff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
}



