/* ==========================================================================
   Portal Website Sekolah — Frontend Stylesheet
   Inspired by smpnegeri2diwek.sch.id (Clean Modern Cream/White + Cyan/Purple/Orange)
   ========================================================================== */

:root {
  --primary: #07BDD5;
  --primary-dark: #0596A8;
  --header-bg: #6022C3;
  --secondary: #8249DF;
  --accent: #2BD4BD;
  --orange: #F97415;
  --cream: #FBF8F4;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --muted: #F1F5F9;
  --fg: #0F1729;
  --muted-fg: #65758B;
  --border: #E1E7EF;
  --destructive: #EF4444;
  --radius: 16px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 41, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 24px 55px rgba(15, 23, 41, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
html.is-scrolling {
  scrollbar-color: rgba(15, 23, 41, 0.28) transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background .25s ease;
}
html.is-scrolling ::-webkit-scrollbar-thumb,
html.is-scrolling::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 41, 0.28);
}
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top Fixed Header (GPU-optimized, zero scroll stutter) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 100;
  background: rgba(251, 248, 244, 0.97);
  border-bottom: 1px solid rgba(225, 231, 239, 0.8);
  transform: translateZ(0);
  transition: box-shadow .22s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(15, 23, 41, 0.07); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo-wrap {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 6px 16px rgba(7, 189, 213, 0.28);
  overflow: hidden;
}
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.brand-text .accent { color: var(--primary); }

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 10px 0;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--primary); }
.nav-chevron { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover > .nav-link .nav-chevron { transform: rotate(180deg); }

/* Dropdown & Nested Flyout */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 220px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 41, 0.12);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 120;
}
.nav-item:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { position: relative; }
.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  transition: background .18s, color .18s;
}
.dropdown-link:hover { background: rgba(43, 212, 189, 0.14); color: var(--primary-dark); }
.submenu {
  position: absolute;
  top: -6px;
  left: calc(100% + 6px);
  min-width: 205px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 41, 0.12);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: all .2s ease;
}
.dropdown-item:hover > .submenu { opacity: 1; visibility: visible; transform: translateX(0); }

/* Top Route Loading Progress Bar */
.top-load-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--header-bg), var(--orange));
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: width .35s ease, opacity .25s ease;
}
.top-load-bar.loading { opacity: 1; width: 78%; }
.top-load-bar.done { opacity: 0; width: 100%; }

/* Morphing Burger-to-X Trigger & Animated Drawer */
.mobile-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--fg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.mobile-toggle:active { transform: scale(0.94); }
.burger-box {
  position: relative;
  width: 20px;
  height: 15px;
  display: block;
}
.burger-line {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2.3px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1), opacity .2s ease, top .25s ease;
}
.burger-line.line-1 { top: 0; }
.burger-line.line-2 { top: 6.3px; }
.burger-line.line-3 { top: 12.6px; }
.mobile-toggle.is-open .burger-line.line-1 { top: 6.3px; transform: rotate(225deg); background: var(--primary); }
.mobile-toggle.is-open .burger-line.line-2 { opacity: 0; transform: scaleX(0); }
.mobile-toggle.is-open .burger-line.line-3 { top: 6.3px; transform: rotate(-225deg); background: var(--primary); }

.mobile-drawer {
  position: fixed;
  top: 80px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 95;
  overflow-y: auto;
  padding: 20px 20px 44px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  pointer-events: none;
  transition: opacity .28s ease, transform .32s cubic-bezier(0.22, 1, 0.36, 1), visibility .28s ease;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .32s ease;
}
.mobile-drawer.open .mobile-menu-item { opacity: 1; transform: translateY(0); }
.mobile-drawer.open .mobile-menu-item:nth-child(1) { transition-delay: 40ms; }
.mobile-drawer.open .mobile-menu-item:nth-child(2) { transition-delay: 80ms; }
.mobile-drawer.open .mobile-menu-item:nth-child(3) { transition-delay: 120ms; }
.mobile-drawer.open .mobile-menu-item:nth-child(4) { transition-delay: 160ms; }
.mobile-drawer.open .mobile-menu-item:nth-child(5) { transition-delay: 200ms; }
.mobile-drawer.open .mobile-menu-item:nth-child(6) { transition-delay: 240ms; }
.mobile-drawer.open .mobile-menu-item:nth-child(7) { transition-delay: 280ms; }
.mobile-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--cream);
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  transition: background .2s, color .2s;
}
.mobile-menu-btn.sub-open { background: rgba(7, 189, 213, 0.12); color: var(--primary-dark); }
.mobile-chev { display: inline-flex; transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1); }
.sub-open > .mobile-chev { transform: rotate(180deg); color: var(--primary); }
.mobile-sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .3s cubic-bezier(0.22, 1, 0.36, 1), opacity .25s ease;
}
.mobile-sub-wrap.open { grid-template-rows: 1fr; opacity: 1; }
.mobile-sublist, .mobile-grandlist {
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-sub-wrap.open > .mobile-sublist {
  margin: 6px 0 8px 14px;
  padding-left: 12px;
  border-left: 2px solid var(--primary);
}
.mobile-sublist a, .mobile-sub-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--muted-fg);
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.mobile-sublist a:hover, .mobile-sub-toggle:hover { background: var(--muted); color: var(--primary); }
.mobile-sub-wrap.open > .mobile-grandlist {
  margin: 4px 0 6px 12px;
  padding-left: 10px;
  border-left: 1.5px dashed rgba(7, 189, 213, 0.55);
}
.mobile-grandlist a { font-size: 13.5px; font-weight: 500; padding: 8px 12px; }

