/* ========================================
   VISHAL TALWAR PHYSICS CLASSES
   Premium Institute Theme — Navy + Cream + Copper
   ======================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Core Palette */
  --cream: #FAF8F5;
  --cream-warm: #F5F0E8;
  --ivory: #FFFDF9;
  --navy: #0C1D36;
  --navy-mid: #14304D;
  --navy-light: #1B4068;
  --copper: #F25C05;
  --copper-light: #FF7A33;
  --copper-dark: #D44B00;
  --copper-glow: rgba(242, 92, 5, 0.25);
  --copper-soft: rgba(242, 92, 5, 0.08);
  --olive: #6B7A3D;
  --olive-soft: rgba(107, 122, 61, 0.10);
  --white: #ffffff;

  /* Surfaces */
  --bg: var(--cream);
  --bg-alt: var(--cream-warm);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-glass: rgba(255, 253, 249, 0.75);
  --border: rgba(12, 29, 54, 0.07);
  --border-strong: rgba(12, 29, 54, 0.12);

  /* Text */
  --text: #3D3D3D;
  --text-muted: #7A7A7A;
  --text-heading: var(--navy);

  /* Typography */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radius */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Motion & Shadows */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(12, 29, 54, 0.04);
  --shadow: 0 4px 20px rgba(12, 29, 54, 0.06);
  --shadow-lg: 0 12px 40px rgba(12, 29, 54, 0.10);
  --shadow-copper: 0 4px 20px rgba(196, 120, 50, 0.20);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

select option {
  background: var(--white);
  color: var(--text);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream-warm);
}

::-webkit-scrollbar-thumb {
  background: var(--copper);
  border-radius: 3px;
}

/* ---- ACTIVE AMBIENT BACKGROUND ---- */
.active-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--cream);
}

.active-bg-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(12, 29, 54, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 1;
}

.active-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.035;
  mix-blend-mode: multiply;
  will-change: transform;
  pointer-events: none;
}

.blob-orange {
  top: -10%;
  left: 0;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--copper) 0%, transparent 75%);
  animation: float-orange 40s infinite alternate ease-in-out;
}

.blob-gold {
  bottom: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--navy-light) 0%, transparent 75%);
  animation: float-gold 45s infinite alternate ease-in-out;
}

.active-bg-slate-glow {
  display: none;
}

@keyframes float-orange {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.05); }
}

@keyframes float-gold {
  0% { transform: translate(0, 0) scale(0.95); }
  100% { transform: translate(-8%, -5%) scale(1.05); }
}

/* ---- UTILS ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent-orange {
  color: var(--copper);
}

.accent-darkblue {
  color: var(--navy);
}

.hidden {
  display: none !important;
}

/* ---- LOGO BRANDING ---- */
.logo-hs {
  color: var(--copper);
  font-weight: 900;
}

