/* ============================================================
   NEXT GENERATION CLASSES — PREMIUM DESIGN STYLESHEET
   ============================================================ */

/* ─── GOOGLE FONT (Inter) loaded via HTML ─────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #1a1a2e;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ─── COLOUR TOKENS ──────────────────────────────────────── */
:root {
  --red: #d62b3b;
  --red-dark: #a01b28;
  --red-glow: rgba(214, 43, 59, 0.25);
  --light-bg: #f6f8fe;
  --card-bg: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-muted: #8888aa;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.16);
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ─── LINK BASE ──────────────────────────────────────────── */
a {
  text-decoration: none;
}

.linkto-any a {
  color: #fff;
}

/* ============================================================
   TOP STRIP
   ============================================================ */
.bg-danger {
  background: linear-gradient(90deg, var(--red-dark), var(--red)) !important;
}

/* ============================================================
   NAVBAR — GLASSMORPHISM
   ============================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 43, 59, 0.12);
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
  letter-spacing: .02em;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: .93rem;
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: background .2s, color .2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width .3s, left .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
  left: 20%;
}

.nav-link:hover {
  background: rgba(214, 43, 59, .07);
  color: var(--red) !important;
}

/* ============================================================
   HERO SLIDER — PROFESSIONAL
   ============================================================ */
#mainHeroSlider {
  position: relative;
  overflow: hidden;
}

/* Fixed, controlled height */
.kenburns-img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 520px;
}

@media (max-width: 991px) {
  .kenburns-img-wrapper { height: 400px; }
}

@media (max-width: 576px) {
  .kenburns-img-wrapper { height: 300px; }
}

/* Override Bootstrap's img style inside slider */
.kenburns-img-wrapper .kenburns-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.75);
  display: block;
  animation: kenburns 12s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0%   { transform: scale(1.0) translateX(0); }
  100% { transform: scale(1.08) translateX(-10px); }
}

/* Elegant dark gradient scrim — scoped to main hero slider only */
#mainHeroSlider .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 30, 0.72) 0%,
    rgba(10, 10, 30, 0.38) 55%,
    rgba(10, 10, 30, 0.0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Red accent bar at bottom */
#mainHeroSlider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #ff6b6b);
  z-index: 10;
}

/* Caption — left-aligned, inside carousel */
.carousel-caption.custom-caption {
  position: absolute;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  transform: translateY(-50%);
  text-align: left;
  padding: 0 40% 0 6% !important;
  width: 100%;
  max-width: 100%;
  z-index: 5;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

/* Slide badge */
.custom-caption .slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  animation: fadeSlideUp 0.6s ease both;
}

.custom-caption h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  animation: fadeSlideUp 0.7s 0.1s ease both;
}

.custom-caption p {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 22px;
  max-width: 440px;
  line-height: 1.6;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

.custom-caption .slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 26px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 24px rgba(214,43,59,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeSlideUp 0.7s 0.3s ease both;
  text-decoration: none;
}

.custom-caption .slide-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(214,43,59,0.6);
  color: #fff;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pill indicators */
.carousel-indicators {
  bottom: 18px;
  gap: 6px;
  margin: 0;
  justify-content: flex-end;
  padding-right: 4%;
}

.carousel-indicators button {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.45);
  border: none;
  transition: width 0.4s, background 0.4s;
  opacity: 1;
  margin: 0;
}

.carousel-indicators button.active {
  width: 52px;
  background: var(--red);
}

/* Nav arrow buttons */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  opacity: 1;
  z-index: 9;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  padding: 16px;
  background-size: 45%;
  transition: background-color 0.3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--red);
  border-color: var(--red);
}

/* ── Hero Slider Mobile Responsive ── */
@media (max-width: 767px) {
  .kenburns-img-wrapper { height: 320px; }

  .carousel-caption.custom-caption {
    padding: 0 10% 0 5% !important;
    top: 50% !important;
  }

  .custom-caption .slide-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .custom-caption h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .custom-caption p {
    font-size: 0.82rem;
    margin-bottom: 12px;
    display: block !important;
  }

  .custom-caption .slide-cta {
    font-size: 0.8rem;
    padding: 8px 18px;
  }

  .carousel-control-prev { left: 8px; }
  .carousel-control-next { right: 8px; }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 12px;
  }

  .carousel-indicators {
    bottom: 10px;
    padding-right: 5%;
  }
}

