:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --bg-color: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --nav-bg: rgba(15, 23, 42, 0.85);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --card-gradient: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(236, 72, 153, 0.1)
  );
  --input-bg: rgba(15, 23, 42, 0.5);
  --modal-bg: linear-gradient(135deg, #1e293b, #0f172a);
  --table-hover: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg-color: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --text-color: #0f172a;
  --text-muted: #475569;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.1);
  --card-gradient: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(236, 72, 153, 0.05)
  );
  --input-bg: rgba(255, 255, 255, 0.8);
  --modal-bg: #ffffff;
  --table-hover: rgba(0, 0, 0, 0.04);
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition:
    background 0.5s ease,
    color 0.5s ease;
}

/* ── Urgent Banner ── */
.urgent-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 20px rgba(220, 38, 38, 0.5);
}
.urgent-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  font-weight: 600;
}
.urgent-banner-inner i.fa-exclamation-triangle {
  color: #fef08a;
  flex-shrink: 0;
}
.urgent-countdown {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.urgent-dismiss {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  margin-left: auto;
}
.urgent-dismiss:hover {
  background: rgba(255, 255, 255, 0.35);
}
body:has(#urgentBanner[style*="display: block"]) nav,
body:has(#urgentBanner:not([style*="none"])) nav {
  top: 42px;
}

/* ── Animated Background ── */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.bg-animation .shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 20s infinite;
}
.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}
.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -50px;
  right: -50px;
  border-radius: 50%;
  animation-delay: -5s;
}
.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  border-radius: 50%;
  animation-delay: -10s;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  transition:
    background 0.5s,
    border-color 0.5s;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
.admin-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ── Sections ── */
.section {
  padding: 8rem 5% 3rem;
  min-height: auto;
}
body:not(.admin-mode) #admin.section {
  display: none;
}
body.admin-mode .section:not(#admin) {
  display: none;
}

/* ── Scroll Animations ── */
body.js-loaded .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
body.js-loaded .animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding-top: 10rem;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-image-wrapper {
  max-width: 1000px;
  margin: 4rem auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(99, 102, 241, 0.15);
  position: relative;
}
.hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.hero-school-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s;
}
.hero-image-wrapper:hover .hero-school-img {
  transform: scale(1.02);
}