.logo-classes {
  color: var(--navy);
  font-weight: 900;
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---- BUTTON STYLES ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(12, 29, 54, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(12, 29, 54, 0.35);
  background: var(--navy-mid);
}

.btn-glass {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-glass:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 29, 54, 0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
  font-size: 1.2rem;
}

/* ---- SECTION BASE ---- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  background: var(--copper-soft);
  border: 1px solid rgba(196, 120, 50, 0.2);
  color: var(--copper-dark);
  padding: 5px 18px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--navy);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}


/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(12, 29, 54, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(12, 29, 54, 0.2);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.nav-logo-img {
  height: 58px;
  width: auto;
  border-radius: 10px;
  margin-right: 14px;
  flex-shrink: 0;
}

.logo-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-sub {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .nav-logo-img {
    height: 44px;
    margin-right: 8px;
  }
  .logo-main {
    font-size: 1.2rem;
  }
  .logo-sub {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
}

.nav-links {
  display: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--navy);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--copper-glow);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(242, 92, 5, 0.4);
  background: var(--copper-dark);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
  transform: translateY(0);
}

.drawer-link {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
}

.drawer-link:hover {
  color: var(--navy);
  letter-spacing: 2px;
}

.drawer-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero_bg.png') center/cover no-repeat;
  transform: scale(1.1);
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(250, 248, 245, 0.8) 0%,
      rgba(250, 248, 245, 0.92) 40%,
      rgba(250, 248, 245, 1) 100%);
}

.global-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0.4;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-20px) rotate(360deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--copper-soft);
  border: 1px solid rgba(196, 120, 50, 0.2);
  color: var(--copper);
  padding: 8px 24px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: pulse-border 3s infinite;
}

@keyframes pulse-border {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--copper-glow);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--navy);
}

.hero-title-line1,
.hero-title-line2 {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.kinetic-word {
  display: inline-block;
  animation: kinetic-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kinetic-glow {
  text-shadow: 0 4px 30px rgba(12, 29, 54, 0.15);
}

@keyframes kinetic-in {
  from {
    opacity: 0;
    transform: translateY(40px) skewY(5deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--copper);
  display: inline-block;
}

.stat-plus {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--copper);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s;
}

.hero-scroll:hover {
  color: var(--navy);
}

.scroll-icon {
  width: 28px;
  height: 44px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--copper);
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-anim {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.about-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  transition: transform 0.5s ease;
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.04);
}

.about-img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--copper); /* exact brand orange color */
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(12, 29, 54, 0.3);
}

.badge-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  display: block;
}

.badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--copper);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  background: var(--copper-soft);
  border: 1px solid rgba(196, 120, 50, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--copper);
  flex-shrink: 0;
}

.about-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.about-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================
   EXCELLENCE SECTION
   ========================================= */
.excellence-section {
  background: var(--cream);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--copper);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 Aspect Ratio */
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--navy-mid);
}

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

/* =========================================
   AWARDS SECTION
   ========================================= */
.awards-section {
  background: var(--cream-warm);
}

.award-display {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.award-img-wrapper {
  max-width: 300px;
  width: 100%;
}

.award-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(12, 29, 54, 0.12));
}

.award-text h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--navy);
}

.award-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 700px;
}

@media (min-width: 768px) {
  .award-display {
    flex-direction: row;
    text-align: left;
    padding: 60px;
  }
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-section {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--cream-warm);
}

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

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
  }

  .item-1 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .item-2 {
    grid-column: span 1;
    grid-row: span 2;
  }

  .item-3 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .item-4 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .item-5 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* =========================================
   COURSES SECTION
   ========================================= */
.courses-section {
  background: var(--cream-warm);
}

.course-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.course-tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.course-tab:hover {
  color: var(--navy);
  border-color: var(--copper);
}

.course-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(12, 29, 54, 0.25);
}

.course-panel {
  display: none;
}

.course-panel.active {
  display: block;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.course-card:hover::before {
  transform: scaleX(1);
}

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

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

.course-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.course-icon.physics {
  background: var(--copper-soft);
  color: var(--copper);
  border: 1px solid rgba(196, 120, 50, 0.15);
}

.course-icon.math {
  background: rgba(12, 29, 54, 0.06);
  color: var(--navy);
  border: 1px solid rgba(12, 29, 54, 0.1);
}

.course-icon.chem {
  background: var(--olive-soft);
  color: var(--olive);
  border: 1px solid rgba(107, 122, 61, 0.2);
}

.course-icon.bio {
  background: rgba(90, 180, 210, 0.1);
  color: #0288D1;
  border: 1px solid rgba(90, 180, 210, 0.25);
}

.course-icon.combo {
  background: rgba(128, 90, 213, 0.08);
  color: #7C3AED;
  border: 1px solid rgba(128, 90, 213, 0.15);
}

.course-icon.drop {
  background: var(--copper-soft);
  color: var(--copper);
  border: 1px solid rgba(196, 120, 50, 0.2);
}

.course-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.course-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-tag {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.course-fee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fee-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.fee-amount {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.course-inquire-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s;
  flex-shrink: 0;
  white-space: nowrap;
}

.course-inquire-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* =========================================
   FACULTY SECTION
   ========================================= */
.faculty-section {
  background: var(--cream);
  padding-top: 40px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.faculty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.faculty-card:hover {
  transform: translateY(-6px);
  border-color: var(--copper);
  box-shadow: var(--shadow-lg);
}

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

.faculty-section .section-header {
  margin-bottom: 30px;
}

.faculty-img-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.faculty-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.5s ease;
}

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

.faculty-subject-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 14px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-orange {
  background: var(--copper);
  color: var(--white);
}

.badge-yellow {
  background: var(--navy);
  color: var(--white);
}

.badge-green {
  background: var(--olive);
  color: var(--white);
}

.faculty-info {
  padding: 20px;
  flex: 1;
}

.faculty-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--navy);
}

