/* ===================================================================
   GREEN VALLEY PUBLIC SCHOOL — STYLESHEET
   =================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Nunito:wght@300;400;500;600;700;800&display=swap");

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

:root {
  --navy: #0a1628;
  --navy2: #112240;
  --navy3: #1d3461;
  --gold: #d97706;
  --gold2: #f59e0b;
  --gold3: #fcd34d;
  --white: #ffffff;
  --light: #f0f6ff;
  --light2: #e8f4fd;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --grad-navy: linear-gradient(135deg, #0a1628 0%, #1d3461 100%);
  --grad-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --grad-hero: linear-gradient(135deg, #060d1a 0%, #0a1628 50%, #112240 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Keyboard-only focus ring — visible outline for users tabbing through,
   invisible for mouse clicks. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.nav-link:focus-visible,
.fbtn:focus-visible,
.atab:focus-visible,
.ev-vbtn:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Busy state for action buttons during async saves */
button.is-busy,
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid rgba(217, 119, 6, 0.3);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-emblem {
  width: 46px;
  height: 46px;
  background: var(--grad-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.logo-sub {
  font-size: 11px;
  color: var(--gold3);
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold2);
  background: rgba(217, 119, 6, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-nav-call {
  background: var(--green);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}
.btn-nav-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
.btn-admin-nav {
  background: transparent;
  border: 1.5px solid rgba(217, 119, 6, 0.5);
  color: var(--gold2);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-admin-nav:hover {
  background: var(--grad-gold);
  color: white;
  border-color: transparent;
}

/* Comprehensive Google Translate UI Hiding */
.goog-te-banner-frame,
.goog-te-top-frame,
.goog-te-bottom-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-popup,
.goog-te-floating-pitch,
.goog-te-menu-frame {
  display: none !important;
  visibility: hidden !important;
}

.skiptranslate {
  display: none !important;
}

/* Force body to top 0 */
body {
  top: 0 !important;
}

/* Google Translate gadget styling */
.goog-te-gadget {
  font-family: inherit !important;
  color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
  display: none !important;
}

/* Hide 'Powered by Google' */
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

.goog-te-gadget {
  height: 0 !important;
  overflow: hidden !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================================================
   URGENT BANNER
   =================================================================== */
.urgent-banner {
  background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
  color: white;
  position: sticky;
  top: 72px;
  z-index: 999;
  border-bottom: 2px solid var(--gold2);
  animation: slideDown 0.4s ease;
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.urgent-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.urgent-pulse-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s ease infinite;
  flex-shrink: 0;
  font-size: 15px;
}
.urgent-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.urgent-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold3);
}
.urgent-timer-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.urgent-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.urgent-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  background: var(--grad-hero);
  min-height: 100vh;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(217, 119, 6, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(59, 130, 246, 0.06) 0%,
      transparent 50%
    ),
    linear-gradient(
      45deg,
      transparent 49%,
      rgba(255, 255, 255, 0.01) 50%,
      transparent 51%
    );
  background-size:
    100% 100%,
    100% 100%,
    40px 40px;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.5);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-50px) scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: slideInLeft 0.8s ease;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  color: var(--gold3);
  font-size: 13px;
  font-weight: 600;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold2);
  animation: pulse 1.5s ease infinite;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.hero-title-gold {
  color: var(--gold2);
}
.hero-tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  font-weight: 600;
  font-style: italic;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================================================================
   SCHOOL STATUS CARD
   =================================================================== */
.school-status-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  animation: slideInRight 0.8s ease;
  overflow: hidden;
  transition: all 0.5s ease;
}
.school-status-card.is-open {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.12);
}
.school-status-card.is-closed {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.08);
}

.status-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  transition: background 0.5s;
}
.glow-open {
  background: rgba(16, 185, 129, 0.3);
}
.glow-closed {
  background: rgba(239, 68, 68, 0.2);
}

