/* 
  Prem Sir's Commerce Classes (PSCC) - Stylesheet
  Focus: Modern academic vibe, high-impact conversion layout, mobile-first design.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color System */
  --primary: #C62828;
  /* Crimson Red - matches official results banner */
  --primary-hover: #B71C1C;
  /* Darker Crimson */
  --primary-light: #FFEBEE;
  /* Light Pinkish Red */
  --secondary: #1A237E;
  /* Indigo Blue */
  --secondary-light: #283593;
  --accent-gold: #FFB300;
  /* Accent Gold/Amber for results/achievement */
  --accent-gold-light: #FFF8E1;
  --dark-slate: #1E1E2F;
  /* Dark Charcoal for text & deep accents */
  --light-slate: #4A4A68;
  --bg-warm: #FCFAF7;
  /* Warm cream white base */
  --bg-white: #FFFFFF;
  --bg-footer: #0C0C14;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 20px 40px rgba(198, 40, 40, 0.08);
  --gold-shadow: 0 15px 30px rgba(255, 179, 0, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark-slate);
  background-color: var(--bg-warm);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark-slate);
  line-height: 1.25;
}

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

button,
input,
select {
  font-family: inherit;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #E0DCD3;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C8C3B9;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(252, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-slate);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 40, 40, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.15);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--dark-slate);
  border: 2px solid rgba(30, 30, 47, 0.15);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-phone {
  background: #3F51B5;
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.2);
}

.btn-phone:hover {
  background: #303F9F;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(63, 81, 181, 0.3);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-slate);
}

/* Sections Base Layout */
section {
  padding: 100px 24px;
  position: relative;
}

.section-bg-alt {
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 4px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--dark-slate);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-slate);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

/* Premium Hero Section */
.hero {
  padding: 160px 24px 100px 24px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 235, 238, 0.6) 0%, rgba(252, 250, 247, 1) 70%);
  position: relative;
  overflow: hidden;
}

/* Background blob animation shapes */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 35, 126, 0.05) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.badge-headline i {
  color: var(--accent-gold);
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--dark-slate) 60%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--light-slate);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-list {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 24px;
}

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

.hero-trust-item i {
  font-size: 1.25rem;
  color: var(--primary);
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  background: var(--bg-white);
  border: 4px solid var(--bg-white);
}

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

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.image-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid var(--accent-gold);
}

.image-overlay-badge i {
  font-size: 2rem;
  color: var(--accent-gold);
}

.badge-text-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark-slate);
}

.badge-text-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--light-slate);
  text-transform: uppercase;
}

/* Feature Cards Grid (Why Choose Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(198, 40, 40, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--bg-white);
  transform: rotate(5deg);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-description {
  color: var(--light-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Prem Sir Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

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

.about-card {
  background: var(--bg-white);
  padding: 30px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  text-align: center;
}

.about-card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-card-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.about-card-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--light-slate);
  letter-spacing: 0.5px;
}

.about-card.highlighted {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-white);
}

.about-card.highlighted .about-card-icon,
.about-card.highlighted .about-card-number,
.about-card.highlighted .about-card-text {
  color: var(--bg-white);
}

.about-info-title {
  font-size: 2.25rem;
  margin-bottom: 24px;
}

.about-text {
  color: var(--light-slate);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.about-qualities {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-quality-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.about-quality-item i {
  color: #25D366;
  /* Green check */
  font-size: 1.1rem;
}

/* Courses Section */
.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.course-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(198, 40, 40, 0.1);
}

.course-header {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  padding: 30px;
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.course-header::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  right: -50px;
  bottom: -50px;
}

.course-card.humanities .course-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.course-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.course-title {
  color: var(--bg-white);
  font-size: 1.5rem;
  font-weight: 800;
}

.course-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-subjects-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--light-slate);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.course-subjects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.course-subject-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.course-subject-item i {
  color: var(--primary);
  font-size: 0.9rem;
}

.course-card.humanities .course-subject-item i {
  color: var(--accent-gold);
}

.course-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px 30px;
  background: var(--bg-warm);
}

/* Achievements Section */
.results-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.results-banner-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.results-banner-card img {
  border-radius: var(--border-radius-md);
  width: 100%;
}

.results-banner-card::after {
  content: '\f00e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(198, 40, 40, 0.95);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.results-banner-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.topper-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--primary);
  transition: var(--transition-smooth);
}

.topper-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.topper-card.rank-1 {
  grid-column: span 2;
  border-top-color: var(--accent-gold);
  background: linear-gradient(135deg, var(--bg-white), var(--accent-gold-light));
  box-shadow: var(--gold-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topper-rank {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topper-card.rank-1 .topper-rank {
  color: #B26A00;
}

.topper-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 8px;
}

.topper-scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topper-score-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding-bottom: 4px;
}

.topper-score-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.topper-subject {
  color: var(--light-slate);
}

.topper-score {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary);
}

.topper-card.rank-1 .topper-score {
  color: #B26A00;
  font-size: 1.1rem;
}

.topper-badge {
  background: var(--accent-gold);
  color: var(--dark-slate);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 179, 0, 0.2);
}

/* Classroom Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 4px solid var(--bg-white);
  position: relative;
  cursor: zoom-in;
  aspect-ratio: 9/16;
  /* Portrait images from mobile orientation */
}

.gallery-item.landscape {
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30, 30, 47, 0.4), transparent);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: 1;
}

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

