/* ===================================================================
   SMPN 2 JEMBER — EXACT MOCKUP STYLESHEET
   Accurate 1:1 match with Desktop & Mobile Reference Designs
   =================================================================== */

/* ---------- CSS VARIABLES & ROOT ---------- */
:root {
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Color Palette */
  --color-primary: #1d4e89;
  --color-navy: #0f2a4a;
  --color-dark-navy: #0b1f3a;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
  --color-cyan: #38bdf8;
  --color-gold: #f0a202;
  --color-gold-hover: #d97706;

  /* Theme Tokens (Light Mode Default - Pure Crisp White) */
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #ffffff;
  --bg-input: #ffffff;

  --border-light: #e2e8f0;
  --border-card: #e5e9f0;
  --border-subtle: rgba(15, 42, 74, 0.08);

  --text-title: #0f2a4a;
  --text-main: #1e293b;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(15, 42, 74, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 16px 36px -8px rgba(15, 42, 74, 0.12);
  --shadow-card: 0 4px 18px rgba(15, 42, 74, 0.06);

  --header-bg: rgba(255, 255, 255, 0.95);
  --header-border: #e2e8f0;
}

html.dark,
body.dark {
  --bg-body: #0b1320;
  --bg-surface: #0f1a2e;
  --bg-card: #132238;
  --bg-subtle: #16243d;
  --bg-input: #1a2c47;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --text-title: #f8fafc;
  --text-main: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.4);

  --header-bg: rgba(11, 19, 32, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.drawer-open {
  overflow: hidden;
}

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

/* Performance: isolate reflow per section */
section {
  contain: layout paint;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 3rem);
  padding-right: clamp(1.25rem, 3.5vw, 3rem);
}

/* Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #f0a202);
  z-index: 9999;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ---------- HEADER & NAVBAR ---------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 42, 74, 0.08);
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 3rem);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.05vw, 1.25rem);
}

.nav-item {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--color-blue);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--color-blue);
  border-radius: 99px;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-box {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  background: var(--bg-surface);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 36px -10px rgba(15, 42, 74, 0.15);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 101;
}

.nav-dropdown:hover .dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 0.5rem;
}

.dropdown-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-blue);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--color-blue);
}

.icon-sun { display: none; }
.icon-moon { display: block; }
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }

.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-blue);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}

.btn-cta-nav:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* Mobile Toggle Wrap */
.mobile-toggle-wrap {
  display: none;
}

.hamburger-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger-btn span {
  width: 1.15rem;
  height: 2px;
  background-color: var(--text-title);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 20px 40px -10px rgba(15, 42, 74, 0.18);
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mobile-drawer.open {
  max-height: calc(100dvh - 4.5rem);
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 1;
}

.mobile-drawer-inner {
  padding: 0.85rem clamp(1rem, 3.5vw, 1.5rem) 2rem clamp(1rem, 3.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.18s ease;
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-blue);
  font-weight: 700;
}

.mobile-nav-link svg {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover svg,
.mobile-nav-link.active svg {
  color: var(--color-blue);
}

/* Mobile Accordion Sub-Menus */
.mobile-dropdown-wrap {
  display: flex;
  flex-direction: column;
}

button.mobile-dropdown-trigger {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.mobile-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
}

.mobile-dropdown-wrap.open .mobile-chevron {
  transform: rotate(180deg) !important;
  color: var(--color-blue) !important;
}

.mobile-dropdown-wrap.open .mobile-dropdown-trigger {
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-blue);
  font-weight: 700;
}

.mobile-sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
  padding-left: 0.85rem;
  margin-left: 0.75rem;
  border-left: 2px solid rgba(37, 99, 235, 0.25);
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.25s ease;
}

.mobile-dropdown-wrap.open .mobile-sub-menu {
  max-height: 280px;
  opacity: 1;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: 0.5rem;
  transition: all 0.18s ease;
}

.mobile-sub-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-blue);
  transform: translateX(3px);
}

.sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-blue);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.mobile-sub-link:hover .sub-dot {
  opacity: 1;
  transform: scale(1.4);
}

.mobile-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.5rem;
  border-radius: 0.65rem;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-action-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

.mobile-drawer-footer {
  margin-top: 0.85rem;
}

.btn-cta-mobile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1d4e89 0%, #2563eb 100%);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-mobile:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #0b1f3a;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04) translateZ(0);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.1, 1, 0.1, 1);
  pointer-events: none;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 42, 74, 0.95) 0%,
    rgba(15, 42, 74, 0.88) 45%,
    rgba(15, 42, 74, 0.72) 75%,
    rgba(15, 42, 74, 0.5) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: inherit;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  flex: 1;
}

.hero-text-block {
  color: #ffffff;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: #f1f5f9;
}

.gold-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-heading {
  font-size: clamp(2.4rem, 4.5vw, 3.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: #ffffff;
  min-height: 1.18em;
}

.typewriter-cursor {
  display: inline-block;
  width: 4px;
  height: 0.82em;
  background: linear-gradient(180deg, #38bdf8 0%, #60a5fa 100%);
  margin-left: 6px;
  vertical-align: -0.04em;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  animation: typewriterBlink 0.8s infinite;
}

@keyframes typewriterBlink {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.accent-gradient-text {
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.hero-paragraph {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-blue);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.65rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.play-icon-circle {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 42, 74, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.65rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

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

/* Floating Video Card (Right) */
.hero-video-card-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 1rem;
}

.hero-video-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.25rem;
  padding: 0.95rem;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.hero-video-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.18);
}

.video-thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #091a30;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hero-video-card:hover .video-thumb-img {
  transform: scale(1.05);
}

.video-play-btn-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease;
}