.status-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.status-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.icon-open {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  animation: iconPulse 2s ease infinite;
}
.icon-closed {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

@keyframes iconPulse {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.75);
    transform: scale(1.06);
  }
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  width: fit-content;
}
.status-badge.open {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.status-badge.closed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.status-hours-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}
.status-hour-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 60px;
}
.status-hour-item i {
  color: var(--gold2);
  font-size: 20px;
  flex-shrink: 0;
}
.status-hour-item > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}
.sh-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.sh-time {
  font-size: 16px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
}
.status-divider {
  width: 0px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.status-countdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
  color: #c7d2fe;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}
.status-countdown-row i {
  color: var(--gold2);
}
.status-live-clock {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  font-family: "Courier New", monospace;
  letter-spacing: 5px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.status-date {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

/* ===================================================================
   STATS BAR
   =================================================================== */
.stats-bar {
  background: var(--grad-gold);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
}
.stat-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: "Nunito", sans-serif;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before {
  opacity: 1;
}
.btn-gold {
  background: var(--grad-gold);
  color: white;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.5);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--gold2);
  color: var(--gold2);
  background: rgba(217, 119, 6, 0.1);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  font-family: "Nunito", sans-serif;
}
.btn-outline-dark:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}
.full-btn {
  width: 100%;
  justify-content: center;
}