@media (max-width: 480px) {
  .kenburns-img-wrapper { height: 280px; }

  .custom-caption h3 { font-size: 1.05rem; }
  .custom-caption p { display: none !important; }

  /* Center badge and CTA on very small screens */
  .custom-caption .slide-badge,
  .custom-caption .slide-cta {
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  /* Hero intro buttons: stack, center, full-width on mobile */
  .hero-intro .mt-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-intro .mt-4 .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 !important;
    text-align: center;
  }
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
section {
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  letter-spacing: -.02em;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  display: block;
  margin: 10px auto 0;
  border-radius: 10px;
}

.section-subtitle {
  max-width: 620px;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}

/* ─── ANIMATED BACKGROUND PATTERN (dots) ─────────────────── */
.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(214, 43, 59, .12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  animation: patternDrift 30s linear infinite;
}

@keyframes patternDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 280px 280px;
  }
}

.bg-pattern-light {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(214, 43, 59, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
  animation: patternDrift 40s linear infinite reverse;
}

/* ─── FLOATING BLOBS for hero-intro ─────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214, 43, 59, .18), transparent 70%);
  top: -120px;
  right: -80px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, .12), transparent 70%);
  bottom: -80px;
  left: -60px;
  animation-delay: -4s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.06);
  }
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s .1s cubic-bezier(.4, 0, .2, 1), transform .7s .1s cubic-bezier(.4, 0, .2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s .2s cubic-bezier(.4, 0, .2, 1), transform .7s .2s cubic-bezier(.4, 0, .2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   HERO INTRO SECTION
   ============================================================ */
.hero-intro {
  background: linear-gradient(145deg, #fff 0%, #fdf0f2 60%, #f0f4ff 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .hero-intro { padding: 52px 0; text-align: center; }
}

@media (max-width: 576px) {
  .hero-intro { padding: 40px 0; }
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -.03em;
}

@media (max-width: 991px) {
  .hero-title { font-size: 2rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.65rem; }
}

.hero-title span {
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-points {
  display: inline-block;
  text-align: left;
}

.hero-points li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-btn {
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: .3s ease;
  box-shadow: 0 6px 20px var(--red-glow);
}

.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px var(--red-glow);
}

.hero-image-wrapper {
  position: relative;
}

@media (max-width: 991px) {
  .hero-image-wrapper { margin-top: 36px; }
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(214, 43, 59, .18), rgba(99, 102, 241, .1));
  z-index: -1;
  animation: blobFloat 6s ease-in-out infinite;
}

.hero-image {
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 420px;
}

/* Stat chips */
.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: flex-start;
}

@media (max-width: 991px) {
  .hero-stats { justify-content: center; }
}

.stat-chip {
  background: #fff;
  border: 1px solid rgba(214, 43, 59, .15);
  border-radius: 50px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: var(--shadow-sm);
  transition: .3s;
}

.stat-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-chip i {
  color: var(--red);
  font-size: 1rem;
}

/* ============================================================
   COURSES & BATCHES SECTION
   ============================================================ */
.courses-section {
  background: var(--light-bg);
  padding: 80px 0;
}

.faculty-combined {
  background: transparent;
  position: relative;
}

.faculty-combined .container {
  position: relative;
  z-index: 1;
}

/* Course Cards — Premium */
.course-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s;
  border: 1px solid rgba(214, 43, 59, .08);
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(214, 43, 59, .15);
}

.course-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: transform .5s ease;
}

.course-card:hover .course-img {
  transform: scale(1.06);
}

.course-content {
  padding: 18px;
}

.course-content h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.course-content p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ============================================================
   FACULTY SECTION
   ============================================================ */
.faculty-section {
  background: var(--card-bg);
}

/* Faculty Cards */
.faculty-card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s;
  border: 1px solid rgba(0, 0, 0, .06);
  position: relative;
}

.faculty-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .4s;
  pointer-events: none;
}

.faculty-card:hover::after {
  box-shadow: inset 0 0 0 2px var(--red);
}

.faculty-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 50px rgba(214, 43, 59, .18);
}

.faculty-img-wrapper {
  overflow: hidden;
  background: linear-gradient(135deg, #fdf0f2, #f0f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
}

.faculty-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
  border-radius: 0;
}

