/* ===================================================================
   TOPPERSCLOUD — Global Stylesheet
   Online Coaching Institute for Classes 7–10
   Theme inspired by warm, playful education design
   =================================================================== */

/* ---------- CSS Custom Properties / Design Tokens ---------- */
:root {
  /*  Brand:  Primary #FF9800  ·  Secondary #007FFF
      Theme:  Primary = Blue   ·  Secondary = Orange        */

  /* --- Blue Palette (Theme Primary) --- dark → light --- */
  --blue-900: #003A63;
  --blue-700: #005FCC;
  --blue-500: #007FFF;
  --blue-300: #40A0FF;
  --blue-100: #CCE5FF;

  /* --- Orange Palette (Theme Secondary) --- dark → light --- */
  --orange-900: #BF360C;
  --orange-700: #E65100;
  --orange-500: #FF9800;
  --orange-300: #FFB74D;
  --orange-100: #FFF3E0;

  /* --- Neutrals (8 shades · blue-derived, no pure black) --- */
  --neutral-900: #001A2E;
  --neutral-800: #002E4F;
  --neutral-700: #0F4264;
  --neutral-600: #2D5F7E;
  --neutral-500: #4D7A95;
  --neutral-400: #7A9FB8;
  --neutral-300: #ACC5D6;
  --neutral-200: #DDE9F1;

  /* --- Semantic Aliases --- */
  --primary:        var(--blue-500);
  --primary-light:  var(--blue-300);
  --primary-dark:   var(--blue-700);
  --secondary:      var(--orange-500);
  --secondary-light:var(--orange-300);
  --secondary-dark: var(--orange-700);
  --accent:         var(--orange-500);

  --dark:           var(--neutral-900);
  --dark-light:     var(--neutral-800);
  --gray:           var(--neutral-500);
  --gray-light:     var(--neutral-400);
  --light:          #F4F7FB;
  --white:          #FFFFFF;
  --bg-section-alt: #EFF6FF;

  /* --- Decorative Blobs --- */
  --blob-blue:   rgba(0,127,255,.10);
  --blob-orange: rgba(255,166,0,.10);
  --blob-yellow: rgba(255,166,0,.10);

  /* --- CTA Tokens --- */
  --cta-yellow-bg:      var(--orange-500);
  --cta-yellow-text:    var(--neutral-900);
  --cta-yellow-hover:   var(--orange-700);
  --cta-blue-bg:        var(--blue-500);
  --cta-blue-text:      var(--white);
  --cta-blue-hover:     var(--blue-700);
  --cta-tertiary-color: var(--blue-500);
  --cta-icon-color:     var(--blue-500);

  /* Typography */
  --font-heading:   'Poppins', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Spacing scale */
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Misc */
  --radius:     12px;
  --radius-lg:  24px;
  --radius-full: 9999px;
  --shadow:     0 4px 24px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.10);
  --transition: .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; border: none; outline: none; }

/* ---------- Utility ---------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--bg-section-alt); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: var(--blob-blue);
  color: var(--primary);
  padding: .25rem .85rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-secondary {
  background: var(--dark);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--dark-light);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary)!important;
  background: transparent;
  padding: 10px 16px !important;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white)!important;
  transform: translateY(-2px);
}
.btn-teal {
  background: var(--secondary);
  color: var(--neutral-900);
}
.btn-teal:hover {
  background: var(--secondary-dark);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
}
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }

/* — CTA Button System (4 types) — */
.btn-cta-yellow {
  background: var(--cta-yellow-bg);
  color: var(--cta-yellow-text);
}
.btn-cta-yellow:hover {
  background: var(--cta-yellow-hover);
}
.btn-cta-blue {
  background: var(--cta-blue-bg);
  color: var(--cta-blue-text);
}
.btn-cta-blue:hover {
  background: var(--cta-blue-hover);
}
.btn-cta-tertiary {
  border: 2px solid var(--cta-tertiary-color);
  color: var(--cta-tertiary-color);
  background: transparent;
}
.btn-cta-tertiary:hover {
  background: var(--blue-500);
  color: var(--white);
}
.btn-cta-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--cta-icon-color);
}
.btn-cta-icon:hover {
  background: var(--blob-blue);
}

