/* ===========================================================
   SMAN 1 Wonosari — Premium Branding Site
   Design System
   =========================================================== */

:root {
--primary: #007FFF;
--primary-700: #0066CC;
--primary-900: #004C99;
  --accent: #FF7518;
  --accent-700: #cc5e13;
  --text-1: #0f172a;
  --text-2: #64748b;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --success: #22c55e;

  --container: 1320px;
  --radius: 16px;
  --radius-card: 20px;
  --shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md:
    0 6px 24px -8px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg:
    0 24px 60px -20px rgba(15, 23, 42, 0.18),
    0 8px 20px -10px rgba(15, 23, 42, 0.08);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-desk: 120px;
  --pad-tab: 96px;
  --pad-mob: 72px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover {
  color: var(--accent);
}
::selection {
  background: var(--primary);
  color: #fff;
}

/* ----- Container ----- */
.container-xxl,
.container-1320 {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 992px) {
  .container-xxl,
  .container-1320 {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ----- Typography ----- */
.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead-text {
  font-size: 18px;
  color: var(--text-2);
}
.small-text {
  font-size: 14px;
  color: var(--text-2);
}

/* ----- Section padding ----- */
.section {
  padding-top: var(--pad-mob);
  padding-bottom: var(--pad-mob);
}
@media (min-width: 768px) {
  .section {
    padding-top: var(--pad-tab);
    padding-bottom: var(--pad-tab);
  }
}
@media (min-width: 1200px) {
  .section {
    padding-top: var(--pad-desk);
    padding-bottom: var(--pad-desk);
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head p {
  color: var(--text-2);
  margin: 16px 0 0;
}

/* ----- Buttons ----- */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.35s var(--ease);
}
.btn-premium .arrow {
  transition: transform 0.35s var(--ease);
}
.btn-premium:hover .arrow {
  transform: translateX(4px);
}

.btn-primary-premium {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary-premium:hover {
  background: var(--primary-700);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(11, 46, 89, 0.45);
}

.btn-accent-premium {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-accent-premium:hover {
  background: var(--accent-700);
  color: var(--bg);
  box-shadow: 0 12px 30px -10px rgba(205, 163, 73, 0.5);
}

.btn-outline-premium {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-premium:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
}

/* ===========================================================
   LANG TOP BAR
   =========================================================== */
:root {
  --topbar-h: 36px;
}

.lang-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  height: var(--topbar-h);
  background: var(--primary-900);
  border-bottom: 1px solid rgba(205, 163, 73, 0.18);
  overflow: hidden;
  transition:
    height 0.38s var(--ease),
    opacity 0.38s var(--ease),
    transform 0.38s var(--ease);
  transform-origin: top;
}

.lang-topbar.hidden {
  height: 0;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.lang-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
}

.lang-topbar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.lang-topbar-label i {
  color: var(--accent);
  font-size: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.lang-btn.active {
  color: var(--primary);
  background: var(--accent);
  border-color: var(--accent);
}

.lang-btn.active:hover {
  background: var(--accent-700);
  border-color: var(--accent-700);
  color: var(--primary);
}

.lang-flag {
  font-size: 13px;
  line-height: 1;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  user-select: none;
}

@media (max-width: 480px) {
  .lang-topbar-label span[data-lang-text] {
    display: none;
  }
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 1050;
  height: 80px;
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  /* justify-content: center; */
  background: transparent;
  transition:
    top 0.38s var(--ease),
    background-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  top: 0;
  background: rgba(0, 127, 255, 0.86);
  color: #fff;
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  /* border-bottom: 1px solid var(--border); */
  box-shadow: 0 6px 30px -20px rgba(15, 23, 42, 0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}
.nav-sub-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: end;
  flex: 1 1 0;       /* tumbuh mengisi sisa ruang, tapi tidak memaksa brand menyusut */
  min-width: 0;      /* izinkan menyusut jika perlu, tapi brand tetap terlindungi */
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  flex-shrink: 0;    /* brand tidak boleh menyusut, berapapun lebar nav-sub-inner */
}
.site-header.scrolled .brand,
.site-header.scrolled .brand-name,
.site-header.scrolled .brand-sub {
  color: var(--primary);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #e3c171 100%);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  flex: none;
  box-shadow: 0 6px 18px -6px rgba(205, 163, 73, 0.6);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.85);
}
.brand-img {
  /* width: 48px; */
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.nav-menu {
  display: none;
  gap: 6px;
  align-items: center;
}
@media (min-width: 1100px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.site-header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.92);
}
.site-header.scrolled .nav-link:hover {
  color: var(--accent);
}

/* ---------- Dropdown (hover) ---------- */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Invisible hover bridge — menutup celah antara link parent dan panel dropdown
   sehingga mouse tidak kehilangan hover state saat bergerak ke child items */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px; /* harus >= gap nav-drop (14px) + sedikit buffer */
  background: transparent;
}

/* Hide the ::after underline on items that have dropdown */
.nav-link.has-drop::after {
  display: none;
}

.nav-chevron {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.28s var(--ease);
  display: inline-block;
  vertical-align: middle;
}

.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(-180deg);
}

/* Panel */
.nav-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: rgba(5, 26, 50, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(205, 163, 73, 0.18);
  border-radius: 16px;
  box-shadow:
    0 20px 60px -16px rgba(0, 0, 0, 0.45),
    0 4px 16px -6px rgba(0, 0, 0, 0.25);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s var(--ease);
  z-index: 200;
}

/* Arrow tip */
.nav-drop::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(5, 26, 50, 0.92);
  border-left: 1px solid rgba(205, 163, 73, 0.18);
  border-top: 1px solid rgba(205, 163, 73, 0.18);
  border-radius: 3px 0 0 0;
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Drop items */
.drop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.drop-item:hover {
  background: rgba(205, 163, 73, 0.12);
  color: #fff;
  transform: translateX(3px);
}

.drop-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(205, 163, 73, 0.1);
  border: 1px solid rgba(205, 163, 73, 0.2);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--accent);
  transition: background 0.22s var(--ease);
}

.drop-item:hover .drop-icon {
  background: rgba(205, 163, 73, 0.22);
}

.drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drop-text strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.drop-text small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  line-height: 1.3;
}

