/* ==========================================================================
   LINEAR DESIGN SYSTEM - CSS TOKENS & RESET
   ========================================================================== */

:root {
  /* Color Palette — Default: Dark Theme */
  --color-brand: #5E6AD2;
  --color-brand-hover: #6E7BE2;
  --color-bg: #171723;
  --color-surface: #2C2C35;
  --color-surface-hover: rgba(255, 255, 255, 0.04);
  --color-surface-active: rgba(255, 255, 255, 0.08);
  --color-text: #FFFFFF;
  --color-muted: #8A8F98;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);
  --color-border-brand: rgba(94, 106, 210, 0.3);

  /* Semantic Colors */
  --color-urgent: #F2994A;
  --color-high: #EB5757;
  --color-done: #5E6AD2;
  --color-canceled: #4E4E56;
  --color-success: #27AE60;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Elevation & Shadows */
  --shadow-popup: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-speed: 150ms;
  --transition-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-default: all var(--transition-speed) var(--transition-easing);
}


/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* Typography Defaults */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-default);
}
code, kbd {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ==========================================================================
   COMPONENTS & BUTTONS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-default);
  outline: none;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--color-brand);
  color: var(--color-text);
}
.btn-primary:hover {
  background-color: var(--color-brand-hover);
  box-shadow: 0 0 12px rgba(94, 106, 210, 0.4);
}
.btn-primary:active {
  background-color: var(--color-brand);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-secondary:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-border-hover);
}
.btn-secondary:active {
  background-color: var(--color-surface-active);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-default);
}
.btn-close-modal:hover {
  color: var(--color-text);
  background-color: var(--color-surface-hover);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}
.badge-done {
  background-color: rgba(94, 106, 210, 0.15);
  color: #9BA4E8;
  border: 1px solid var(--color-border-brand);
}

/* Key Keyboard Shortcut Badge */
kbd {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 9px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

/* ==========================================================================
   APP HEADER / NAVIGATION
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background-color: rgba(23, 23, 35, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.logo-icon {
  color: var(--color-brand);
  flex-shrink: 0;
}
.brand-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.main-nav {
  display: flex;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}
.nav-link {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-text);
}


/* ==========================================================================
   HERO SLIDER SECTION
   ========================================================================== */

.hero-slider-section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 24px 0;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #08080c;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform-origin: center;
  animation: none;
}

.swiper-slide-active .slide-bg {
  animation: slideZoomIn 8s ease-out forwards;
}

.swiper-slide-prev .slide-bg,
.swiper-slide-next .slide-bg {
  animation: none;
  transform: scale(1);
}

@keyframes slideZoomIn {
  0%   { transform: scale(1);    }
  100% { transform: scale(1.08); }
}

/* Dark gradient overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 8, 20, 0.82) 0%,
    rgba(8, 8, 20, 0.45) 45%,
    rgba(8, 8, 20, 0.20) 100%
  );
  z-index: 1;
}

/* Content Wrapper */
.slide-content-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.slide-content {
  max-width: 500px;
}

/* Slide text animations — hidden by default, shown on active slide */
.slide-badge,
.slide-title,
.slide-desc,
.slide-actions {
  opacity: 0;
  transform: translateX(-40px);
}

.swiper-slide-active .slide-badge {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease 0.2s, transform 0.6s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.swiper-slide-active .slide-title {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s ease 0.4s, transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.4s;
}
.swiper-slide-active .slide-desc {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s ease 0.6s, transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.6s;
}
.swiper-slide-active .slide-actions {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s ease 0.8s, transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.8s;
}

/* Badge */
.slide-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(94, 106, 210, 0.85);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

/* Title */
.slide-title {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

/* Description */
.slide-desc {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 540px;
}

/* CTA Buttons */
.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
}

.slide-btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(94,106,210,0.5);
}
.slide-btn-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(94,106,210,0.65);
}

.slide-btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.slide-btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* Navigation Arrows */
.hero-nav-btn {
  width: 48px !important;
  height: 48px !important;
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(8px);
  border-radius: 50% !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
  transition: all 0.25s ease !important;
  color: #fff !important;
  z-index: 15 !important;
}