.hero-video-card:hover .video-play-btn-pulse {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card-body {
  padding: 0.85rem 0.35rem 0.35rem 0.35rem;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.video-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Slider Dots — pinned to bottom of hero */
.hero-slider-pagination {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 20;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
  width: 26px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Hero Bottom Curve */
.hero-bottom-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 32px;
  line-height: 0;
}

.hero-bottom-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- CYBER THREAT MAP (CYBER ATTACK BACKGROUND) ---------- */
.cyber-threat-zone {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-body);
  /* Digital High-Tech Grid Pattern */
  background-image: 
    radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 0 0;
}

html.dark .cyber-threat-zone,
body.dark .cyber-threat-zone {
  background-image: 
    radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
}

.cyber-sticky-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.cyber-attack-canvas {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  pointer-events: none;
  will-change: contents;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cyber-threat-zone > section {
  position: relative;
  z-index: 2;
  contain: layout style;
}

/* Ultra-crisp solid cards (no expensive real-time GPU blur passes during scroll) */
.cyber-threat-zone .stats-bar-card,
.cyber-threat-zone .feature-card,
.cyber-threat-zone .news-main-grid,
.cyber-threat-zone .facility-showcase-card {
  background: var(--bg-card);
}

/* ---------- STATS BAR (4 COLUMNS) ---------- */
.stats-bar-section {
  position: relative;
  z-index: 20;
  margin-top: -1rem;
  padding-bottom: 2.5rem;
}

.stats-bar-card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.75rem 1.25rem;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0 0.75rem;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.stat-icon-gold { background: rgba(240, 162, 2, 0.12); color: #f0a202; }
.stat-icon-cyan { background: rgba(14, 165, 233, 0.1); color: #0284c7; }
.stat-icon-green { background: rgba(16, 185, 129, 0.1); color: #059669; }

.stat-text-wrap {
  display: flex;
  flex-direction: column;
}

.stat-number-val {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-title-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ===================================================================
   PROFIL SEKOLAH (TENTANG KAMI & VISI MISI)
   =================================================================== */
.school-profile-section {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}

.profile-header-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 1rem;
}

.badge-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.profile-main-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.profile-header-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

/* 2-Column Showcase Grid */
.profile-showcase-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 2.75rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Left: Campus Photo Card with Floating Badges */
.profile-card-glass {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 16px 40px -10px rgba(15, 42, 74, 0.12);
}

.profile-photo-container {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
}

.profile-campus-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card-glass:hover .profile-campus-img {
  transform: scale(1.05);
}

.profile-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 42, 74, 0.1) 0%, rgba(15, 42, 74, 0.6) 100%);
}

.profile-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 42, 74, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 0.5rem 1.35rem 0.5rem 0.5rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.profile-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(37, 99, 235, 0.9);
}

.profile-play-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.6);
}

.profile-play-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Floating Badges */
.profile-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  padding: 0.75rem 1.15rem;
  box-shadow: 0 12px 30px rgba(15, 42, 74, 0.16);
  z-index: 6;
  transition: transform 0.3s ease;
}

html.dark .profile-floating-badge,
body.dark .profile-floating-badge {
  background: rgba(19, 34, 56, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.profile-card-glass:hover .profile-floating-badge {
  transform: translateY(-2px);
}

.badge-top-left {
  top: 1.25rem;
  left: 1.25rem;
}

.badge-bottom-right {
  bottom: 1.25rem;
  right: 1.25rem;
}

.badge-icon-gold {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(240, 162, 2, 0.15);
  color: #f0a202;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-blue {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-text-group {
  display: flex;
  flex-direction: column;
}

.badge-heading {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.2;
}

.badge-subtext {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Right Column Details */
.profile-lead-box {
  margin-bottom: 1.75rem;
}

.profile-lead-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.profile-lead-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* 3 Core Pillars Stack */
.profile-pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.75rem;
}

.profile-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-pillar-item:hover {
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.pillar-icon-box {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.pillar-cyan { background: rgba(14, 165, 233, 0.1); color: #0284c7; }
.pillar-gold { background: rgba(240, 162, 2, 0.12); color: #f0a202; }

.pillar-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.pillar-description {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Metrics Strip */
.profile-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.metric-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-bold-value {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--color-blue);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-label-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.metric-strip-divider {
  width: 1px;
  height: 2rem;
  background: var(--border-subtle);
}

/* Visi & Misi Bento Grid */
.visi-misi-bento {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.75rem;
  align-items: stretch;
  margin-top: 1rem;
}

.bento-visi-card {
  background: linear-gradient(145deg, #0f2a4a 0%, #1d4e89 100%);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(15, 42, 74, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bento-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-cyan {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.icon-gold {
  background: rgba(240, 162, 2, 0.2);
  color: #f0a202;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

.bento-visi-quote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 2rem;
}

.bento-visi-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.visi-sparkle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.bento-misi-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bento-misi-card .bento-tag {
  color: var(--text-title);
}

.bento-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  flex: 1;
}

.misi-point-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem;
  border-radius: 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.misi-point-box:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.misi-point-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--color-blue);
}

.misi-point-txt {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.55;
}

/* ---------- 5 FEATURE HIGHLIGHTS CARDS ---------- */
.features-row-section {
  padding-bottom: 3.5rem;
}

.features-scroll-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.15rem;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.feature-icon-box {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.feature-icon-purple { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.feature-icon-gold { background: rgba(240, 162, 2, 0.12); color: #f0a202; }
.feature-icon-teal { background: rgba(13, 148, 136, 0.1); color: #0d9488; }
.feature-icon-violet { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.feature-arrow-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.feature-card:hover .feature-arrow-btn {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
  transform: translateX(2px);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ---------- SECTION HEADERS ---------- */
.section-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 900;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-blue);
  transition: transform 0.2s ease;
}

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

/* ---------- BERITA & PRESTASI (SPLIT SECTION) ---------- */
.news-prestasi-section {
  padding-bottom: 4rem;
}

.news-prestasi-grid {
  display: grid;
  grid-template-columns: 1.9fr 0.62fr;
  gap: 2rem;
  align-items: flex-start;
}

/* Main News Column */
.news-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  height: 100%;
}

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

.featured-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 0.85rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.news-featured-card:hover .featured-img-cover {
  transform: scale(1.05);
}

.date-badge-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 42, 74, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.featured-content-wrap {
  display: flex;
  flex-direction: column;
}

.news-category-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.featured-article-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.news-featured-card:hover .featured-article-title {
  color: var(--color-blue);
}

.featured-article-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Side Mini News */
.news-side-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.news-side-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.news-side-item:hover {
  background: var(--bg-subtle);
}

.side-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
}

.side-item-content {
  display: flex;
  flex-direction: column;
}

.side-item-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.side-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prestasi Column (Deep Navy Box) */
.prestasi-navy-card {
  position: relative;
  background: linear-gradient(145deg, #0f2a4a 0%, #07172c 100%);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: auto;
  box-shadow: 0 10px 30px rgba(15, 42, 74, 0.2);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prestasi-navy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 42, 74, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
}

.prestasi-navy-card:hover .prestasi-circle-cta {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: scale(1.08) translateX(3px);
}

.trophy-illustration {
  margin-bottom: 0.5rem;
}

.trophy-illustration svg {
  width: 36px;
  height: 36px;
}

.prestasi-main-val {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.prestasi-sub-val {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.prestasi-note {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.prestasi-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.prestasi-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

.check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.8);
}

.prestasi-circle-cta {
  align-self: flex-end;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease;
  margin-top: auto;
}

.prestasi-circle-cta:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: scale(1.08) translateX(2px);
}

/* ---------- FASILITAS SEKOLAH (5 CARDS) ---------- */
.facilities-showcase-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
}

.facilities-showcase-section .cyber-sticky-canvas-wrap {
  z-index: 1;
}

.facilities-showcase-section .container {
  position: relative;
  z-index: 2;
}

.facilities-cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.facility-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.facility-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.facility-img-box {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

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

.facility-showcase-card:hover .facility-cover {
  transform: scale(1.08);
}

.facility-bottom-bar {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}

.facility-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
}

.facility-arrow-circle {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.facility-showcase-card:hover .facility-arrow-circle {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}

/* ---------- PPDB BANNER (BOTTOM SECTION) ---------- */
.ppdb-cta-banner-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
}

.ppdb-cta-banner-section .cyber-sticky-canvas-wrap {
  z-index: 1;
}

.ppdb-cta-banner-section .container {
  position: relative;
  z-index: 2;
}

.ppdb-banner-card {
  position: relative;
  background: #08264d;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 42, 74, 0.25);
  color: #ffffff;
  min-height: 190px;
}

.ppdb-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ppdb-arch-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ppdb-banner-card:hover .ppdb-arch-photo {
  transform: scale(1.02);
}

.ppdb-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 38, 77, 0.1) 0%,
    rgba(8, 38, 77, 0.5) 28%,
    rgba(8, 38, 77, 0.78) 58%,
    rgba(8, 38, 77, 0.3) 100%
  );
  pointer-events: none;
}

.ppdb-banner-content {
  position: relative;
  z-index: 10;
  padding: clamp(2rem, 3.8vw, 3rem) clamp(1.75rem, 3.5vw, 3.5rem) clamp(2rem, 3.8vw, 3.5rem) clamp(2.5rem, 21vw, 21rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.25rem;
}

.ppdb-mobile-megaphone {
  display: none;
}

.ppdb-small-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  display: block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ppdb-main-title {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.ppdb-main-desc {
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  color: #f1f5f9;
  max-width: 38rem;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.btn-ppdb-white {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #0c3260 !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ppdb-white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: #f8fafc;
}

.btn-ppdb-white svg {
  color: #1d4e89;
  transition: transform 0.25s ease;
}

.btn-ppdb-white:hover svg {
  transform: translateX(4px);
}

/* ---------- FOOTER (MODERN SMPN 2 JEMBER) ---------- */
.footer {
  position: relative;
  background: radial-gradient(circle at 85% 20%, #0d2f5d 0%, #061a35 55%, #041226 100%);
  color: #ffffff;
  padding-top: 4.5rem;
  overflow: hidden;
}

/* Background Building, Wave, & Decorative Elements */
.footer-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.footer-wave-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 160px;
  pointer-events: none;
  opacity: 0.5;
}

.footer-building-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 480px;
  height: 340px;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(circle at 10% 85%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(circle at 10% 85%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 80%);
}

.footer-building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom left;
}

.footer-building-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 18, 38, 0.95), transparent 70%);
}

.footer-corner-motto {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 240px;
  height: 170px;
  pointer-events: none;
  z-index: 10;
}

.footer-corner-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 -4px 12px rgba(0, 102, 204, 0.3));
}

.footer-motto-text {
  position: absolute;
  bottom: 24px;
  left: 20px;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transform: rotate(-10deg);
}

.footer-motto-text span {
  display: block;
}

.footer-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

/* 4-Column Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr 1.35fr 1.25fr;
  gap: 2.75rem;
  padding-bottom: 3.5rem;
}

/* Col 1: Brand & Identity */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.footer-shield-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.footer-shield-logo:hover {
  transform: translateY(-2px);
}

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

.footer-title-wrap h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-title-wrap p {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.footer-school-bio {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  max-width: 380px;
}

.footer-badges-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e0f2fe;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.f-badge:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.f-badge svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* Column Header with Cyan Bar */
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.35rem;
}

.title-cyan-bar {
  display: inline-block;
  width: 3.5px;
  height: 18px;
  background: #00a8ff;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.7);
}

/* Col 2: Navigation Menu */
.footer-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.f-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.15rem 0;
}

