/* ============================================================
   IDEAL IAS ACADEMY — Complete Stylesheet
   ============================================================ */

/* ==================== RESET & BASE ==================== */
/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #374151;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  opacity: 0;
  animation: pageLoad 0.6s ease forwards;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #0B1C2D;
  line-height: 1.2;
}

.tamil {
  font-family: 'Noto Serif Tamil', 'Catamaran', serif;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: #dc2626;
  color: white;
}

/* ==================== UTILITIES ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, #dc2626, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-red { color: #ef4444; }
.text-white { color: #ffffff; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn i { font-size: 0.85rem; }

.btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #0B1C2D;
  border: 2px solid #0B1C2D;
}

.btn-secondary:hover {
  background: #0B1C2D;
  color: white;
  transform: translateY(-3px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: white;
  color: #0B1C2D;
}

.btn-outline-dark {
  background: transparent;
  color: #0B1C2D;
  border: 2px solid #0B1C2D;
}

.btn-outline-dark:hover {
  background: #0B1C2D;
  color: white;
}

.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ==================== SECTION HEADERS ==================== */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-label.center { justify-content: center; }
.section-label.light span { color: #f87171; }

.label-line {
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(to right, #dc2626, #f97316);
  border-radius: 50px;
}

.label-line.red { background: #ef4444; }

.section-label span {
  color: #dc2626;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.section-title.center { text-align: center; }
.section-title.white { color: white; }

.section-desc {
  margin-top: 1rem;
  color: #6b7280;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-desc.light { color: #d1d5db; }

.section-desc-tamil {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.section-desc-tamil.light { color: #9ca3af; }

.section-header { margin-bottom: 3.5rem; }

/* ==================== TOP BAR ==================== */
.topbar {
  background: #0B1C2D;
  color: white;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  display: none;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 1.5rem;
}

.topbar-left a {
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-left a:hover { color: #f87171; }

.topbar-right .tamil {
  color: #9ca3af;
  font-size: 0.8rem;
}

@media (min-width: 1024px) {
  .topbar { display: block; }
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding: 0.6rem 0;
}

@media (min-width: 1024px) {
  .navbar:not(.scrolled) { top: 42px; }
  .navbar.scrolled { top: 0; }
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  background: white;
  color: #0B1C2D;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo-icon {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
}

.logo-icon.white {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
}

.logo-title {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  transition: color 0.3s;
}

.navbar.scrolled .logo-title { color: #0B1C2D; }

.logo-subtitle {
  display: block;
  font-size: 0.7rem;
  color: #d1d5db;
  transition: color 0.3s;
}

.navbar.scrolled .logo-subtitle { color: #9ca3af; }

/* Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  color: white;
}

.navbar.scrolled .nav-link {
  color: #4b5563;
}

.navbar.scrolled .nav-link:hover {
  color: #dc2626;
  background: #fef2f2;
}

.navbar.scrolled .nav-link.active {
  color: #dc2626;
}

.nav-cta { margin-left: 1rem; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle span { background: #0B1C2D; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) { opacity: 0; }

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile Menu Panel */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: white;
  padding: 5rem 1.5rem 2rem;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  gap: 0.5rem;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.nav-links.mobile-open .nav-link {
  color: #374151;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.nav-links.mobile-open .nav-link:hover {
  background: #fef2f2;
  color: #dc2626;
}

.nav-links.mobile-open .nav-cta {
  margin-left: 0;
  margin-top: 1rem;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B1C2D 0%, #1a3a5c 50%, #0B1C2D 100%);
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: rgba(220, 38, 38, 0.08);
}

.blob-2 {
  bottom: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.08);
}

.blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero { padding: 10rem 0 5rem; }
}

/* Hero Left */
.hero-left { text-align: center; }

@media (min-width: 1024px) {
  .hero-left { text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: 2.75rem;
  color: white;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title .text-gradient {
  display: block;
  margin: 0.25rem 0;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.25rem; }
}

.hero-tamil {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
}

@media (min-width: 1024px) {
  .hero-tamil { font-size: 1.35rem; }
}

.hero-desc {
  margin-top: 1rem;
  color: #d1d5db;
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-desc { margin-left: 0; }
}

.hero-highlights {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

@media (min-width: 1024px) {
  .hero-highlights { justify-content: flex-start; }
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.highlight-item i { color: #22c55e; font-size: 0.85rem; }

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
  .hero-cta { justify-content: flex-start; }
}

/* Hero Right */
.hero-right {
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .hero-right { display: block; }
}

.hero-image-card {
  position: relative;
}

.hero-image-card::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(249,115,22,0.2));
  border-radius: 28px;
  filter: blur(15px);
}

.hero-image-wrapper {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 10%;
  right: 10%;
  height: 6px;
  background: linear-gradient(to right, #dc2626, #f97316, #dc2626);
  border-radius: 0 0 10px 10px;
  filter: blur(4px);
  opacity: 0.6;
}

.hero-image-placeholder {
  height: 420px;
  background: linear-gradient(135deg, #1a3a5c, #0B1C2D);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.3);
}

.hero-image-placeholder i { font-size: 3rem; }

.hero-image-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.info-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  color: #0B1C2D;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.info-text .tamil {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-left {
  top: 80px;
  left: -30px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation-delay: 0s;
}

.float-left .float-icon {
  width: 40px;
  height: 40px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-weight: 700;
  font-size: 1.1rem;
}

.float-left strong {
  display: block;
  color: #0B1C2D;
  font-size: 1.25rem;
  font-family: 'Inter', sans-serif;
}

.float-left span {
  font-size: 0.8rem;
  color: #6b7280;
}

.float-right {
  bottom: 140px;
  right: -20px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  animation-delay: 3s;
}

/* ==================== STATS ==================== */
.stats-section {
  position: relative;
  z-index: 20;
  margin-top: -3rem;
  padding: 0 1.25rem;
}

.stats-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .stats-card {
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem 2.5rem;
  }
}

.stat-item { text-align: center; }

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0B1C2D;
  font-family: 'Inter', sans-serif;
  display: inline;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 800;
  color: #0B1C2D;
  font-family: 'Inter', sans-serif;
}

.stat-label {
  margin-top: 0.25rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.stat-tamil {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

/* ==================== ABOUT ==================== */
.about-section {
  position: relative;
  padding: 6rem 0;
  background: #f9fafb;
  overflow: hidden;
}

.about-bg-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to left, rgba(254,226,226,0.5), transparent);
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  border-radius: 2px;
}

.about-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-content { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about-image-wrapper { position: relative; }

.about-image-placeholder {
  height: 400px;
  background: linear-gradient(135deg, #1a3a5c, #0B1C2D);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.3);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.about-image-placeholder i { font-size: 3rem; }

@media (min-width: 1024px) {
  .about-image-placeholder { height: 480px; }
}

.about-exp-badge {
  position: absolute;
  top: -1rem;
  left: -1rem;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(220,38,38,0.4);
  text-align: center;
}

.exp-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.exp-text {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  display: block;
}

.about-quote-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 260px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  display: none;
}

@media (min-width: 1024px) {
  .about-quote-card { display: block; }
}

.about-quote-card i {
  color: #ef4444;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.about-quote-card p {
  font-style: italic;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.6;
}

.about-quote-card span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.about-right .section-title { margin-bottom: 0; }

.about-desc {
  margin-top: 1.5rem;
  color: #4b5563;
  line-height: 1.8;
}

.about-desc-tamil {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 2;
}

.about-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .about-features { grid-template-columns: 1fr 1fr; }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.feature-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-item i {
  color: #22c55e;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9rem;
  color: #374151;
}

.about-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==================== FEATURES ==================== */
.features-section {
  padding: 6rem 0;
  background: white;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.feature-card:hover {
  background: white;
  border-color: #fecaca;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-6px);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  font-family: 'Inter', sans-serif;
}

.feature-card-tamil {
  color: #dc2626;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.feature-card-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ==================== COURSES ==================== */
.courses-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0B1C2D 0%, #1a3a5c 50%, #0B1C2D 100%);
  position: relative;
  overflow: hidden;
}

.courses-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(4, 1fr); }
}

.course-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.course-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 0 0 10px 10px;
  z-index: 5;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.course-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.course-header {
  padding: 1.5rem;
  color: white;
}

.course-header h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.course-header .tamil {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.course-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.course-meta i { margin-right: 0.25rem; }

.course-features {
  flex: 1;
  margin-bottom: 1.25rem;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
  padding: 0.3rem 0;
}

.dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.courses-cta {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
}

.courses-cta p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.courses-cta a {
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.courses-cta a:hover { color: #f87171; }

/* ==================== RESULTS ==================== */
.results-section {
  padding: 6rem 0;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.results-bg-blob {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(254,202,202,0.4);
  border-radius: 50%;
  filter: blur(80px);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}

.result-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  will-change: transform;
}

.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.result-header {
  height: 120px;
  background: linear-gradient(135deg, #0B1C2D, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.result-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.result-rank {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.result-body {
  padding: 1.25rem;
  text-align: center;
}

.result-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.result-tamil-name {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.result-tag .sep { color: #d1d5db; }

/* ==================== GOOGLE REVIEWS ==================== */
.reviews-section {
  padding: 6rem 0;
  background: white;
}

.google-rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
  .google-rating-summary {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.google-logo {
  height: 24px;
  width: auto;
}

.rating-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0B1C2D;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.rating-stars .stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.rating-stars .stars i { margin-right: 2px; }

.rating-count {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .google-reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.google-review-card {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  will-change: transform;
}

.google-review-card:hover {
  background: white;
  border-color: #e5e7eb;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.review-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #0B1C2D;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.75rem;
}

.review-stars i { margin-right: 1px; }

.review-meta span {
  font-size: 0.75rem;
  color: #9ca3af;
}

.review-google-icon {
  position: absolute;
  top: 0;
  right: 0;
  color: #4285f4;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
  padding: 6rem 0;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.testimonial-bg-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(254,226,226,0.3), rgba(219,234,254,0.3));
  border-radius: 50%;
  filter: blur(80px);
}

.testimonial-slider {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.testimonial-card {
  background: linear-gradient(135deg, #0B1C2D, #1a3a5c);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  opacity: 0.08;
  font-size: 4rem;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.2);
}

.testimonial-text { text-align: center; }

@media (min-width: 768px) {
  .testimonial-text { text-align: left; }
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .testimonial-stars { justify-content: flex-start; }
}

.testimonial-eng {
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.testimonial-tam {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.testimonial-author h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.testimonial-author .tamil {
  color: #f87171;
  font-size: 0.85rem;
}

.testimonial-author span {
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav-btn:hover {
  background: #0B1C2D;
  color: white;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dots .dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots .dot-btn.active {
  width: 30px;
  background: #dc2626;
}

/* ==================== FACULTY ==================== */
.faculty-section {
  padding: 6rem 0;
  background: white;
  position: relative;
}

.faculty-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  border-radius: 2px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .faculty-grid { grid-template-columns: repeat(4, 1fr); }
}

.faculty-card {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s ease;
  will-change: transform;
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  background: white;
}

.faculty-image {
  height: 180px;
  background: linear-gradient(135deg, #0B1C2D, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 768px) {
  .faculty-image { height: 200px; }
}

.faculty-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.faculty-exp {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.faculty-info {
  padding: 1.25rem;
  text-align: center;
}

.faculty-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.faculty-info .tamil {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.faculty-role {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.faculty-subject {
  display: inline-block;
  background: white;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0B1C2D;
  margin-top: 0.75rem;
  border: 1px solid #e5e7eb;
}

.faculty-card:hover .faculty-subject {
  background: #f9fafb;
}

/* ==================== FAQ ==================== */
.faq-section {
  padding: 6rem 0;
  background: #f9fafb;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  border-radius: 2px;
}

.faq-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .faq-content { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.faq-desc {
  margin-top: 1.5rem;
  color: #4b5563;
}

.faq-desc-tamil {
  margin-top: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.faq-cta-card {
  margin-top: 2rem;
  background: linear-gradient(135deg, #0B1C2D, #1a3a5c);
  border-radius: 16px;
  padding: 1.5rem;
  color: white;
}

.faq-cta-card h4 {
  color: white;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
}

.faq-cta-card p {
  color: #d1d5db;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.faq-cta-card .btn { margin-top: 1rem; }

.faq-right { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active {
  border-color: #fecaca;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s ease;
}

.faq-question:hover { background: #f9fafb; }

.faq-question span {
  display: block;
  font-weight: 600;
  color: #0B1C2D;
  font-size: 0.95rem;
}

.faq-question small {
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.faq-question i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question i {
  background: #dc2626;
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.25rem;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
}

.faq-answer p:first-child {
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
}

.faq-answer p:last-child {
  padding-bottom: 1.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* ==================== CONTACT ==================== */
.contact-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0B1C2D 0%, #1a3a5c 50%, #0B1C2D 100%);
  position: relative;
  overflow: hidden;
}

.contact-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .contact-content { grid-template-columns: 2fr 3fr; gap: 3rem; }
}

.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(5px);
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  background: #dc2626;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-card small {
  display: block;
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-card strong {
  display: block;
  color: white;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.contact-hours {
  padding: 1.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-hours h4 {
  color: white;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.5rem;
}

.contact-hours h4 i { color: #f87171; margin-right: 0.5rem; }

.contact-hours p {
  color: #d1d5db;
  font-size: 0.85rem;
  line-height: 1.8;
}

/* Google Map */
.contact-map {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-map iframe {
  display: block;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.map-link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .contact-form-wrapper { padding: 2.5rem; }
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.required { color: #ef4444; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #374151;
  transition: all 0.3s ease;
  background: white;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group textarea { resize: none; }

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #22c55e;
}

.form-success h3 {
  font-size: 1.75rem;
  font-family: 'Inter', sans-serif;
}

.form-success p {
  color: #6b7280;
  margin-top: 0.5rem;
}

.form-success .tamil {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 30%, #991b1b 60%, #7f1d1d 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 30px 30px;
}

.cta-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .cta-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-text h2 {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .cta-text h2 { font-size: 2rem; }
}

.cta-text .tamil {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.cta-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-banner .btn-primary {
  background: white;
  color: #dc2626;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-banner .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.cta-banner .btn-outline-white {
  border-color: rgba(255,255,255,0.5);
}

.cta-banner .btn-outline-white:hover {
  background: white;
  color: #dc2626;
  border-color: white;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0B1C2D;
  color: white;
}

.footer-content {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-content { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; }
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-tamil {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #dc2626;
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 0.25rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-contact i {
  color: #ef4444;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: #6b7280;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #6b7280;
  font-size: 0.8rem;
}

.footer-bottom-links a:hover { color: white; }

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  animation: whatsappBounce 3s ease infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37,211,102,0.5);
  animation: none;
}

@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2s ease infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #0B1C2D;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 18px;
  border: 6px solid transparent;
  border-top-color: #0B1C2D;
}

.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: #0B1C2D;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #dc2626;
  transform: translateY(-3px);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0B1C2D, #1a3a5c);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #1a3a5c; }

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 640px) {
  .section-title { font-size: 1.85rem; }
  
  .hero-title { font-size: 2.25rem; }
  
  .stats-card { padding: 1.5rem 1rem; gap: 1.5rem; }
  
  .stat-number { font-size: 2rem; }
  .stat-suffix { font-size: 1.5rem; }
  
  .feature-card { padding: 1.25rem; }
  .feature-card h3 { font-size: 0.9rem; }
  .feature-card-desc { font-size: 0.8rem; }
  
  .testimonial-card { padding: 1.5rem; }
  
  .contact-form-wrapper { padding: 1.5rem; }
  
  .faculty-avatar { width: 60px; height: 60px; font-size: 1.1rem; }
  .faculty-info h4 { font-size: 0.85rem; }
  
  .cta-text h2 { font-size: 1.5rem; }
  
  .google-rating-summary { padding: 1.5rem; }
  .rating-number { font-size: 2rem; }
  
  .hero-badge { font-size: 0.75rem; padding: 0.4rem 1rem; }
  
  .about-exp-badge {
    top: -0.5rem;
    left: -0.5rem;
    padding: 0.75rem;
  }
  .exp-number { font-size: 1.5rem; }
  
  .result-header { height: 100px; }
  .result-avatar { width: 60px; height: 60px; font-size: 1.25rem; }
  
  .faq-question { padding: 1rem; }
  .faq-question span { font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.6rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .about-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   MOBILE-FIRST REFINEMENTS
   Center-aligned, phone-optimized experience
   ============================================================ */

@media (max-width: 1023px) {

  /* ===== GENERAL MOBILE CENTERING ===== */
  .section-label {
    justify-content: center;
  }

  .section-title {
    text-align: center;
  }

  .section-desc,
  .section-desc-tamil {
    text-align: center;
  }

  /* ===== NAVBAR MOBILE ===== */
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar.scrolled {
    padding: 0.5rem 0;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .logo-title {
    font-size: 1rem;
  }

  /* ===== HERO MOBILE ===== */
  .hero {
    padding: 6.5rem 0 3rem;
    min-height: auto;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-tamil {
    font-size: 1.1rem;
    margin-top: 1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .hero-highlights {
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
  }

  .highlight-item {
    font-size: 0.85rem;
  }

  .hero-cta {
    margin-top: 2rem;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* ===== STATS MOBILE ===== */
  .stats-section {
    margin-top: -2rem;
  }

  .stats-card {
    padding: 1.5rem;
    gap: 1.25rem;
    border-radius: 16px;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-suffix {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-tamil {
    font-size: 0.7rem;
  }

  /* ===== ABOUT MOBILE — CENTER EVERYTHING ===== */
  .about-section {
    padding: 4rem 0;
  }

  .about-content {
    gap: 2.5rem;
  }

  .about-image-placeholder {
    height: 280px;
    border-radius: 16px;
  }

  .about-exp-badge {
    top: -0.75rem;
    left: -0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
  }

  .exp-number {
    font-size: 1.5rem;
  }

  .exp-text {
    font-size: 0.7rem;
  }

  .about-right {
    text-align: center;
  }

  .about-right .section-label {
    justify-content: center;
  }

  .about-right .section-title {
    text-align: center;
    font-size: 2rem;
  }

  .about-desc {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 1.25rem;
    line-height: 1.7;
  }

  .about-desc-tamil {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .about-features {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .feature-item {
    justify-content: center;
    text-align: left;
    padding: 0.65rem 1rem;
  }

  .about-cta {
    justify-content: center;
    margin-top: 2rem;
  }

  .about-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* ===== FEATURES MOBILE ===== */
  .features-section {
    padding: 4rem 0;
  }

  .features-grid {
    gap: 0.75rem;
  }

  .feature-card {
    padding: 1.25rem;
    text-align: center;
  }

  .feature-card-icon {
    margin: 0 auto 0.75rem;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .feature-card-tamil {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .feature-card-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* ===== COURSES MOBILE ===== */
  .courses-section {
    padding: 4rem 0;
  }

  .courses-grid {
    gap: 1.25rem;
  }

  .course-header {
    padding: 1.25rem;
    text-align: center;
  }

  .course-body {
    padding: 1.25rem;
  }

  .course-desc {
    text-align: center;
    font-size: 0.85rem;
  }

  .course-meta {
    justify-content: center;
    font-size: 0.75rem;
  }

  .course-features li {
    font-size: 0.8rem;
  }

  .courses-cta {
    margin-top: 2rem;
  }

  .courses-cta p {
    font-size: 0.85rem;
  }

  /* ===== RESULTS MOBILE ===== */
  .results-section {
    padding: 4rem 0;
  }

  .results-grid {
    gap: 1rem;
  }

  .result-header {
    height: 110px;
  }

  .result-avatar {
    width: 65px;
    height: 65px;
    font-size: 1.35rem;
  }

  .result-rank {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }

  .result-body {
    padding: 1rem;
  }

  .result-body h4 {
    font-size: 1rem;
  }

  .result-tamil-name {
    font-size: 0.8rem;
  }

  .result-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }

  /* ===== GOOGLE REVIEWS MOBILE ===== */
  .reviews-section {
    padding: 4rem 0;
  }

  .google-rating-summary {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .rating-badge {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .rating-stars {
    text-align: center;
  }

  .rating-number {
    font-size: 2.25rem;
  }

  .google-reviews-grid {
    gap: 1rem;
  }

  .google-review-card {
    padding: 1.25rem;
  }

  .review-text {
    font-size: 0.85rem;
    line-height: 1.65;
  }

  /* ===== TESTIMONIALS MOBILE ===== */
  .testimonials-section {
    padding: 4rem 0;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .testimonial-stars {
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .testimonial-eng {
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: center;
  }

  .testimonial-tam {
    font-size: 0.8rem;
    text-align: center;
  }

  .testimonial-author {
    text-align: center;
  }

  .testimonial-author h4 {
    font-size: 1rem;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  /* ===== FACULTY MOBILE ===== */
  .faculty-section {
    padding: 4rem 0;
  }

  .faculty-grid {
    gap: 1rem;
  }

  .faculty-image {
    height: 160px;
  }

  .faculty-avatar {
    width: 65px;
    height: 65px;
    font-size: 1.25rem;
  }

  .faculty-exp {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
  }

  .faculty-info {
    padding: 1rem;
  }

  .faculty-info h4 {
    font-size: 0.85rem;
  }

  .faculty-info .tamil {
    font-size: 0.75rem;
  }

  .faculty-role {
    font-size: 0.7rem;
  }

  .faculty-subject {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    margin-top: 0.5rem;
  }

  /* ===== FAQ MOBILE — CENTER LEFT SECTION ===== */
  .faq-section {
    padding: 4rem 0;
  }

  .faq-content {
    gap: 2rem;
  }

  .faq-left {
    text-align: center;
  }

  .faq-left .section-label {
    justify-content: center;
  }

  .faq-left .section-title {
    text-align: center;
    font-size: 2rem;
  }

  .faq-desc {
    text-align: center;
    font-size: 0.95rem;
  }

  .faq-desc-tamil {
    text-align: center;
  }

  .faq-cta-card {
    text-align: center;
    padding: 1.25rem;
  }

  .faq-cta-card h4 {
    font-size: 1rem;
  }

  .faq-cta-card p {
    font-size: 0.85rem;
  }

  .faq-question {
    padding: 1rem;
  }

  .faq-question span {
    font-size: 0.88rem;
  }

  .faq-question small {
    font-size: 0.75rem;
  }

  .faq-question i {
    width: 26px;
    height: 26px;
    font-size: 0.6rem;
  }

  .faq-answer p {
    padding: 0 1rem;
    font-size: 0.85rem;
  }

  .faq-answer p:last-child {
    font-size: 0.75rem;
    padding-bottom: 1rem;
  }

  /* ===== CONTACT MOBILE ===== */
  .contact-section {
    padding: 4rem 0;
  }

  .contact-content {
    gap: 2rem;
  }

  .contact-info-card {
    padding: 0.85rem;
  }

  .contact-info-icon {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .contact-info-card small {
    font-size: 0.7rem;
  }

  .contact-info-card strong {
    font-size: 0.85rem;
  }

  .contact-hours {
    padding: 1rem;
    text-align: center;
  }

  .contact-hours h4 {
    font-size: 0.9rem;
  }

  .contact-hours p {
    font-size: 0.8rem;
  }

  .contact-map iframe {
    height: 180px;
  }

  .map-link {
    font-size: 0.75rem;
    padding: 0.6rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .form-note {
    font-size: 0.7rem;
  }

  /* ===== CTA BANNER MOBILE ===== */
  .cta-banner {
    padding: 3rem 0;
  }

  .cta-text h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .cta-text .tamil {
    font-size: 0.9rem;
  }

  .cta-sub {
    font-size: 0.85rem;
  }

  .cta-buttons {
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* ===== FOOTER MOBILE — CENTER EVERYTHING ===== */
  .footer-content {
    padding: 3rem 0;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    font-size: 0.85rem;
  }

  .footer-tamil {
    font-size: 0.75rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
  }

  .footer-contact a {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  .footer-bottom-links {
    gap: 1rem;
  }

  .footer-bottom-links a {
    font-size: 0.75rem;
  }

  /* ===== WHATSAPP & SCROLL BUTTONS MOBILE ===== */
  .whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
    bottom: 1.25rem;
    left: 1.25rem;
  }

  /* ===== GENERAL MOBILE SPACING ===== */
  .section-header {
    margin-bottom: 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ============================================================
   EXTRA SMALL PHONES (< 380px)
   ============================================================ */

@media (max-width: 380px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-tamil {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-suffix {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .feature-card-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .feature-card h3 {
    font-size: 0.8rem;
  }

  .feature-card-desc {
    font-size: 0.75rem;
  }

  .about-right .section-title {
    font-size: 1.6rem;
  }

  .faq-left .section-title {
    font-size: 1.6rem;
  }

  .cta-text h2 {
    font-size: 1.3rem;
  }

  .rating-number {
    font-size: 2rem;
  }

  .faculty-image {
    height: 140px;
  }

  .faculty-avatar {
    width: 55px;
    height: 55px;
    font-size: 1rem;
  }

  .result-header {
    height: 95px;
  }

  .result-avatar {
    width: 55px;
    height: 55px;
    font-size: 1.15rem;
    border-width: 3px;
  }

  .testimonial-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .testimonial-eng {
    font-size: 0.85rem;
  }

  .contact-form-wrapper {
    padding: 1.25rem;
  }

  .google-review-card {
    padding: 1rem;
  }

  .review-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .review-text {
    font-size: 0.8rem;
  }
}

/* ============================================================
   TABLET REFINEMENTS (768px - 1023px)
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .stats-card {
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faculty-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-brand .logo {
    justify-content: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-contact li {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-contact a {
    justify-content: flex-start;
  }
}

/* ============================================================
   TOUCH DEVICE IMPROVEMENTS
   ============================================================ */

@media (hover: none) {
  /* Remove hover animations on touch devices for better performance */
  .feature-card:hover,
  .course-card:hover,
  .result-card:hover,
  .faculty-card:hover,
  .google-review-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Keep subtle visual feedback on tap */
  .feature-card:active,
  .course-card:active,
  .result-card:active,
  .faculty-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .btn:active {
    transform: scale(0.97);
  }

  /* Disable floating animation on mobile for performance */
  .floating-card {
    animation: none;
  }

  /* Better tap targets */
  .nav-link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .faq-question {
    min-height: 56px;
  }

  /* Remove WhatsApp bounce on touch */
  .whatsapp-btn {
    animation: none;
  }
}

/* ============================================================
   SAFE AREA INSETS (for notched phones)
   ============================================================ */

@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero {
    padding-top: max(7rem, calc(env(safe-area-inset-top) + 6rem));
  }

  .footer-bottom {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .whatsapp-btn {
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .scroll-top {
    left: max(1.25rem, env(safe-area-inset-left));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   LANDSCAPE PHONE FIX
   ============================================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 5rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-highlights {
    margin-top: 1rem;
  }

  .hero-cta {
    margin-top: 1.5rem;
    flex-direction: row;
  }

  .hero-cta .btn {
    width: auto;
  }
}

/* ============================================================
   PRINT STYLES (just in case)
   ============================================================ */

@media print {
  .navbar,
  .topbar,
  .whatsapp-btn,
  .scroll-top,
  .hero-bg,
  .cta-banner {
    display: none !important;
  }

  body {
    color: black;
    background: white;
  }

  .hero {
    background: #f0f0f0 !important;
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-title {
    color: black;
    -webkit-text-fill-color: black;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ============================================================
   WELCOME SPLASH SCREEN (Fixed for mobile)
   ============================================================ */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use dvh for modern mobile browsers */
  height: 100dvh;
  z-index: 99999;
  background: linear-gradient(135deg, #0B1C2D 0%, #1a3a5c 40%, #0B1C2D 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* Prevent any overflow */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.splash-screen.hidden {
  display: none;
}

.splash-content {
  text-align: center;
  animation: splashFadeIn 0.8s ease forwards;
  opacity: 0;
  /* Constrain content to viewport */
  width: 100%;
  max-width: 100%;
  padding: 0 1.5rem;
  overflow: hidden;
}

@keyframes splashFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.splash-logo {
  margin-bottom: 1.25rem;
  animation: splashLogoIn 0.6s ease 0.2s forwards;
  opacity: 0;
}

@keyframes splashLogoIn {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

.splash-logo-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  font-family: 'Inter', sans-serif;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
}

.splash-text {
  animation: splashFadeIn 0.6s ease 0.4s forwards;
  opacity: 0;
}

.splash-title {
  font-size: 1.25rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.splash-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.splash-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, #dc2626, #f97316);
  border-radius: 50px;
  margin: 1.25rem auto;
  animation: splashDivider 0.6s ease 0.6s forwards;
  opacity: 0;
  transform: scaleX(0);
}

@keyframes splashDivider {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}

.splash-tagline {
  font-size: 1.65rem;
  color: white;
  font-weight: 800;
  line-height: 1.2;
  animation: splashFadeIn 0.6s ease 0.8s forwards;
  opacity: 0;
  /* Prevent text from causing overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.splash-tagline-tamil {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-top: 0.6rem;
  animation: splashFadeIn 0.6s ease 1s forwards;
  opacity: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 1.5rem;
  animation: splashFadeIn 0.6s ease 1.2s forwards;
  opacity: 0;
}

.splash-badge i {
  color: #f59e0b;
}

.splash-bottom {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  animation: splashFadeIn 0.6s ease 1.4s forwards;
  opacity: 0;
}

.splash-loader {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  overflow: hidden;
}

.splash-loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #dc2626, #f97316);
  border-radius: 50px;
  animation: splashLoad 2.5s ease 0.5s forwards;
}

@keyframes splashLoad {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Tablet & Desktop splash */
@media (min-width: 768px) {
  .splash-logo-icon {
    width: 90px;
    height: 90px;
    font-size: 2.25rem;
    border-radius: 22px;
  }

  .splash-title {
    font-size: 1.6rem;
  }

  .splash-tagline {
    font-size: 2.75rem;
  }

  .splash-tagline-tamil {
    font-size: 1.25rem;
  }

  .splash-divider {
    width: 50px;
    margin: 1.5rem auto;
  }

  .splash-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    margin-top: 2rem;
  }
}

/* ============================================================
   LEAD GENERATION POPUP
   ============================================================ */

.lead-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lead-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lead-popup {
  background: white;
  border-radius: 20px;
  max-width: 650px;
  width: 90%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

.lead-popup-overlay.active .lead-popup {
  transform: translateY(0) scale(1);
}

.lead-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 5;
}

.lead-popup-close:hover {
  background: #dc2626;
  color: white;
}

.lead-popup-content {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lead-popup-content { grid-template-columns: 1fr 1fr; }
}

.lead-popup-left {
  padding: 2rem;
  background: linear-gradient(135deg, #0B1C2D, #1a3a5c);
  color: white;
  text-align: center;
}

@media (min-width: 640px) {
  .lead-popup-left { text-align: left; }
}

.lead-popup-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 25px rgba(220,38,38,0.3);
}

@media (min-width: 640px) {
  .lead-popup-icon { margin: 0 0 1.25rem; }
}

.lead-popup-left h3 {
  color: white;
  font-size: 1.35rem;
  font-family: 'Inter', sans-serif;
}

.lead-popup-left .tamil {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.lead-popup-desc {
  color: #d1d5db;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.lead-popup-features {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lead-popup-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}

@media (max-width: 639px) {
  .lead-popup-features {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

.lead-popup-features i {
  color: #22c55e;
  font-size: 0.75rem;
}

.lead-popup-right {
  padding: 2rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
  background: white;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.lead-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.lead-form-note {
  text-align: center;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.lead-form-note i { font-size: 0.6rem; }

/* ============================================================
   MOBILE STICKY CTA BAR
   ============================================================ */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
  padding: 0.5rem;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr 1fr;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
}

@media (max-width: 1023px) {
  .mobile-sticky-cta { display: grid; }
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.sticky-btn i { font-size: 0.9rem; }

.sticky-call {
  background: #0B1C2D;
  color: white;
}

.sticky-call:active { background: #1a3a5c; }

.sticky-whatsapp {
  background: #25d366;
  color: white;
}

.sticky-whatsapp:active { background: #128c7e; }

.sticky-enroll {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
}

.sticky-enroll:active { background: #991b1b; }

/* Adjust WhatsApp button position when sticky bar is visible */
@media (max-width: 1023px) {
  .whatsapp-btn {
    bottom: 5rem;
  }

  .scroll-top {
    bottom: 5rem;
  }

  /* Add padding at bottom for sticky bar */
  .footer {
    padding-bottom: 4rem;
  }
}

/* ============================================================
   URGENCY BANNER
   ============================================================ */

.urgency-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(220,38,38,0.15));
  border: 1px solid rgba(245,158,11,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.75rem;
  animation: urgencyPulse 3s ease infinite;
}

.urgency-banner i {
  color: #f97316;
  animation: firePulse 1.5s ease infinite;
}

.urgency-banner strong {
  color: white;
}

@keyframes urgencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes firePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@media (max-width: 640px) {
  .urgency-banner {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
}

/* ============================================================
   NOTIFICATION TOAST (Social Proof)
   ============================================================ */

.notification-toast {
  position: fixed;
  bottom: 6rem;
  left: 1.25rem;
  z-index: 95;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 0.85rem 1rem;
  max-width: 320px;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid #22c55e;
}

.notification-toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  width: 40px;
  height: 40px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.toast-text strong {
  display: block;
  font-size: 0.8rem;
  color: #0B1C2D;
  font-family: 'Inter', sans-serif;
}

.toast-text span {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

.toast-text small {
  display: block;
  font-size: 0.65rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

@media (max-width: 1023px) {
  .notification-toast {
    bottom: 5.5rem;
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }
}

/* ============================================================
   RE-ENABLE MOBILE ANIMATIONS (Override previous)
   ============================================================ */

@media (hover: none) {
  /* Keep subtle hover effects on cards */
  .feature-card:hover,
  .course-card:hover,
  .result-card:hover,
  .faculty-card:hover,
  .google-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  }

  /* Active tap feedback */
  .feature-card:active,
  .course-card:active,
  .result-card:active,
  .faculty-card:active,
  .google-review-card:active {
    transform: scale(0.98);
    transition: transform 0.15s ease;
  }

  .btn:active {
    transform: scale(0.97);
  }

  /* Keep floating animations - they look great */
  .floating-card {
    animation: float 6s ease-in-out infinite;
  }

  /* Keep WhatsApp bounce */
  .whatsapp-btn {
    animation: whatsappBounce 3s ease infinite;
  }
}

/* ============================================================
   GLOBAL OVERFLOW FIXES (Mobile) — REVISED
   ============================================================ */

/* Only restrict overflow on html and body — NOT on sections */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Remove all section/container overflow restrictions */
/* These were causing double-scroll */

/* Fix elements that actually cause overflow */
.hero {
  overflow: hidden;
}

.hero-bg {
  overflow: hidden;
}

.about-section {
  overflow: hidden;
}

.courses-section {
  overflow: hidden;
}

.contact-section {
  overflow: hidden;
}

.cta-banner {
  overflow: hidden;
}

/* Fix floating cards position on mobile */
@media (max-width: 1023px) {
  .floating-card.float-left {
    left: 0.5rem;
  }

  .floating-card.float-right {
    right: 0.5rem;
  }

  .about-exp-badge {
    top: -0.5rem;
    left: 0;
  }

  .hero-blob {
    max-width: 100%;
  }

  .blob-1 {
    left: -50px;
  }

  .blob-2 {
    right: -50px;
  }

  .about-bg-shape {
    max-width: 100%;
  }

  .results-bg-blob {
    left: -150px;
    top: -150px;
  }
}

/* Fix notification toast and lead popup width */
.notification-toast {
  max-width: calc(100vw - 2.5rem);
}

.lead-popup {
  max-width: min(650px, 90vw);
}