.hero-nav-btn::after {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.hero-nav-btn:hover {
  background: rgba(94,106,210,0.75) !important;
  border-color: rgba(94,106,210,0.8) !important;
  transform: scale(1.08) !important;
}

.swiper-button-prev.hero-nav-btn { left: 28px !important; }
.swiper-button-next.hero-nav-btn { right: 28px !important; }

/* Pagination Dots */
.hero-pagination {
  bottom: 24px !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
}

/* ==========================================================================
   STATS BAND (below hero slider)
   ========================================================================== */

.section-stats-band {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.stats-band-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* === Siswa Aktif Hero Widget === */
.stats-students-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(94,106,210,0.12) 0%, rgba(94,106,210,0.04) 100%);
  border: 1px solid rgba(94,106,210,0.3);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  flex-wrap: wrap;
}

.students-hero-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.students-hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.students-hero-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.students-hero-value {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  background: linear-gradient(135deg, #e8eaf6 0%, #9fa8da 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.students-hero-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-muted);
  -webkit-text-fill-color: unset;
}

.students-hero-desc {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

.students-hero-breakdown {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 28px;
  text-align: center;
}

.breakdown-divider {
  width: 1px;
  height: 44px;
  background: var(--color-border);
  flex-shrink: 0;
}

.breakdown-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.breakdown-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.breakdown-value .detail-sub {
  display: block;
  font-size: 10px;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 700px) {
  .stats-students-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
  }
  .students-hero-value {
    font-size: 40px;
  }
  .breakdown-item {
    padding: 12px 16px;
  }
}

/* ==========================================================================
   SECTIONS: GLOBAL LAYOUTS
   ========================================================================== */

.section-profile, .section-academics, .section-map {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-header {
  margin-bottom: 48px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-brand);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-2);
}
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 550px;
}

/* ==========================================================================
   PROFILE SECTION (VISION / VALUES)
   ========================================================================== */

.profile-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-8);
  align-items: start;
}

.profile-main-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-segment {
  padding: var(--space-6);
}
.segment-title {
  font-size: 16px;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.segment-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

.card-divider {
  border: none;
  height: 1px;
  background-color: var(--color-border);
}

.segment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.segment-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-muted);
}
.segment-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 4px;
  height: 4px;
  background-color: var(--color-brand);
  border-radius: 50%;
}

/* Values Sidebar */
.values-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.value-item {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-4);
  transition: var(--transition-default);
}
.value-item:hover {
  border-left-color: var(--color-brand);
}

.value-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.value-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-brand);
  font-weight: 500;
}
.value-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
}
.value-desc {
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ACADEMICS SECTION (ISSUE ROW DESIGN)
   ========================================================================== */

.academic-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.005);
}

.academic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-default);
}
.academic-row:last-child {
  border-bottom: none;
}
.academic-row:hover {
  background-color: var(--color-surface-hover);
}

.academic-row-main {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex: 1;
}

.academic-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  background-color: var(--color-surface);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.academic-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.academic-row-desc {
  font-size: 12.5px;
  color: var(--color-muted);
  margin-left: var(--space-2);
  line-height: 1.4;
}

.academic-row-meta {
  margin-left: var(--space-6);
  flex-shrink: 0;
}

/* ==========================================================================
   CAMPUS MAP SECTION
   ========================================================================== */

.map-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-popup);
}

.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #0b0b11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 200ms ease;
}

.map-placeholder-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(23, 23, 35, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  z-index: 10;
}