.f-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.f-nav-left svg {
  color: #7dd3fc;
  opacity: 0.85;
  transition: transform 0.2s ease, color 0.2s ease;
}

.f-chevron {
  color: #64748b;
  font-size: 0.75rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.f-nav-item:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.f-nav-item:hover .f-nav-left svg {
  color: #38bdf8;
  opacity: 1;
}

.f-nav-item:hover .f-chevron {
  color: #38bdf8;
  transform: translateX(3px);
}

/* Col 3: Contact Card */
.footer-contact-card {
  background: rgba(15, 34, 64, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1.15rem;
  padding: 1.35rem;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(2, 10, 24, 0.35);
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.f-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.f-contact-icon-bubble {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0077e6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 119, 230, 0.4);
}

.btn-footer-maps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 0.75rem;
  color: #e0f2fe;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-footer-maps:hover {
  background: rgba(0, 119, 230, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-maps-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-maps-left svg {
  color: #38bdf8;
}

/* Col 4: Ikuti Kami & PPDB CTA */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-circle-btn:hover {
  background: #0077e6;
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 119, 230, 0.4);
}

.footer-quote-box {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.quote-mark {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  color: #00a8ff;
  font-family: Georgia, serif;
  flex-shrink: 0;
  margin-top: -4px;
}

.quote-text {
  font-size: 0.83rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.55;
}

/* PPDB Glowing Card */
.footer-ppdb-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(135deg, #0070f3 0%, #0056b3 100%);
  border-radius: 1rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 112, 243, 0.45);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-ppdb-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 112, 243, 0.65);
}

.f-ppdb-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.f-ppdb-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.f-ppdb-text {
  display: flex;
  flex-direction: column;
}

.f-ppdb-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.f-ppdb-sub {
  font-size: 0.76rem;
  color: #dbeafe;
  font-weight: 500;
}

.f-ppdb-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #0070f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.footer-ppdb-card:hover .f-ppdb-arrow {
  transform: translateX(3px);
}

/* Bottom Bar */
.footer-bottom-wrapper {
  position: relative;
  z-index: 20;
  background: rgba(3, 14, 29, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.84rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copyright {
  color: #94a3b8;
  font-size: 0.84rem;
  padding-left: 215px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #38bdf8;
}

.legal-divider {
  color: #475569;
}

.footer-signature-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-right: 1.5rem;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-signature-wrap:hover {
  transform: translateY(-2px) scale(1.04);
}

.signature-text {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.02em;
  transform: rotate(-3deg);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.signature-text:hover,
.footer-signature-wrap:hover .signature-text {
  color: #7dd3fc;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.signature-swoosh {
  margin-top: -4px;
  filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.3));
  transition: filter 0.2s ease;
}

.footer-signature-wrap:hover .signature-swoosh {
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.65));
}

/* ---------- FLOATING BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 4.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--color-blue-hover);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1rem;
    width: 2.35rem;
    height: 2.35rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  }
}

/* ---------- MODALS (SEARCH & VIDEO) ---------- */
.search-modal,
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.search-modal.active,
.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-backdrop,
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 74, 0.7);
  backdrop-filter: blur(8px);
}

.search-modal-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-title);
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tag-pill {
  background: var(--bg-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--color-blue);
  font-weight: 600;
}

/* Video Modal */
.video-modal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 820px;
}