.drop-item:hover .drop-text small {
  color: rgba(255, 255, 255, 0.7);
}

/* Scrolled state — keep same dark panel, already dark bg */
.site-header.scrolled .nav-drop {
  background: rgba(5, 26, 50, 0.97);
}
.site-header.scrolled .nav-drop::before {
  background: rgba(5, 26, 50, 0.97);
}


.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta .btn-outline-light {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}
.site-header.scrolled .nav-cta .btn-outline-light {
  color: var(--accent);
  border-color: var(--accent);
}
.site-header.scrolled .nav-cta .btn-outline-light:hover {
  background: var(--accent);
  color: var(--text-1);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
@media (min-width: 1100px) {
  .menu-toggle {
    display: none;
  }
}
.site-header.scrolled .menu-toggle {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1100;
  background: rgba(11, 46, 89, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 24px 24px 40px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease);
  color: #fff;
}
.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer .drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}
.mobile-drawer nav a {
  padding: 18px 8px;
  font-size: 24px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.mobile-drawer nav a:hover {
  color: var(--accent);
}

/* Mobile accordion */
.drawer-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 8px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.drawer-accordion-trigger::-webkit-details-marker {
  display: none;
}

.drawer-accordion-trigger:hover {
  color: var(--accent);
}

.drawer-acc-chevron {
  font-size: 14px;
  transition: transform 0.28s var(--ease);
  flex: none;
}

.drawer-accordion[open] .drawer-acc-chevron {
  transform: rotate(-180deg);
}

.drawer-accordion-body {
  display: flex;
  flex-direction: column;
  padding: 0 8px 12px 12px;
  gap: 2px;
  overflow: hidden;
}

.drawer-accordion-body a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75) !important;
  background: transparent;
  transition: background 0.2s, color 0.2s !important;
}

.drawer-accordion-body a:hover {
  background: rgba(205, 163, 73, 0.1);
  color: var(--accent) !important;
}

.drawer-accordion-body a i {
  color: var(--accent);
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.mobile-drawer .drawer-cta {
  margin-top: auto;
  padding-top: 24px;
}
.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}
.hero .swiper,
.hero .swiper-wrapper,
.hero .swiper-slide {
  height: 100vh;
  min-height: 680px;
}
.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 15, 30, 0.45) 0%,
      rgba(5, 15, 30, 0.15) 35%,
      rgba(5, 15, 30, 0.7) 75%,
      rgba(5, 15, 30, 0.92) 100%
    ),
    linear-gradient(90deg, rgba(5, 15, 30, 0.55) 0%, rgba(5, 15, 30, 0) 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 120px;
  padding-top: 160px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(205, 163, 73, 0.25);
}

.hero-title {
  color: #fff;
  margin: 24px 0 18px;
  max-width: 780px;
}
.hero-title em {
  color: var(--accent);
  font-style: normal;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  font-size: 18px;
}

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

/* swiper controls */
.hero .swiper-pagination {
  bottom: 36px !important;
}
.hero .swiper-pagination-bullet {
  width: 36px;
  height: 3px;
  border-radius: 0;
  opacity: 0.45;
  background: #fff;
  transition:
    opacity 0.3s,
    width 0.3s;
}
.hero .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent);
  width: 60px;
}

