/* ==========================================================================
   SMK PERBANKAN RIAU - MODERN PROFESSIONAL SCHOOL DESIGN SYSTEM
   Official Standard for Vocational High School of Excellence (SMK-PK)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root,
[data-theme="light"] {
  color-scheme: light;
  /* Core Color Palette - Official Standard for Vocational School (SMK-PK) */
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  
  --primary: #1E3A8A;       /* Deep Institutional Navy Blue */
  --primary-dark: #172554;  /* Midnight Navy */
  --primary-light: #2563EB; /* Clean Royal Blue */
  --primary-subtle: #EFF6FF;/* Ice Blue Accent */
  --primary-glow: rgba(30, 58, 138, 0.12);

  --secondary: #334155;     /* Slate Neutral - Professional Institutional Accent */
  --secondary-dark: #1E293B;
  --secondary-light: #475569;
  --secondary-subtle: #F8FAFC;
  
  --accent: #D97706;        /* Academic Gold / Amber (Akreditasi & PPDB) */
  --accent-dark: #B45309;
  --accent-light: #F59E0B;
  --accent-subtle: #FFFBEB;

  --danger: #DC2626;
  --danger-dark: #B91C1C;
  --danger-subtle: #FEF2F2;

  --success: #16A34A;
  --success-dark: #15803D;
  --success-subtle: #F0FDF4;

  --info: #0284C7;
  --purple: #6D28D9;
  --rose: #BE123C;

  /* Typography & High-Contrast Text Scale */
  --text-main: #0F172A;     /* Primary Headings & Bold Titles - Slate 900 */
  --text-body: #334155;     /* Primary Reading Text - Slate 700 (sharp & legible) */
  --text-muted: #64748B;    /* Secondary Text, Captions, Meta - Slate 500 */
  --text-light: #94A3B8;    /* Disabled / Subtle Placeholders */
  --text-white: #FFFFFF;

  /* Standard Clean Borders */
  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-hover: #CBD5E1;
  --border-focus: #1E3A8A;

  /* Standard Professional Elevation Shadows (Subtle & Crisp) */
  --clay-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --clay-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --clay-shadow-lg: 0 4px 10px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --clay-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
  --clay-shadow-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Button Shadows */
  --clay-shadow-primary: 0 1px 3px rgba(30, 58, 138, 0.2);
  --clay-shadow-secondary: 0 1px 3px rgba(51, 65, 85, 0.2);
  --clay-shadow-accent: 0 1px 3px rgba(217, 119, 6, 0.2);

  /* Standard Professional Border Radii (Disciplined, Not Bubbly) */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 9999px;

  /* Smooth Transitions */
  --transition: all 0.2s ease;
  --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   DARK MODE COLOR TOKENS & OVERRIDES
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: #182234;
  --bg-card-alt: #1F293D;
  
  --primary: #3B82F6;
  --primary-dark: #60A5FA;
  --primary-light: #93C5FD;
  --primary-subtle: rgba(59, 130, 246, 0.15);
  --primary-glow: rgba(59, 130, 246, 0.25);

  --secondary: #94A3B8;
  --secondary-dark: #CBD5E1;
  --secondary-light: #E2E8F0;
  --secondary-subtle: rgba(148, 163, 184, 0.15);
  
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FDE68A;
  --accent-subtle: rgba(245, 158, 11, 0.15);

  --text-main: #F8FAFC;
  --text-body: #E2E8F0;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --text-white: #FFFFFF;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-focus: #3B82F6;

  /* Dark Elevation Shadows */
  --clay-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --clay-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --clay-shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --clay-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.2);
  --clay-shadow-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.5);

  --clay-shadow-primary: 0 1px 3px rgba(0, 0, 0, 0.3);
  --clay-shadow-secondary: 0 1px 3px rgba(0, 0, 0, 0.3);
  --clay-shadow-accent: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .topbar-school {
  background: #061122;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .header-wrapper {
  background: #0D1829;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .clay-navbar {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .brand-text h3 {
  color: #FFFFFF;
}

[data-theme="dark"] .brand-text span {
  color: #60A5FA;
}