.video-close-btn {
  position: absolute;
  top: -2.85rem;
  right: 0;
  color: #ffffff;
  padding: 0.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- RESPONSIVE MEDIA QUERIES (MOBILE PHONE LIKE SCREENSHOT) ---------- */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .header-actions { display: none; }
  .mobile-toggle-wrap { display: block; }
  .mobile-drawer { display: block; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-video-card-wrap {
    justify-content: center;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .hero-video-card {
    max-width: 440px;
    margin: 0 auto;
  }

  .stats-bar-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }

  .features-scroll-wrap {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-prestasi-grid {
    grid-template-columns: 1fr;
  }

  .facilities-cards-row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* School Profile Showcase */
  .profile-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .visi-misi-bento {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 1.75rem;
    padding-bottom: clamp(4.5rem, 10vw, 6rem);
  }
  .hero-bg-img {
    object-position: center 25%;
  }

  .hero-heading {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem);
    line-height: 1.18;
  }

  .hero-tagline {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .hero-paragraph {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero-btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .btn-hero-primary,
  .btn-hero-ghost {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
  }

  .hero-video-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  /* Stats Bar on Mobile - Symmetrical 2x2 Grid, No Cutoff */
  .stats-bar-section {
    margin-top: -1.25rem;
    padding-bottom: 2rem;
  }
  .stats-bar-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.5rem 0.25rem;
    border-radius: 1.15rem;
    box-shadow: 0 4px 20px rgba(15, 42, 74, 0.08);
    overflow: hidden;
  }
  .stat-item {
    padding: 0.85rem 0.65rem;
    gap: 0.65rem;
    border-right: none;
    border-bottom: none;
    min-width: 0;
    align-items: center;
  }
  /* Cross divider (+) for 2x2 layout */
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) {
    border-right: 1px solid var(--border-subtle);
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .stat-icon-wrap {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
  }
  .stat-icon-wrap svg {
    width: 20px;
    height: 20px;
  }
  .stat-text-wrap {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .stat-number-val {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
  }
  .stat-title-label {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0.15rem;
    white-space: normal;
    word-break: break-word;
  }
  .stat-subtext {
    display: none;
  }

  /* School Profile Mobile Styles */
  .school-profile-section {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }
  .profile-header-centered {
    margin-bottom: 2rem;
  }
  .profile-section-title {
    font-size: 1.75rem;
  }
  .profile-photo-container {
    height: 290px;
  }
  .profile-floating-badge {
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
  }
  .badge-icon-gold, .badge-icon-blue {
    width: 2rem;
    height: 2rem;
  }
  .badge-heading {
    font-size: 0.8rem;
  }
  .badge-subtext {
    font-size: 0.65rem;
  }
  .badge-top-left {
    top: 0.75rem;
    left: 0.75rem;
  }
  .badge-bottom-right {
    bottom: 0.75rem;
    right: 0.75rem;
  }
  .profile-play-btn {
    padding: 0.5rem 0.95rem;
    gap: 0.5rem;
  }
  .profile-play-circle {
    width: 2.25rem;
    height: 2.25rem;
  }
  .profile-play-text {
    font-size: 0.8rem;
  }
  .profile-lead-heading {
    font-size: 1.2rem;
  }
  .profile-lead-text {
    font-size: 0.88rem;
  }
  .profile-metrics-strip {
    padding: 0.85rem 0.5rem;
  }
  .metric-bold-value {
    font-size: 1.35rem;
  }
  .metric-label-text {
    font-size: 0.68rem;
  }
  .bento-visi-card, .bento-misi-card {
    padding: 1.6rem 1.25rem;
    border-radius: 1.25rem;
  }
  .bento-visi-quote {
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
  .bento-misi-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Features scroll on Mobile */
  .features-scroll-wrap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .feature-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }

  /* News Main Grid on Mobile */
  .news-main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }
  .featured-img-wrap {
    height: 190px;
  }
  .side-thumb {
    width: 4rem;
    height: 4rem;
  }
  .side-item-title {
    font-size: 0.82rem;
  }

  /* Facilities row on Mobile */
  .facilities-cards-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .facility-showcase-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }

  /* PPDB Banner on Mobile */
  .ppdb-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.25rem;
  }
  .ppdb-main-title {
    font-size: 1.6rem;
  }
  .ppdb-banner-gradient {
    background: linear-gradient(180deg, rgba(8, 38, 77, 0.75) 0%, rgba(8, 38, 77, 0.94) 100%);
  }
  .ppdb-mobile-megaphone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    margin: 0 auto 1rem auto;
  }
  .btn-ppdb-white {
    width: 100%;
    justify-content: center;
  }

  /* Footer Mobile */
  .footer {
    padding-top: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-bottom: 2.25rem;
  }
  .footer-corner-motto {
    display: none;
  }
  .footer-building-wrap {
    opacity: 0.15;
    width: 280px;
    height: 200px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding-bottom: 2.5rem;
  }
  .footer-copyright {
    padding-left: 0;
  }
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .hero-heading {
    font-size: 1.75rem;
  }
  .stats-bar-card {
    padding: 0.35rem 0.15rem;
    border-radius: 1rem;
  }
  .stat-item {
    padding: 0.75rem 0.45rem;
    gap: 0.5rem;
  }
  .stat-icon-wrap {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
  }
  .stat-icon-wrap svg {
    width: 17px;
    height: 17px;
  }
  .stat-number-val {
    font-size: 1.2rem;
  }
  .stat-title-label {
    font-size: 0.72rem;
  }
  .feature-card {
    flex: 0 0 210px;
  }
  .facility-showcase-card {
    flex: 0 0 180px;
  }
}

/* ==========================================================================
   PROFIL SEKOLAH DEDICATED PAGE STYLES (MODERN BENTO & CYBER AESTHETICS)
   ========================================================================== */

/* Page Hero Header */
.page-hero-section {
  position: relative;
  padding: 4rem 0 3rem 0;
  background: linear-gradient(135deg, #061528 0%, #0c2545 50%, #153e70 100%);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(240, 162, 2, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.page-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.25rem;
}

.page-breadcrumbs a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s;
}

.page-breadcrumbs a:hover {
  color: #ffffff;
}

.page-breadcrumbs-separator {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
}

.page-hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

/* Quick Jump Pill Navigation */
.quick-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  max-width: fit-content;
  margin: 1.5rem auto 0 auto;
}

.quick-nav-pill {
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.quick-nav-pill:hover,
.quick-nav-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

/* Sambutan Kepala Sekolah Section */
.sambutan-section {
  padding: 5rem 0 3.5rem 0;
  position: relative;
}

.sambutan-card-glass {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.75rem;
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.sambutan-card-glass::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* === PHOTO FRAME WRAPPER (outer dashed ring) === */
.sambutan-photo-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 12px;
  border: 3px dashed rgba(240, 162, 2, 0.75);
  border-radius: 1.8rem;
  background: transparent;
}

/* Corner decorations on wrapper */
.sambutan-photo-wrapper::before,
.sambutan-photo-wrapper::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(240, 162, 2, 0.4);
}
.sambutan-photo-wrapper::before { top: -5px; left: -5px; }
.sambutan-photo-wrapper::after  { bottom: -5px; right: -5px; }

.sambutan-photo-box {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 4px solid #2563eb;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.2),
    0 20px 44px -8px rgba(15, 42, 74, 0.35);
  animation: photoPulseGlow 3s ease-in-out infinite;
}