.hero-arrow {
  position: absolute;
  bottom: 36px;
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}
.hero-arrow.prev {
  right: 124px;
}
.hero-arrow.next {
  right: 48px;
}
@media (max-width: 768px) {
  .hero-arrow {
    display: none;
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 52px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
.hero-scroll .line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--accent);
  animation: scroll-tick 2.2s var(--ease) infinite;
}
@keyframes scroll-tick {
  0% {
    top: -14px;
  }
  100% {
    top: 36px;
  }
}
@media (max-width: 768px) {
  .hero-scroll {
    display: none;
  }
}

/* ===========================================================
   MARQUEE / ACCREDITATION STRIP
   =========================================================== */
.strip {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.strip-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.strip-item i {
  color: var(--accent);
}

/* ===========================================================
   STATISTICS
   =========================================================== */
.stats {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  padding: 8px 4px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.stat:first-child {
  border-left: 0;
  padding-left: 4px;
}
@media (max-width: 767px) {
  .stat {
    border-left: 0;
    padding-left: 0;
  }
}
.stat-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}
.stat-num small {
  font-size: 24px;
  color: var(--accent);
  font-weight: 600;
}
.stat-label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===========================================================
   HEADMASTER MESSAGE
   =========================================================== */
.headmaster {
  background: var(--surface);
}
.headmaster-grid {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 992px) {
  .headmaster-grid {
    grid-template-columns: 5fr 7fr;
    gap: 96px;
  }
}
.headmaster-photo {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.headmaster-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.headmaster-photo:hover img {
  transform: scale(1.04);
}
.headmaster-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(11, 46, 89, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.headmaster-badge .role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.headmaster-badge .name {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

.headmaster blockquote {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--text-1);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 24px 0 32px;
  position: relative;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
}
.headmaster .signature {
  display: flex;
  align-items: center;
  gap: 16px;
}
.signature-line {
  height: 1px;
  width: 48px;
  background: var(--text-2);
}

/* ===========================================================
   WHY US
   =========================================================== */
.why-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .why-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.why-card {
  position: relative;
  overflow: hidden;            /* clip zoom image */
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* remove flat white bg — image will fill */
  background: var(--primary-900);
}

/* ── Background image ── */
.why-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: brightness(0.45);
  z-index: 0;
}
.why-card:hover .why-card-bg {
  transform: scale(1.1);
  filter: brightness(0.35);
}

/* ── Content sits above image ── */
.why-card > *:not(.why-card-bg) {
  position: relative;
  z-index: 1;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(205, 163, 73, 0.2);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  border: 1px solid rgba(205, 163, 73, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.why-card h3 {
  margin: 8px 0 0;
  color: #fff;
}
.why-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  margin: 0;
}
.why-card .more {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.why-card:hover .more {
  color: #fff;
}
.why-card .more i {
  transition: transform 0.3s var(--ease);
}
.why-card:hover .more i {
  transform: translateX(4px);
}

/* ===========================================================
   SCHOOL PROFILE / HISTORY TIMELINE
   =========================================================== */
.profile {
  background: var(--bg);
}
.profile-head {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 992px) {
  .profile-head {
    grid-template-columns: 6fr 6fr;
  }
}
.profile-head p {
  color: var(--text-2);
}

.timeline {
  margin-top: 80px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
@media (min-width: 992px) {
  .timeline::before {
    left: 50%;
  }
}
.tl-item {
  position: relative;
  padding: 24px 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 992px) {
  .tl-item {
    width: 50%;
    padding: 32px 48px;
  }
  .tl-item:nth-child(odd) {
    margin-left: auto;
  }
  .tl-item:nth-child(even) {
    text-align: right;
    padding-left: 48px;
    padding-right: 48px;
  }
}
.tl-dot {
  position: absolute;
  left: 6px;
  top: 34px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(205, 163, 73, 0.18);
}
@media (min-width: 992px) {
  .tl-item:nth-child(odd) .tl-dot {
    left: -9px;
  }
  .tl-item:nth-child(even) .tl-dot {
    right: -9px;
    left: auto;
  }
}
.tl-year {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.tl-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
}
.tl-desc {
  color: var(--text-2);
  font-size: 16px;
  margin: 0;
}

/* visi misi */
.vm {
  background: var(--surface);
}
.vm-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .vm-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}
.vm-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  position: relative;
  transition:
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.vm-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.vm-card .label {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.vm-card h3 {
  font-size: 28px;
  margin: 8px 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.vm-card p,
.vm-card li {
  color: var(--text-2);
  font-size: 16px;
}
.vm-card ol {
  padding-left: 18px;
  margin: 0;
}
.vm-card ol li {
  padding: 8px 0 8px 8px;
  border-bottom: 1px dashed var(--border);
}
.vm-card ol li:last-child {
  border-bottom: 0;
}

/* ===========================================================
   FACILITIES SLIDER
   =========================================================== */
.fac-slider-wrapper {
  position: relative;
}

.fac-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.fac-slider-track::-webkit-scrollbar {
  display: none;
}

/* ── SPMB Banner Slider ── */
.spmb-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ── PPDB / SPMB Section — 2-column CTA layout ── */
.ppdb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 992px) {
  .ppdb-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
}

.ppdb-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ppdb-slider-wrapper {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 24px 64px rgba(0,0,0,.18));
}

.ppdb-slider-track {
  gap: 0;
  padding-bottom: 0;
}

.ppdb-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.ppdb-slide-inner {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ppdb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}

.ppdb-slide:hover img {
  transform: scale(1.03);
}

.ppdb-slider-nav {
  margin-top: 16px;
}

/* 3 per view: 33.333% - 2/3 of gap */
.fac-slide {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
}

/* Tablet: 2 per view */
@media (max-width: 767px) {
  .fac-slide {
    flex: 0 0 calc(50% - 10px);
  }
}

/* Mobile: 1 per view */
@media (max-width: 479px) {
  .fac-slide {
    flex: 0 0 100%;
  }
}

/* Jurusan slider: 4 per view on desktop, 2 tablet, 1 mobile */
/* gap = 20px; formula: (100% - gap*(n-1)) / n = calc((100% - 60px) / 4) */
.jur-slide {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;  /* tinggi konsisten; gambar di-cover secara otomatis via .fac-card img */
  min-height: unset;    /* override min-height bawaan .fac-card agar aspect-ratio yang mengontrol */
  overflow: hidden;
}

@media (max-width: 767px) {
  .jur-slide {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 479px) {
  .jur-slide {
    flex: 0 0 100%;
  }
}

/* Pastikan img di dalam jur-slide menggunakan cover + center */
.jur-slide img {
  object-fit: cover;
  object-position: center;
}

/* Nav bar */
.fac-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.fac-slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  flex: none;
}
.fac-slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.fac-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.fac-slider-btn:disabled:hover {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}

.fac-slider-dots {
  display: flex;
  gap: 6px;
}
.fac-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.fac-slider-dot.active {
  background: var(--primary);
  transform: scale(1.35);
}

.fac-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background: #0a1726;
  min-height: 280px;
}

.fac-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.2s var(--ease),
    filter 0.6s var(--ease);
  filter: saturate(0.95);
}
.fac-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* ── Prestasi section override: aspect-ratio 4:5, gambar penuh tanpa crop ── */
.facilities .fac-card {
  min-height: unset;
  aspect-ratio: 4 / 5;
}
.facilities .fac-card img {
  object-fit: contain;
  object-position: center center;
  transform: none;         /* matikan scale hover agar tidak terlihat aneh dengan contain */
}
.facilities .fac-card:hover img {
  transform: none;
  filter: saturate(1.05);
}
.fac-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.7) 100%
  );
}
.fac-card .meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
  z-index: 2;
}
.fac-card .meta .eyebrow {
  color: var(--accent);
}
.fac-card .meta h3 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 600;
}