/* ---------- Subpage Slim Top Bar ---------- */
.sub-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  transform: translateZ(0);
}
.sub-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-fg);
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.back-link:hover { color: var(--primary); }
.back-mobile-home { display: none; }
.sub-topbar-center { margin: 0 auto; }
.breadcrumb {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 62%;
}
.bc-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  padding: 5px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.bc-home-icon:hover { color: var(--primary); background: var(--muted); }
.bc-current {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}

/* ---------- Hero Slider (Locked Fixed Text Position + Full-Bleed BG Always) ---------- */
.hero-section {
  position: relative;
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  min-height: 640px;
  display: grid;
  overflow: hidden;
  background: #F4EFE9;
}
.hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  min-height: 640px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .65s ease, visibility .65s ease;
  display: flex;
  align-items: center;
  padding: 78px 0 64px;
  position: relative;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-text-col {
  min-height: 310px;
  padding-top: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 48%, rgba(255,255,255,0.22) 100%);
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 116, 21, 0.18);
}
.hero-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.hero-subtitle {
  margin: 0 0 28px;
  font-size: 16px;
  color: #475569;
  max-width: 540px;
  line-height: 1.65;
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-dot-btn {
  width: 11px; height: 11px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 41, 0.2);
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.hero-dot-btn.active {
  width: 34px;
  background: var(--primary);
}
.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 22px 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.9);
}
.avatar-stack { display: flex; align-items: center; }
.avatar-stack span {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 2.5px solid #fff;
  margin-left: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.avatar-stack span:first-child { margin-left: 0; }
.stat-pill-title { font-size: 15px; font-weight: 800; color: var(--fg); line-height: 1.2; }
.stat-pill-sub { font-size: 12px; color: var(--muted-fg); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-circle-frame {
  width: min(460px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 12px solid #FFFFFF;
  box-shadow: 0 28px 60px rgba(15, 23, 41, 0.22);
  overflow: hidden;
  background: #1E293B;
}
.hero-circle-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-badge {
  position: absolute;
  top: 22px;
  right: 12px;
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 4s ease-in-out infinite;
}
.hero-float-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Shared Section Styling ---------- */
.section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-soft-cyan { background: linear-gradient(135deg, rgba(7, 189, 213, 0.06) 0%, #FFFFFF 65%); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; display: block; }
.section-heading {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--fg);
}
.text-orange { color: var(--orange); }
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--header-bg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Sambutan Kepala Sekolah ---------- */
.principal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}
.principal-card { text-align: center; }
.principal-photo {
  width: 224px; height: 224px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 5px solid rgba(7, 189, 213, 0.22);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #0F1729;
}
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.principal-name { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: var(--fg); }
.principal-role { font-size: 14px; color: var(--muted-fg); margin: 0; }
.rich-text { color: #334155; font-size: 15.5px; line-height: 1.78; }
.rich-text p { margin: 0 0 14px; }
.rich-text h2, .rich-text h3 { color: var(--fg); margin: 24px 0 10px; font-weight: 800; }
.rich-text ul, .rich-text ol { padding-left: 22px; margin: 0 0 16px; }
.rich-text li { margin-bottom: 8px; }
.rich-text img { border-radius: 14px; margin: 16px auto; box-shadow: var(--shadow-sm); height: auto; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.rich-text th, .rich-text td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.rich-text th { background: var(--muted); font-weight: 700; }

/* ---------- Tentang Kami ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.collage-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--muted);
}
.collage-img.offset { margin-top: 34px; }
.collage-img img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--fg); }
.check-icon {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 14px;
}

/* ---------- Program Unggulan (Anticipation Right -> Glide Left Animation) ---------- */
.program-wrap { max-width: 960px; margin: 0 auto; overflow: hidden; padding: 12px 6px; position: relative; }
.program-stage { display: grid; align-items: center; }
.program-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 56px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(44px, 0, 0);
}
.program-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  animation: progEnterRight .62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.program-slide.leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  animation: progPullRightThenLeft .68s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
@keyframes progPullRightThenLeft {
  0%   { opacity: 1; transform: translate3d(0, 0, 0); }
  32%  { opacity: 1; transform: translate3d(34px, 0, 0); }
  100% { opacity: 0; transform: translate3d(-76px, 0, 0); }
}
@keyframes progEnterRight {
  0%   { opacity: 0; transform: translate3d(68px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.program-icon-stack { position: relative; width: 270px; height: 270px; margin: 0 auto; }
.program-layer-2, .program-layer-1 {
  position: absolute;
  inset: 0;
  border-radius: 28px;
}
.program-layer-2 { background: rgba(79, 70, 229, 0.12); transform: translate(18px, 18px); }
.program-layer-1 { background: rgba(59, 130, 246, 0.16); transform: translate(9px, 9px); }
.program-card-box {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 112px;
  box-shadow: 0 24px 48px rgba(79, 70, 229, 0.25);
  overflow: hidden;
}
.program-card-box img { width: 100%; height: 100%; object-fit: cover; }
.program-controls { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.prog-dot {
  width: 10px; height: 10px; border-radius: 999px; border: none;
  background: #CBD5E1; cursor: pointer; padding: 0; transition: .25s;
}
.prog-dot.active { width: 28px; background: var(--primary); }

/* ---------- Berita Terbaru ---------- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  background: transparent;
}
.btn-outline-cyan:hover { background: var(--primary); color: #fff; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(225, 231, 239, 0.8);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--muted);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-cat-pill {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.news-cat-pill-purple {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.news-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12.5px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.news-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-excerpt {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted-fg);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Galeri Video (Compact Top Spacing + Auto-Hide Arrows) ---------- */
#news.section { padding-bottom: 52px; }
#gallery.section { padding-top: 36px; padding-bottom: 56px; }
.video-header { text-align: center; margin-bottom: 22px; }
.pill-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.video-showcase-wrap { max-width: 900px; margin: 0 auto; position: relative; }
.video-main-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0F1729;
  overflow: hidden;
}
.video-stage img { width: 100%; height: 100%; object-fit: cover; }
.video-stage iframe { width: 100%; height: 100%; border: 0; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--header-bg));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(96, 34, 195, 0.45);
  transition: transform .2s ease;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-arrow {
  position: absolute;
  top: 32%;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.94);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease, transform .2s ease;
}
.video-showcase-wrap.controls-active .video-arrow,
.video-showcase-wrap:focus-within .video-arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.video-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.video-arrow.prev { left: -22px; }
.video-arrow.next { right: -22px; }
.video-meta { padding: 24px 28px; }
.video-meta h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.video-meta p { margin: 0; font-size: 14px; color: var(--muted-fg); line-height: 1.7; }
.video-thumbs {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.video-thumb-item {
  width: 190px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  opacity: .72;
  transition: .2s;
  background: #0F1729;
}
.video-thumb-item.active, .video-thumb-item:hover { opacity: 1; border-color: var(--primary); }
.video-thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
  color: #FFFFFF;
  background: linear-gradient(90deg, var(--primary) 0%, var(--header-bg) 100%);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(96, 34, 195, 0.25);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; max-width: 660px; margin: 0 auto; }
.cta-content h2 { margin: 0 0 14px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta-content p { margin: 0 0 28px; font-size: 15.5px; opacity: .92; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn-white {
  padding: 13px 28px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .2s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.16); }
.btn-ghost-white {
  padding: 13px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14.5px;
  transition: background .2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.24); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1.25fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-col h4 { margin: 0 0 16px; font-size: 16px; font-weight: 800; color: var(--fg); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--muted-fg); transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--muted);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted-fg); }
.contact-list svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.btn-dashboard-full {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  transition: .2s;
}
.btn-dashboard-full:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted-fg);
}

/* ---------- Subpage Heroes & Overlapping Cards ---------- */
.subpage-body { background: var(--cream); min-height: 100vh; padding-top: 60px; }
.gradient-hero {
  background: linear-gradient(90deg, var(--primary) 0%, var(--header-bg) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px 110px;
}
.gradient-hero.compact { padding: 54px 24px 64px; }
.gradient-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.gradient-hero p { margin: 0 auto; max-width: 600px; font-size: 15.5px; opacity: .92; }

.photo-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 56px 24px 96px;
}
.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 41, 0.72), rgba(15, 23, 41, 0.86));
}
.photo-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.photo-hero h1 { margin: 12px 0 14px; font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.2; }
.meta-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 13px; }
.meta-pill {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
}

