/* ═══════════════════ DESIGN SYSTEM ═══════════════════ */
:root {
  /* Lavender Palette */
  --lavender-50: #F9F4FF;
  --lavender-100: #F3E8FF;
  --lavender-200: #E9D5FF;
  --lavender-400: #C084FC;
  --lavender-500: #A855F7;
  --lavender-600: #9333EA;
  --lavender-700: #7E22CE;

  /* Website Backgrounds */
  --bg-white: #ffffff;
  --bg-extralight: var(--lavender-50);
  --bg-light: var(--lavender-100);

  /* Indigo Accent */
  --turq-100: #E0E7FF;
  --turq-200: #C7D2FE;
  --turq-600: #6366F1;
  --turq-700: #4F46E5;

  /* WhatsApp Green */
  --turq-800: #3cd374;
  --turq-900: #25D366;

  /* Onyx Palette */
  --onyx-900: #111827;
  --onyx-800: #1F2937;
  --onyx-700: #374151;

  /* Neutral Palette */
  --neutral-50: #F9FAFB;
  --neutral-200: #E5E7EB;
  --neutral-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Baloo 2', sans-serif;
  --font-body: 'Baloo 2', sans-serif;

  /* UI Tokens */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 4px 20px rgba(139, 92, 246, 0.08);
  --shadow-hover: 0 10px 30px rgba(139, 92, 246, 0.15);
  --transition: all 0.3s ease-in-out;

  /* Spacing */
  --section-pad: 70px;
  --section-pad-tablet: 50px;
  --section-pad-mobile: 36px;
}

/* ═══════════════════ GLOBAL RESET & BASE ═══════════════════ */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--onyx-700);
  background-color: var(--bg-extralight);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--onyx-900);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

a {
  color: var(--turq-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--turq-700);
}

/* Scroll offset for sticky navbar on all target sections */
#home,
#about,
#courses,
#tuition,
#contact,
#why-us,
#ticker {
  scroll-margin-top: 60px;
}

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

/* ═══════════════════ FOCUS STATES (Accessibility) ═══════════════════ */
:focus-visible {
  outline: 3px solid var(--lavender-500);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--lavender-500);
  outline-offset: 2px;
}

/* ═══════════════════ NAVBAR ═══════════════════ */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem 0;
  transition: var(--transition);
  z-index: 1050;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--onyx-900) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 60px); /* Prevent pushing toggler to next line */
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--lavender-500), var(--turq-600));
  color: var(--neutral-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Ensure the text can wrap if needed without overflowing */
.navbar-brand > div:last-child {
  white-space: normal;
  line-height: 1.2;
}

.nav-link {
  color: var(--onyx-700) !important;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0.4rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lavender-500) !important;
}

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

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

.btn-enquire {
  background: var(--turq-900);
  color: var(--neutral-white) !important;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-enquire:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ═══════════════════ NAVBAR RESPONSIVE ADAPTATION (Tablet/Desktop Site) ═══════════════════ */
@media (min-width: 768px) and (max-width: 1120px) {
  .nav-link {
    font-size: 0.88rem !important;
    margin: 0 0.25rem !important;
  }
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  .btn-enquire {
    padding: 0.4rem 1rem !important;
    font-size: 0.9rem !important;
  }
  .brand-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem !important;
  }
}

/* ═══════════════════ ANNOUNCEMENT TICKER ═══════════════════ */
.ticker-wrap {
  background: linear-gradient(90deg, var(--lavender-600), var(--turq-600));
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1040;
  /* Flex not used — keep it block so white-space:nowrap works cross-browser */
}

.ticker-track {
  display: inline-block;
  /* The track must be wider than the viewport so animation is seamless */
  animation: tickerScroll 35s linear infinite;
  will-change: transform;
  /* Ensure it stretches beyond any screen width */
  padding-left: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
  }
}

.ticker-item {
  display: inline-block;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0 1.5rem;
}