/* ===========================================================
   STUDENT LIFE (magazine)
   =========================================================== */
.life {
  background: var(--surface);
}
.life-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .life-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }
}
.life-feature {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.life-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.life-feature:hover img {
  transform: scale(1.05);
}
.life-stack {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.life-stack .life-small {
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.life-stack .life-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.life-stack .life-small:hover img {
  transform: scale(1.06);
}
.life-stack .life-small .tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===========================================================
   ACHIEVEMENTS
   =========================================================== */
.achievements {
  background: linear-gradient(160deg, var(--primary-900) 0%, var(--primary-700) 55%, var(--primary) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.achievements::before {
  content: "";
  position: absolute;
  right: -200px;
  top: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 117, 24, 0.14) 0%,
    rgba(255, 117, 24, 0) 70%
  );
  pointer-events: none;
}
.achievements::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}
.achievements .container-1320 {
  position: relative;
  z-index: 1;
}
.achievements .eyebrow {
  color: var(--accent);
}
.achievements .section-title {
  color: #fff;
}
.achievements .section-head p {
  color: rgba(255, 255, 255, 0.75);
}
.achievements-head {
  margin-bottom: 48px !important;
}

.ach-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .ach-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ach-card: matches article-card design system (v_berita.php) */
.ach-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.ach-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 127, 255, 0.3);
}
/* left accent bar on hover — same as art-card */
.ach-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
  z-index: 2;
}
.ach-card:hover::before {
  transform: scaleY(1);
}
.ach-card--pengumuman::before {
  background: var(--accent);
}