.overlap-card {
  position: relative;
  z-index: 5;
  margin: -56px auto 52px;
  max-width: 1140px;
  background: var(--white);
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.related-wrap {
  margin: 0 auto 72px;
  max-width: 1140px;
}

/* Reading Progress Bar & Dynamic Reader Report + Share Bar */
.read-progress-bar {
  position: fixed;
  top: 60px;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--header-bg));
  z-index: 105;
  transition: width .12s linear;
}
.article-footer-box {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.read-report-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, rgba(7,189,213,0.08), rgba(96,34,195,0.06));
  border: 1px solid rgba(7,189,213,0.22);
  border-radius: 16px;
  padding: 16px 20px;
}
.read-report-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.read-stat-item { display: inline-flex; align-items: center; gap: 6px; }
.read-stat-item svg { color: var(--primary); }
.btn-helpful {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  background: var(--white);
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.btn-helpful:hover, .btn-helpful.voted { background: var(--primary); color: #fff; }
.share-box-minimal {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.share-minimal-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.share-ico-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.share-ico-btn svg {
  width: 16px;
  height: 16px;
}
.share-ico-btn:hover {
  color: var(--primary);
  background: rgba(7, 189, 213, 0.1);
  transform: translateY(-2px);
}
.copy-toast {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.share-ico-btn.copied .copy-toast { opacity: 1; }

/* Clean Nameless Brochure Cards + Swipeable Lightbox */
.brochure-clean img { height: 320px; }
.brochure-dl-float {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: .2s;
}
.brochure-dl-float:hover { background: var(--primary); color: #fff; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 310;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease, background .2s ease, color .2s ease;
}
.lightbox-nav:hover { background: var(--primary); color: #fff; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-controls {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.lightbox-close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.lightbox-backdrop.controls-active .lightbox-nav,
.lightbox-backdrop.controls-active .lightbox-controls,
.lightbox-backdrop.controls-active .lightbox-close,
.lightbox-backdrop:focus-within .lightbox-nav,
.lightbox-backdrop:focus-within .lightbox-controls,
.lightbox-backdrop:focus-within .lightbox-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-counter {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.lightbox-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
}
.lightbox-inner img { user-select: none; cursor: grab; transition: transform .18s ease; transform-origin: center center; }
.lightbox-img-viewport {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 16px;
}
.lightbox-img-viewport img {
  max-width: 90vw;
  max-height: 76vh;
  border-radius: 14px;
}
.lightbox-tool-btn {
  height: 32px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
}
.lightbox-tool-btn:hover { background: var(--primary); border-color: var(--primary); }
.zoomable-img { cursor: zoom-in; }

/* Visitor Statistics Band on Homepage */
.visitor-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.vstat-card {
  background: var(--white);
  border-radius: 22px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.vstat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vstat-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vstat-num { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--fg); }
.vstat-lbl { font-size: 13px; color: var(--muted-fg); font-weight: 600; margin-top: 3px; }
.online-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  margin-right: 6px;
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}

/* Shimmer Skeleton Loader Cards (Reference-Style News Loading) */
.skeleton-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.skeleton-shimmer {
  background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 50%, #EEF2F7 75%);
  background-size: 220% 100%;
  animation: shimmerSlide 1.3s ease-in-out infinite;
}
.skeleton-thumb { aspect-ratio: 16 / 9; width: 100%; }
.skeleton-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; border-radius: 999px; }
@keyframes shimmerSlide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Contact Dual Action Buttons & Maps */
.contact-dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, opacity .18s;
}
.btn-whatsapp:hover { transform: translateY(-1px); opacity: .95; }
.maps-embed-wrap {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--muted);
}
.maps-embed-wrap iframe { width: 100%; height: 100%; border: 0; }

/* SPMB Brochure Gallery & Lightbox */
.brochure-section {
  position: relative;
  z-index: 6;
  max-width: 1120px;
  margin: -68px auto 32px;
  padding: 0 24px;
}
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.brochure-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--muted);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brochure-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brochure-item img { width: 100%; height: 280px; object-fit: cover; }
.brochure-cap {
  padding: 12px 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
}
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 41, 0.86);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-backdrop.open { display: flex; }
.lightbox-inner { position: relative; max-width: 960px; max-height: 90vh; text-align: center; }
.lightbox-inner img { max-width: 100%; max-height: 82vh; border-radius: 16px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: -16px; right: -16px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* Centered Single-Column Contact Layout */
.contact-single-wrap {
  position: relative;
  z-index: 5;
  max-width: 820px;
  margin: -68px auto 68px;
  padding: 0 24px;
}

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--header-bg));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(96, 34, 195, 0.34);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }

/* Smooth Scroll Reveal Animations (Zero-jank GPU transitions) */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .52s cubic-bezier(0.22, 1, 0.36, 1), transform .52s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="fade-left"]  { transform: translate3d(-24px, 0, 0); }
[data-reveal="fade-right"] { transform: translate3d(24px, 0, 0); }
[data-reveal="zoom-in"]    { transform: scale(0.96); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Page Photo Gallery with Captions */
.page-gallery-wrap {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1.5px solid var(--border);
}
.page-gallery-head {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
}
.page-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.page-photo-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.page-photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.page-photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.page-photo-caption {
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  font-weight: 500;
  background: #FAFBFC;
  flex: 1;
}
.lightbox-caption-text {
  color: #F8FAFC;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 720px;
  margin: 12px auto 0;
  background: rgba(15, 23, 41, 0.55);
  padding: 8px 16px;
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Sticky News Filter Bar */
.filter-bar {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.input-styled, .select-styled {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  background: var(--white);
  outline: none;
}
.input-styled:focus, .select-styled:focus { border-color: var(--primary); }

/* Directory KPI + Grid */
.pill-switcher {
  display: inline-flex;
  background: var(--muted);
  padding: 4px;
  border-radius: 999px;
}
.pill-switch-btn {
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted-fg);
  transition: .2s;
}
.pill-switch-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--header-bg));
  color: #fff;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 28px 0 32px;
}
.kpi-card {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.kpi-card.dark { background: #0B1221; color: #fff; border-color: #0B1221; }
.kpi-card.span-2 { grid-column: span 2; }
.kpi-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--primary); text-transform: uppercase; margin: 12px 0 4px; }
.kpi-card.dark .kpi-label { color: #94A3B8; }
.kpi-value { font-size: 32px; font-weight: 800; line-height: 1.1; }
.dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 22px; }
.dir-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: .25s;
  display: flex;
  flex-direction: column;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dir-photo {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #1E293B, #334155);
  overflow: hidden;
}
.dir-photo img { width: 100%; height: 100%; object-fit: cover; }
.dir-role-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.dir-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.dir-info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.dir-sub { font-size: 13px; color: var(--primary-dark); font-weight: 600; margin-bottom: 8px; }
.dir-bio { font-size: 13px; color: var(--muted-fg); margin: 0 0 14px; flex: 1; }
.btn-view-profile {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  transition: .2s;
}
.btn-view-profile:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Contact & Registration 2-column overlap */
.contact-grid {
  position: relative;
  z-index: 5;
  max-width: 1120px;
  margin: -68px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: start;
}
.surface-card {
  background: var(--white);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--fg); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--header-bg));
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.btn-gradient:hover { transform: translateY(-1px); opacity: .95; }

