/* ====== EduFlow CSS (responsive + minimal) ====== */

/* Reset + base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #172026; background: #fff; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.container { width: 92%; max-width: 1150px; margin: 0 auto; }

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

/* Fix logo styling */
.header .logo {
  font-size: 26px;       /* bigger and readable */
  font-weight: 700;      /* bold */
  color: #0ABAB5;        /* main logo color */
}

.header .logo span {
  color: #8A2BE2;        /* accent color */
}


/* Desktop nav */
.nav-desktop { display: block; }
.nav-list { list-style: none; display: flex; gap: 20px; align-items:center; }
.nav-list a { text-decoration: none; color: #172026; font-weight: 600; padding: 6px 8px; transition: color .18s; }
.nav-list a:hover { color: #0a4d8c; }
.btn-small {
  display:inline-block; background: #0a4d8c; color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration:none;
  box-shadow: 0 6px 16px rgba(10,77,140,0.12);
}

/* Mobile toggle */
.menu-toggle {
  display: none; background: transparent; border: 0; padding: 6px; cursor: pointer;
}
.menu-toggle span { display:block; width: 24px; height: 3px; background: #334155; margin: 4px 0; border-radius: 3px; }

/* Mobile menu (in normal flow so it pushes content) */
.mobile-nav { overflow: hidden; height: 0; transition: height .35s ease, padding .25s ease; background:#fff; }
.mobile-nav.open { height: auto; padding: 18px 0; box-shadow: 0 8px 20px rgba(15,23,42,0.06); }
.mobile-nav-list { list-style: none; display:flex; flex-direction: column; gap: 12px; padding: 0 10px; margin:0; }
.mobile-nav-list a { display:block; text-decoration:none; color:#172026; padding: 8px 10px; font-weight:600; }
.mobile-cta { display:inline-block; background:#0a4d8c; color:#fff; padding:10px 14px; border-radius:10px; text-align:center; }

/* HERO */
.hero { position: relative; min-height: 70vh; display:flex; align-items:center; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-overlay { position:relative; z-index:1; background: linear-gradient(180deg, rgba(7,15,22,0.25), rgba(7,15,22,0.25)); width:100%; padding: 60px 0; display:flex; align-items:center; }
.hero-inner { text-align:center; color:#fff; margin:auto; max-width:920px; }
.hero-title { font-size:2.2rem; line-height:1.05; font-weight:700; margin-bottom:12px; }
.hero-title span { color:#f9b233; }
.hero-sub { color: #e6eefc; margin-bottom:18px; font-size:1.03rem; }

/* CTAs */
.btn-primary, .btn-outline {
  display:inline-block; border-radius:10px; padding:12px 18px; font-weight:700; text-decoration:none;
}
.btn-primary { background:#f9b233; color:#08122b; box-shadow: 0 8px 20px rgba(249,178,51,0.16); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-outline { border:2px solid rgba(255,255,255,0.3); color:#fff; background:transparent; }
.hero-ctas { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* SECTIONS */
.section { padding: 60px 0; }
.section-title { font-size:1.6rem; font-weight:700; text-align:center; margin-bottom:6px; color:#0b1220; }
.lead { text-align:center; color:#475569; margin-bottom:20px; }

/* Course grid */
.course-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:18px; margin-top:18px; }
.course-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 8px 24px rgba(15,23,42,0.06); transition: transform .25s; }
.course-card img { width:100%; height:170px; object-fit:cover; display:block; }
.card-body { padding:16px; }
.card-body h3 { font-size:1.05rem; margin-bottom:8px; color:#08122b; }
.card-body p { color:#475569; margin-bottom:12px; }
.card-cta { display:inline-block; color:#0a4d8c; font-weight:700; text-decoration:none; }

/* Instructor */
.instructor-inner { display:flex; gap:28px; align-items:center; flex-wrap:wrap; }
.instructor-media img { width:340px; max-width:100%; border-radius:12px; object-fit:cover; box-shadow:0 12px 30px rgba(2,6,23,0.08); }
.instructor-text { max-width:640px; }
.instructor-text h2 { font-size:1.4rem; margin-bottom:8px; color:#08122b; }

/* Testimonials */
.testimonial-wrap { position:relative; max-width:760px; margin:18px auto 0; }
.testimonial { display:none; background:#fff; padding:20px; border-radius:10px; box-shadow: 0 8px 30px rgba(2,6,23,0.06); color:#0b1220; }
.testimonial.active { display:block; }
.testimonial p { color:#334155; margin-bottom:12px; }
.testimonial cite { font-weight:700; color:#0a4d8c; display:block; }

/* testimonial nav */
.testimonial-nav { margin-top:12px; display:flex; justify-content:center; gap:10px; }
.testimonial-nav button { background:#fff; border:1px solid #e6eefc; padding:8px 12px; border-radius:6px; cursor:pointer; }

/* ENROLL CTA */
.cta { background: linear-gradient(90deg,#0a4d8c,#0b67b2); color:#fff; text-align:center; padding:42px 0; border-radius:8px; }
.cta .btn-primary.large { padding:14px 26px; border-radius:12px; }

/* FOOTER */
.footer { background:#08122b; color:#e6eefc; padding:32px 0; margin-top:28px; }
.footer-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:18px; align-items:start; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li a { color: #cfe6ff; text-decoration:none; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity:0; transform:translateY(18px);} to{opacity:1; transform:none;} }
.section, .course-card, .instructor-inner, .testimonial { animation: fadeInUp .65s ease both; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-title { font-size:1.9rem; }
  .nav-desktop { display:none; }
  .menu-toggle { display:block; }
}
@media (max-width: 520px) {
  .hero-inner { padding: 20px; }
  .hero-sub { font-size:.98rem; }
  .course-card img { height:150px; }
}