.overlay-text {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.map-caption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border);
}
.caption-icon {
  color: var(--color-brand);
  flex-shrink: 0;
}
.caption-text {
  font-size: 11px;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */

.app-footer {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 var(--space-6) 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-8) var(--space-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-desc {
  font-size: 12px;
  color: var(--color-muted);
  max-width: 250px;
  line-height: 1.5;
}

.footer-links, .footer-contact, .footer-status {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.links-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.footer-links a {
  font-size: 12px;
  color: var(--color-muted);
}
.footer-links a:hover {
  color: var(--color-text);
}

.contact-item {
  font-size: 12px;
  color: var(--color-muted);
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 4px var(--space-3);
  border-radius: var(--radius-sm);
  align-self: start;
}
.status-indicator-green {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}
.status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}

/* Copyright Admin Trigger — blends into copyright text */
.footer-copyright-admin {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: default;
  padding: 0;
  line-height: inherit;
  user-select: none;
  transition: color 200ms ease;
}
.footer-copyright-admin:hover {
  color: var(--color-brand);
  cursor: pointer;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) 0 var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-muted);
}

/* ==========================================================================
   ADMIN PORTAL MODAL (COMMAND PALETTE STYLE)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(11, 11, 17, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease-in-out;
}
.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  transform: scale(0.97) translateY(8px);
  transition: transform var(--transition-speed) var(--transition-easing), max-width var(--transition-speed) var(--transition-easing), height var(--transition-speed) var(--transition-easing);
  overflow: hidden;
}

.modal-card.admin-logged-in {
  max-width: 100vw;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  flex-direction: row;
}
.modal-overlay:not(.hidden) .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header-title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.admin-icon {
  color: var(--color-brand);
}
.modal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.modal-body {
  padding: var(--space-6);
}
.modal-description {
  font-size: 12.5px;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

/* Form Styles */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-input {
  background-color: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: var(--transition-default);
}
.form-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.2);
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-unit .form-input {
  width: 100%;
  padding-right: 64px;
}
.input-unit-label {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted);
  pointer-events: none;
}

.form-hint {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.4;
}
.form-hint code {
  background-color: rgba(255,255,255,0.04);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
}

#login-error-hint.error {
  color: var(--color-high);
}

/* Drag and Drop Zone */
.dropzone {
  position: relative;
  border: 2.2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--color-brand);
  background-color: rgba(94, 106, 210, 0.03);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}
.upload-icon {
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}
.dropzone-main-text {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text);
}
.dropzone-sub-text {
  font-size: 10.5px;
  color: var(--color-muted);
}

/* Dropzone Preview */
.dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}
.preview-thumbnail {
  max-width: 180px;
  max-height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: 320px;
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.preview-filename {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal Footer Actions */
.modal-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.action-group-right {
  display: flex;
  gap: var(--space-2);
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  /* Header navigation adaptation */
  .main-nav {
    display: none; /* In a full product we would use a hamburger menu, but for high density, simple is clean */
  }
  .app-header {
    height: 48px;
  }
  .header-container {
    padding: 0 var(--space-4);
  }
  
  .section-hero {
    padding: 48px 0 var(--space-8) 0;
  }
  
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 13.5px;
    margin-bottom: var(--space-6);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  /* Academics section adaptation */
  .academic-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
  }
  .academic-row-main {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
  .academic-row-desc {
    margin-left: 0;
    margin-top: var(--space-1);
  }
  .academic-row-meta {
    margin-left: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-2);
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .modal-card {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
}

/* ==========================================================================
   DYNAMIC NEWS SECTION & CARDS
   ========================================================================== */

.section-news {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

/* News section header: title left, buttons right */
.news-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.news-header-left {
  flex: 1;
}

/* Filter Button Group */
.news-filter-btns {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}

.news-filter-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-filter-btn:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.news-filter-btn.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(94,106,210,0.4);
}

.news-card.hidden {
  display: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}


.news-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: var(--transition-default);
}
.news-card:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-popup);
}

.news-image-container {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #0b0b11;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.news-card:hover .news-card-img {
  transform: scale(1.03);
}

.news-card-body {
  padding: var(--space-4) var(--space-4) var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.news-card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}