/* Navbar styles moved to a separate file */
@import url('navbar-styles.css');

/* ---------- Hero ---------- */
.hero {
  padding-top: 7rem;
  padding-bottom: var(--space-2xl);
  background: var(--bg-section-alt);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.hero-content h1 span {
  color: var(--primary);
}
.hero-content p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: var(--space-lg);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.hero-stat h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat p {
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 0;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
}
/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.blob-orange {
  width: 120px;
  height: 120px;
  background: var(--blob-blue);
  top: -30px;
  left: -40px;
}
.blob-teal {
  width: 80px;
  height: 80px;
  background: var(--blob-yellow);
  bottom: -20px;
  right: -20px;
}
.blob-dots {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--secondary) 2px, transparent 2px);
  background-size: 10px 10px;
  top: 20px;
  right: -30px;
  opacity: .4;
}

/* Animated floating */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 3s ease-in-out infinite; }
.float-delay { animation: float 3s ease-in-out infinite .5s; }
.float-delay-2 { animation: float 3s ease-in-out infinite 1s; }

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p { margin: 0 auto var(--space-lg); }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: var(--space-lg); }
}

/* ---------- Features Row ---------- */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}
.feature-icon.orange { background: var(--blob-blue); color: var(--primary); }
.feature-icon.teal   { background: var(--blob-yellow); color: var(--secondary-dark); }
.feature-icon.yellow { background: rgba(255,166,0,.15); color: var(--orange-700); }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card p {
  color: var(--gray);
  font-size: .9rem;
}

/* ---------- About / Welcome ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.about-text p {
  color: var(--gray);
  margin-bottom: var(--space-md);
}
.about-list {
  margin-bottom: var(--space-lg);
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .95rem;
}
.about-list li .check {
  width: 24px;
  height: 24px;
  background: var(--blob-blue);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}

/* ---------- Courses / Subjects ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.course-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.course-body {
  padding: 1.25rem;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.course-badge {
  background: var(--blob-blue);
  color: var(--primary);
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}
.course-rating {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
}
.course-body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.course-body p {
  color: var(--gray);
  font-size: .85rem;
  margin-bottom: .75rem;
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .75rem;
  border-top: 1px solid rgba(0,0,0,.06);
}
.course-price {
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
}
.course-price .old {
  text-decoration: line-through;
  color: var(--gray-light);
  font-size: .85rem;
  margin-left: .35rem;
  font-weight: 400;
}
.course-lessons {
  font-size: .8rem;
  color: var(--gray);
}

/* ---------- Class Tabs ---------- */
.class-tabs {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.class-tab {
  padding: .5rem 1.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  background: var(--light);
  color: var(--gray);
  transition: var(--transition);
  border: 2px solid transparent;
}
.class-tab:hover, .class-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}
.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: .2;
  line-height: 1;
  margin-bottom: .5rem;
}
.testimonial-card p {
  color: var(--gray);
  font-size: .95rem;
  margin-bottom: var(--space-md);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blob-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}