/* ===================================================================
   SECTION HEADERS
   =================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-title.white {
  color: white;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}
.section-sub.white {
  color: rgba(255, 255, 255, 0.7);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.2s ease infinite;
  display: inline-block;
}

/* ===================================================================
   MODALS
   =================================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.modal-box {
  background: white;
  border-radius: 24px;
  position: relative;
  width: 90%;
  max-width: 520px;
  padding: 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.admin-box {
  max-width: 800px;
  padding: 32px;
}
.class-modal-box {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Login box */
.login-box {
  text-align: center;
}
.login-icon {
  width: 70px;
  height: 70px;
  background: var(--grad-navy);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold2);
  margin: 0 auto 20px;
}
.login-box h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--navy);
}
.login-box p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Admin box */
.admin-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}
.admin-header-bar i {
  font-size: 26px;
  color: var(--gold);
}
.admin-header-bar h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--navy);
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.atab {
  padding: 9px 16px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Nunito", sans-serif;
}
.atab.active {
  background: var(--navy);
  color: var(--gold2);
  border-color: var(--navy);
}
.atab:not(.active):hover {
  border-color: var(--navy);
  color: var(--navy);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.admin-sec {
  background: var(--light);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.admin-sec h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}
.admin-sec h3 i {
  color: var(--gold);
}

.form-field {
  margin-bottom: 14px;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  background: white;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.admin-add-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
.admin-add-row input {
  flex: 1;
  min-width: 160px;
}
.admin-add-row select {
  width: auto;
}

.result-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.subjects-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.subjects-marks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.mark-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.mark-field input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
}
.hint-text {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.results-filter-row select {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
}

/* Admin list items */
.admin-list {
  max-height: 280px;
  overflow-y: auto;
}
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  animation: fadeInUp 0.3s ease;
}
.ali-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.ali-text {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.ali-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.ali-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ali-result-info strong {
  font-size: 13px;
  color: var(--navy);
}
.ali-result-info span {
  font-size: 12px;
  color: var(--muted);
}
.ali-result-grade {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.ali-del {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.ali-del:hover {
  background: #fee2e2;
}
.empty-msg {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* Toggle */
.toggle-wrap {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.toggle-cb {
  display: none;
}
.toggle-track {
  width: 46px;
  height: 25px;
  background: #cbd5e1;
  border-radius: 13px;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 3.5px;
  left: 3.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}
.toggle-cb:checked + .toggle-track {
  background: var(--gold);
}
.toggle-cb:checked + .toggle-track::after {
  transform: translateX(21px);
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.ev-soon {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

/* ===================================================================
   NOTICE BOARD
   =================================================================== */
.notices-section {
  padding: 90px 0;
  background: var(--light);
}
.notice-board {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.1);
  border: 1px solid rgba(10, 22, 40, 0.08);
}
.board-top {
  background: var(--grad-navy);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.board-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}
.board-top-left i {
  color: var(--gold2);
}
.board-top-right {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.ticker-bar {
  display: flex;
  align-items: stretch;
  background: var(--navy2);
  overflow: hidden;
}
.ticker-label {
  background: var(--gold);
  color: white;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  padding: 10px 16px;
}
#tickerText {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  animation: ticker 35s linear infinite;
}
@keyframes ticker {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

.notices-grid {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  min-height: 120px;
}
.board-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 50px;
  color: var(--muted);
  text-align: center;
  grid-column: 1/-1;
}
.board-empty i {
  font-size: 48px;
  opacity: 0.25;
}

.notice-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: cardIn 0.5s ease both;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nc-info {
  border-left: 4px solid #3b82f6;
}
.nc-warning {
  border-left: 4px solid #f59e0b;
}
.nc-success {
  border-left: 4px solid #10b981;
}
.nc-exam {
  border-left: 4px solid #8b5cf6;
}
.nc-holiday {
  border-left: 4px solid #ec4899;
}

.nc-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}
.nc-body {
  flex: 1;
}
.nc-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 8px;
  font-weight: 500;
}
.nc-time {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.nc-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.nc-tag-info {
  background: #eff6ff;
  color: #3b82f6;
}
.nc-tag-warning {
  background: #fffbeb;
  color: #d97706;
}
.nc-tag-success {
  background: #ecfdf5;
  color: #059669;
}
.nc-tag-exam {
  background: #f5f3ff;
  color: #7c3aed;
}
.nc-tag-holiday {
  background: #fdf2f8;
  color: #db2777;
}

/* ===================================================================
   CLASSES
   =================================================================== */
.classes-section {
  padding: 90px 0;
  background: white;
}
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.class-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.class-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cls-color, var(--gold));
}
.class-card:hover {
  border-color: var(--cls-color, var(--gold));
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.cc-num {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
}
.cc-roman {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  display: block;
}
.cc-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
}
.cc-teacher {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cc-teacher i {
  color: var(--cls-color, var(--gold));
}
.cc-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.cc-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cc-meta i {
  color: var(--cls-color, var(--gold));
  width: 14px;
}
.cc-hover-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cls-color, var(--gold));
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.class-card:hover .cc-hover-label {
  opacity: 1;
  transform: translateY(0);
}

/* Class Modal */
.class-modal-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--border);
}
.cm-class-num {
  font-family: "Playfair Display", serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--gold);
  background: var(--light);
  width: 90px;
  height: 90px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cm-group {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 5px;
}
.cm-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 4px;
}
.cm-info p {
  color: var(--muted);
  font-size: 13px;
}

.cm-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.cm-detail-card {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}
.cm-detail-card i {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}
.cm-detail-card span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
}
.cm-detail-card strong {
  font-size: 14px;
  color: var(--navy);
}

.cm-subjects h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cm-subjects h3 i {
  color: var(--gold);
}
.cm-subjects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.cm-subject-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.chip-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.cm-actions {
  display: flex;
  gap: 12px;
}

/* ===================================================================
   RESULTS SECTION
   =================================================================== */
.results-section {
  padding: 90px 0;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.results-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(217, 119, 6, 0.07) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 40%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.01) 30px,
      rgba(255, 255, 255, 0.01) 31px
    );
}

.results-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}
.results-search-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px;
}
.search-panel-header {
  font-size: 16px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.results-search-panel .form-field label {
  color: rgba(255, 255, 255, 0.5);
}
.results-search-panel input,
.results-search-panel select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}
.results-search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.results-search-panel input:focus,
.results-search-panel select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}
.results-search-panel select option {
  background: var(--navy);
  color: white;
}
.search-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 14px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

/* Result Display */
.result-display-panel {
  min-height: 400px;
}
.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px;
  text-align: center;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.5);
}
.placeholder-icon {
  font-size: 56px;
  opacity: 0.25;
}
.result-placeholder h3 {
  font-size: 20px;
  font-weight: 700;
}
.result-placeholder p {
  font-size: 14px;
}