@keyframes photoPulseGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,99,235,0.20), 0 20px 44px -8px rgba(15,42,74,0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(37,99,235,0.35), 0 24px 52px -8px rgba(15,42,74,0.45); }
}

.sambutan-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.sambutan-photo-box:hover .sambutan-img {
  transform: scale(1.03);
}

.sambutan-badge-float {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(15, 42, 74, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  text-align: center;
}

.badge-float-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f0a202;
  display: block;
}

.badge-float-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.sambutan-content-wrap {
  position: relative;
}

.sambutan-quote-icon {
  position: absolute;
  top: -0.5rem;
  right: 0;
  width: 4rem;
  height: 4rem;
  color: rgba(37, 99, 235, 0.08);
  pointer-events: none;
}

.sambutan-headline {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.sambutan-paragraph {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.sambutan-sign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.headmaster-identity {
  display: flex;
  flex-direction: column;
}

.headmaster-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-title);
}

.headmaster-nip {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.headmaster-stamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Identitas Sekolah Bento Grid */
.identitas-section {
  padding: 3.5rem 0;
  background: var(--bg-subtle);
}

.identitas-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.identitas-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.identitas-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.identitas-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.identitas-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.identitas-icon-wrap.icon-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.identitas-icon-wrap.icon-gold { background: rgba(240, 162, 2, 0.14); color: #f0a202; }
.identitas-icon-wrap.icon-cyan { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.identitas-icon-wrap.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.identitas-label-sm {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.identitas-val-bold {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
}

.identitas-detail-txt {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Strategic Goals Bento Row */
.goals-section-wrap {
  margin-top: 2rem;
}

.goals-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.goal-pill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.15rem;
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.goal-pill-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.goal-num-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--color-blue);
}

.goal-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.3;
}

.goal-card-desc {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Sejarah & Timeline Section */
.sejarah-section {
  padding: 5rem 0;
  position: relative;
}

.timeline-flow-wrap {
  position: relative;
  max-width: 920px;
  margin: 3rem auto 0 auto;
}

.timeline-flow-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.6) 50%, rgba(37, 99, 235, 0.1) 100%);
  transform: translateX(-50%);
}

.timeline-node-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2.5rem;
  width: 50%;
}

.timeline-node-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  justify-content: flex-start;
}

.timeline-dot-anchor {
  position: absolute;
  right: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid #2563eb;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  z-index: 3;
}

.timeline-node-item:nth-child(even) .timeline-dot-anchor {
  right: auto;
  left: -13px;
}

.timeline-card-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  width: calc(100% - 35px);
  transition: all 0.25s ease;
}

.timeline-node-item:hover .timeline-card-content {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.timeline-year-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  margin-bottom: 0.65rem;
}

.timeline-heading {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.45rem;
}

.timeline-text {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Faculty & Management Section */
.faculty-section {
  padding: 4.5rem 0;
  background: var(--bg-subtle);
}

.faculty-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.faculty-dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

.faculty-dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.faculty-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.faculty-dept-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.faculty-dept-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.faculty-dept-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Direktori Dewan Guru Grid (Dynamic CMS) */
.faculty-directory-block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-card);
}

.faculty-dir-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.faculty-dir-title-wrap h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.01em;
  margin-top: 0.35rem;
}

.faculty-dir-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 580px;
}

.guru-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guru-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.guru-filter-btn:hover {
  background: #f1f5f9;
  color: var(--text-title);
  border-color: #cbd5e1;
}

.guru-filter-btn.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.faculty-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.faculty-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.75rem;
}

.guru-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.guru-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guru-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.3);
}

.guru-card:hover::before {
  opacity: 1;
}

.guru-avatar-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #bae6fd;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.guru-avatar-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.guru-card:hover .guru-avatar-img {
  transform: scale(1.06);
}

.guru-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4e89 0%, #0284c7 100%);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.guru-badge-jabatan {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0284c7;
  margin-bottom: 0.65rem;
  display: inline-block;
  line-height: 1.2;
}

.guru-badge-pimpinan {
  background: #fef3c7;
  color: #b45309;
}

.guru-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.guru-gelar {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 0.5rem;
}

.guru-divider {
  width: 36px;
  height: 2px;
  background: var(--border-card);
  margin: 0.4rem auto 0.65rem;
  border-radius: 2px;
}

.guru-mapel {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.35rem;
}

.guru-nip {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.02em;
}