.ticker-sep {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0.5rem;
  font-size: 0.85rem;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn-primary-custom {
  background: var(--lavender-500);
  color: var(--neutral-white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-primary-custom:hover {
  background: var(--lavender-600);
  color: var(--neutral-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.btn-outline-custom {
  background: var(--turq-100);
  color: var(--onyx-900);
  border: 2px solid transparent;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-outline-custom:hover{
background: var(--turq-200);
}
.btn-outline-custom.active{
  background: var(--turq-200);
  border: 1.5px solid var(--lavender-500);
}

/* Course card enroll button */
.btn-card-enroll {
  display: inline-block;
  background: transparent;
  color: var(--lavender-600);
  border: 2px solid var(--lavender-200);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  min-height: 44px;
  line-height: 1.6;
}

.btn-card-enroll:hover {
  background: var(--lavender-500);
  color: #fff;
  border-color: var(--lavender-500);
  transform: translateY(-2px);
}

/* ═══════════════════ ICONS ═══════════════════ */
.icons {
  width: 25px;
  height: 25px;
}

/* ═══════════════════ HERO SECTION ═══════════════════ */
.hero-section {
  padding: 30px 0 50px;
  background: linear-gradient(180deg, var(--bg-extralight) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--onyx-900);
}

.hero-title span {
  background: linear-gradient(135deg, var(--lavender-500), var(--turq-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--onyx-700);
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neutral-200);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--lavender-600);
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--onyx-800);
  margin-top: 0.2rem;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-hover);
  border: 8px solid var(--neutral-white);
  transform: rotate(2deg);
  transition: var(--transition);
  animation: heroImageFloat 6s ease-in-out 1.5s infinite;
}

.hero-img-wrap img {
  display: block;
  width: 100%;
  height: 420px;
  border-radius: calc(var(--radius-lg) - 4px);
  object-fit: cover;
  object-position: center top;
}

/* Pull image column up on desktop so it aligns near hero top */
@media (min-width: 992px) {
  .hero-img-wrap {
    margin-top: -40px;
  }
}

.hero-img-wrap:hover {
  animation-play-state: paused;
  transform: rotate(0deg) scale(1.02);
}

.hero-badge {
  position: absolute;
  top: 20px;
  left: -15px;
  background: var(--neutral-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  z-index: 2;
  border: 1px solid var(--neutral-200);
}

/* ═══════════════════ STATS BANNER ═══════════════════ */
.stats-banner {
  background: linear-gradient(135deg, var(--lavender-600) 0%, var(--turq-600) 100%);
  padding: 40px 0;
}

.stats-banner-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stats-banner-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.4rem;
}

/* ═══════════════════ SECTION HEADINGS ═══════════════════ */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--onyx-900);
}

.section-subtitle {
  text-align: center;
  color: var(--onyx-700);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-badge {
  display: inline-block;
  background: var(--turq-100);
  color: var(--turq-700);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-spacing {
  padding: var(--section-pad) 0;
}

/* ═══════════════════ COURSE CARDS ═══════════════════ */
.course-card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--lavender-100);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lavender-500), var(--turq-600));
  opacity: 0;
  transition: var(--transition);
}

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

.course-card:hover::before {
  opacity: 1;
}

/* New badge on Vedic Maths card */
.course-card--new {
  border-color: var(--lavender-300, #d8b4fe);
}

.course-new-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--lavender-500), var(--turq-600));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.course-icon {
  width: 58px;
  height: 58px;
  background: var(--lavender-100);
  color: var(--lavender-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.course-icon.turq {
  background: var(--turq-100);
  color: var(--turq-700);
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--onyx-900);
}

.course-desc {
  color: var(--onyx-700);
  font-size: 0.93rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.course-list {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1rem;
}

.course-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--onyx-800);
}

.course-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--turq-600);
  font-weight: 700;
}

/* ═══════════════════ TUITION SECTION ═══════════════════ */
.tuition-box {
  background: var(--neutral-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--neutral-200);
  transition: var(--transition);
}

.tuition-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--lavender-400);
}

.tuition-grade {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--onyx-900);
  margin: 0.8rem 0;
}

/* Board Badge base */
.board-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  margin: 0.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Board-specific colors */
.board-state {
  background: #DBEAFE;
  color: #1D4ED8;
}

.board-matric {
  background: #DCFCE7;
  color: #15803D;
}