.faculty-qual {
  font-size: 0.8rem;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 10px;
}

.faculty-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.faculty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.faculty-tag {
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* =========================================
   ACHIEVEMENTS SECTION
   ========================================= */
.achievements-section {
  background: var(--cream-warm);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.stats-strip-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.stats-strip-item:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stats-strip-item i {
  font-size: 1.6rem;
  color: var(--copper);
  flex-shrink: 0;
}

.strip-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}

.stats-strip-item div p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Topper Carousel */
.topper-carousel-wrapper {
  position: relative;
}

.topper-carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.topper-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.topper-card {
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .topper-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .topper-details {
    align-items: center;
  }
}

.topper-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(196, 120, 50, 0.03) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.topper-photo-container {
  flex-shrink: 0;
}

.topper-photo {
  width: 145px;
  height: 145px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #f0f0f0; /* clean gray placeholder */
  border: 3px solid #ffffff; /* elegant thick white border */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16); /* stronger drop shadow for high visibility */
}

.topper-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.topper-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.topper-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  padding: 5px 18px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.topper-institute {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.topper-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.25s;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--copper);
  width: 20px;
  border-radius: 4px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--copper);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.contact-card i {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card strong {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-card a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--copper);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: var(--text-muted);
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#social-instagram { color: #E1306C; }
#social-facebook { color: #1877F2; }
#social-youtube { color: #FF0000; }
#social-justdial { font-family: 'Nunito', sans-serif; font-weight: 900; letter-spacing: -0.5px; }
#social-justdial .jd-j { color: #116DB6; transition: color 0.25s; }
#social-justdial .jd-d { color: #F26600; transition: color 0.25s; }
#social-sulekha { border-color: var(--border); }
.social-icon-img { width: 30px; height: 30px; object-fit: contain; }

#social-instagram:hover { background: #E1306C; color: var(--white); border-color: #E1306C; box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4); }
#social-facebook:hover { background: #1877F2; color: var(--white); border-color: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }
#social-youtube:hover { background: #FF0000; color: var(--white); border-color: #FF0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4); }
#social-justdial:hover { background: #116DB6; color: var(--white); border-color: #116DB6; box-shadow: 0 8px 20px rgba(17, 109, 182, 0.4); }
#social-justdial:hover .jd-j, #social-justdial:hover .jd-d { color: var(--white); }
#social-sulekha:hover { background: #DB3D26; color: var(--white); border-color: #DB3D26; box-shadow: 0 8px 20px rgba(219, 61, 38, 0.4); }

.directions-btn {
  margin-top: 4px;
  align-self: flex-start;
}

.map-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
}

.map-inner i {
  font-size: 3rem;
  color: var(--copper);
}

.map-inner p {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.map-inner span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  border-top: 3px solid var(--copper);
  padding: 32px 0;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-logo i {
  color: var(--copper);
}

.footer-logo .logo-hs {
  color: var(--copper);
}

.footer-logo .logo-classes {
  color: var(--white);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-admin-hint {
  margin-top: 12px;
}

.footer-admin-link {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.2s;
}

.footer-admin-link:hover {
  color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1999;
  height: 64px;
  border-radius: 50px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  font-size: 1.8rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fab-pulse 3s ease-in-out infinite;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

@keyframes fab-pulse {

  0%,
  100% {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.3);
  }

  50% {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 12px transparent;
  }
}

.whatsapp-fab:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.fab-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 29, 54, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transform: scale(0.9) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(12, 29, 54, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  z-index: 5;
}

.modal-close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-wa-icon {
  font-size: 2.5rem;
  color: #25d366;
  margin-bottom: 8px;
  display: block;
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--navy);
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--copper);
}

