/* ==========================================================================
   SPARKS CLASSES - MAIN DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & VARIABLE SETUP
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary: #0F766E;
  --primary-light: #14B8A6;
  --primary-dark: #0D5C56;
  --primary-glow: rgba(20, 184, 166, 0.35);
  
  --secondary: #14B8A6;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-hover-bg: #FFFFFF;
  
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --white: #FFFFFF;
  
  --border-color: rgba(226, 232, 240, 0.8);
  --border-highlight: rgba(20, 184, 166, 0.4);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 20px 40px rgba(15, 118, 110, 0.08);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px -3px rgba(15, 118, 110, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 22px 35px -5px rgba(15, 118, 110, 0.12), 0 8px 12px -6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 25px 40px -5px rgba(20, 184, 166, 0.22);

  /* Spacing & Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Font & Transition */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   DARK THEME OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-light: #0B132B;
  --card-bg: #1C2541;
  --card-hover-bg: #232F52;
  
  --text-dark: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  
  --border-color: rgba(51, 65, 85, 0.7);
  --border-highlight: rgba(20, 184, 166, 0.6);
  
  --glass-bg: rgba(28, 37, 65, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 22px 35px -5px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 25px 40px -5px rgba(20, 184, 166, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

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

/* Selection Color */
::selection {
  background: var(--primary-light);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   3. PRELOADER & CUSTOM CURSOR
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-light);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-emblem {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px var(--primary-glow);
  animation: pulseLogo 1.8s infinite ease-in-out;
  margin-bottom: 20px;
}

.preloader-emblem svg {
  width: 44px;
  height: 44px;
  color: var(--white);
}

.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(20, 184, 166, 0.2);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
}

/* Animated Cursor follower */
.cursor-dot, .cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
}

.cursor-outline {
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary-light);
}

@media (max-width: 1024px) {
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. SCROLL PROGRESS BAR & NAVBAR
   -------------------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease-out;
}

.header-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.header-navbar.scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: var(--primary-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--primary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-3px);
  background: rgba(20, 184, 166, 0.05);
}

.btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

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

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: floatBlob 18s infinite alternate ease-in-out;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--primary-light);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: 5%;
  right: -50px;
  animation-delay: -6s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-badge-spark {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-headline .typed-text {
  color: var(--primary-light);
  border-right: 3px solid var(--accent);
  animation: caretBlink 0.8s infinite;
  white-space: nowrap;
}

.hero-subheading {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-illustration {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatVertical 4s ease-in-out infinite;
  z-index: 3;
}

.floating-badge-1 {
  top: 15px;
  left: -20px;
}

.floating-badge-2 {
  bottom: 25px;
  right: -15px;
  animation-delay: -2s;
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.badge-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 2;
}

.scroll-indicator svg {
  animation: bounceDown 2s infinite;
}

/* --------------------------------------------------------------------------
   7. STATS SECTION
   -------------------------------------------------------------------------- */
.stats-section {
  padding: 60px 0;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.exp-years {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.exp-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about-tabs {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.tab-btn {
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  color: var(--primary-light);
  background: rgba(20, 184, 166, 0.1);
}

.tab-content {
  display: none;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   9. COURSES SECTION
   -------------------------------------------------------------------------- */
.courses-section {
  padding: 100px 0;
  background: rgba(15, 118, 110, 0.03);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  position: relative;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-highlight);
}

.course-header {
  margin-bottom: 20px;
}

.course-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(245, 158, 11, 0.15));
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.course-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.course-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.course-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

.course-feature-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.course-duration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   10. WHY CHOOSE SPARKS
   -------------------------------------------------------------------------- */
.why-section {
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.why-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.why-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.why-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. FACULTY SECTION
   -------------------------------------------------------------------------- */
.faculty-section {
  padding: 100px 0;
  background: rgba(15, 118, 110, 0.03);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.faculty-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.faculty-img-box {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #E2E8F0;
}

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

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

.faculty-subject-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.faculty-info {
  padding: 24px;
  text-align: center;
}

.faculty-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.faculty-qual {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.faculty-exp {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.faculty-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   12. RESULTS SECTION
   -------------------------------------------------------------------------- */
.results-section {
  padding: 100px 0;
}

/* Carousel outer wrapper — holds arrows + scrollable track */
.results-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  position: relative;
}

/* Scroll viewport — clips overflow */
.results-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Scrollable flex row — single horizontal line, never wraps */
.results-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 24px;
  cursor: grab;
  /* Hide scrollbar visually but keep functionality */
  scrollbar-width: none;
}
.results-grid::-webkit-scrollbar {
  display: none;
}

/* Each card — narrow fixed width so 8 fit in one viewport frame */
.ranker-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-normal);
  flex: 0 0 130px;
  min-width: 130px;
}

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

/* Arrow navigation buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(20,184,166,0.3);
  transform: scale(1.08);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.ranker-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ranker-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 8px auto 12px;
  border: 3px solid var(--primary-light);
  object-fit: cover;
  display: block;
}

.ranker-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.ranker-exam {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.ranker-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(20, 184, 166, 0.08);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.stat-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-light);
}

.stat-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS SLIDER
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 100px 0;
  background: rgba(15, 118, 110, 0.03);
}

.slider-container {
  max-width: 800px;
  margin: 50px auto 0;
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  padding: 10px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--primary-light);
  opacity: 0.4;
}

.stars {
  color: var(--accent);
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.author-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-dark);
}

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

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--primary-light);
}

/* --------------------------------------------------------------------------
   14. GALLERY SECTION
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 100px 0;
}

.filter-btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 118, 110, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   15. ADMISSION PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.admission-section {
  padding: 100px 0;
  background: rgba(15, 118, 110, 0.03);
}

.timeline-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 60px;
  position: relative;
}

.timeline-step {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.timeline-step:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

/* --------------------------------------------------------------------------
   16. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 100px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-header {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.faq-header:hover {
  color: var(--primary-light);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--primary-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding-bottom: 22px;
  transition: max-height 0.4s ease-in-out;
}

/* --------------------------------------------------------------------------
   17. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 100px 0;
  background: rgba(15, 118, 110, 0.03);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-top: 50px;
}

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

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

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

.map-card {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* --------------------------------------------------------------------------
   18. FOOTER & FLOATING WIDGETS
   -------------------------------------------------------------------------- */
.footer {
  background: #0B132B;
  color: #94A3B8;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo-brand {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

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

.footer-links-list a {
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--primary-light);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-input {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #FFF;
  border: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 998;
}

.btn-float {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: var(--transition-bounce);
}

.btn-float-wa {
  background: #25D366;
}

.btn-float-call {
  background: var(--primary);
}

.btn-float-top {
  background: var(--accent);
  opacity: 0;
  visibility: hidden;
}

.btn-float-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-float:hover {
  transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   19. TEL LINK STYLE (Contact numbers)
   -------------------------------------------------------------------------- */
.sparks-tel-link {
  color: var(--primary-light);
  font-weight: 600;
  transition: var(--transition-fast);
}

.sparks-tel-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