.board-cbse {
  background: #FEF3C7;
  color: #B45309;
}

.board-icse {
  background: #EDE9FE;
  color: #6D28D9;
}

/* ═══════════════════ MOTIVATIONAL QUOTE BANNER ═══════════════════ */
.quote-banner {
  background: linear-gradient(135deg, var(--onyx-900) 0%, var(--onyx-800) 100%);
  padding: 50px 0;
}

.quote-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #fff;
  font-weight: 600;
  font-style: italic;
  margin: 0 auto 0.75rem;
  max-width: 700px;
  line-height: 1.5;
}

.quote-author {
  color: var(--lavender-400);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ═══════════════════ CTA BANNER ═══════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--lavender-400) 0%, var(--turq-600) 100%);
  padding: 60px 20px;
}

.cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-primary:hover {
  background: var(--lavender-100) !important;
  color: var(--lavender-700) !important;
}

/* ═══════════════════ WHY CHOOSE US ═══════════════════ */
.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  background: var(--lavender-100);
  transform: scale(1.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--turq-100);
  color: var(--turq-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.feature-content h4 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: var(--onyx-900);
}

.feature-content p {
  color: var(--onyx-700);
}

/* ═══════════════════ FORMS & CONTACT ═══════════════════ */
.contact-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-extralight) 100%);
}

.contact-section .section-title {
  color: var(--onyx-900);
}

.contact-section .section-subtitle {
  color: var(--onyx-800);
}