.news-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-content {
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Card Admin Actions Group Overlay */
.news-admin-actions {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: flex;
  gap: var(--space-1.5);
  z-index: 10;
  opacity: 0;
  transition: opacity var(--transition-speed) ease-in-out;
}
.news-card:hover .news-admin-actions {
  opacity: 1;
}

.btn-admin-action {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(23, 23, 35, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-default);
  outline: none;
}

.btn-admin-action:hover {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-admin-action.btn-delete-news:hover {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.btn-admin-action.btn-edit-news:hover {
  background-color: rgba(94, 106, 210, 0.15);
  color: var(--color-brand);
  border-color: rgba(94, 106, 210, 0.3);
  box-shadow: 0 0 10px rgba(94, 106, 210, 0.25);
}

/* Edit Alert Bar in Admin news form */
.edit-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(94, 106, 210, 0.08);
  border: 1px solid rgba(94, 106, 210, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 12px;
  color: var(--color-high);
}
.edit-alert.hidden {
  display: none !important;
}
.edit-alert strong {
  color: var(--color-brand);
}
.edit-alert span {
  font-family: var(--font-sans);
}

/* Empty State */
.news-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) 0;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
}
.empty-state-icon {
  margin-bottom: var(--space-3);
  color: var(--color-border-brand);
}
.empty-state-text {
  font-size: 13px;
  font-family: var(--font-mono);
}

/* Sidebar and Main Column Layout */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4);
  justify-content: space-between;
  height: 100%;
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  min-width: 0;
  height: 100%;
}

.admin-main .modal-body {
  overflow-y: auto;
  flex-grow: 1;
  height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  scrollbar-width: thin;
  padding: var(--space-6);
}

/* Sidebar Navigation elements */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2) var(--space-5) var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: var(--space-4);
}

.sidebar-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition-default);
  outline: none;
}

.sidebar-link:hover {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.02);
}

.sidebar-link.active {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: inset 3px 0 0 var(--color-brand);
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

.btn-sidebar-logout {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition-default);
  outline: none;
}

.btn-sidebar-logout:hover {
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.08);
}

.tab-panel {
  display: block;
}

.tab-panel.hidden {
  display: none !important;
}

/* Admin data item in hero list — compact thumbnail */
.admin-data-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-hover);
  margin-bottom: var(--space-2);
}

.data-item-preview {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.data-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.data-item-content {
  flex: 1;
  min-width: 0;
}

.data-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-item-meta {
  font-size: 11px;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-item-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

/* Theme toggle button in sidebar footer */
.btn-sidebar-theme {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition-default);
  outline: none;
  margin-bottom: var(--space-1);
}

.btn-sidebar-theme:hover {
  color: var(--color-brand);
  background-color: rgba(94, 106, 210, 0.08);
}

/* Mobile Responsive Sidebar/Top-bar */
@media (max-width: 767px) {
  .modal-card.admin-logged-in {
    width: 95vw;
    height: auto;
    max-height: 85vh;
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    height: auto;
  }
  
  .sidebar-header {
    display: none;
  }
  
  .sidebar-nav {
    flex-direction: row;
    gap: var(--space-1);
    width: auto;
    flex-grow: 0;
  }
  
  .sidebar-link {
    padding: var(--space-2) var(--space-3);
    font-size: 11px;
    gap: var(--space-1.5);
    justify-content: center;
    width: auto;
  }
  
  .sidebar-link.active {
    box-shadow: inset 0 -2px 0 var(--color-brand);
  }
  
  .sidebar-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    width: auto;
  }
  
  .btn-sidebar-logout {
    padding: var(--space-2);
    width: auto;
  }
  
  .btn-sidebar-logout span {
    display: none;
  }
  
  .mobile-hide {
    display: none !important;
  }
}

/* Responsive grid overrides */
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NEWS DETAIL VIEW (SPA ARTICLE READER)
   ========================================================================== */

#news-detail-view {
  padding: 64px 0 80px 0;
  min-height: 70vh;
}

.detail-back-nav {
  margin-bottom: var(--space-6);
}

.detail-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.detail-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted);
}

.detail-cover-wrapper {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: #0b0b11;
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-popup);
}

.detail-cover-img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-body {
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #d1d2d5;
}

.detail-body p {
  margin-bottom: var(--space-4);
}
.detail-body p:last-child {
  margin-bottom: 0;
}

/* Make news card clearly hoverable and clickable */
.news-card {
  cursor: pointer;
}