[data-theme="dark"] .btn-portal {
  background: #16243A;
  color: #F1F5F9;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn-portal:hover {
  background: #1F3250;
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

[data-theme="dark"] .clay-theme-toggle {
  background: #16243A;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FBBF24;
}

[data-theme="dark"] .clay-theme-toggle:hover {
  background: #1F3250;
  color: #FDE68A;
}

[data-theme="dark"] .hero-section {
  background: 
    linear-gradient(180deg, rgba(8, 20, 40, 0.92) 0%, rgba(6, 15, 30, 0.96) 100%),
    url('../img/gedung-smk-perbankan-riau.png') center center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hero-center-badge {
  background: rgba(10, 24, 46, 0.9);
  border-color: rgba(245, 158, 11, 0.6);
  color: #FCD34D;
}

[data-theme="dark"] .stats-strip-hero {
  background: rgba(10, 24, 46, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .welcome-photo-card {
  background: #182438;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .welcome-photo-badge {
  background: #182438;
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .guru-avatar-wrap {
  background: #111C2E;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .clay-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .clay-inset {
  background: #0F172A;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-box {
  background: #162032;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .testi-card {
  background: #162032;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .clay-badge-blue { background: rgba(37, 99, 235, 0.2); color: #93C5FD; border-color: rgba(59, 130, 246, 0.35); }
[data-theme="dark"] .clay-badge-green { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; border-color: rgba(16, 185, 129, 0.35); }
[data-theme="dark"] .clay-badge-amber { background: rgba(245, 158, 11, 0.2); color: #FCD34D; border-color: rgba(245, 158, 11, 0.35); }
[data-theme="dark"] .clay-badge-purple { background: rgba(139, 92, 246, 0.2); color: #C4B5FD; border-color: rgba(139, 92, 246, 0.35); }
[data-theme="dark"] .clay-badge-rose { background: rgba(244, 63, 94, 0.2); color: #FDA4AF; border-color: rgba(244, 63, 94, 0.35); }

[data-theme="dark"] .nav-link {
  color: #94A3B8;
}

[data-theme="dark"] .nav-link:hover {
  background: none;
  color: #60A5FA;
  border-bottom-color: transparent;
}

[data-theme="dark"] .nav-link.active {
  background: none;
  color: #60A5FA;
  border-bottom-color: #60A5FA;
}

[data-theme="dark"] .footer-wrap {
  background: #06090F;
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .social-btn {
  background: #162032;
  border-color: rgba(255, 255, 255, 0.1);
  color: #60A5FA;
}

[data-theme="dark"] .mobile-menu {
  background: #111827;
  border-left-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mobile-close-btn {
  background: #1E293B;
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .brand-logo {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .clay-input,
[data-theme="dark"] .clay-select,
[data-theme="dark"] .clay-textarea {
  background: #0F172A;
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .clay-input:focus,
[data-theme="dark"] .clay-select:focus,
[data-theme="dark"] .clay-textarea:focus {
  background: #162032;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Subtle Light Backdrop Light */
.clay-blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: 
    radial-gradient(circle at 12% 10%, rgba(30, 64, 175, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 88% 30%, rgba(13, 148, 136, 0.03) 0%, transparent 40%);
}

.blob {
  display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 2.1rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { color: var(--text-muted); font-size: 0.98rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR (OFFICIAL SCHOOL HEADER)
   ========================================================================== */
.topbar-school {
  background: #0B2545;
  color: #CBD5E1;
  font-size: 0.81rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #CBD5E1;
}

.topbar-item a {
  color: #CBD5E1;
  transition: color 0.15s ease;
}

.topbar-item a:hover {
  color: #FFFFFF;
}

.topbar-item i {
  color: #F59E0B;
  font-size: 0.82rem;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.topbar-socials a {
  color: #CBD5E1;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.topbar-socials a:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .topbar-school {
    display: none;
  }
}

/* ==========================================================================
   MAIN NAVBAR & HEADER
   ========================================================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  margin-bottom: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.clay-navbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  border: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0.75rem;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand-text h3 {
  font-size: clamp(0.92rem, 1.25vw, 1.15rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.brand-text span {
  font-size: 0.65rem;
  font-weight: 600;
  color: #2563EB;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
  transition: color 0.25s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 74px;
}

.nav-link {
  font-size: 0.93rem;
  font-weight: 600;
  color: #334155;
  padding: 0 0.85rem;
  height: 74px;
  border-radius: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-link:hover {
  color: #1E3A8A;
  background: none;
  border-bottom-color: transparent;
}

.nav-link.active {
  background: none;
  color: #1E3A8A;
  font-weight: 700;
  border-bottom-color: #1E3A8A;
  box-shadow: none;
}

.dropdown-arrow {
  font-size: 0.65rem;
  margin-left: 0.2rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

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

/* Portal Button (hidden per user instruction; admin uses discrete shortcut/lock) */
.btn-portal {
  display: none !important;
}

/* PPDB Online Pill Button (matches golden reference design) */
.btn-ppdb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FBBF24;
  color: #08182B !important;
  border-radius: 9999px;
  padding: 0.54rem 1.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-ppdb-pill:hover {
  background: #F59E0B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #08182B !important;
}

.ppdb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.clay-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #F1F5F9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #1E293B;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  outline: none;
  flex-shrink: 0;
}

.clay-theme-toggle:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: var(--clay-shadow-sm);
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

/* Mobile Drawer Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  border-left: 1px solid var(--border-color);
  z-index: 1050;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close-btn {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.mobile-close-btn:hover {
  background: var(--danger-subtle);
  color: var(--danger);
  border-color: var(--danger);
}

/* Mobile nav-link override (restore padding/border) */
.mobile-menu .nav-link {
  padding: 0.65rem 1rem;
  height: auto;
  border-bottom: none;
  border-radius: var(--radius-sm);
  display: flex;
  width: 100%;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.mobile-menu .nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   DROPDOWN MENU SYSTEM
   ========================================================================== */

/* Parent li that has a dropdown */
.nav-has-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* The chevron icon inside nav-link */
.dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 0.15rem;
  transition: transform 0.2s ease;
  opacity: 0.55;
}

/* Rotate arrow when open */
.nav-has-dropdown.open > .nav-link .dropdown-arrow,
.nav-has-dropdown:hover > .nav-link .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 0.9;
}

/* Bridge element — prevents dropdown from closing when mouse moves from link to panel */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 1999;
}

/* The dropdown panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-top: 2px solid var(--primary);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0;
  min-width: 230px;
  z-index: 2000;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

/* Wide variant for Jurusan */
.dropdown-menu.dropdown-wide {
  min-width: 260px;
}

/* Show on hover (desktop) */
.nav-has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Show when .open class added via JS (click) */
.nav-has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Right-aligned dropdown for rightmost items */
.nav-has-dropdown.dropdown-right > .dropdown-menu {
  left: auto;
  right: 0;
}

/* Dropdown link item */
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.58rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.dropdown-item:hover {
  background: #F0F5FF;
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 1.45rem;
}

/* Thin separator line */
.dropdown-divider {
  height: 1px;
  background: #E8EDF5;
  margin: 0.3rem 0;
}

/* "Lihat Semua" link at bottom */
.dropdown-viewall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.14s ease;
}

.dropdown-viewall:hover {
  background: #F0F5FF;
}

/* ---- Dark Mode Dropdown ---- */
[data-theme="dark"] .header-wrapper {
  background: #111827;
  border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .dropdown-menu {
  background: #1E293B;
  border-color: rgba(255,255,255,0.08);
  border-top-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .dropdown-item {
  color: #CBD5E1;
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(59,130,246,0.1);
  color: #60A5FA;
  border-left-color: #60A5FA;
  padding-left: 1.45rem;
}

[data-theme="dark"] .dropdown-divider {
  background: rgba(255,255,255,0.07);
}

[data-theme="dark"] .dropdown-viewall {
  color: #60A5FA;
}

[data-theme="dark"] .dropdown-viewall:hover {
  background: rgba(59,130,246,0.1);
}

/* ---- Mobile Accordion Dropdown ---- */
.mobile-menu .nav-has-dropdown {
  flex-direction: column;
  align-items: stretch;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-align: left;
}

.mobile-dropdown-toggle .toggle-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-dropdown-toggle .toggle-left i {
  font-size: 0.78rem;
  opacity: 0.6;
  color: var(--primary);
}

.mobile-dropdown-toggle .toggle-arrow {
  font-size: 0.62rem;
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.mobile-dropdown-toggle.open .toggle-arrow {
  transform: rotate(180deg);
  opacity: 0.9;
}

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

.mobile-dropdown-list {
  display: none;
  flex-direction: column;
  padding: 0.2rem 0 0.4rem 0;
  margin: 0 0 0.25rem 1rem;
  border-left: 2px solid #DDE3EC;
  padding-left: 0.75rem;
}

.mobile-dropdown-list.open {
  display: flex;
}

.mobile-dropdown-list .dropdown-item {
  font-size: 0.85rem;
  padding: 0.42rem 0.7rem;
  border-radius: 4px;
  white-space: normal;
  color: #4B5563;
}

.mobile-dropdown-list .dropdown-item:hover {
  background: #F0F5FF;
  color: var(--primary);
}

[data-theme="dark"] .mobile-dropdown-toggle { color: #94A3B8; }
[data-theme="dark"] .mobile-dropdown-toggle:hover { background: rgba(59,130,246,0.1); color: #60A5FA; }
[data-theme="dark"] .mobile-dropdown-list { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .mobile-dropdown-list .dropdown-item { color: #94A3B8; }





/* ==========================================================================
   STANDARD CARDS, BUTTONS & FORM UTILITIES
   ========================================================================== */
.clay-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--clay-shadow);
  border: 1px solid var(--border-color);
  padding: 1.85rem;
  position: relative;
  transition: var(--transition);
}

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

.clay-card-sm {
  border-radius: var(--radius-md);
  box-shadow: var(--clay-shadow-sm);
  padding: 1.25rem;
}

.clay-card-lg {
  border-radius: var(--radius-xl);
  box-shadow: var(--clay-shadow-lg);
  padding: 2.5rem;
}

.clay-inset {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  transition: var(--transition-fast);
}

/* Standard Buttons */
.btn-clay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.btn-clay:hover {
  background: var(--bg-card-alt);
  border-color: var(--border-hover);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--clay-shadow-sm);
}

.btn-clay-primary {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--clay-shadow-primary);
}

.btn-clay-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-white);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.38);
  transform: translateY(-1px);
}

.btn-clay-secondary {
  background: var(--secondary);
  color: var(--text-white);
  border-color: var(--secondary);
  box-shadow: var(--clay-shadow-secondary);
}

.btn-clay-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--text-white);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.38);
  transform: translateY(-1px);
}

.btn-clay-accent {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: var(--clay-shadow-accent);
}

.btn-clay-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.38);
  transform: translateY(-1px);
}

.btn-clay-danger {
  background: var(--danger);
  color: var(--text-white);
  border-color: var(--danger);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-clay-danger:hover {
  background: var(--danger-dark);
  border-color: var(--danger-dark);
  color: var(--text-white);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn-clay-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-clay-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Badges - Clean Institutional Style */
.clay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm, 4px);
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.clay-badge-blue { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.clay-badge-green { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.clay-badge-amber { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.clay-badge-purple { background: #F5F3FF; color: #5B21B6; border-color: #DDD6FE; }
.clay-badge-rose { background: #FFF1F2; color: #9F1239; border-color: #FECDD3; }

/* Icon Circle */
.clay-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(30, 64, 175, 0.15);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.clay-card:hover .clay-icon-circle {
  transform: translateY(-2px);
}

/* Form Inputs */
.clay-input, .clay-select, .clay-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
  transition: var(--transition-fast);
}

.clay-input:focus, .clay-select:focus, .clay-textarea:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.clay-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

/* Alerts */
.clay-alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
}

.clay-alert-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.clay-alert-danger { background: #FEF2F2; color: #991B1B; border-color: #FECDD3; }
.clay-alert-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.clay-alert-info { background: #F0F9FF; color: #075985; border-color: #BAE6FD; }

/* ==========================================================================
   HERO SECTION — MATCHING OFFICIAL SMK PERBANKAN RIAU DESIGN
   ========================================================================== */
.hero-mockup-section {
  position: relative;
  background-color: #0A213B;
  color: #FFFFFF;
  padding: 4.5rem 0;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .hero-mockup-section {
  background-color: #060B14;
}

/* Background building on the right side using the real school photo */
.hero-building-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background-image: url('../img/gedung-smk-perbankan-riau.png');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  filter: brightness(1.02) contrast(1.02);
  transition: filter 0.25s ease;
}

[data-theme="dark"] .hero-building-bg {
  filter: brightness(0.85) contrast(1.05);
}

/* Gradient overlay seamlessly fading from solid dark navy on the left into the building on the right */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    #0A213B 0%, 
    #0A213B 32%, 
    rgba(10, 33, 59, 0.94) 44%, 
    rgba(10, 33, 59, 0.4) 62%, 
    rgba(10, 33, 59, 0.1) 80%, 
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

[data-theme="dark"] .hero-gradient-overlay {
  background: linear-gradient(90deg, 
    #060B14 0%, 
    #060B14 34%, 
    rgba(6, 11, 20, 0.95) 46%, 
    rgba(6, 11, 20, 0.5) 64%, 
    rgba(6, 11, 20, 0.15) 84%, 
    transparent 100%
  );
}

/* Diagonal Gold Accent Graphic at bottom-left corner */
.hero-gold-corner-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 140px;
  z-index: 3;
  pointer-events: none;
}

.hero-mockup-container {
  position: relative;
  z-index: 4;
  width: 100%;
}

.hero-mockup-content {
  max-width: 580px;
  text-align: left;
}

/* Institutional Section Kicker */
.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

[data-theme="dark"] .section-kicker {
  color: #60A5FA;
}

/* Precision Main Typography */
.hero-mockup-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: left;
}

.hero-mockup-tagline {
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FBBF24;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-mockup-gold {
  display: block;
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FBBF24;
  line-height: 1.45;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

/* Clean Editorial Description */
.hero-mockup-desc {
  font-size: 1rem;
  color: #E2E8F0;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.15rem;
  font-weight: 400;
  text-align: left;
}

/* Precise Institutional Location Row */
.hero-mockup-location {
  font-size: 0.86rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 1.85rem;
  display: block;
}

.hero-mockup-location span {
  display: inline-block;
}

/* Backward-compatible address selector */
.hero-mockup-address {
  display: block;
  font-size: 0.86rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 1.85rem;
  background: transparent;
  border: none;
  padding: 0;
}

/* Clean Professional Action Buttons */
.hero-mockup-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-mockup-explore {
  background: #F59E0B;
  color: #0F172A !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.82rem 1.85rem;
  border-radius: var(--radius-md, 6px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D97706;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.01em;
}

.btn-hero-primary:hover,
.btn-mockup-explore:hover {
  background: #D97706;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary,
.btn-mockup-ppdb {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.82rem 1.85rem;
  border-radius: var(--radius-md, 6px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.btn-hero-secondary:hover,
.btn-mockup-ppdb:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   CUPLIKAN PRESTASI UNGGULAN
   ========================================================================== */
.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.prestasi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--clay-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.prestasi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  opacity: 0.95;
}

.prestasi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--clay-shadow-hover);
  border-color: #F59E0B;
}

.prestasi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.prestasi-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .prestasi-icon-wrap {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

.prestasi-rank-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="dark"] .prestasi-rank-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #FDE68A;
  border-color: rgba(245, 158, 11, 0.35);
}

.prestasi-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.prestasi-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.prestasi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Discreet admin lock button in footer */
.admin-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  margin-left: 0.5rem;
  opacity: 0.35;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.admin-lock-btn:hover {
  opacity: 1;
  color: #FBBF24;
}

/* Legacy compatibility classes */
.hero-section {
  position: relative;
  min-height: 540px;
  background-color: #08182B;
}

@media (max-width: 992px) {
  .hero-building-bg {
    width: 100%;
    opacity: 0.22;
  }
  .hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(8, 24, 43, 0.95) 0%, rgba(8, 24, 43, 0.88) 100%);
  }
  .hero-mockup-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 18px;
  }
  .mockup-stat-col:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-mockup-section {
    padding: 3rem 0 4rem;
  }
  .hero-mockup-stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .hero-mockup-stats-container {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
  }
  .hero-mockup-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .btn-mockup-explore,
  .btn-mockup-ppdb,
  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   SCHOOL FEATURES / PRIORITAS SECTION
   ========================================================================== */
.school-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 10;
  margin-bottom: 3.5rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--clay-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--clay-shadow-hover);
  border-color: var(--border-hover);
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-box-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #FFFFFF;
  background: var(--primary);
  margin-bottom: 0.35rem;
}

.feature-box h4 {
  font-size: 1.15rem;
  margin: 0;
}

.feature-box p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 auto;
}

/* ==========================================================================
   PROGRAM KEAHLIAN / JURUSAN
   ========================================================================== */
.jurusan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.jurusan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jurusan-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.jurusan-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #FFFFFF;
  box-shadow: var(--clay-shadow-sm);
  flex-shrink: 0;
}

.jurusan-icon-blue { background: #1E40AF; }
.jurusan-icon-green { background: #0D9488; }
.jurusan-icon-purple { background: #7C3AED; }
.jurusan-icon-amber { background: #D97706; }

.jurusan-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.jurusan-card p {
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.jurusan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

/* ==========================================================================
   KEPALA SEKOLAH WELCOME SECTION
   ========================================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.welcome-image-box {
  display: flex;
  justify-content: center;
}

.welcome-photo-card {
  width: 290px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.welcome-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.welcome-photo {
  width: 100%;
  height: 370px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.welcome-photo-badge {
  padding: 0.9rem 1.15rem;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
}

.welcome-photo-badge h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.welcome-photo-badge span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
}

.welcome-text-card {
  position: relative;
}

.welcome-quote-icon {
  font-size: 2.8rem;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.welcome-message {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.kepsek-signature {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   FILTER TABS & LIVE SEARCH (For Guru, Ekskul, Galeri)
   ========================================================================== */
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.search-bar-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.search-bar-wrap input {
  padding-left: 2.85rem;
}

.search-bar-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: var(--bg-card-alt);
}

.pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.28);
  border-color: var(--primary);
}

/* ==========================================================================
   GURU & STAFF CARDS
   ========================================================================== */
.guru-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.guru-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.guru-avatar-wrap {
  width: 100%;
  max-width: 210px;
  height: 270px;
  border-radius: var(--radius-lg, 16px);
  background: #0A1120;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 0;
  border: 1px solid var(--border-color);
  margin-bottom: 1.15rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.guru-card:hover .guru-avatar-wrap {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.guru-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

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

.guru-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.guru-role {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.guru-subject {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

/* ==========================================================================
   EKSTRAKURIKULER CARDS
   ========================================================================== */
.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.ekskul-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.ekskul-thumb {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  background: #E2E8F0;
}

.ekskul-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.ekskul-badge-pos {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
}

.ekskul-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ekskul-title {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.ekskul-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.ekskul-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.ekskul-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* ==========================================================================
   GALERI FOTO & LIGHTBOX MODAL
   ========================================================================== */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.galeri-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-lg);
}

.galeri-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.galeri-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.galeri-card:hover .galeri-img-wrap img {
  transform: scale(1.06);
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: #FFFFFF;
  opacity: 0.95;
  transition: var(--transition-fast);
}

.galeri-card:hover .galeri-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.35) 70%, transparent 100%);
}

.galeri-tag-pill {
  display: inline-block;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.45rem;
  align-self: flex-start;
}

.galeri-title-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

/* Lightbox Modal */
.clay-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.clay-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--clay-shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}

.clay-modal.active .clay-modal-content {
  transform: scale(1);
}

.clay-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  box-shadow: var(--clay-shadow-sm);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
  z-index: 10;
}

.clay-modal-close:hover {
  background: var(--danger-subtle);
  color: var(--danger);
  border-color: var(--danger);
}

.lightbox-img-box {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

/* ==========================================================================
   STRUKTUR ORGANISASI (ORG CHART)
   ========================================================================== */
.org-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.org-tier {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.org-tier-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: var(--clay-shadow-sm);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .org-tier-title {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1E293B;
  color: #60A5FA;
}

.org-lead-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 1px solid rgba(30, 64, 175, 0.3);
  background: var(--bg-card);
  transition: var(--transition);
}

.org-lead-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--clay-shadow-hover);
}

.org-lead-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--clay-shadow-sm);
  padding: 4px;
  border: 2px solid var(--primary-light);
  margin-bottom: 1rem;
  overflow: hidden;
}

.org-lead-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.org-grid-sub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.35rem;
  width: 100%;
}

.org-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-align: left;
  transition: var(--transition-fast);
  border-radius: var(--radius-lg);
}

.org-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--clay-shadow-hover);
}

.org-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--clay-shadow-sm);
  padding: 3px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  overflow: hidden;
}