.faculty-card:hover .faculty-img {
  transform: scale(1.07);
}

.faculty-content {
  padding: 20px 22px 22px;
}

.faculty-content h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.faculty-content p {
  font-size: .88rem;
  color: var(--text-mid);
}

/* Subject tags */
.subject-tag {
  display: inline-block;
  background: rgba(214, 43, 59, .08);
  color: var(--red);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 600;
  margin: 2px;
  border: 1px solid rgba(214, 43, 59, .15);
}

/* ============================================================
   HOME TUITION SECTION
   ============================================================ */
.home-tuition-section {
  background: linear-gradient(160deg, #fff 0%, var(--light-bg) 100%);
  padding: 80px 0;
  position: relative;
}

.tuition-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(214, 43, 59, .07);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s;
  position: relative;
}

.tuition-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  transform: scaleX(0);
  transition: transform .4s;
}

.tuition-card:hover::before {
  transform: scaleX(1);
}

.tuition-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 42px rgba(214, 43, 59, .14);
}

.tuition-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}

.tuition-card:hover .tuition-img {
  transform: scale(1.06);
}

.tuition-content {
  padding: 20px;
}

.tuition-content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #fff 0%, #fdf0f2 100%);
  border: 1px solid rgba(214, 43, 59, .15);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(214, 43, 59, .03), rgba(99, 102, 241, .03));
  pointer-events: none;
}

.cta-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(214, 43, 59, .18);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.whyus-section {
  background: linear-gradient(145deg, #1a0a0f 0%, var(--red-dark) 40%, #2a0515 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

/* Animated grid lines in bg */
.whyus-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 48px 48px, 48px 48px;
  }
}

.whyus-section .container {
  position: relative;
  z-index: 1;
}

.section-title-light {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  position: relative;
}

.section-title-light::after {
  content: '';
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, .7);
  display: block;
  margin: 10px auto 0;
  border-radius: 10px;
}

.section-subtitle-light {
  max-width: 640px;
  color: rgba(255, 255, 255, .75);
  font-size: 1rem;
  line-height: 1.7;
}

/* USP Cards */
.usp-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), background .4s, box-shadow .4s;
  position: relative;
  overflow: hidden;
}

.usp-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
  border-radius: 50%;
  transition: transform .5s;
}

.usp-card:hover::before {
  transform: scale(2.5);
}

.usp-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .28);
}

.usp-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: .4s;
}

.usp-icon i {
  font-size: 1.8rem;
  color: #fff;
}

.usp-card:hover .usp-icon {
  background: rgba(255, 255, 255, .25);
  transform: rotate(8deg) scale(1.1);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: linear-gradient(160deg, #fff 0%, var(--light-bg) 100%);
  padding: 80px 0;
  position: relative;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.03em;
}

.about-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 3px rgba(214, 43, 59, .15);
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform .5s ease;
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.06);
}

.about-list li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-mid);
}

.about-btn {
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: .3s;
  box-shadow: 0 6px 20px var(--red-glow);
}

.about-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px var(--red-glow);
}

/* ============================================================
   REVIEWS / TESTIMONIALS
   ============================================================ */
.reviews-section {
  background: var(--light-bg);
  padding: 80px 0;
}

.google-badge {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.google-logo {
  width: 70px;
  height: auto;
}

.testimonial-card {
  max-width: 700px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(214, 43, 59, .08);
  padding: 36px 40px;
  position: relative;
  transition: .3s;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 6rem;
  color: rgba(214, 43, 59, .1);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(214, 43, 59, .1);
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section {
  background: #fff;
  padding: 80px 0;
}

.result-card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid rgba(214, 43, 59, .08);
  padding: 32px 24px;
  transition: .35s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(214, 43, 59, .14);
}

/* Gallery */
.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .35s, box-shadow .35s;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.gallery-row {
  margin-top: 20px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--light-bg);
  padding: 80px 0;
}

.contact-box {
  background: #fff;
  border-left: 4px solid var(--red);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.contact-box i {
  color: var(--red);
}

.social-icons a {
  color: var(--text-mid);
  transition: .3s;
}

.social-icons a:hover {
  color: var(--red);
  transform: translateY(-3px);
}

.contact-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: .95rem;
  padding: 12px 16px;
  transition: border-color .25s, box-shadow .25s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 43, 59, .1);
  outline: none;
}