/* Profile Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 41, 0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: none;
  background: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.alert-banner {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.alert-banner.success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.alert-banner.error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.page-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid, .about-grid, .principal-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-circle-frame { width: min(320px, 85vw); }
  .hero-text-col { padding-top: 10px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-card.span-2 { grid-column: span 2; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .visitor-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .container { padding: 0 14px; }
  .overlap-container { padding: 0 6px !important; }
  .overlap-card {
    padding: 20px 15px;
    margin: -34px 0 36px;
    border-radius: 18px;
    max-width: 100%;
  }
  .breadcrumb { display: none !important; }
  .program-slide { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .program-controls { justify-content: center; }
  .news-grid, .dir-grid, .footer-grid, .form-grid-2, .contact-dual-actions, .visitor-stats-grid { grid-template-columns: 1fr; }
  .video-arrow.prev { left: 8px; }
  .video-arrow.next { right: 8px; }
  .hero-float-badge { top: 8px; right: 0; padding: 8px 12px; }
  .back-desktop-icon, .back-label-text { display: none; }
  .back-mobile-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--muted);
    color: var(--fg);
  }
  .cta-banner { padding: 42px 20px; border-radius: 22px; }
  .cta-actions { gap: 10px; }
  .cta-actions .btn-white,
  .cta-actions .btn-ghost-white {
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 10px;
  }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .share-minimal-icons { gap: 14px; }
  .share-ico-btn { width: 28px; height: 28px; }
  .share-ico-btn svg { width: 14.5px; height: 14.5px; }
  .btn-filter-search { display: none !important; }
  #gallery.section { padding-top: 28px; padding-bottom: 44px; }
}