/* ── Buttons ── */
.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}
.btn-secondary {
  background: var(--glass);
  color: var(--text-color);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ── Glass Cards ── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ── About ── */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s;
}
.about-image img:hover {
  transform: scale(1.02);
}
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.mv-card {
  padding: 1.5rem;
}
.mv-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.mv-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.mv-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  .mission-vision {
    grid-template-columns: 1fr;
  }
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  padding: 1rem;
  border-radius: 20px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.gallery-caption {
  font-weight: 600;
  text-align: center;
  color: var(--text-color);
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

/* ── Faculty ── */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.faculty-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.faculty-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--glass-border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}
.faculty-card:hover .faculty-img {
  transform: scale(1.1);
  border-color: var(--primary);
}
.faculty-name {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.faculty-subject {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.faculty-qual {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Classes ── */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.class-card {
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.class-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}
.class-card:hover::before {
  left: 100%;
}
.class-card:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}
.class-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.class-card .students-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Syllabus ── */
.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.syllabus-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.syl-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}
.syllabus-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}
.syllabus-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ── Fees ── */
.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.fee-card {
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.fee-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  background: var(--card-gradient);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.fee-header {
  text-align: center;
  margin-bottom: 2rem;
}
.fee-header h3 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.fee-header p {
  color: var(--text-muted);
}
.fee-amount {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.fee-amount .currency {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-right: 0.25rem;
}
.fee-amount .period {
  font-size: 1rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.fee-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}
.fee-features li {
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.text-success {
  color: #22c55e;
}

/* ── Results ── */
.results-container {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.3s;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.result-card {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.08),
    rgba(99, 102, 241, 0.08)
  );
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 2rem;
  display: none;
  animation: slideUp 0.5s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.result-card.show {
  display: block;
}
.marks-table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}
.marks-table th,
.marks-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
.marks-table th {
  color: var(--primary);
  font-weight: 600;
}
.grade {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}
.grade-a {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}
.grade-b {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}
.grade-c {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}
.grade-d {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.grade-f {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ── Notices & Events (Timeline) ── */
.notices-container,
.events-grid {
  position: relative;
  max-width: 850px;
  margin: 2rem auto;
}
.notices-container::before,
.events-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
  padding: 0 2rem;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-content {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.3s;
}
.timeline-content:hover {
  transform: scale(1.04);
}
.timeline-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  top: 1.5rem;
  z-index: 10;
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}
.date-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* ── Footer ── */
.footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 5% 0;
  margin-top: 4rem;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all 0.3s;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}
.footer-heading {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contact {
  list-style: none;
  color: var(--text-muted);
}
.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.footer-contact i {
  color: var(--primary);
  margin-top: 0.25rem;
}
.map-container {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}
.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/* ── Admin ── */
.admin-login {
  max-width: 400px;
  margin: 5rem auto;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
}
.admin-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
}
.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.admin-sidebar {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.admin-menu {
  list-style: none;
}
.admin-menu li {
  padding: 0.9rem 1rem;
  margin-bottom: 0.4rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.admin-menu li:hover,
.admin-menu li.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}
.admin-content {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
.data-table th {
  background: rgba(99, 102, 241, 0.1);
  font-weight: 600;
  color: var(--primary);
}
.data-table tr:hover {
  background: var(--table-hover);
}
.action-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 0.4rem;
}
.action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.action-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

/* ── Modal ── */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}
.modal.show {
  display: flex;
}
.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.close-modal {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(400px);
  transition: transform 0.3s;
  z-index: 3000;
  max-width: 320px;
}
.toast.show {
  transform: translateX(0);
}
.toast.success {
  border-left: 4px solid #22c55e;
}
.toast.error {
  border-left: 4px solid #ef4444;
}
.toast.info {
  border-left: 4px solid var(--accent);
}

/* ── Spinner ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .notices-container::before,
  .events-grid::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem;
    text-align: left !important;
  }
  .timeline-item:nth-child(odd) .timeline-dot {
    right: auto;
    left: -9px;
  }
}

/* ── Google Translate Premium ── */
.translate-trigger {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.translate-trigger:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.translate-trigger.loading {
  pointer-events: none;
  opacity: 0.8;
}

.translate-trigger.loading span {
  display: none;
}

.translate-trigger.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

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

.goog-te-gadget-simple {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  ) !important;
  border: 2px solid var(--primary) !important;
  border-radius: 8px !important;
  padding: 0.6rem 1rem !important;
  display: inline-block !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease !important;
}

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

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

[data-theme="light"] .goog-te-gadget-simple {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  ) !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .goog-te-gadget-simple .goog-te-combo {
  color: #ffffff !important;
}

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

/* Style the iframe and dropdown */
.goog-te-menu-frame {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  background: var(--modal-bg) !important;
}

/* Prevent body from moving when banner exists */
body {
  top: 0 !important;
}

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

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
}
.whatsapp-tooltip {
  position: absolute;
  right: 64px;
  background: #075E54;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ── Gallery Zoom Hint ── */
.gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.gallery-zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-zoom-hint {
  opacity: 1;
}

/* ── Gallery Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
  position: relative;
}
.lightbox-content img {
  max-width: 80vw;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}
.lightbox-counter {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev,
.lightbox-next {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* ── Faculty Modal ── */
.faculty-card-hint {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.75rem;
  opacity: 0.7;
}
.clickable-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}
.faculty-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}
.faculty-modal-overlay.active {
  display: flex;
}
.faculty-modal-box {
  position: relative;
  max-width: 680px;
  width: 100%;
  padding: 2rem;
  border-radius: 20px;
  max-height: 90vh;
  overflow-y: auto;
}
.faculty-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.faculty-modal-close:hover { background: rgba(255,255,255,0.2); }
.faculty-modal-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.faculty-modal-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}
.faculty-modal-info h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.faculty-modal-subject {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.faculty-modal-qual {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.faculty-modal-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.faculty-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.faculty-modal-meta i {
  color: var(--primary);
  width: 16px;
  margin-right: 0.4rem;
}
@media (max-width: 500px) {
  .faculty-modal-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Mobile Hamburger Nav ── */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 999;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.mobile-nav-drawer.open {
  display: flex;
}
.mobile-nav-drawer a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.mobile-nav-drawer a:hover { color: var(--primary); }
.mobile-nav-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.mobile-nav-actions a {
  border: none !important;
  padding: 0 !important;
  color: var(--text-muted) !important;
  font-size: 0.875rem !important;
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .admin-btn span { display: none; }
}

/* ── Print Result Card ── */
@media print {
  body > *:not(#results) { display: none !important; }
  #results { display: block !important; }
  nav, .urgent-banner, .bg-animation, .whatsapp-float,
  .lightbox-overlay, .faculty-modal-overlay, .mobile-nav-drawer,
  footer, #admin, #toast, .btn:not(.print-hide) { display: none !important; }
  .result-card { box-shadow: none; border: 1px solid #ccc; }
  #resultCard { display: block !important; }
  body { background: white !important; color: black !important; }
  .marks-table th { background: #6366f1 !important; color: white !important; -webkit-print-color-adjust: exact; }
}