.org-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.org-card-info {
  flex-grow: 1;
  min-width: 0;
}

.org-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-card-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.org-card-dept {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   BERITA & ARTIKEL
   ========================================================================== */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.berita-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.berita-thumb {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #CBD5E1;
}

.berita-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.berita-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.berita-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.berita-title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.berita-title a:hover {
  color: var(--primary);
}

.berita-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

/* ==========================================================================
   TESTIMONIALS ALUMNI & MITRA
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.testi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--clay-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--clay-shadow-hover);
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  background: #FFFFFF;
}

.testi-quote {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
}

.testi-stars {
  color: #F59E0B;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   MITRA INDUSTRI
   ========================================================================== */
.mitra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.35rem;
  align-items: center;
}

.mitra-card {
  padding: 1.35rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 105px;
}

.mitra-card i {
  font-size: 1.85rem;
  color: var(--primary);
}

/* ==========================================================================
   CTA BANNER (PPDB / ENROLLMENT)
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 60%, #0F172A 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.25);
  padding: 3.25rem 2.5rem;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.cta-box p {
  color: #DBEAFE;
  font-size: 1.05rem;
}

/* ==========================================================================
   PAGE BANNER & BREADCRUMBS (INNER PAGES)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 60%, #0F172A 100%);
  color: #FFFFFF;
  padding: 3.5rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.page-banner-title {
  font-size: 2.4rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.page-banner-subtitle {
  font-size: 1.05rem;
  color: #DBEAFE;
  max-width: 650px;
}

.breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #93C5FD;
  margin-top: 1rem;
}

.breadcrumb-wrap a {
  color: #DBEAFE;
}

.breadcrumb-wrap a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-wrap {
  margin-top: 4.5rem;
  padding: 3.75rem 0 2rem;
  background: #0F172A;
  color: #94A3B8;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.15rem;
  color: #FFFFFF;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-col p {
  color: #94A3B8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1E293B;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary-light);
  color: #FFFFFF;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid #1E293B;
  font-size: 0.85rem;
  color: #64748B;
}

.admin-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.35;
  margin-left: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  vertical-align: middle;
}

.admin-lock-btn:hover {
  opacity: 1;
  color: var(--primary-light);
  transform: scale(1.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1240px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 0 0.7rem;
  }

  .brand-text h3 {
    font-size: 0.98rem;
  }

  .btn-clay-sm {
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* Right-align last dropdown so it doesn't overflow viewport */
.nav-menu .nav-has-dropdown:nth-last-child(-n+2) > .dropdown-menu {
  left: auto;
  right: 0;
}