/* Thumbnail area */
.ach-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
  flex: none;
}

/* Icon fallback — styled as premium icon block */
.ach-thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ach-card--pengumuman .ach-thumb-icon {
  background: linear-gradient(135deg, #fff7f0 0%, #fff0e3 100%);
}
.ach-card--agenda .ach-thumb-icon {
  background: linear-gradient(135deg, #f0f5ff 0%, #e3eeff 100%);
}
.ach-card--empty .ach-thumb-icon {
  background: var(--surface);
}

/* Icon circle inside thumbnail */
.ach-thumb-icon i {
  font-size: 42px;
  line-height: 1;
}
.ach-card--pengumuman .ach-thumb-icon i {
  color: var(--accent);
  filter: drop-shadow(0 4px 12px rgba(255,117,24,0.28));
}
.ach-card--agenda .ach-thumb-icon i {
  color: var(--primary);
  filter: drop-shadow(0 4px 12px rgba(0,127,255,0.24));
}
.ach-card--empty .ach-thumb-icon i {
  color: var(--text-2);
}

/* Animated border ring on hover inside thumbnail */
.ach-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: background 0.4s var(--ease);
}
.ach-card--pengumuman:hover .ach-thumb::after {
  background: linear-gradient(135deg, rgba(255,117,24,.06) 0%, rgba(255,117,24,.02) 100%);
}
.ach-card--agenda:hover .ach-thumb::after {
  background: linear-gradient(135deg, rgba(0,127,255,.06) 0%, rgba(0,127,255,.02) 100%);
}

/* Badge pill on thumbnail — same style as art-badge */
.ach-thumb-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.ach-card--pengumuman .ach-thumb-badge {
  background: var(--accent);
}
.ach-card--agenda .ach-thumb-badge {
  background: var(--primary);
}

/* Body */
.ach-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Category label — same as .cat in article-card */
.ach-card .level {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}
.ach-card--pengumuman .level {
  color: var(--accent-700);
  background: rgba(255,117,24,.1);
}
.ach-card--agenda .level {
  color: var(--primary-700);
  background: rgba(0,127,255,.1);
}
.ach-card--empty .level {
  color: var(--text-2);
  background: var(--surface);
}

/* Title */
.ach-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-1);
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s var(--ease);
}
.ach-card:hover h3 {
  color: var(--primary);
}
.ach-card--pengumuman:hover h3 {
  color: var(--accent-700);
}

/* Excerpt */
.ach-card p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: date + read more — matches art-footer */
.ach-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.ach-footer i {
  color: var(--primary);
}
.ach-card--pengumuman .ach-footer i {
  color: var(--accent);
}
.ach-read-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  transition: color 0.25s var(--ease);
}
.ach-read-more i {
  transition: transform 0.3s var(--ease);
}
.ach-card:hover .ach-read-more {
  color: var(--accent);
}
.ach-card--agenda:hover .ach-read-more {
  color: var(--primary-700);
}
.ach-card:hover .ach-read-more i {
  transform: translateX(4px);
}

/* Empty state card */
.ach-card--empty {
  pointer-events: none;
  grid-column: 1 / -1;
  max-width: 480px;
}

/* ===========================================================
   EXTRACURRICULAR
   =========================================================== */
.extra-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .extra-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .extra-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.extra-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #0a1726;
}
.extra-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.extra-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(11, 46, 89, 0.85) 100%
  );
}
.extra-card:hover img {
  transform: scale(1.08);
}
.extra-card .info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}
.extra-card .info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.extra-card .info .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===========================================================
   DIGITAL SCHOOL
   =========================================================== */
/* ===========================================================
   DIGITAL SCHOOL — PORTAL HUB
   =========================================================== */
.digital {
  background: var(--primary-900);
  position: relative;
  overflow: hidden;
}

/* subtle grid pattern */
.digital::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Header row: title left, stats right */
.digital-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.digital-head .eyebrow {
  color: var(--accent);
}
.digital-head .section-title {
  color: #fff;
}
.digital-head .lead-text {
  color: rgba(255,255,255,0.68);
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
}

/* Stats chips */
.digital-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: center;
}
.dstat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 24px;
  min-width: 110px;
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dstat-val {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dstat-val small {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 1px;
}
.dstat-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Portal grid: 3 cols */
.portal-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Portal card */
.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  text-decoration: none;
}
.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(var(--pc), 0.12) 0%,
    transparent 60%
  );
  transition: opacity 0.4s var(--ease);
  opacity: 0;
}
.portal-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(var(--pc), 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.4);
}
.portal-card:hover::before {
  opacity: 1;
}