.guru-pendidikan {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* CTA Register Banner in Profile Page */
.profile-cta-section {
  padding: 4.5rem 0;
}

.profile-cta-card {
  background: linear-gradient(135deg, #091e3a 0%, #173d6b 100%);
  border-radius: 1.75rem;
  padding: 3rem 2.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 20px 40px -10px rgba(15, 42, 74, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-left-content {
  max-width: 620px;
}

.cta-pill-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.cta-title-bold {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.cta-desc-white {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.cta-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-shrink: 0;
}

.btn-cta-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #f0a202 0%, #d48b02 100%);
  color: #0c1a2c;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.95rem 1.85rem;
  border-radius: 0.85rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(240, 162, 2, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(240, 162, 2, 0.5);
}

.btn-cta-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.65rem;
  border-radius: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.btn-cta-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* RESPONSIVE FOR PROFIL SEKOLAH PAGE */
@media (max-width: 1024px) {
  .sambutan-card-glass {
    grid-template-columns: 290px 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .sambutan-img {
    height: 330px;
  }
  .identitas-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .goals-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .faculty-summary-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-cta-card {
    flex-direction: column;
    text-align: center;
  }
  .cta-left-content {
    max-width: 100%;
  }
  .cta-btn-group {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-hero-section {
    padding: 3rem 0 2rem 0;
  }
  .quick-nav-bar {
    display: none; /* Mobile users use page scroll */
  }
  .sambutan-card-glass {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1.25rem;
    border-radius: 1.5rem;
  }
  .sambutan-photo-wrapper {
    max-width: 320px;
    margin: 0 auto;
    padding: 10px;
    border: 3px dashed rgba(240, 162, 2, 0.75);
    border-radius: 1.8rem;
  }
  .sambutan-photo-box {
    position: relative;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 4px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 20px 44px -8px rgba(15, 42, 74, 0.35);
    animation: photoPulseGlow 3s ease-in-out infinite;
  }
  .sambutan-photo-box .sambutan-img,
  .sambutan-img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    display: block;
  }
  .sambutan-badge-float {
    position: absolute !important;
    bottom: 0.85rem !important;
    left: 0.85rem !important;
    right: 0.85rem !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0.65rem 0.85rem !important;
    background: rgba(15, 42, 74, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .sambutan-badge-float .badge-float-title {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #f0a202 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.2rem !important;
    display: block !important;
  }
  .sambutan-badge-float .badge-float-subtitle {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    display: block !important;
    text-transform: none !important;
  }
  .identitas-bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .goals-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .timeline-flow-wrap::before {
    left: 20px;
  }
  .timeline-node-item {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 45px;
    justify-content: flex-start;
  }
  .timeline-dot-anchor {
    left: 7px !important;
    right: auto !important;
  }
  .timeline-card-content {
    width: 100%;
    padding: 1.25rem;
  }
  .faculty-summary-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cta-btn-group {
    flex-direction: column;
  }
  .btn-cta-gold, .btn-cta-glass {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .page-hero-title {
    font-size: 1.75rem;
  }
  .sambutan-headline {
    font-size: 1.3rem;
  }
  .sambutan-paragraph {
    font-size: 0.88rem;
  }
  .sambutan-photo-wrapper {
    max-width: 300px;
    margin: 0 auto;
    padding: 8px;
  }
  .sambutan-photo-box {
    max-width: 100%;
  }
  .sambutan-photo-box .sambutan-img,
  .sambutan-img {
    height: 380px;
  }
  .sambutan-badge-float {
    bottom: 0.75rem !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    padding: 0.55rem 0.75rem !important;
  }
  .sambutan-badge-float .badge-float-title {
    font-size: 0.82rem !important;
  }
  .sambutan-badge-float .badge-float-subtitle {
    font-size: 0.68rem !important;
  }
  .profile-cta-card {
    padding: 2rem 1.25rem;
  }
}

/* ==========================================================================
   BERITA PORTAL DEDICATED PAGE STYLES (MODERN NEWS & ARTICLES)
   ========================================================================== */

.news-portal-section {
  padding: 3.5rem 0 5rem 0;
  background: var(--bg-body);
}

/* Filter & Search Bar */
.news-filter-wrapper {
  margin-bottom: 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 42, 74, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.news-filter-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-headline-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.filter-label-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.filter-label-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.01em;
}

.news-count-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.news-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.news-category-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  flex: 1;
}

.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  line-height: 1.2;
}

.cat-filter-btn:hover {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--color-blue);
  transform: translateY(-1px);
  background: var(--bg-card);
}

.cat-filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.cat-count-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  line-height: 1;
}

.cat-filter-btn.active .cat-count-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.news-inline-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  box-shadow: var(--shadow-sm);
  min-width: 280px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-inline-search:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.news-inline-search svg {
  color: var(--text-muted);
  margin-right: 0.55rem;
  flex-shrink: 0;
}

.news-inline-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-title);
  width: 100%;
}

.news-search-clear {
  background: none;
  border: none;
  padding: 0 0.25rem;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: 1.15rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.news-search-clear:hover {
  color: #ef4444;
}

/* Empty State */
.news-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: 1.5rem;
  margin: 1.5rem 0;
}

.empty-state-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.empty-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}

.empty-reset-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Featured Hero Article */
.news-featured-hero {
  margin-bottom: 3.5rem;
}

.featured-hero-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(15, 42, 74, 0.18);
  border-color: rgba(37, 99, 235, 0.3);
}

.featured-hero-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.featured-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

.badge-headline-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  text-transform: uppercase;
}

.featured-hero-body {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.featured-meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.featured-meta-row .badge-cat-tag {
  white-space: nowrap;
  flex-shrink: 0;
}

.featured-meta-row .meta-separator {
  color: var(--border-card, #cbd5e1);
  user-select: none;
}

.badge-cat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.featured-hero-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.featured-hero-card:hover .featured-hero-title {
  color: var(--color-blue);
}

.featured-hero-desc {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: auto;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar-initials {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4e89 0%, #0f2a4a 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-title);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-blue);
  transition: gap 0.2s ease, color 0.2s ease;
}

.btn-read-more:hover {
  gap: 0.75rem;
  color: var(--color-blue-hover);
}

/* 2-Column Portal Layout (Main Feed + Sidebar) */
.news-portal-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

/* Main Grid of News Cards */
.portal-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.portal-news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portal-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.portal-card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.portal-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.card-cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 42, 74, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portal-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.portal-meta-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.portal-news-card:hover .portal-card-title {
  color: var(--color-blue);
}

.portal-card-excerpt {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.portal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.95rem;
  margin-top: auto;
  gap: 0.75rem;
}

.portal-card-footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.portal-card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-blue, #2563eb);
  font-weight: 700;
  font-size: 0.76rem;
}

.portal-card-views svg {
  color: #0284c7;
  flex-shrink: 0;
}

.portal-stat-separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.portal-read-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Pagination Controls */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-1px);
}

.page-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.page-btn:disabled,
.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* News Sidebar Widgets */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.35rem;
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.widget-header-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.widget-icon-box {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Announcements Widget List */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.announcement-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(3px);
}

.announcement-date-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #2563eb;
}

.announcement-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.4;
}

/* Trending / Popular List */
.trending-news-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.trending-item:hover {
  transform: translateX(4px);
}

.trending-rank-num {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--border-card);
  line-height: 1;
  width: 1.75rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.trending-item:hover .trending-rank-num {
  color: var(--color-blue);
}

.trending-thumb-img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
}

.trending-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trending-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.trending-item:hover .trending-item-title {
  color: var(--color-blue);
}