.form-group input.error,
.form-group select.error {
  border-color: #e53e3e;
}

.form-group textarea {
  resize: vertical;
}

/* =========================================
   ADMIN DASHBOARD
   ========================================= */
.admin-overlay {
  align-items: center;
}

.admin-panel {
  width: 100%;
  max-width: 700px;
  max-height: 95dvh;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.admin-overlay.active .admin-panel {
  transform: scale(1);
}

.admin-gate {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.admin-gate-logo {
  font-size: 3rem;
  color: var(--copper);
  margin-bottom: 8px;
}

.admin-gate h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.admin-gate p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.admin-input {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  width: 100%;
  max-width: 320px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: var(--copper);
  outline: none;
}

.admin-error {
  font-size: 0.85rem;
  color: #e53e3e;
  font-weight: 500;
}

.admin-dash {
  display: flex;
  flex-direction: column;
  height: 95dvh;
  max-height: 95dvh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--cream-warm);
}

.admin-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}

.admin-logo i {
  color: var(--copper);
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--cream-warm);
}

.admin-tab {
  flex: 1;
  padding: 12px 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-tab:hover {
  color: var(--navy);
}

.admin-tab.active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.admin-panel-content {
  display: none;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.admin-panel-content.active {
  display: block;
}

.admin-panel-content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.admin-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

.inquiries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inquiry-item {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.inquiry-item strong {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--navy);
}

.inquiry-item .inq-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.inquiry-item .inq-time {
  font-size: 0.73rem;
  color: #999;
  margin-top: 6px;
}

.ann-add-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.ann-type-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.ann-type-label input[type=checkbox] {
  accent-color: var(--copper);
  width: 16px;
  height: 16px;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ann-item {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ann-item.urgent {
  border-color: var(--copper);
}

.ann-item-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

.ann-urgent-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: var(--copper);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  flex-shrink: 0;
}

.ann-delete {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ann-delete:hover {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
}

.visibility-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visibility-item {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.visibility-item-info {
  flex: 1;
}

.visibility-item-info strong {
  font-family: var(--font-head);
  font-size: 0.88rem;
  color: var(--navy);
}

.visibility-item-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #CCC;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  left: 3px;
  top: 3px;
  transition: transform 0.2s;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--copper);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(20px);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  font-size: 0.88rem;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.revealed {
  opacity: 1;
  transform: none;
}

/* =========================================
   RESPONSIVE – TABLET (min-width: 640px)
   ========================================= */
@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-img {
    height: 360px;
  }
}

/* =========================================
   RESPONSIVE – DESKTOP (min-width: 1024px)
   ========================================= */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-img {
    height: 480px;
  }

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

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

  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .topper-card {
    min-width: calc(50% - 0px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
  }

  .modal-box {
    border-radius: var(--radius-lg);
    margin: auto;
  }

  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

/* =========================================
   LOGO PULSE
   ========================================= */
@keyframes logo-pulse {

  0%,
  100% {
    box-shadow: 0 4px 14px rgba(12, 29, 54, 0.15);
  }

  50% {
    box-shadow: 0 4px 28px rgba(12, 29, 54, 0.2), 0 0 0 6px rgba(12, 29, 54, 0.05);
  }
}

.logo-icon {
  animation: logo-pulse 3s ease-in-out infinite;
}

/* =========================================
   GLOBAL BACKGROUND PARTICLES (BUBBLES)
   ========================================= */
.global-particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  opacity: 0.12;
  will-change: transform, opacity;
  animation: bubble-rise 12s infinite linear;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.12;
  }
  90% {
    opacity: 0.12;
  }
  100% {
    transform: translateY(-105vh) scale(1.2);
    opacity: 0;
  }
}