@media (max-width: 1080px) {
  .nav-menu {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
  }
}

@media (max-width: 992px) {
  h1 { font-size: clamp(1.85rem, 4.5vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
  
  .topbar-school {
    display: none !important;
  }

  .hero-building-bg {
    width: 100% !important;
    opacity: 0.22 !important;
    background-position: center right !important;
  }

  .hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(10, 33, 59, 0.97) 0%, rgba(10, 33, 59, 0.9) 100%) !important;
  }

  [data-theme="dark"] .hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(6, 11, 20, 0.98) 0%, rgba(6, 11, 20, 0.92) 100%) !important;
  }

  .hero-grid, .welcome-grid, .cta-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

  .header-wrapper {
    top: 0;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;
  }

  .clay-navbar {
    padding: 0;
    height: 66px;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.55rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-text h3 {
    font-size: clamp(0.85rem, 3.6vw, 1.02rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide long slogan on mobile so brand and buttons fit cleanly on a single row */
  .brand-text span {
    display: none !important;
  }

  .nav-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .btn-ppdb-pill {
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .clay-theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  /* Current Hero Mockup Section */
  .hero-mockup-section {
    padding: 2.75rem 0 3.25rem !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-mockup-content {
    max-width: 100% !important;
    width: 100% !important;
    text-align: left !important;
  }

  .hero-mockup-title {
    font-size: clamp(1.55rem, 6.8vw, 2.2rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
    word-break: break-word !important;
  }

  .hero-mockup-tagline {
    font-size: clamp(0.78rem, 3.4vw, 0.95rem) !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 1rem !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
  }

  .hero-mockup-desc {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.15rem !important;
    max-width: 100% !important;
  }

  .hero-mockup-location {
    font-size: 0.8rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
  }

  .hero-mockup-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-mockup-explore,
  .btn-mockup-ppdb {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.8rem 1.25rem !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
  }

  .hero-gold-corner-svg {
    width: 70px !important;
    height: 70px !important;
  }

  /* All Grid Sections Collapse to 1 Column */
  .jurusan-grid,
  .prestasi-grid,
  .berita-grid,
  .galeri-grid,
  .ekskul-grid,
  .testi-grid,
  .quotes-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .guru-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 1rem !important;
  }

  .guru-avatar-wrap {
    max-width: 100% !important;
    height: 210px !important;
  }

  .guru-name {
    font-size: 0.95rem !important;
  }

  .mitra-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .welcome-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .welcome-photo-card {
    width: min(280px, 100%) !important;
    margin: 0 auto !important;
  }

  .welcome-photo {
    height: auto !important;
    max-height: 330px !important;
    object-fit: cover !important;
  }

  .kepsek-signature {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .kepsek-signature div:last-child {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .kepsek-signature a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .cta-box {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 2rem 1.25rem !important;
    gap: 1.5rem !important;
  }

  .cta-box h2 {
    font-size: 1.55rem !important;
  }

  .cta-box p {
    font-size: 0.92rem !important;
  }

  .cta-box > div:last-child {
    align-items: center !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .cta-box .btn-clay {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .section {
    padding: 3rem 0 !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
  }

  .section-subtitle {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.95rem;
  }

  .clay-navbar {
    height: 62px;
    gap: 0.4rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-text h3 {
    font-size: 0.86rem;
  }

  .btn-ppdb-pill {
    padding: 0.38rem 0.72rem;
    font-size: 0.76rem;
    gap: 0.25rem;
  }

  .clay-theme-toggle {
    width: 33px;
    height: 33px;
    font-size: 0.82rem;
  }

  .nav-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .btn-portal {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }

  .clay-navbar {
    gap: 0.3rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-text h3 {
    font-size: 0.78rem;
  }

  .btn-ppdb-pill {
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   MUTIARA HIKMAH & INSPIRASI PENDIDIKAN (KATA-KATA MUTIARA)
   ========================================================================== */
.section-quotes {
  background: var(--bg-card-alt);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
}

[data-theme="dark"] .section-quotes {
  background: #0d1527;
}

/* Spotlight Card (Quote of the Day / Featured Quote) */
.quote-spotlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(217, 119, 6, 0.07) 100%), var(--bg-surface);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 10px 30px -5px rgba(30, 58, 138, 0.08), 0 4px 12px rgba(217, 119, 6, 0.06);
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: var(--transition);
}

[data-theme="dark"] .quote-spotlight-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%), var(--bg-card);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.quote-spotlight-inner {
  position: relative;
  z-index: 2;
}

.quote-watermark {
  position: absolute;
  right: 1.5rem;
  bottom: 0.5rem;
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
  z-index: 1;
  transform: rotate(5deg);
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .quote-watermark {
  opacity: 0.12;
}

.quote-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.badge-pill-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: var(--accent-subtle);
  color: var(--accent-dark);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .badge-pill-accent {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.35);
}

.btn-refresh-quote {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--clay-shadow-sm);
  transition: var(--transition-fast);
}

.btn-refresh-quote:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-refresh-quote i {
  transition: transform 0.4s ease;
}

.btn-refresh-quote:hover i {
  transform: rotate(180deg);
}

.quote-spotlight-text {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-main);
  margin: 0 0 1.5rem 0;
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quote-spotlight-text.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.quote-spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
}

.quote-author-info {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.25);
  flex-shrink: 0;
}

.quote-author-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.quote-author-role {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Category Filter Tabs */
.quote-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.quote-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Quotes Grid */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.quote-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem 1.4rem;
  box-shadow: var(--clay-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--primary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.85;
}

.quote-card[data-category="tokoh-bangsa"] { --card-accent: #2563EB; }
.quote-card[data-category="semangat-belajar"] { --card-accent: #059669; }
.quote-card[data-category="karakter-akhlak"] { --card-accent: #D97706; }
.quote-card[data-category="masa-depan"] { --card-accent: #7C3AED; }

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--clay-shadow-hover);
  border-color: var(--card-accent, var(--primary-light));
}

.quote-card.hidden {
  display: none !important;
}

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

.quote-card-cat {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cat-tokoh-bangsa { background: #EFF6FF; color: #1D4ED8; }
.cat-semangat-belajar { background: #ECFDF5; color: #047857; }
.cat-karakter-akhlak { background: #FFFBEB; color: #B45309; }
.cat-masa-depan { background: #F5F3FF; color: #6D28D9; }

[data-theme="dark"] .cat-tokoh-bangsa { background: rgba(37, 99, 235, 0.18); color: #93C5FD; }
[data-theme="dark"] .cat-semangat-belajar { background: rgba(5, 150, 105, 0.18); color: #6EE7B7; }
[data-theme="dark"] .cat-karakter-akhlak { background: rgba(217, 119, 6, 0.18); color: #FCD34D; }
[data-theme="dark"] .cat-masa-depan { background: rgba(124, 58, 237, 0.18); color: #C4B5FD; }

.quote-card-icon {
  font-size: 1.25rem;
  color: var(--text-light);
  opacity: 0.6;
}

.quote-card-body {
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.quote-card-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.quote-card-reflection {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 0.65rem;
  border-left: 2px solid var(--border-color);
}

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

.quote-card-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.quote-card-author-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.btn-card-copy {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-card-copy:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Quote Banner Strip */
.quote-banner-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
  position: relative;
  overflow: hidden;
}

.quote-strip-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #FCD34D;
  flex-shrink: 0;
}

.quote-strip-content {
  flex-grow: 1;
}

.quote-strip-content h4 {
  color: #FCD34D;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.quote-strip-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.quote-strip-action {
  flex-shrink: 0;
}

/* Floating Toast Notification */
.quote-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
}

.quote-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.quote-toast i {
  color: #10B981;
}

@media (max-width: 768px) {
  .section-quotes {
    padding: 3rem 0;
  }
  .quote-spotlight-card {
    padding: 1.5rem 1.25rem;
  }
  .quote-spotlight-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .quote-banner-strip {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .quote-strip-icon {
    margin: 0 auto;
  }
  .quote-toast {
    right: 1rem;
    left: 1rem;
    bottom: 1.25rem;
    justify-content: center;
  }
}

