/* ===============================
   GLOBAL RESET & BASE
================================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #212529;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { 
  text-decoration: none; 
  color: inherit; 
  transition: 0.3s ease; 
}

.container { 
  width: 92%; 
  max-width: 1200px; 
  margin: auto; 
  padding: 0 1rem; 
}

/* ===============================
   HEADER NAVIGATION - FIXED
================================== */
.header-nav {
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-nav .container.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.brand-logo img {
  height: 170px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand {
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-wrapper { 
  display: flex; 
  justify-content: flex-end; 
  align-items: center; 
}

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

.main-nav li { 
  position: relative; 
}

.nav-link {
  color: #fff;
  padding: 10px 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s ease;
  cursor: pointer;
  border-radius: 6px;
}

.nav-link:hover { 
  background: rgba(255,255,255,0.15); 
}

/* Dropdown Arrow */
.dropdown-arrow {
  margin-left: 4px;
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

.dropdown-arrow.rotate { 
  transform: rotate(180deg); 
}

/* âœ… DESKTOP DROPDOWN - FIXED WITH GAP BRIDGE */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  min-width: 280px;
  max-width: 400px;
  z-index: 999;
}

/* Bridge the gap between nav item and dropdown */
.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
}

.has-dropdown:hover .mega-menu,
.has-dropdown .mega-menu:hover {
  display: block;
}

.mega-menu-content { 
  display: flex; 
  flex-direction: column;
  gap: 0.5rem; 
}

.menu-column {
  display: flex;
  flex-direction: column;
}

.menu-column h4 {
  color: #6a1b9a;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e0e0e0;
}

.menu-column a {
  display: block;
  color: #333;
  padding: 8px 12px;
  transition: all 0.3s;
  border-radius: 4px;
  font-size: 0.95rem;
}

.menu-column a:hover { 
  color: #6a1b9a; 
  background: #f5f5f5;
}

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger-line {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===============================
   HERO SECTION
================================== */
.enhanced-hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
}

.enhanced-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.highlight-text {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-indicators {
  display: flex; 
  gap: 1rem; 
  justify-content: center;
  margin-top: 2rem; 
  flex-wrap: wrap;
}

.trust-badge {
  background: #fff; 
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-weight: 600;
}

/* Buttons */
.btn-enhanced {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: #6a1b9a;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-enhanced:hover { 
  background: #4a148c; 
  transform: translateY(-2px); 
}

.btn-enhanced.outline { 
  background: transparent; 
  border: 2px solid #fff; 
}

/* ===============================
   HOME PAGE STATS WIDGETS
================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.stat-card img { 
  width: 60px; 
  margin-bottom: 1rem; 
}

.stat-card h3 { 
  font-size: 1.3rem; 
  color: #6a1b9a; 
}

/* ===============================
   TESTIMONIALS
================================== */
.testimonials { 
  background: #f9fafb; 
  padding: 4rem 0; 
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-enhanced {
  background: #fff; 
  padding: 2rem; 
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.testimonial-enhanced:hover { 
  transform: translateY(-6px); 
}

/* ===============================
   ENROLLMENT CTA
================================== */
.enrollment-cta {
  background: linear-gradient(45deg, #6a1b9a, #8e24aa);
  color: #fff; 
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.cta-buttons {
  margin-top: 2rem; 
  display: flex; 
  gap: 1rem;
  justify-content: center; 
  flex-wrap: wrap;
}

.cta-buttons a {
  background: #fff; 
  color: #6a1b9a;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-buttons a:hover { 
  background: #eee; 
}

/* ===============================
   FOOTER
================================== */
.footer {
  background: #0c1829; 
  color: #ccc; 
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h3 { 
  color: #fff; 
  margin-bottom: 1rem; 
}

.footer a { 
  color: #ccc; 
  display: block; 
  margin-bottom: 0.5rem; 
}

.footer a:hover { 
  color: #fff; 
}

.footer-bottom {
  text-align: center; 
  margin-top: 2rem;
  padding-top: 1rem; 
  border-top: 1px solid #333;
}

/* ===============================
   CONTENT PAGES (GENERIC)
================================== */
.hero-about {
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-about h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-about p {
  font-size: 1.2rem;
  max-width: 750px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: #f3f3f3;
}

.container-content {
  max-width: 950px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.container-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: #6a1b9a;
  border-left: 5px solid #8e24aa;
  padding-left: 12px;
}

.container-content p {
  margin-bottom: 1.2rem;
  color: #444;
}

.container-content ul, 
.container-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.container-content li {
  margin-bottom: 0.8rem;
}

.example-box {
  background: #f9f9f9;
  border-left: 5px solid #6a1b9a;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow-x: auto;
}

pre {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: Consolas, monospace;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links .btn {
  background: #6a1b9a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-links .btn:hover {
  background: #8e24aa;
  transform: translateY(-2px);
}

/* ===============================
   ANIMATIONS
================================== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.reveal { 
  opacity: 0; 
  transform: translateY(40px); 
  transition: all 0.8s ease; 
}

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

/* ===============================
   RESPONSIVE - TABLET
================================== */
@media (max-width: 992px) {
  .header-nav .container.nav {
    padding: 12px 15px;
  }

  .brand-logo img {
    height: 45px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ===============================
   âœ… MOBILE NAVIGATION - FIXED (LOGO ISSUE)
================================== */
@media (max-width: 768px) {
  .mobile-menu-btn { 
    display: flex; 
  }

  /* Fix: Prevent logo from being cut */
  .header-nav {
    position: relative;
  }

  .header-nav .container.nav {
    position: relative;
    z-index: 1002;
  }

  .brand-logo {
    position: relative;
    z-index: 1003;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background: #6a1b9a;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    gap: 0;
    z-index: 999;
  }

  .main-nav.show { 
    display: flex; 
  }

  .main-nav li {
    width: 100%;
  }

  .nav-link {
    color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    justify-content: space-between;
    border-radius: 0;
  }

  .has-dropdown::after {
    display: none;
  }

  .has-dropdown .mega-menu {
    display: none;
    position: static;
    background: #5e2ca5;
    box-shadow: none;
    padding: 10px 20px;
    border-radius: 0;
    transform: none;
    max-width: 100%;
    margin-top: 0;
  }

  .has-dropdown.active .mega-menu { 
    display: block; 
  }

  .menu-column {
    margin-bottom: 1rem;
  }

  .menu-column h4 {
    color: #ffd54f;
    border-bottom-color: rgba(255,255,255,0.2);
  }

  .menu-column a { 
    color: #fff; 
    padding: 10px 0;
  }

  .menu-column a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 8px;
  }

  .brand-logo img {
    height: 89px;
  }

  .header-nav .container.nav {
    padding: 10px 15px;
  }

  .enhanced-hero {
    padding: 4rem 1rem;
  }

  .hero-about {
    padding: 3rem 1.5rem;
    border-radius: 0 0 30px 30px;
  }

  .container-content {
    padding: 0 1rem;
  }

  .container-content h2 {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
  }

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

  .enrollment-cta {
    padding: 3rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons a {
    width: 100%;
    text-align: center;
  }
}

/* ===============================
   RESPONSIVE - SMALL MOBILE
================================== */
@media (max-width: 480px) {
  .brand-logo img {
    height: 140px;
  }

  .enhanced-hero h1 {
    font-size: 2rem;
  }

  .hero-about h1 {
    font-size: 1.75rem;
  }

  .trust-indicators {
    flex-direction: column;
    align-items: center;
  }

  .trust-badge {
    width: 100%;
    text-align: center;
  }
}

/* ===============================
   PRINT STYLES
================================== */
@media print {
  .header-nav,
  .mobile-menu-btn,
  .footer,
  .nav-links,
  .cta-buttons,
  .enrollment-cta {
    display: none;
  }

  body {
    background: #fff;
  }

  .container-content {
    max-width: 100%;
  }
}