/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --red:        #DF0025;
  --red-dark:   #b5001e;
  --red-light:  #ff4d6a;
  --navy:       #0f172a;
  --navy-mid:   #1e293b;
  --white:      #ffffff;
  --grey:       #f5f5f5;
  --border:     #e2e8f0;
  --text-body:  #334155;
  --text-muted: #64748b;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.18);
  --shadow-red: 0 8px 32px rgba(223,0,37,0.3);

  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --font-head:  'Playfair Display', serif;
  --font-body:  'Lexend Deca', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--grey); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(223,0,37,0.08); color: var(--red);
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
  border: 1px solid rgba(223,0,37,0.15);
}

.red { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 15px; cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 16px rgba(223,0,37,0.4);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(223,0,37,0.5); }

.btn-outline {
  background: transparent; color: var(--red); border: 1px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: white; transform: translateY(-3px); }

/* Reveal animations */
.reveal         { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left    { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right   { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
header {
  /* position: fixed; top: 0; left: 0; right: 0;  */
  z-index: 1000;
  padding: 0 24px;
  border-bottom: 1px solid rgba(128,128,128,0.4);
  /* transition: all 0.4s ease; */
  background-color: white;
}
header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1230px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 152px; height: 60px; }
.logo-icon img { height: 100%; }

/* Desktop Nav */
nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative;;}
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 14px; cursor: pointer;
  text-decoration: none; transition: all 0.2s ease;
  color: rgb(0, 0, 0); white-space: nowrap; position: relative;
}
header.scrolled .nav-link { color: var(--navy); }
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--red); border-radius: 1px;
  transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { background: rgba(255,255,255,0.1); }
header.scrolled .nav-link:hover { background: var(--grey); }

/* Mega Menu */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  z-index: 9;
  transform: translateX(-50%) translateY(-8px);
  width: 680px; background: white;
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border: 1px solid var(--border);
}
.nav-item:hover .mega-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: 12px; text-decoration: none;
  transition: all 0.2s ease; border: 1px solid transparent;
}
.mega-item:hover {
  background: linear-gradient(135deg, rgba(223,0,37,0.04), rgba(223,0,37,0.08));
  border-color: rgba(223,0,37,0.15); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(223,0,37,0.1);
}
.mega-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(223,0,37,0.1), rgba(223,0,37,0.2));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.mega-item-text h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.mega-item-text p  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.header-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; cursor: pointer; margin-left: auto;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; height: 2px; background: white; border-radius: 1px; transition: all 0.3s ease; }
header.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy); z-index: 999;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
  padding: 100px 32px 32px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-link {
  display: block; padding: 16px 0; font-size: 22px; font-weight: 700;
  color: white; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  opacity: 0; transform: translateX(32px);
  transition: all 0.4s ease; transition-delay: calc(var(--i) * 0.07s);
}
.mobile-menu.open .mobile-nav-link { opacity: 1; transform: translateX(0); }
.mobile-courses { list-style: none; padding-left: 16px; }
.mobile-courses li a {
  display: block; padding: 10px 0; font-size: 15px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.2s;
}
.mobile-courses li a:hover { color: var(--red); }
.mobile-bottom-cta { margin-top: auto; padding-top: 24px; }



@media (max-width: 1024px) {
  nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero: stacked — image on top, text below */
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 48px;
    padding: 100px 24px 80px;
    text-align: center;
  }
  /* Move hero-right to row 1 (above text) */
  .hero-right  { order: -1; justify-content: center; }
  .hero-left   { order: 1; }

  .hero-btns   { justify-content: center; }
  .hero-stats  { justify-content: center; }
  .hero-desc   { max-width: 100%; margin-left: auto; margin-right: auto; }

  .faq-wrapper { flex-direction: column; }
  .faq-image { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr 1fr !important }
}

@media (max-width: 640px) {
      .footer-grid { grid-template-columns: 1fr  !important}
}







/* Footer  */

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer { background: #000; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-logo-icon { width: 42px; height: 60px; }
.footer-logo-icon img { height: 100%; }
.footer-about { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 16px; color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s ease; text-decoration: none; }
.social-btn:hover { background: var(--red); border-color: var(--red); color: white; }
.footer-col h4 { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: white; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--red); text-decoration: none; }