/* Icon */
.portal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(var(--pc), 0.18);
  border: 1px solid rgba(var(--pc), 0.3);
  color: rgb(var(--pc));
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.portal-card:hover .portal-icon {
  background: rgba(var(--pc), 0.28);
  transform: scale(1.08);
}

/* Body */
.portal-body {
  flex: 1;
}
.portal-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--pc), 1);
  margin-bottom: 8px;
}
.portal-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.portal-body p {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  margin: 0;
  line-height: 1.65;
}

/* Arrow indicator */
.portal-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  display: grid;
  place-items: center;
  font-size: 13px;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.portal-card:hover .portal-arrow {
  background: rgba(var(--pc), 0.2);
  border-color: rgba(var(--pc), 0.5);
  color: rgb(var(--pc));
  transform: rotate(45deg);
}


/* ===========================================================
   NEWS
   =========================================================== */
.news {
  background: var(--bg);
}
.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 64px;
}
.news-head .section-head {
  margin: 0;
}
.news-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .news-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.news-feature {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 520px;
  background: #0a1726;
}
.news-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.news-feature:hover img {
  transform: scale(1.05);
}
.news-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.news-feature .meta {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  color: #fff;
  z-index: 2;
}
.news-feature .cat {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}
.news-feature h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
  line-height: 1.25;
}
.news-feature .date {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  transition: background-color 0.3s var(--ease);
}
.news-item:hover {
  background: var(--surface);
}
.news-item .thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.news-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.news-item:hover .thumb img {
  transform: scale(1.06);
}
.news-item .cat {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.news-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.35;
  color: var(--text-1);
}
.news-item .date {
  font-size: 13px;
  color: var(--text-2);
}
@media (max-width: 480px) {
  .news-item {
    grid-template-columns: 1fr;
  }
}


/* ===========================================================
   ARTICLES & JOURNALS
   =========================================================== */
.articles {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
/* subtle diagonal line pattern for texture */
.articles::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(0, 127, 255, 0.025) 40px,
      rgba(0, 127, 255, 0.025) 41px
    );
  pointer-events: none;
}

/* Header row */
.articles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
.articles-head .lead-text {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 12px;
}

/* Filter tabs */
.art-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
}
.art-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  letter-spacing: 0.01em;
}
.art-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.art-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Articles grid: 1 large featured + 2 col regular */
.art-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 768px) {
  .art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .art-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Base card */
.art-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.art-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 127, 255, 0.3);
}
/* left accent bar on hover */
.art-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}
.art-card:hover::before {
  transform: scaleY(1);
}

/* Featured card spans 2 cols on lg */
@media (min-width: 1100px) {
  .art-featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
  .art-featured .art-thumb {
    flex: 0 0 44%;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: 0;
  }
  .art-featured .art-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .art-featured .art-body {
    flex: 1;
    padding: 28px 28px 24px;
  }
  .art-featured .art-title {
    font-size: clamp(20px, 2vw, 26px);
  }
  .art-featured .art-excerpt {
    display: block;
  }
}

/* Thumbnail image — flush to card edge, same as .article-card .thumb */
.art-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #0a1726;
  margin-bottom: 0;
  flex: none;
}
.art-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.art-card:hover .art-thumb img {
  transform: scale(1.06);
}
.art-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 80, 160, 0.25) 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.art-card:hover .art-thumb::after {
  opacity: 1;
}

/* Body — padding dipindah ke sini dari .art-card */
.art-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  padding: 20px 22px 24px;
}

/* Badge — overlay on image */
.art-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* solid opaque pill — readable on any photo */
  background: var(--primary);
  color: #fff;
  border: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.art-badge--artikel {
  background: var(--accent);
  color: #fff;
}
.art-badge--siswa {
  background: #10b981;
  color: #fff;
}

/* Meta top (topic · read time) */
.art-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.art-topic {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.art-dot {
  color: var(--text-2);
  font-size: 14px;
}
.art-read {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
}
.art-read i {
  font-size: 11px;
}

/* Title */
.art-title {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 0 0 12px;
  transition: color 0.25s var(--ease);
}
.art-card:hover .art-title {
  color: var(--primary);
}

/* Excerpt */
.art-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: author + date */
.art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.art-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
  letter-spacing: 0.02em;
}
.art-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.art-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-2);
}
.art-date i {
  font-size: 12px;
}


/* ===========================================================
   GALLERY — column titles
   =========================================================== */
.gallery-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.01em;
}
.gallery-col-title i {
  color: var(--accent);
  font-size: 20px;
}

/* ===========================================================
   VIDEO SLIDER
   =========================================================== */
.vid-slider-wrapper {
  position: relative;
}