.testimonial-author h4 {
  font-size: .9rem;
  font-weight: 600;
}
.testimonial-author span {
  font-size: .8rem;
  color: var(--gray-light);
}
.stars {
  color: var(--orange-300);
  letter-spacing: 2px;
  font-size: .9rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 2px solid rgba(0,0,0,.04);
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.03);
}
.pricing-card.popular .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: .3rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}
.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  margin: var(--space-md) 0;
}
.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}
.pricing-features {
  text-align: left;
  margin-bottom: var(--space-lg);
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
  font-size: .9rem;
  color: var(--dark-light);
}
.pricing-features li .icon-check {
  color: var(--secondary);
  font-weight: 700;
}
.pricing-features li .icon-cross {
  color: var(--gray-light);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.cta-banner p {
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  opacity: .9;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -60px;
  left: -60px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  bottom: -40px;
  right: -40px;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-body {
  padding: 1.25rem;
}
.blog-date {
  font-size: .8rem;
  color: var(--gray-light);
  margin-bottom: .35rem;
}
.blog-body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.blog-body p {
  color: var(--gray);
  font-size: .85rem;
  margin-bottom: .75rem;
}
.blog-link {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
}
.blog-link:hover { text-decoration: underline; }

/* ---------- Results / Gallery ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}
.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
}
.result-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.result-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blob-blue);
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.result-card h4 { font-size: .95rem; margin-bottom: .15rem; }
.result-card .score {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}
.result-card .class-label {
  font-size: .8rem;
  color: var(--gray-light);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--light);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blob-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-info-card h4 { font-size: .95rem; margin-bottom: .15rem; }
.contact-info-card p { font-size: .9rem; color: var(--gray); }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
}
.faq-question .arrow {
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--gray);
}
.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1rem;
}
.faq-answer p {
  color: var(--gray);
  font-size: .92rem;
}

/* =====================================================
   NEW TC FOOTER
   ===================================================== */
.tc-footer {
  background: #050e1a;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}
/* Subtle radial glow behind brand area */
.tc-footer::before {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(0,127,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
/* Top accent gradient line */
.tc-footer__accent {
  height: 3px;
  background: linear-gradient(90deg, #007FFF 0%, #FF9800 50%, #007FFF 100%);
  background-size: 200% 100%;
  animation: footerAccentSlide 4s linear infinite;
}
@keyframes footerAccentSlide {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Top section layout ── */
.tc-footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 960px) {
  .tc-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Brand column ── */
.tc-footer__brand { display: flex; flex-direction: column; gap: 1.25rem; }
.tc-footer__logo { text-decoration: none; display: inline-block; }
.tc-footer__logo-img { height: 38px; width: auto; display: block; }
.tc-footer__logo-mark {
  font-family: 'Poppins', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}
.tc-footer__logo-toppers { color: #fff; }
.tc-footer__logo-cloud   { color: #007FFF; }
.tc-footer__tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 260px;
  margin: 0;
}

/* Social buttons */
.tc-footer__socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .25rem; }
.tc-footer__social-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: all .22s ease;
  flex-shrink: 0;
}
.tc-footer__social-btn:hover { transform: translateY(-3px); border-color: transparent; color: #fff; }
.tc-footer__social-btn--yt:hover  { background: #FF0000; }
.tc-footer__social-btn--ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.tc-footer__social-btn--fb:hover  { background: #1877F2; }
.tc-footer__social-btn--x:hover   { background: #000; border-color: #333 !important; }
.tc-footer__social-btn--wa:hover  { background: #25D366; }

/* ── Links grid ── */
.tc-footer__links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) {
  .tc-footer__links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tc-footer__links-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.tc-footer__col-title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.1rem;
}
.tc-footer__col ul { list-style: none; margin: 0; padding: 0; }
.tc-footer__col ul li { margin-bottom: .55rem; }
.tc-footer__col ul li a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  transition: color .18s, padding-left .18s;
  display: inline-block;
}
.tc-footer__col ul li a:hover { color: #fff; padding-left: 4px; }

.tc-footer__contact-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  text-decoration: none;
  transition: all .2s;
}
.tc-footer__contact-pill:hover { background: rgba(0,127,255,.18); border-color: #007FFF; color: #fff; }

/* ── Bottom bar ── */
.tc-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.4rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.tc-footer__bottom-left  { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tc-footer__bottom-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tc-footer__bottom-right a { color: rgba(255,255,255,.35); text-decoration: none; transition: color .18s; }
.tc-footer__bottom-right a:hover { color: #fff; }
.tc-footer__sep { opacity: .3; }

.tc-footer__bottom-brand {
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: -.01em;
}
.tc-footer__bottom-brand span { color: #fff; }
.tc-footer__bottom-brand { color: #007FFF; }

/* ---------- Page Banner ---------- */
.page-banner {
  padding: 8rem 0 3rem;
  background: var(--bg-section-alt);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.page-banner .breadcrumb {
  font-size: .9rem;
  color: var(--gray);
}
.page-banner .breadcrumb a {
  color: var(--primary);
}
.page-banner .breadcrumb a:hover { text-decoration: underline; }

/* ---------- Counters ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}
.counter-item h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.counter-item p {
  color: var(--gray);
  font-size: .9rem;
  margin-top: .25rem;
}

/* ---------- Subject icons grid ---------- */
.subjects-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
}
.subject-icon-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.subject-icon-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.subject-icon-card .icon {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}
.subject-icon-card h4 {
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- Timeline / How it works ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,.08);
}
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: var(--space-lg);
  position: relative;
}
.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: .25rem;
}
.timeline-content p {
  color: var(--gray);
  font-size: .92rem;
}

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 999;
  border: none;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
}

/* ---------- Whatsapp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ========== NEW NAVIGATION DROPDOWNS ========== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}
.nav-dropdown-toggle .nav-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li {
  display: block;
  padding: 0.25rem 0;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  color: var(--gray);
  transition: var(--transition);
}
.nav-dropdown-menu a:hover {
  background: var(--bg-section-alt);
  color: var(--primary);
}
.nav-dropdown-menu a::after {
  display: none;
}
.nav-cta {
  gap: 0.35rem;
}

/* ========== NEW HERO SECTION ========== */
.hero-new {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  overflow: hidden;
  margin-top: 0;
}
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #007FFF 0%, #2295FF 50%, #40A0FF 100%);
}
.hero-bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.hero-circles {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  z-index: 1;
}
.circle-decoration {
  width: 100%;
  height: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-new .hero-content {
  padding: 2rem 0;
}
.hero-new .hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-new .hero-content h1 em {
  font-style: italic;
  font-weight: 700;
}
.hero-new .hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 450px;
}
.hero-new .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Hero Join Now button - white with blue text */
.hero-new .btn-white {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.hero-new .btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
}
/* Hero Explore button - blue filled */
.btn-hero-blue {
  background: var(--primary);
  border: none;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  border:1px solid var(--light);
}
.btn-hero-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.hero-visual-new {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 550px;
}
.hero-students-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}
.hero-accent-block {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  height: 35%;
  background: var(--secondary);
  border-radius: 0;
  z-index: 1;
}

/* ========== NEWS CAROUSEL SECTION ========== */
.news-carousel-section {
  padding: 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}
.news-carousel {
  background: rgba(255, 242, 217, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.news-carousel-track {
  position: relative;
  overflow: hidden;
}
.news-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}
.news-slide.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.news-slide-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.news-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  border-radius: var(--radius);
  min-width: 100px;
}
.news-tag-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0.9;
}
.news-tag-class {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.news-content {
  flex: 1;
  min-width: 200px;
}
.news-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.news-content p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}
.news-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.news-date-label {
  font-size: 0.75rem;
  color: var(--gray);
}
.news-date-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}
.news-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.news-dot.active {
  background: #FF9800;
  transform: scale(1.2);
}
.news-dot:hover {
  background: #FFB74D;
}

/* Mobile Responsive for News Carousel */
@media (max-width: 992px) {
  .news-slide-inner {
    gap: 1.5rem;
  }
  .news-content {
    min-width: 100%;
  }
}
@media (max-width: 768px) {
  .news-carousel-section {
    margin-top: -1rem;
  }
  .news-carousel {
    padding: 1rem;
  }
  .news-slide-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .news-tag {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }
  .news-date {
    flex-direction: row;
    gap: 0.5rem;
    align-items: baseline;
  }
}

/* Mobile Responsive for New Hero */
@media (max-width: 992px) {
  .hero-circles {
    width: 300px;
    height: 300px;
    right: -5%;
  }
  .hero-image-container {
    max-width: 450px;
  }
}
@media (max-width: 768px) {
  .hero-new {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-new .hero-content {
    padding: 1rem 0;
  }
  .hero-new .hero-content p {
    margin: 0 auto 2rem;
  }
  .hero-new .hero-actions {
    justify-content: center;
  }
  .hero-visual-new {
    justify-content: center;
    margin-top: 1.5rem;
  }
  .hero-circles {
    display: none;
  }
  .hero-image-container {
    max-width: 100%;
  }
  /* Mobile Nav Dropdown: inline expansion below parent, full width */
  .nav-links li { width: 100%; }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown > .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding-right: 0.5rem;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 0.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    background: transparent;
    width: 100%;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 1000px;
    padding: 0.5rem 0 0.5rem 0.75rem;
  }
  /* ensure submenu links stack and align left */
  .nav-dropdown-menu li { width: 100%; }
  .nav-dropdown-menu a { padding-left: 0.5rem; }
}