.gallery-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 45px;
  height: 45px;
  background: var(--bg-white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Testimonials Section */
.testimonials-section {
  overflow: hidden;
}

.testimonials-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.google-reviews-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.google-g-logo {
  font-size: 3rem;
  background: linear-gradient(135deg, #4285F4, #EA4335, #FBBC05, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.google-stars {
  color: var(--accent-gold);
  font-size: 1.5rem;
  display: flex;
  gap: 4px;
}

.google-rating-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.google-rating-text {
  font-size: 0.95rem;
  color: var(--light-slate);
  font-weight: 600;
}

.slider-container {
  position: relative;
  width: 100%;
}

.testimonials-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  padding-bottom: 20px;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.testimonial-card {
  min-width: calc(100% - 12px);
  max-width: calc(100% - 12px);
  scroll-snap-align: start;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: rgba(196, 40, 40, 0.06);
  position: absolute;
  top: 20px;
  right: 30px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1rem;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}

.author-info-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.author-info-title {
  font-size: 0.8rem;
  color: var(--light-slate);
  font-weight: 600;
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(30, 30, 47, 0.1);
  background: var(--bg-white);
  color: var(--dark-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

/* Contact & Info Grid Section */
.info-section {
  background: var(--bg-white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: var(--bg-warm);
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
}

.info-card:hover {
  transform: translateX(4px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.2);
}

.info-details h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.info-details p {
  color: var(--light-slate);
  font-weight: 500;
  font-size: 0.95rem;
}

.info-details a {
  font-weight: 600;
  color: var(--secondary);
}

.info-details a:hover {
  color: var(--primary);
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 6px solid var(--bg-white);
}

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

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 30%, var(--primary) 90%);
  color: var(--bg-white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  top: -150px;
  right: -50px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
}

.cta-banner-content h2 {
  color: var(--bg-white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-banner-content p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer Section */
footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 24px 120px 24px;
  /* extra space at bottom for mobile sticky bar */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-badge {
  background: var(--primary);
  color: var(--bg-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  letter-spacing: 0.5px;
}

.footer-logo-title {
  color: var(--bg-white);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.footer-logo-sub {
  color: var(--primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 3px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

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

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

.footer-link a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #20BA5A;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* Sticky Contact Bar for Mobile */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  z-index: 998;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.mobile-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Lightbox Modal for Result & Classroom Images */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 20, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  border: 4px solid var(--bg-white);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  color: var(--bg-white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
  font-family: 'Outfit', sans-serif;
}

/* Media Queries & Responsiveness */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .about-grid,
  .results-showcase,
  .testimonials-layout,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-graphics {
    order: 2;
  }

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

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

@media (max-width: 768px) {
  section {
    padding: 60px 16px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

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

  .hero-image-wrapper {
    order: 2;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .floating-whatsapp {
    bottom: 80px;
    /* shift above the sticky footer */
    right: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .lightbox-content-wrapper {
    max-width: 95%;
  }
}

@media screen and (max-width: 768px) {
  .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* 3. Bottom ke dono buttons ko ek ke neeche ek (column) karne ke liye */
  .btn-whatsapp,
  .btn-phone {
    display: block !important;
    width: 100% !important;
    /* Mobile pe full width ho jayenge */
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 !important;
    /* Ek ke upar ek aane par beech me thoda gap */
    text-align: center !important;
  }

  /* 4. Agar buttons ke parent container ne space block ki hai toh use fix karega */
  .btn-whatsappHeader,
  div[class*="button"],
  footer,
  .fixed-bottom {
    flex-direction: column !important;
    /* Row se column me convert */
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;

  }

  .hero-title {
    font-size: 2.25rem;
  }

  .toppers-grid {
    grid-template-columns: 1fr;
  }

  .topper-card.rank-1 {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .topper-badge {
    width: 100%;
  }

  .about-qualities {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 4/3;
    /* landscape view fits better on phone scrolls */
  }

  /* --- MOBILE RESPONSIVE FIXES (768px se chhote screens ke liye) --- */


  /* 1. Pure page ka horizontal scroll band karne ke liye */
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
  }

  /* 2. Navbar ko screen ke andar fit karne ke liye */
  .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* 3. Bottom ke dono buttons ko ek ke neeche ek (column) karne ke liye */
  .btn-whatsapp,
  .btn-phone {
    display: block !important;
    width: 100% !important;
    /* Mobile pe full width ho jayenge */
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 !important;
    /* Ek ke upar ek aane par beech me thoda gap */
    text-align: center !important;
  }

  /* 4. Agar buttons ke parent container ne space block ki hai toh use fix karega */
  .btn-whatsappHeader,
  div[class*="button"],
  footer,
  .fixed-bottom {
    flex-direction: column !important;
    /* Row se column me convert */
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* <--- YEH BRACKET GAYAB THA, AB BILKUL SAHI HAI */

  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
  }

  /* 1. TESTIMONIALS & GOOGLE REVIEW FIX */
  #testimonials .testimonials-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .google-reviews-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. TESTIMONIALS CARDS CAROUSEL / HEADINGS FIX */
  .slider-container h2,
  #testimonials h2,
  #timings-fees h2,
  .section-title {
    font-size: 1.6rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .testimonial-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. BATCH & FEE INFORMATION SECTION FIX */
  #timings-fees .container>div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  #timings-fees div[style*="background: var(--bg-white)"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

}

/* <--- YEH BILKUL AAKHIRI BRACKET HAI JO LINE 1636 WAALI MEDIA QUERY KO BAND KAREGA */