.vid-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge */
  padding-bottom: 4px;             /* ruang shadow bawah card */
}
.vid-slider-track::-webkit-scrollbar {
  display: none;                   /* Chrome/Safari */
}

/* Setiap card di dalam track: 50% - setengah gap = 2 per view */
.vid-slider-track .vid-card {
  flex: 0 0 calc(50% - 8px);
  scroll-snap-align: start;
}

/* Mobile: 1 per view */
@media (max-width: 479px) {
  .vid-slider-track .vid-card {
    flex: 0 0 100%;
  }
}

/* Nav bar (tombol + dots) */
.vid-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.vid-slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  flex: none;
}
.vid-slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.vid-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.vid-slider-btn:disabled:hover {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}

.vid-slider-dots {
  display: flex;
  gap: 6px;
}
.vid-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.vid-slider-dot.active {
  background: var(--primary);
  transform: scale(1.35);
}


/* Video card */
.vid-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
  padding: 0;
}
.vid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vid-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1726;
}
.vid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.vid-card:hover .vid-thumb img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.vid-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.3s, font-size 0.3s var(--ease);
}
.vid-card:hover .vid-play-btn {
  background: rgba(11, 46, 89, 0.55);
  font-size: 44px;
}

.vid-play-btn i {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.vid-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vid-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.vid-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ===========================================================
   VIDEO MODAL
   =========================================================== */
.vid-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}
.vid-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.vid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 35, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.vid-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0a1726;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.7);
  transform: scale(0.92);
  transition: transform 0.32s var(--ease);
}
.vid-modal.open .vid-modal-box {
  transform: scale(1);
}

.vid-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.vid-modal-close:hover {
  background: rgba(255,255,255,0.28);
}

.vid-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.vid-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================================================
   GALLERY (masonry)
   =========================================================== */

.gallery {
  background: var(--surface);
}
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #0a1726;
  aspect-ratio: 1/1;
}
@media (min-width: 768px) {
  .gal-item {
    aspect-ratio: auto;
  }
  .gal-item.tall {
    grid-row: span 2;
  }
  .gal-item.wide {
    grid-column: span 2;
  }
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.gal-item:hover img {
  transform: scale(1.08);
}
.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.65) 100%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gal-item:hover::after {
  opacity: 1;
}
.gal-item .label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
  z-index: 2;
}
.gal-item:hover .label {
  opacity: 1;
  transform: translateY(0);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(205, 163, 73, 0.2) 0%,
    rgba(205, 163, 73, 0) 70%
  );
}
.contact-info-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.contact-info-card p.intro {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 32px;
  font-size: 15px;
}
.ci-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ci-item:first-of-type {
  border-top: 0;
}
.ci-item .icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: rgba(205, 163, 73, 0.15);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.ci-item .lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.ci-item .val {
  font-size: 15px;
  color: #fff;
  margin-top: 2px;
}
.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.contact-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.contact-socials a:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
}
.contact-form-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-form-card p {
  color: var(--text-2);
  margin: 0 0 28px;
  font-size: 15px;
}
.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.form-field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-2);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 46, 89, 0.08);
}

.map-card {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--surface);
}
.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: #051a32;
  color: rgba(255, 255, 255, 0.75);
  padding: 96px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer h5 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 20px;
}
.footer a {
  color: rgba(255, 255, 255, 0.7);
}
.footer a:hover {
  color: var(--accent);
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer .brand-block .brand-mark {
  width: 48px;
  height: 48px;
}
.footer .brand-block .brand-name {
  color: #fff;
  font-size: 18px;
}
.footer .brand-block .brand-sub {
  color: rgba(255, 255, 255, 0.5);
}
.footer .desc {
  margin-top: 20px;
  font-size: 14px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.footer-socials a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ===========================================================
   UTILITIES
   =========================================================== */
.no-scroll {
  overflow: hidden;
}
.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* AOS smoother defaults */
[data-aos] {
  pointer-events: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


/* ===========================================================
   BERITA PAGE — Article Card & Grid
   Shared design system: used in v_berita.php (AJAX rendered)
   and consistent with art-card / ach-card on home page
   =========================================================== */

/* 3-column grid — used on berita page */
.grid-3 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Article card — base component used across berita, home sections */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 127, 255, 0.3);
  color: inherit;
}
/* left accent bar on hover */
.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
  z-index: 2;
}
.article-card:hover::before {
  transform: scaleY(1);
}

/* Thumbnail */
.article-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  flex: none;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.article-card:hover .thumb img {
  transform: scale(1.06);
}
.article-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 80, 160, 0.22) 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.article-card:hover .thumb::after {
  opacity: 1;
}

/* Card body */
.article-card .body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Category badge — pill style */
.article-card .cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: rgba(0, 127, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

/* Title */
.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-1);
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s var(--ease);
}
.article-card:hover h3 {
  color: var(--primary);
}