.map-box {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  background: #0d0d14;
  color: #b0b0c8;
}

.footer-logo {
  font-size: 1.2rem;
  line-height: 1.4;
}

.footer-social a {
  color: #b0b0c8;
  font-size: 1.2rem;
  transition: .3s;
  display: inline-block;
}

.footer-social a:hover {
  color: var(--red);
  transform: translateY(-4px);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #b0b0c8;
  text-decoration: none;
  font-size: .93rem;
  transition: .3s;
}

.footer-links a:hover {
  color: var(--red);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ============================================================
   STICKY FLOATS
   ============================================================ */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 999;
  transition: .3s;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

.whatsapp-float:hover {
  transform: scale(1.12);
}

.call-float {
  position: fixed;
  bottom: 90px;
  left: 25px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 999;
  transition: .3s;
  box-shadow: 0 8px 24px var(--red-glow);
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(214, 43, 59, .5);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(214, 43, 59, 0);
  }
}

.call-float:hover {
  transform: scale(1.12);
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 8px 20px var(--red-glow);
  transition: .3s;
}

.back-to-top:hover {
  transform: scale(1.15);
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion-button {
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #e8e8f0 !important;
}

/* ============================================================
   BUTTONS GLOBAL
   ============================================================ */
.btn-danger {
  background: linear-gradient(135deg, var(--red), #e84343) !important;
  border: none !important;
  box-shadow: 0 4px 14px var(--red-glow);
  font-weight: 600;
  transition: .3s;
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--red-glow);
}

.btn-outline-danger {
  border: 2px solid var(--red) !important;
  color: var(--red) !important;
  font-weight: 600;
  transition: .3s;
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, var(--red), #ff6b6b) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--red-glow);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }

  .carousel-item img {
    height: auto;
  }

  .custom-caption {
    bottom: 8%;
    max-width: 90%;
    padding: 8px 14px;
    background: rgba(0, 0, 0, .65) !important;
  }

  .custom-caption h3 {
    font-size: 15px;
    text-align: center;
  }

  .custom-caption p {
    font-size: 12px;
    text-align: center;
  }

  .carousel-caption {
    bottom: 2rem !important;
    left: 10% !important;
    right: 10% !important;
    padding-top: 10px !important;
    padding-bottom: 4px !important;
  }

  .hero-title,
  .about-title,
  .section-title,
  .section-title-light {
    font-size: 1.8rem;
  }

  .hero-intro {
    padding: 50px 0;
  }

  /* ── Full-image (no cropping) on mobile ─────────────────── */
  .course-img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: top center !important;
    background: #f9f0f1;
  }

  .faculty-img-wrapper {
    height: auto !important;
  }

  .faculty-img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: top center !important;
    background: linear-gradient(135deg, #fdf0f2, #f0f4ff);
  }

  .tuition-img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: top center !important;
    background: #f9f0f1;
  }

  .about-img {
    height: auto !important;
    object-fit: contain !important;
  }

  .gallery-img {
    height: auto !important;
    object-fit: contain !important;
    background: #f5f5f5;
  }
  /* ─────────────────────────────────────────────────────────── */

  .cta-box {
    border-left: none;
    border-top: 4px solid var(--red);
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .call-float {
    bottom: 80px;
    left: 15px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

/* ======================================================
   NAVBAR LOGO
====================================================== */
.navbar-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* ======================================================
   MODERN SLIDER
====================================================== */
.slider-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.65);
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 4rem;
  text-align: left;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 100%);
  animation: fadeInSlide .8s ease;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-caption .caption-badge {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: .85rem;
}

.slider-caption h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  margin-bottom: .5rem;
  line-height: 1.2;
}

.slider-caption p {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.85rem, 1.8vw, 1.1rem);
  margin-bottom: 1.4rem;
  letter-spacing: .02em;
}

.slider-caption .btn {
  font-weight: 600;
  padding: .6rem 1.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(220, 53, 69, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}

.slider-caption .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(220, 53, 69, .6);
}

/* carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(220, 53, 69, .75);
  border-radius: 50%;
  padding: 18px;
  background-size: 50%;
}

.carousel-indicators [data-bs-slide-to] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: none;
}

.carousel-indicators .active {
  background: #dc3545;
  transform: scale(1.3);
}

@media (max-width: 576px) {
  .slider-img {
    height: 260px;
  }

  .slider-caption {
    padding: 1.5rem;
  }

  .slider-caption h2 {
    font-size: 1.2rem;
  }
}

/* ======================================================
   SLIDER — mobile adjustments (caption only, images auto-height)
====================================================== */

/* Tablet (<=768px) */
@media (max-width: 768px) {
  .slider-img   { height: 340px; }
  .slider-caption { padding: 1.2rem 1rem; }
  .slider-caption h2  { font-size: 1.4rem; }
  .slider-caption p   { font-size: .9rem; margin-bottom: .8rem; }
  .slider-caption .btn { padding: .4rem 1.2rem; font-size: .9rem; }
  .caption-badge { font-size: .75rem; padding: .3rem .8rem; }
}

/* Phone (<=480px) */
@media (max-width: 480px) {
  .slider-img   { height: 260px; }
  .slider-caption { padding: 1rem; }
  .slider-caption h2  { font-size: 1.2rem; }
  .caption-badge { font-size: .7rem; }
}

/* ======================================================
   NAVBAR LOGO
====================================================== */
.navbar-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* ======================================================
   MODERN SLIDER
====================================================== */
.slider-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.65);
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 4rem;
  text-align: left;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 100%);
  animation: fadeInSlide .8s ease;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-caption .caption-badge {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: .85rem;
}

.slider-caption h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  margin-bottom: .5rem;
  line-height: 1.2;
}

.slider-caption p {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.85rem, 1.8vw, 1.1rem);
  margin-bottom: 1.4rem;
  letter-spacing: .02em;
}

.slider-caption .btn {
  font-weight: 600;
  padding: .6rem 1.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(220, 53, 69, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}

.slider-caption .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(220, 53, 69, .6);
}

/* carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(220, 53, 69, .75);
  border-radius: 50%;
  padding: 18px;
  background-size: 50%;
}

.carousel-indicators [data-bs-slide-to] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: none;
}

.carousel-indicators .active {
  background: #dc3545;
  transform: scale(1.3);
}

@media (max-width: 576px) {
  .slider-img {
    height: 260px;
  }

  .slider-caption {
    padding: 1.5rem;
  }

  .slider-caption h2 {
    font-size: 1.2rem;
  }
}

/* ======================================================
   SLIDER — mobile adjustments (caption only, images auto-height)
====================================================== */

/* Tablet (<=768px) */
@media (max-width: 768px) {
  .slider-img   { height: 340px; }
  .slider-caption { padding: 1.2rem 1rem; }
  .slider-caption h2  { font-size: 1.4rem; }
  .slider-caption p   { font-size: .9rem; margin-bottom: .8rem; }
  .slider-caption .btn { padding: .4rem 1.2rem; font-size: .9rem; }
  .caption-badge { font-size: .75rem; padding: .3rem .8rem; }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .call-float {
    bottom: 80px;
    left: 15px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

/* Phone (<=480px) */
@media (max-width: 480px) {
  .slider-img   { height: 260px; }
  .slider-caption { padding: 1rem; }
  .slider-caption h2  { font-size: 1.2rem; }
  .caption-badge { font-size: .7rem; }
}

/* ============================================================
   MERGED HERO SECTION (NEW APPROACH)
============================================================ */
.merged-hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-slider {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slider .carousel-inner,
.hero-bg-slider .carousel-item {
  height: 100%;
}

.kenburns-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 20s infinite alternate ease-in-out;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.1) 100%);
  z-index: 2;
}

.hero-foreground-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-foreground-content .row {
  width: 100%;
}

/* Light Theme Glass UI Box */
.hero-glass-box {
  background: rgba(255, 255, 255, 0.4); /* Frosted Glass */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08); /* Soft shadow */
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title-light {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.text-gradient-red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-badge {
  display: inline-block;
  background: rgba(214, 43, 59, 0.8);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-points-dark li {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stats-dark {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.stat-chip-dark {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 50px;
  padding: 8px 18px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .hero-glass-box { padding: 24px; }
  .hero-title-light { font-size: 2.2rem; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%); }
}