.contact-card {
  background: var(--neutral-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  color: var(--onyx-900);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--lavender-100);
  color: var(--lavender-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-info-text h4 {
  color: var(--onyx-900);
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.contact-info-text p,
.contact-info-text a {
  color: var(--onyx-700);
  margin: 0;
  text-decoration: none;
}

.contact-info-text a:hover {
  color: var(--lavender-600);
}

.enquiry-form label {
  color: var(--onyx-800);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.enquiry-form .form-control,
.enquiry-form .form-select {
  background: var(--neutral-white);
  border: 1.5px solid var(--lavender-200);
  color: var(--onyx-900);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  transition: var(--transition);
  min-height: 44px;
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
  border-color: var(--lavender-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.enquiry-form ::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

.btn-whatsapp-submit {
  width: 100%;
  background: #25D366;
  color: #FFF;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  min-height: 52px;
}

.btn-whatsapp-submit:hover {
  background: #128C7E;
  transform: translateY(-2px);
  color: #FFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ═══════════════════ TESTIMONIALS ═══════════════════ */
.testimonial-card {
  background: var(--neutral-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid var(--neutral-200);
}

.testimonial-content {
  font-style: italic;
  color: var(--onyx-700);
  font-size: 1rem;
  margin: 1.2rem 0;
  line-height: 1.7;
}

.stars {
  color: #F59E0B;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--onyx-900);
  font-size: 0.95rem;
}

/* ═══════════════════ FOOTER ═══════════════════ */
.site-footer {
  background: var(--onyx-900);
  color: var(--neutral-200);
  padding: 55px 0 20px;
  border-top: 3px solid var(--lavender-600);
}

.footer-heading {
  color: var(--neutral-white);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--neutral-200);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--neutral-200);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--lavender-400);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid var(--onyx-800);
  text-align: center;
  font-size: 0.88rem;
}

/* ═══════════════════ FLOATING BUTTONS ═══════════════════ */
/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 46px;
  height: 46px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 1001;
  text-decoration: none;
  transition: var(--transition);
}

.wa-float:hover {
  background-color: #128C7E;
  transform: scale(1.12) translateY(-2px);
  color: #FFF;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--lavender-500);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--lavender-600);
  transform: translateY(-3px);
}

/* ═══════════════════ UTILITIES ═══════════════════ */
.bg-lavender-gradient {
  background: linear-gradient(180deg, var(--bg-extralight) 0%, var(--bg-light) 100%);
}

/* ═══════════════════ ANIMATIONS ═══════════════════ */
/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

/* Hero Entry Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes heroImageFloat {
  0% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }

  100% {
    transform: translateY(0) rotate(2deg);
  }
}

.hero-animate-title {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-animate-subtitle {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-animate-buttons {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-animate-stats {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-animate-img {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.15s forwards;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

/* Small Laptop / Large Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .nav-link {
    font-size: 0.95rem;
    margin: 0 0.2rem;
  }

  .btn-enquire {
    padding: 0.45rem 1rem;
  }
}

/* Tablet */
@media (max-width: 991px) {
  :root {
    --section-pad: var(--section-pad-tablet);
  }

  .navbar-collapse {
    background: var(--neutral-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
  }

  .navbar-collapse .d-flex {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero-section {
    padding: 40px 0 50px;
    text-align: center;
  }

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

  .hero-stats {
    justify-content: center;
  }

  /* Fix for text alignment on mobile */
  .text-start {
    text-align: center !important;
  }

  .about-text, .founder-info {
    text-align: center;
    justify-content: center;
  }

  /* Adjust navbar sizes to fit in mobile */
  .navbar-brand {
    font-size: 1.15rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .hero-img-wrap {
    margin-top: 2.5rem;
    transform: rotate(0deg);
    animation: none;
    overflow: visible;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-img-wrap img {
    height: 320px;
  }

  .hero-badge {
    left: 8px;
    top: -12px;
  }

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

  .contact-info-item {
    justify-content: flex-start;
  }

  .contact-info-text {
    flex: 1;
  }

  .footer-links {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .site-footer .col-lg-2,
  .site-footer .col-lg-3,
  .site-footer .col-lg-4 {
    text-align: center;
    margin-bottom: 1rem;
  }
}

/* Tablet / Large Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-tablet);
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-bottom {
    margin-top: 25px;
    padding-top: 15px;
  }

  .footer-heading {
    margin-bottom: 0.5rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    text-align: center !important;
  }

  /* sticky-top navbar — no margin compensation needed */

  .course-card,
  .tuition-box,
  .contact-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .stat-item {
    width: calc(50% - 0.75rem);
    text-align: center;
  }

  .cta-banner {
    padding: 40px 16px;
  }

  .quote-banner {
    padding: 36px 16px;
  }

  .stats-banner {
    padding: 30px 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }

  .hero-section {
    padding: 30px 0 40px;
  }

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

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

  .ticker-item {
    font-size: 0.82rem;
    padding: 0 1rem;
  }

  .stats-banner-num {
    font-size: 1.8rem;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

  .contact-card {
    padding: 1.25rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

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

  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
  }

  .footer-heading {
    margin-bottom: 0.25rem;
  }

  .footer-links {
    margin-bottom: 1rem;
  }

  .stat-item {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .hero-badge {
    display: none;
  }

  .course-card,
  .tuition-box {
    padding: 1.25rem;
  }

  .wa-float {
    width: 40px;
    height: 40px;
    bottom: 80px;
    right: 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Small Mobile (≤ 375px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  .course-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .ticket-item {
    font-size: 0.78rem;
  }
}

/* Feature Phone (≤ 320px) */
@media (max-width: 320px) {
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  h1,
  .hero-title {
    font-size: 1.35rem !important;
  }

  h2,
  .section-title {
    font-size: 1.2rem !important;
  }

  h3 {
    font-size: 1.05rem;
  }

  h4 {
    font-size: 0.95rem;
  }

  .navbar {
    padding: 0.6rem 0;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .ticker-wrap {
    font-size: 0.75rem;
  }

  .ticker-item {
    padding: 0 0.75rem;
  }

  .hero-section {
    padding: 20px 0 30px;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .section-spacing {
    padding: 28px 0;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .course-card {
    padding: 1rem;
  }

  .tuition-box {
    padding: 1rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-card-enroll {
    font-size: 0.88rem;
    padding: 0.6rem 1rem;
  }

  .stats-banner-num {
    font-size: 1.5rem;
  }

  .stats-banner-label {
    font-size: 0.8rem;
  }

  .wa-float {
    width: 36px;
    height: 36px;
    bottom: 72px;
    right: 12px;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
    bottom: 16px;
    right: 12px;
  }

  /* Hide decorative elements on tiny screens */
  .hero-badge {
    display: none;
  }
}