/* Excerpt */
.article-card p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: date + read more — matches art-footer / ach-footer */
.article-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.article-card .foot i {
  color: var(--primary);
  font-size: 12px;
}
.article-card .read-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  transition: color 0.25s var(--ease);
}
.article-card .read-more i {
  transition: transform 0.3s var(--ease);
}
.article-card:hover .read-more {
  color: var(--accent);
}
.article-card:hover .read-more i {
  transform: translateX(4px);
}

/* Empty state (berita page) */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-2);
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: var(--border);
}
.empty-state h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 8px;
}
.empty-state p {
  font-size: 15px;
  margin: 0;
}

/* ===========================================================
   MODAL SAMBUTAN KEPALA SEKOLAH
   =========================================================== */
.sambutan-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease);
}
.sambutan-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop */
.sambutan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 35, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Dialog box */
.sambutan-modal-box {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  background: var(--bg, #f8f9fb);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.38s var(--ease);
  display: flex;
  flex-direction: column;
}
.sambutan-modal.open .sambutan-modal-box {
  transform: scale(1) translateY(0);
}

/* Close button */
.sambutan-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 46, 89, 0.1);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.sambutan-modal-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

/* 2-column inner layout */
.sambutan-modal-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
@media (min-width: 768px) {
  .sambutan-modal-inner {
    flex-direction: row;
  }
}

/* ── Left panel: profile ── */
.sambutan-modal-profile {
  background: var(--primary);
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-shrink: 0;
  text-align: center;
}
@media (min-width: 768px) {
  .sambutan-modal-profile {
    width: 280px;
    padding: 56px 28px 48px;
  }
}
@media (max-width: 767px) {
  .sambutan-modal-profile {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 28px 24px;
    gap: 20px;
  }
}

.sambutan-modal-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(205, 163, 73, 0.2);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .sambutan-modal-photo {
    width: 72px;
    height: 72px;
  }
}
.sambutan-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sambutan-photo-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.3);
}

.sambutan-modal-name-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sambutan-role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.sambutan-name {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: #fff;
  margin: 4px 0 0;
  line-height: 1.25;
}
.sambutan-school {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* ── Right panel: content ── */
.sambutan-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.sambutan-modal-header {
  padding: 36px 36px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .sambutan-modal-header {
    padding: 24px 24px 18px;
  }
}

.sambutan-modal-title {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  color: var(--text-1);
  margin: 10px 0 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sambutan-modal-body {
  overflow-y: auto;
  padding: 28px 36px 40px;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
@media (max-width: 767px) {
  .sambutan-modal-body {
    padding: 20px 24px 32px;
  }
}
.sambutan-modal-body::-webkit-scrollbar {
  width: 5px;
}
.sambutan-modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Prose content */
.sambutan-prose {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.sambutan-prose p {
  margin: 0 0 16px;
}
.sambutan-prose p:last-child {
  margin-bottom: 0;
}
.sambutan-prose strong,
.sambutan-prose b {
  color: var(--text-1);
  font-weight: 600;
}
.sambutan-prose h1,
.sambutan-prose h2,
.sambutan-prose h3 {
  color: var(--text-1);
  margin: 24px 0 12px;
}

/* ===========================================================
   FLOATING WHATSAPP BUTTON
   =========================================================== */
.wa-float {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  /* Slide-in from right on load */
  transform: translateX(0);
  opacity: 1;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}
/* wa-hidden dipakai modal sambutan, wa-scroll-hidden dipakai saat menggulir.
   Dipisah supaya keduanya tidak saling menghapus, efeknya sama. */
.wa-float.wa-hidden,
.wa-float.wa-scroll-hidden {
  transform: translateX(90px);
  opacity: 0;
  pointer-events: none;
}

/* ── Green icon bubble ── */
.wa-float-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
}
.wa-float:hover .wa-float-icon {
  transform: scale(1.12);
  box-shadow:
    0 10px 32px rgba(37, 211, 102, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pulse ring */
.wa-float-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float-icon::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.28);
  animation: wa-pulse 2.2s ease-out infinite 0.55s;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── Tooltip label ── */
.wa-float-tooltip {
  background: #111b21;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  /* Hidden by default, shown on hover */
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  /* Tooltip arrow pointing right */
  position: relative;
}
.wa-float-tooltip::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #111b21;
  border-right: 0;
}
.wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 480px) {
  .wa-float {
    right: 18px;
    bottom: 24px;
  }
  .wa-float-icon {
    width: 52px;
    height: 52px;
  }
  /* Hide tooltip on very small screens to avoid overflow */
  .wa-float-tooltip {
    display: none;
  }
}