.trending-item-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Newsletter Widget Card */
.newsletter-widget-card {
  background: linear-gradient(145deg, #0f2a4a 0%, #1d4e89 100%);
  color: #fff;
  border-radius: 1.35rem;
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.newsletter-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.newsletter-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 0.65rem;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: #1d4ed8;
}

/* Responsive Media Queries for News Portal */
@media (max-width: 1024px) {
  .news-portal-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .featured-hero-card {
    grid-template-columns: 1fr;
  }
  .featured-hero-img-wrap {
    min-height: 280px;
    height: 320px;
  }
  .featured-hero-body {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 860px) {
  .news-search-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1rem;
  }
  .news-inline-search {
    width: 100%;
    min-width: 0;
  }
  .news-category-pills {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .news-filter-wrapper {
    padding: 1rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
  }
  .news-filter-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .portal-news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .portal-card-img-wrap {
    height: 195px;
  }
  .portal-card-body {
    padding: 1.25rem;
  }
  .portal-card-title {
    font-size: 1.05rem;
  }
  .cat-filter-btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }
  .cat-count-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.38rem;
  }
  .featured-hero-img-wrap {
    height: 220px;
    min-height: 220px;
  }
  .featured-hero-body {
    padding: 1.35rem 1.15rem;
  }
  .featured-meta-row {
    gap: 0.35rem 0.55rem;
    font-size: 0.76rem;
    margin-bottom: 0.85rem;
  }
  .featured-meta-row > span {
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .featured-hero-title {
    font-size: 1.2rem;
    line-height: 1.35;
  }
  .featured-hero-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
  .featured-hero-footer .btn-read-more {
    width: auto;
    padding: 0.45rem 0.95rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .news-filter-wrapper {
    padding: 0.85rem;
  }
  .news-category-pills {
    gap: 0.4rem 0.35rem;
  }
  .cat-filter-btn {
    font-size: 0.75rem;
    padding: 0.38rem 0.72rem;
  }
  .filter-label-title {
    font-size: 0.88rem;
  }
  .news-count-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Dark mode compatibility for news portal */
.dark .news-filter-wrapper {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark .news-filter-top-bar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .filter-label-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.dark .news-count-pill {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.dark .cat-filter-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.dark .cat-filter-btn:hover {
  background: #24344d;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.dark .cat-filter-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.dark .cat-count-badge {
  background: rgba(255, 255, 255, 0.12);
}

.dark .news-inline-search {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
}

.dark .news-empty-state {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   HIGH-PERFORMANCE RENDERING OPTIMIZATIONS
   Skip off-screen layout calculations & boost FPS
   ========================================================================== */
.facility-grid,
.ekskul-grid,
.prestasi-grid,
.identitas-bento-grid,
.timeline-flow-wrap,
.footer-building-wrapper {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

/* =========================================================================
   NEWS DETAIL READER MODAL (ELEGAN, PROFESIONAL & RESPONSIVE)
   ========================================================================= */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  overflow: hidden;
}

.news-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.news-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 1.5rem;
  box-shadow: 0 25px 70px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(14px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.news-modal.active .news-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Mobile drag pill indicator */
.news-modal-drag-handle {
  display: none;
  width: 44px;
  height: 5px;
  border-radius: 9999px;
  background: var(--border-card, #cbd5e1);
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

/* Top Sticky Bar */
.news-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.65rem;
  border-bottom: 1px solid var(--border-card, #e2e8f0);
  background: var(--bg-card, #ffffff);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 0.75rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.news-modal-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.news-modal-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 11px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.news-modal-readtime {
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  white-space: nowrap;
}

.news-modal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.news-modal-btn-action {
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-card, #cbd5e1);
  color: var(--text-title, #334155);
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.news-modal-btn-action:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
}

.news-modal-btn-action:active {
  transform: scale(0.95);
}

.news-modal-close-btn {
  background: var(--bg-subtle, #f1f5f9);
  border: 1px solid transparent;
  color: var(--text-muted, #64748b);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.news-modal-close-btn:active {
  transform: scale(0.92);
}

/* Scrollable Content */
.news-modal-scroll {
  overflow-y: auto;
  padding: 1.85rem 2.25rem 2.5rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.news-modal-scroll::-webkit-scrollbar {
  width: 7px;
}

.news-modal-scroll::-webkit-scrollbar-track {
  background: var(--bg-subtle, #f1f5f9);
}

.news-modal-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.news-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.news-modal-header {
  margin-bottom: 1.6rem;
}

.news-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.32;
  color: var(--text-title, #0f172a);
  letter-spacing: -0.015em;
  margin-bottom: 1.15rem;
}

.news-modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-card, #f1f5f9);
}

.news-modal-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-modal-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4e89, #0284c7);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.news-modal-author-info {
  display: flex;
  flex-direction: column;
}

.news-modal-author-info .author-label {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-modal-author-info .author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title, #0f172a);
}

.news-modal-meta-chips {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.news-modal-meta-chips .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  white-space: nowrap;
}

/* Image Wrap */
.news-modal-img-wrap {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  margin-bottom: 1.6rem;
  background: var(--bg-subtle, #f1f5f9);
  border: 1px solid var(--border-card, rgba(226, 232, 240, 0.8));
  max-height: 420px;
}

.news-modal-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-modal-img-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* Lead Excerpt */
.news-modal-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-title, #1e293b);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--bg-subtle, #f8fafc);
  border-left: 4px solid #0284c7;
  border-radius: 0 0.85rem 0.85rem 0;
}

/* Article Body Typography */
.news-modal-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-body, #334155);
  margin-bottom: 2rem;
}

.news-modal-body p {
  margin-bottom: 1.35rem;
  text-align: justify;
}

.news-modal-body p:last-child {
  margin-bottom: 0;
}

/* Footer / Tags & Back Button */
.news-modal-footer {
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-card, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.news-modal-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-modal-tags .tag-label {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
}

.news-tag-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 9999px;
}

.news-modal-btn-back {
  background: linear-gradient(135deg, #1d4e89, #0284c7);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.45rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.news-modal-btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
  color: #ffffff;
}

.news-modal-btn-back:active {
  transform: scale(0.96);
}

/* Dark Mode Adapters */
html.dark .news-modal-dialog {
  background: var(--bg-card, #132238);
  border-color: var(--border-card, rgba(255, 255, 255, 0.1));
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html.dark .news-modal-topbar {
  background: var(--bg-card, #132238);
  border-color: var(--border-card, rgba(255, 255, 255, 0.08));
}
html.dark .news-modal-btn-action {
  background: var(--bg-subtle, #16243d);
  border-color: var(--border-light, rgba(255, 255, 255, 0.12));
  color: var(--text-main, #f1f5f9);
}
html.dark .news-modal-btn-action:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
html.dark .news-modal-close-btn {
  background: var(--bg-subtle, #16243d);
  color: var(--text-muted, #94a3b8);
}
html.dark .news-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
html.dark .news-modal-lead {
  background: rgba(2, 132, 199, 0.12);
  color: var(--text-title, #f8fafc);
  border-left-color: #38bdf8;
}
html.dark .news-modal-body {
  color: var(--text-body, #cbd5e1);
}
html.dark .news-modal-meta-row,
html.dark .news-modal-footer {
  border-color: var(--border-card, rgba(255, 255, 255, 0.08));
}
html.dark .news-tag-pill {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.3);
  color: #38bdf8;
}
html.dark .news-modal-scroll::-webkit-scrollbar-track {
  background: #0b1320;
}
html.dark .news-modal-scroll::-webkit-scrollbar-thumb {
  background: #1e293b;
}

/* =========================================================================
   RESPONSIVE DESIGN BREAKPOINTS FOR NEWS MODAL
   ========================================================================= */

/* Tablet & Medium Screens (<= 992px) */
@media (max-width: 992px) {
  .news-modal {
    padding: 1rem;
  }
  .news-modal-dialog {
    max-width: 94%;
    max-height: 90vh;
  }
  .news-modal-scroll {
    padding: 1.5rem 1.75rem 2.25rem;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .news-modal {
    padding: 0;
    align-items: flex-end; /* Modern mobile bottom sheet format */
  }
  .news-modal-dialog {
    max-width: 100%;
    width: 100%;
    max-height: 94vh;
    border-radius: 1.35rem 1.35rem 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .news-modal.active .news-modal-dialog {
    transform: translateY(0);
  }
  .news-modal-drag-handle {
    display: block;
  }
  .news-modal-topbar {
    padding: 0.65rem 1.15rem;
    gap: 0.5rem;
  }
  .news-modal-scroll {
    padding: 1.25rem 1.15rem 2rem;
  }
  .news-modal-title {
    font-size: clamp(1.2rem, 4.5vw, 1.55rem);
    line-height: 1.35;
    margin-bottom: 0.85rem;
  }
  .news-modal-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }
  .news-modal-img-wrap {
    max-height: 240px;
    border-radius: 0.85rem;
    margin-bottom: 1.15rem;
  }
  .news-modal-img {
    max-height: 240px;
  }
  .news-modal-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
  }
  .news-modal-body {
    font-size: 0.96rem;
    line-height: 1.75;
    margin-bottom: 1.65rem;
  }
  .news-modal-body p {
    text-align: left; /* Better flow on narrow screens */
    margin-bottom: 1.15rem;
  }
  .news-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 1.15rem;
  }
  .news-modal-btn-back {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }
}

/* Small Smartphone Screens (<= 480px) */
@media (max-width: 480px) {
  .news-modal-topbar {
    padding: 0.55rem 0.85rem;
  }
  .news-modal-cat-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    letter-spacing: 0.04em;
  }
  .news-modal-readtime {
    font-size: 0.7rem;
  }
  .news-modal-topbar-actions {
    gap: 0.35rem;
  }
  .news-modal-btn-action {
    padding: 5px 9px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .news-modal-btn-action span.action-btn-text {
    display: none; /* Icon-only on very compact screens to avoid wrapping */
  }
  .news-modal-close-btn {
    width: 32px;
    height: 32px;
  }
  .news-modal-scroll {
    padding: 1rem 0.9rem 1.75rem;
  }
  .news-modal-author-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
  .news-modal-author-info .author-name {
    font-size: 0.82rem;
  }
  .news-modal-meta-chips .meta-chip {
    font-size: 0.75rem;
  }
}

/* ===================================================================
   PORTAL DOKUMEN & PENGUMUMAN SPMB (GRID GALLERY 1:1 DENGAN MOCKUP)
   =================================================================== */
.spmb-portal-page {
  background: var(--bg-body, #ffffff);
  min-height: 80vh;
  padding: 40px 0 120px;
}
.spmb-portal-header {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px;
}
.spmb-portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 12px;
}
.spmb-portal-breadcrumb a {
  color: var(--color-primary, #1d4e89);
  text-decoration: none;
  font-weight: 600;
}
.spmb-portal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-title, #0f2a4a);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.spmb-portal-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 24px;
  max-width: 750px;
  line-height: 1.6;
}
.spmb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}
.spmb-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.spmb-filter-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spmb-filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.spmb-filter-btn.active {
  background: var(--color-primary, #1d4e89);
  color: #ffffff;
  border-color: var(--color-primary, #1d4e89);
  box-shadow: 0 4px 12px rgba(29, 78, 137, 0.25);
}
.spmb-search-wrap {
  position: relative;
  min-width: 280px;
}
.spmb-search-input {
  width: 100%;
  padding: 9px 38px 9px 14px;
  font-size: 0.88rem;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 999px;
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #1e293b);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.spmb-search-input:focus {
  border-color: var(--color-primary, #1d4e89);
  box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.15);
}
.spmb-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.spmb-portal-main {
  padding-bottom: 5.5rem;
}
.spmb-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 5.5rem 20px;
}
.spmb-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-bottom: 3.5rem;
}
.spmb-card-item {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 8px rgba(15, 42, 74, 0.04);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.spmb-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px -6px rgba(15, 42, 74, 0.12);
  border-color: #cbd5e1;
}
.spmb-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}
.spmb-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.spmb-card-item:hover .spmb-card-thumb {
  transform: scale(1.03);
}
.spmb-card-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.spmb-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
}
.spmb-card-views {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.spmb-readmore-badge {
  background: #7cb342;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.spmb-card-item:hover .spmb-readmore-badge {
  background: #689f38;
  transform: scale(1.04);
}
.spmb-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title, #0f2a4a);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  transition: color 0.2s;
}
.spmb-card-item:hover .spmb-card-title {
  color: var(--color-primary, #1d4e89);
}
.spmb-card-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light, #f1f5f9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spmb-category-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}
.spmb-pdf-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Empty State */
.spmb-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card, #ffffff);
  border-radius: 14px;
  border: 1px dashed var(--border-card, #cbd5e1);
}
.spmb-empty-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.spmb-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-title, #0f2a4a);
  margin-bottom: 6px;
}
.spmb-empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
  max-width: 460px;
  margin: 0 auto 18px;
}

/* Responsive SPMB & Competition */
@media (max-width: 992px) {
  .spmb-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .spmb-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .spmb-portal-header {
    padding: 0 16px;
    margin-bottom: 20px;
  }
  .spmb-grid-container {
    padding: 0 16px 4rem 16px;
  }
  .spmb-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }
  .spmb-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    overflow: visible;
    white-space: normal;
  }
  .spmb-filter-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    flex-grow: 0;
  }
  .spmb-search-wrap {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .spmb-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .spmb-filter-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 999px;
  }
  .spmb-card-body {
    padding: 12px 14px 16px;
  }
  .spmb-card-title {
    font-size: 0.98rem;
    line-height: 1.45;
  }
}

/* Dark Mode Support for SPMB Portal */
html.dark .spmb-portal-page {
  background: var(--bg-body, #0b1320);
}
html.dark .spmb-filter-btn {
  background: #16243d;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark .spmb-filter-btn:hover {
  background: #1e3152;
  color: #f1f5f9;
}
html.dark .spmb-filter-btn.active {
  background: var(--color-blue, #2563eb);
  color: #ffffff;
  border-color: var(--color-blue, #2563eb);
}
html.dark .spmb-search-input {
  background: #132238;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.12);
}
html.dark .spmb-card-item {
  background: #132238;
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark .spmb-card-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
html.dark .spmb-card-title {
  color: #f8fafc;
}
html.dark .spmb-card-views {
  color: #94a3b8;
}
html.dark .spmb-category-pill {
  background: #16243d;
  color: #cbd5e1;
}
html.dark .spmb-card-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* SPADA COMPETITION NAVBAR & PORTAL */
.nav-item.nav-competition {
  color: var(--text-main);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}
.nav-item.nav-competition:hover,
.nav-item.nav-competition.active {
  color: var(--color-blue);
}
.nav-item.nav-competition.active::after {
  background: var(--color-blue);
}
html.dark .nav-item.nav-competition {
  color: var(--text-main);
}
html.dark .nav-item.nav-competition:hover,
html.dark .nav-item.nav-competition.active {
  color: var(--color-blue);
}
html.dark .nav-item.nav-competition.active::after {
  background: var(--color-blue);
}

/* Category Badge Colors */
.spmb-category-pill.cat-utama {
  background: #e0f2fe;
  color: #0369a1;
}
.spmb-category-pill.cat-penyisihan {
  background: #fef3c7;
  color: #b45309;
}
.spmb-category-pill.cat-semifinal {
  background: #ede9fe;
  color: #6d28d9;
}
.spmb-category-pill.cat-final {
  background: #fee2e2;
  color: #b91c1c;
}
html.dark .spmb-category-pill.cat-utama {
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
}
html.dark .spmb-category-pill.cat-penyisihan {
  background: rgba(217, 119, 6, 0.2);
  color: #fde68a;
}
html.dark .spmb-category-pill.cat-semifinal {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}
html.dark .spmb-category-pill.cat-final {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
}