@media (max-width: 768px) {
  .detail-title {
    font-size: 24px;
  }
  .detail-cover-wrapper {
    aspect-ratio: 16/10;
  }
}

/* ==========================================================================
   DETAILED STUDENT STATISTICS (HOMEPAGE & ADMIN PANELS)
   ========================================================================== */

.stat-detail-list {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}

.detail-row-label {
  color: var(--color-muted);
}

.detail-row-val {
  color: var(--color-text);
  font-weight: 500;
}

.detail-sub {
  color: var(--color-muted);
  font-size: 10px;
  margin-left: var(--space-1);
}

/* Admin panel detailed statistics grid */
.admin-stat-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-top: var(--space-1);
}

.stat-class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.stat-class-label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
  width: 75px;
}

.stat-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: flex-end;
}

.input-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 70px;
}

.input-field-wrapper .form-input.input-sm {
  width: 100%;
  height: 28px;
  padding: 4px 18px 4px 8px;
  font-size: 12px;
  text-align: right;
  font-family: var(--font-mono);
}

.field-label-hint {
  position: absolute;
  right: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-muted);
  pointer-events: none;
}

.stat-subtotal-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-brand);
  min-width: 80px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .stat-class-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .stat-input-group {
    width: 100%;
    justify-content: flex-start;
  }
}

.stat-update-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--color-muted);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   FORGOT PASSWORD & CHANGE PASSWORD STYLES
   ========================================================================== */

.forgot-password-link {
  text-align: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-brand);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-link:hover {
  color: var(--color-brand-hover);
  background: rgba(94, 106, 210, 0.08);
  text-decoration: underline;
}

#forgot-view .modal-description {
  margin-bottom: var(--space-4);
}

#password-change-success {
  animation: fadeInSlide 0.3s ease;
}

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

/* ==========================================================================
   LIGHTBOX COMPONENT
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.hidden .lightbox-content img {
  transform: scale(0.95);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
  }
}

.clickable-image {
  cursor: zoom-in;
  transition: filter 0.2s, transform 0.2s;
}

  .clickable-image:hover {
    filter: brightness(1.1);
  }

  /* ==========================================================================
     HERO & NEWS FILTER RESPONSIVE STYLES
     ========================================================================== */

  @media (max-width: 1024px) {
  }

  @media (max-width: 768px) {
    
    .slide-content-wrapper {
      padding: 0 5vw;
      justify-content: center;
      text-align: center;
    }
    
    .slide-title {
      font-size: 32px;
    }
    
    .slide-desc {
      font-size: 14px;
      margin-left: auto;
      margin-right: auto;
    }
    
    .slide-actions {
      justify-content: center;
    }
    
    .swiper-button-prev.hero-nav-btn,
    .swiper-button-next.hero-nav-btn {
      display: none !important;
    }
    
    .news-section-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .news-filter-btns {
      align-self: flex-start;
      margin-top: var(--space-4);
      width: 100%;
      overflow-x: auto;
      padding-bottom: 8px;
    }
  }

  @media (max-width: 480px) {
    
    .slide-title {
      font-size: 28px;
    }
  }

/* Principal Visi Layout — new side-by-side */
.principal-visi-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Left column: photo + info below */
.principal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.principal-photo-large {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--color-border-hover);
  background: var(--color-surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.principal-cardphoto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.principal-photo-large:hover .principal-cardphoto {
  transform: scale(1.04);
}

.principal-info-below {
  padding: 16px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Right column: full-height Visi Misi card */
.principal-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.principal-right .profile-main-card {
  flex: 1;
}

/* Keep old .principal-card for possible backward compat */
.principal-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.principal-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--color-border-hover);
}
.principal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.principal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.principal-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 500;
}
.principal-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.principal-nip {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 860px) {
  .principal-visi-layout {
    grid-template-columns: 1fr;
  }
  .principal-photo-large {
    max-width: 200px;
    aspect-ratio: 1/1;
    border-radius: 50%;
  }
  .principal-left {
    align-items: center;
  }
}