/* Result Not Found */
.result-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 50px;
  text-align: center;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.25);
  border-radius: 22px;
  color: white;
}
.rnf-icon {
  font-size: 48px;
  opacity: 0.5;
}
.result-not-found h3 {
  font-size: 20px;
  font-weight: 700;
}
.result-not-found p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* Multiple Result Picker */
.multi-result-picker {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px;
  color: white;
}
.multi-result-picker h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.multi-result-picker p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.exam-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exam-pick-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: "Nunito", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.2s;
}
.exam-pick-btn span {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.5;
}
.exam-pick-btn:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: var(--gold);
}

/* Result Card */
.result-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease;
}
.rc-header {
  background: var(--grad-navy);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.rc-school-logo {
  width: 60px;
  height: 60px;
  background: var(--grad-gold);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  flex-shrink: 0;
}
.rc-school-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: white;
  margin-bottom: 4px;
}
.rc-school-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
.rc-doc-type {
  display: inline-block;
  background: rgba(217, 119, 6, 0.25);
  color: var(--gold3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 6px;
}

.rc-student-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 24px 32px;
  background: var(--light);
  border-bottom: 2px solid var(--border);
}
.rc-info-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.rc-info-item:nth-last-child(-n + 2) {
  border-bottom: none;
}
.rci-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.rci-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.rc-marks-table-wrap {
  padding: 0 32px;
  overflow-x: auto;
}
.rc-marks-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.rc-marks-table th {
  background: var(--navy);
  color: var(--gold2);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.rc-marks-table th:nth-child(3),
.rc-marks-table th:nth-child(4) {
  text-align: center;
}
.rc-marks-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.rc-marks-table td:nth-child(3),
.rc-marks-table td:nth-child(4) {
  text-align: center;
}
.rc-marks-table tr:last-child td {
  border-bottom: none;
}
.rc-marks-table tr:hover {
  background: var(--light);
}
.fail-row {
  background: #fff5f5;
}
.fail-row td {
  color: #dc2626;
}
.marks-num {
  font-weight: 700;
  font-size: 16px;
}
.pass-chip {
  background: #ecfdf5;
  color: #059669;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}
.fail-chip {
  background: #fee2e2;
  color: #dc2626;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.rc-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  margin: 0 0 24px;
}
.rc-sum-item {
  padding: 18px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.rc-sum-item:last-child {
  border-right: none;
}
.rcs-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.rcs-val {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.rc-result-banner {
  margin: 0 32px 24px;
  padding: 18px 24px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}
.banner-pass {
  background: #ecfdf5;
  color: #065f46;
  border: 2px solid #6ee7b7;
}
.banner-fail {
  background: #fee2e2;
  color: #7f1d1d;
  border: 2px solid #fca5a5;
}

.rc-footer-actions {
  display: flex;
  gap: 12px;
  padding: 0 32px 28px;
  flex-wrap: wrap;
}

/* ===================================================================
   EVENTS
   =================================================================== */
.events-section {
  padding: 90px 0;
  background: var(--light);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px;
  color: var(--muted);
  text-align: center;
  grid-column: 1/-1;
  border: 2px dashed var(--border);
  border-radius: 20px;
}
.events-empty i {
  font-size: 48px;
  opacity: 0.25;
}

.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  position: relative;
  transition: all 0.3s ease;
  animation: cardIn 0.5s ease both;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.ev-accent {
  width: 5px;
  flex-shrink: 0;
}
.ev-exam .ev-accent {
  background: #8b5cf6;
}
.ev-sports .ev-accent {
  background: #10b981;
}
.ev-cultural .ev-accent {
  background: #ec4899;
}
.ev-holiday .ev-accent {
  background: #f59e0b;
}
.ev-meeting .ev-accent {
  background: #3b82f6;
}
.ev-other .ev-accent {
  background: #6b7280;
}

.ev-icon {
  font-size: 28px;
  padding: 20px 16px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}
.ev-body {
  flex: 1;
  padding: 18px 18px 18px 0;
}
.ev-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ev-type-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.ev-tag-exam {
  background: #f5f3ff;
  color: #7c3aed;
}
.ev-tag-sports {
  background: #ecfdf5;
  color: #059669;
}
.ev-tag-cultural {
  background: #fdf2f8;
  color: #db2777;
}
.ev-tag-holiday {
  background: #fffbeb;
  color: #d97706;
}
.ev-tag-meeting {
  background: #eff6ff;
  color: #2563eb;
}
.ev-tag-other {
  background: #f9fafb;
  color: #6b7280;
}

.ev-countdown {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-left: auto;
}
.ev-past {
  color: var(--muted);
}
.ev-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ev-date {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ev-date i {
  color: var(--gold);
}
.ev-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.ev-classes-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ev-classes-tag i {
  color: var(--gold);
}

/* ===================================================================
   GALLERY
   =================================================================== */
.gallery-section {
  padding: 90px 0;
  background: white;
}
.filter-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.fbtn {
  padding: 9px 22px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: all 0.3s ease;
  font-family: "Nunito", sans-serif;
}
.fbtn.active,
.fbtn:hover {
  background: var(--grad-navy);
  color: var(--gold2);
  border-color: var(--navy);
  transform: translateY(-2px);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.g-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.g-item:hover img {
  transform: scale(1.08);
}
.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.g-item:hover .g-overlay {
  opacity: 1;
}
.g-overlay i {
  font-size: 36px;
  color: var(--gold2);
}
.g-item.hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  z-index: 1;
}
.lb-close:hover {
  color: var(--gold2);
}
.lb-img {
  max-width: 88%;
  max-height: 85vh;
  border-radius: 12px;
}
.lb-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}
.lb-nav button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 28px;
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-nav button:hover {
  background: rgba(217, 119, 6, 0.5);
}

/* ===================================================================
   CONTACT
   =================================================================== */
.contact-section {
  padding: 90px 0;
  background: white;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card {
  background: var(--light);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.contact-card i {
  font-size: 32px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.contact-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.contact-card a {
  color: var(--navy3);
  text-decoration: none;
  font-weight: 600;
}
.contact-card a:hover {
  color: var(--gold);
}

.contact-form-card {
  background: var(--navy);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: white;
  margin-bottom: 22px;
}
.contact-form-card .form-field label {
  color: rgba(255, 255, 255, 0.5);
}
.contact-form-card input,
.contact-form-card textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.map-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: var(--navy);
}
.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
.footer-logo i {
  color: var(--gold2);
  font-size: 22px;
}
.footer-col p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold2);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--gold2);
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

/* ===================================================================
   TOAST
   =================================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  padding: 14px 22px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateX(130%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show {
  transform: translateX(0);
}
.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
}
.toast-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.toast-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ===================================================================
   ANIMATIONS & UTILS
   =================================================================== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   DARK MODE TOGGLE BUTTON
   =================================================================== */
.btn-dark-toggle {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-dark-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold2);
  border-color: var(--gold2);
  transform: rotate(20deg);
}

/* ===================================================================
   DARK MODE OVERRIDES
   =================================================================== */
[data-theme="dark"] {
  --light: #1a2744;
  --light2: #1d3461;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #2d3f5f;
}
[data-theme="dark"] body {
  background: #0a1628;
  color: #e2e8f0;
}

/* Sections */
[data-theme="dark"] .classes-section {
  background: #112240;
}
[data-theme="dark"] .fees-section {
  background: #0d1b2a;
}
[data-theme="dark"] .gallery-section {
  background: #0a1628;
}
[data-theme="dark"] .notices-section {
  background: #112240;
}

/* Cards */
[data-theme="dark"] .class-card {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .class-card:hover {
  border-color: var(--cls-color, var(--gold));
}
[data-theme="dark"] .cc-roman {
  color: #e2e8f0;
}
[data-theme="dark"] .notice-card {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .notice-board {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .board-top {
  background: #112240;
  border-bottom-color: #2d3f5f;
}
[data-theme="dark"] .event-card {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .contact-card {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .contact-card i,
[data-theme="dark"] .contact-card h4 {
  color: var(--gold2);
}
[data-theme="dark"] .contact-card p,
[data-theme="dark"] .contact-card a {
  color: #94a3b8;
}
[data-theme="dark"] .fee-card {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .fee-table td {
  border-bottom-color: #2d3f5f;
  color: #94a3b8;
}
[data-theme="dark"] .fee-table td:last-child {
  color: #e2e8f0;
}
[data-theme="dark"] .fees-note-box {
  background: #1d3461;
  border-color: #2d3f5f;
  color: #94a3b8;
}

/* Forms & inputs */
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field select,
[data-theme="dark"] .form-field textarea {
  background: #1d3461;
  border-color: #2d3f5f;
  color: #e2e8f0;
}
[data-theme="dark"] .form-field label {
  color: #94a3b8;
}
[data-theme="dark"] .results-search-panel {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .search-panel-header {
  background: #112240;
  border-bottom-color: #2d3f5f;
}
[data-theme="dark"] .result-display-panel {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .result-card {
  background: #1d3461;
}
[data-theme="dark"] .rc-marks-table th {
  background: #112240;
  color: #94a3b8;
}
[data-theme="dark"] .rc-marks-table td {
  border-color: #2d3f5f;
  color: #e2e8f0;
}
[data-theme="dark"] .rcs-val {
  color: #e2e8f0;
}
[data-theme="dark"] .section-title {
  color: #e2e8f0;
}
[data-theme="dark"] .section-sub {
  color: #94a3b8;
}
[data-theme="dark"] .btn-outline-dark {
  color: #e2e8f0;
  border-color: #2d3f5f;
}
[data-theme="dark"] .btn-outline-dark:hover {
  background: #2d3f5f;
}

/* Admin modal */
[data-theme="dark"] .modal-box {
  background: #112240;
  color: #e2e8f0;
}
[data-theme="dark"] .admin-tabs {
  border-bottom-color: #2d3f5f;
}
[data-theme="dark"] .atab {
  color: #94a3b8;
}
[data-theme="dark"] .atab.active {
  color: var(--gold2);
  border-bottom-color: var(--gold2);
}
[data-theme="dark"] .admin-sec h3 {
  color: #e2e8f0;
  border-bottom-color: #2d3f5f;
}
[data-theme="dark"] .admin-list-item {
  background: #1d3461;
  border-color: #2d3f5f;
}
[data-theme="dark"] .admin-header-bar {
  background: #0a1628;
  border-bottom-color: #2d3f5f;
  color: #e2e8f0;
}

/* ===================================================================
   WHATSAPP FAB
   =================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.whatsapp-fab:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
  color: white;
}
.wa-tooltip {
  position: absolute;
  right: 66px;
  background: #075e54;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: "Nunito", sans-serif;
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #075e54;
}
.whatsapp-fab:hover .wa-tooltip {
  opacity: 1;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-fab {
  animation: waPulse 2.5s ease infinite;
}
.whatsapp-fab:hover {
  animation: none;
}

/* ===================================================================
   FEE STRUCTURE SECTION
   =================================================================== */
.fees-section {
  padding: 90px 0;
  background: #f8faff;
}
.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.fee-card {
  background: white;
  border-radius: 20px;
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
}
.fee-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.fc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 2px solid var(--border);
}
.fc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}
.fc-primary .fc-icon { background: linear-gradient(135deg, #10b981, #059669); }
.fc-middle .fc-icon  { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.fc-secondary .fc-icon { background: linear-gradient(135deg, #d97706, #b45309); }

.fc-primary { border-top: 4px solid #10b981; }
.fc-middle  { border-top: 4px solid #3b82f6; }
.fc-secondary { border-top: 4px solid #d97706; }

.fc-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}
.fc-classes {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  padding: 0 24px;
}
.fee-table td {
  padding: 12px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.fee-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--text);
}
.fee-table tr:last-child td {
  border-bottom: none;
}
.fc-note {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.75;
}
.fc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--light);
  border-top: 2px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.fc-total strong {
  font-size: 20px;
  font-family: "Playfair Display", serif;
  color: var(--navy);
}
.fees-note-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.fees-note-box i {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}
.fees-contact-link {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.fees-contact-link:hover { color: var(--gold2); }

/* Print styles */
@media print {
  .navbar,
  .urgent-banner,
  .results-section .results-search-panel,
  .no-print,
  .footer,
  .hero,
  .stats-bar,
  .notices-section,
  .classes-section,
  .events-section,
  .fees-section,
  .gallery-section,
  .contact-section,
  .whatsapp-fab {
    display: none !important;
  }
  .results-section {
    background: white !important;
    padding: 0 !important;
  }
  .results-bg-pattern {
    display: none !important;
  }
  .results-wrapper {
    display: block !important;
  }
  .result-card {
    box-shadow: none !important;
  }
  body {
    opacity: 1 !important;
  }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 24px;
    gap: 50px;
  }
  .hero-title {
    font-size: 42px;
  }
  .school-status-card {
    max-width: 540px;
    margin: 0 auto;
  }
  .results-wrapper {
    grid-template-columns: 1fr;
  }
  .results-search-panel {
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--navy2);
    flex-direction: column;
    gap: 0;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li a {
    display: block;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .hamburger {
    display: flex;
  }
  .nav-actions {
    display: none;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: 30px;
  }
  .stats-inner {
    justify-content: center;
    gap: 20px;
  }
  .stat-num {
    font-size: 32px;
  }
  .result-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .cm-details-grid {
    grid-template-columns: 1fr;
  }
  .rc-student-info {
    grid-template-columns: 1fr;
  }
  .rc-summary {
    grid-template-columns: 1fr 1fr;
  }
  .rc-sum-item {
    padding: 14px 20px;
  }
  .rc-header {
    flex-direction: column;
  }
  /* Urgent Banner - Mobile */
  .urgent-inner {
    padding: 8px 12px;
    gap: 10px;
  }
  .urgent-pulse-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .urgent-label {
    font-size: 8px;
  }
  #urgentNoticeText {
    font-size: 12px;
  }
  .urgent-timer-box {
    padding: 4px 10px;
    font-size: 11px;
    gap: 6px;
  }
  .urgent-close {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
}

/* ===================================================================
   GOOGLE TRANSLATE WIDGET STYLING
   =================================================================== */

/* Hide Google Branding */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
  display: none !important;
}

.goog-te-gadget {
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-family: "Nunito", sans-serif !important;
  display: block !important;
}

.goog-te-gadget-simple {
  background: var(--grad-gold) !important;
  border: 2px solid var(--gold) !important;
  border-radius: 8px !important;
  padding: 0.6rem 1rem !important;
  display: inline-block !important;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  transition: all 0.3s ease !important;
}

.goog-te-gadget-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.goog-te-gadget-simple .goog-te-combo {
  background-color: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-family: "Nunito", sans-serif !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

#google_translate_element {
  position: absolute;
  top: 100%;
  right: 5%;
  z-index: 1001;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

.goog-te-menu-frame {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(217, 119, 6, 0.2) !important;
  border-radius: 12px !important;
  background: var(--navy2) !important;
}

.goog-te-spinner-pos {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
    text-align: center;
  }
  .admin-box {
    padding: 20px;
  }
  .result-form-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .hero {
    padding: 50px 16px;
  }
  .hero-title {
    font-size: 28px;
  }
  .section-title {
    font-size: 26px;
  }
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .class-card {
    padding: 18px 14px;
  }
  .cc-roman {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .rc-footer-actions {
    flex-direction: column;
  }
  .rc-marks-table-wrap {
    padding: 0 16px;
  }
  .rc-header {
    padding: 20px;
  }
  .admin-tabs {
    gap: 4px;
  }
  .atab {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ===================================================================
   EVENTS — CALENDAR VIEW
   =================================================================== */

/* View toggle buttons */
.ev-view-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.ev-vbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 24px;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ev-vbtn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.ev-vbtn:not(.active):hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Calendar header (month nav) */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--grad-navy);
  color: white;
  padding: 14px 20px;
  border-radius: 18px 18px 0 0;
}
.cal-month-label {
  font-size: 17px;
  font-weight: 800;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.01em;
}
.cal-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.cal-nav-btn:hover { background: rgba(255, 255, 255, 0.28); }

/* Weekday header row */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--navy2);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}
.cal-weekdays div { padding: 10px 0; }

/* Day cells grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border); /* gap colour */
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.cal-cell {
  background: white;
  min-height: 68px;
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: background 0.2s;
  position: relative;
}
.cal-cell-blank {
  background: #fafbff;
}
.cal-has-events {
  cursor: pointer;
}
.cal-has-events:hover {
  background: #f0f7ff;
}
.cal-has-events:focus-visible {
  outline: 2px solid var(--navy3);
  outline-offset: -2px;
}

/* Today highlight */
.cal-today .cal-day-num {
  background: var(--gold);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.cal-day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.cal-cell-blank .cal-day-num { color: #cbd5e1; }

/* Event dots */
.cal-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cal-more {
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
}

/* Day events panel (below calendar) */
.cal-day-events {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: cardIn 0.3s ease;
}
.cal-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
}
.cal-day-header i { color: var(--gold); }
.cal-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}
.cal-close-btn:hover { color: var(--navy); }
.cal-ev-row {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cal-ev-row:last-child { border-bottom: none; }
.cal-ev-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.cal-ev-info { flex: 1; min-width: 0; }
.cal-ev-info strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 800;
}
.cal-ev-info p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.cal-ev-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cal-ev-cls {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cal-ev-cls i { color: var(--gold); }

/* Legend row */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  justify-content: center;
}
.cal-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Dark mode overrides */
[data-theme="dark"] .ev-vbtn {
  background: var(--navy2);
  border-color: #2d3a4d;
  color: rgba(255,255,255,0.6);
}
[data-theme="dark"] .ev-vbtn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
[data-theme="dark"] .cal-grid { background: #2d3a4d; }
[data-theme="dark"] .cal-cell { background: #1a2640; }
[data-theme="dark"] .cal-cell-blank { background: #131e30; }
[data-theme="dark"] .cal-has-events:hover { background: #1d2e4a; }
[data-theme="dark"] .cal-day-num { color: #c8d8f0; }
[data-theme="dark"] .cal-cell-blank .cal-day-num { color: #3d4f6a; }
[data-theme="dark"] .cal-day-events { background: #1a2640; border-color: #2d3a4d; }
[data-theme="dark"] .cal-day-header { background: #131e30; border-color: #2d3a4d; }
[data-theme="dark"] .cal-day-header { color: #e2e8f0; }
[data-theme="dark"] .cal-ev-row { border-color: #2d3a4d; }
[data-theme="dark"] .cal-ev-info strong { color: #e2e8f0; }

/* Responsive */
@media (max-width: 500px) {
  .cal-cell { min-height: 46px; padding: 5px 4px 4px; }
  .cal-day-num { font-size: 11px; }
  .cal-dots { gap: 2px; }
  .cal-dot { width: 5px; height: 5px; }
  .cal-more { font-size: 8px; }
  .cal-weekdays div { font-size: 9px; padding: 8px 0; }
  .ev-vbtn { padding: 8px 14px; font-size: 13px; }
}

/* ===== ADMIN LOGOUT BUTTON ===== */
.admin-header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-header-bar h2 {
  flex: 1;
}
.btn-logout {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  margin-left: auto;
}
.btn-logout:hover {
  background: #dc2626;
}
