/* =====================================================================
   Turnworth Medical Coding Academy — Corporate Theme
   Brand colors: #543EE8 (purple) | #072654 (navy) | #0058E0 (blue)
   Fonts: Lexend Deca (headings) · Hind (body)
   A clean, structured, trustworthy corporate design system.
   ===================================================================== */

:root {
  --navy: #072654;
  --navy-2: #082A5E;
  --blue: #0058E0;
  --blue-dark: #0046b3;
  --purple: #543EE8;
  --bg-soft: #F2F4FA;
  --bg-soft-2: #FFFBF5;
  --white: #ffffff;
  --black: #0f172a;
  --text: #4F536C;
  --text-muted: #6b7280;
  --text-light: #99a0b3;
  --border: #D0DAE9;
  --border-soft: #e7ecf5;
  --yellow: #FF9924;
  --green: #10B981;
  --title-font: "Lexend Deca", system-ui, -apple-system, sans-serif;
  --body-font: "Hind", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(7, 38, 84, 0.06);
  --shadow: 0 12px 30px rgba(7, 38, 84, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 38, 84, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
  --gradient: linear-gradient(120deg, #072654 0%, #0a3a82 55%, #0058E0 100%);
  --gradient-accent: linear-gradient(90deg, #543EE8 0%, #0058E0 100%);
  --transition: all .28s cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--blue); transition: var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--title-font);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide { max-width: 1480px; }
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,.85); }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4,.bg-navy h5,.bg-navy h6 { color: #fff; }
.text-center { text-align: center; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row > [class*="col"] { padding: 0 15px; }
.col { flex: 1 0 0; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.gy { row-gap: 30px; }
.gy-sm { row-gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0,88,224,.25); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,88,224,.32); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-soft); color: var(--navy); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn i { font-size: 13px; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 680px; margin: 0 auto 56px; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0,88,224,.08);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.bg-navy .eyebrow { color: #8fb6ff; background: rgba(255,255,255,.08); }
.sec-head p { color: var(--text); font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  padding: 11px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar ul { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--blue); }
.topbar .socials { display: flex; gap: 10px; }
.topbar .socials a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar .socials a:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo img { height: 70px; width: auto; border-radius: 8px; object-fit: contain; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 8px;
  display: block;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: rgba(0,88,224,.06); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: var(--navy); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 10px; font-size: 18px; cursor: pointer;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: var(--navy); z-index: 1100; padding: 30px 26px;
  transition: right .35s cubic-bezier(.16,1,.3,1); overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu .m-logo img { height: 58px; border-radius: 8px; margin-bottom: 30px; object-fit: contain; }
.mobile-menu nav a { display: block; color: rgba(255,255,255,.85); font-family: var(--title-font); font-weight: 500; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu nav a:hover, .mobile-menu nav a.active { color: #8fb6ff; padding-left: 8px; }
.m-close { position: absolute; top: 22px; right: 22px; background: rgba(255,255,255,.1); color: #fff; border: none; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; }
.menu-overlay { position: fixed; inset: 0; background: rgba(7,38,84,.5); backdrop-filter: blur(3px); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity .3s; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(84,62,232,.45), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; bottom: -160px; left: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,88,224,.4), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .hl { color: #8fb6ff; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 18px; border-radius: 40px; font-size: 14px; font-weight: 500;
  margin-bottom: 26px; color: #fff;
}
.hero-badge i { color: var(--yellow); }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 30px 0 36px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #fff; }
.hero-points i { color: var(--green); background: rgba(16,185,129,.18); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-stat-card {
  position: absolute; bottom: 26px; left: -20px;
  background: #fff; color: var(--navy); border-radius: var(--radius);
  padding: 18px 24px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.hero-stat-card .num { font-family: var(--title-font); font-size: 1.9rem; font-weight: 700; color: var(--blue); }
.hero-stat-card .lbl { font-size: 13px; color: var(--text); line-height: 1.3; }
.hero-stat-card .ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(0,88,224,.1); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* ---------- Trust / stats bar ---------- */
.stat-bar { background: #fff; margin-top: -60px; position: relative; z-index: 5; }
.stat-bar-inner {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 38px 30px; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center;
}
.stat-item .num { font-family: var(--title-font); font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.stat-item .num span { color: var(--blue); }
.stat-item p { color: var(--text); font-size: 14px; margin: 0; }
.stat-item + .stat-item { border-left: 1px solid var(--border-soft); }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.feature-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 34px 26px; transition: var(--transition); height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card .ic {
  width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; background: var(--gradient-accent); margin-bottom: 22px;
}
.feature-card h4 { margin-bottom: 10px; }
.feature-card p { color: var(--text); font-size: 15px; margin: 0; }

/* ---------- About split ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; right: -16px; bottom: -16px; background: var(--gradient-accent); color: #fff;
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-badge .num { font-family: var(--title-font); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.about-badge .lbl { font-size: 13px; opacity: .9; }
.about-list { margin: 24px 0 30px; display: grid; gap: 16px; }
.about-list li { display: flex; gap: 16px; align-items: flex-start; }
.about-list .ic { flex: none; width: 48px; height: 48px; border-radius: 12px; background: rgba(0,88,224,.1); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.about-list h6 { margin-bottom: 4px; }
.about-list p { font-size: 14px; margin: 0; }

/* ---------- Topics grid ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.topic-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px 24px; display: flex; align-items: center; gap: 18px; transition: var(--transition);
}
.topic-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.topic-card .ic { flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--bg-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.topic-card h4 { font-size: 1.05rem; margin: 0; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.course-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; height: 100%;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card__thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.course-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-card__thumb img { transform: scale(1.06); }
.course-card__badge {
  position: absolute; top: 14px; left: 14px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600; font-family: var(--title-font); padding: 6px 14px; border-radius: 30px;
}
.course-card__badge.cat { background: rgba(7,38,84,.85); }
.course-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-card__rating { color: var(--yellow); font-size: 14px; margin-bottom: 12px; display: flex; gap: 3px; align-items: center; }
.course-card__rating span { color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.course-card__title { font-family: var(--title-font); font-weight: 600; font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; display: block; }
.course-card__title:hover { color: var(--blue); }
.course-card__desc { font-size: 14px; color: var(--text); margin-bottom: 18px; }
.course-card__meta { display: flex; gap: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); margin-top: auto; }
.course-card__meta div { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.course-card__meta i { color: var(--blue); }

/* ---------- Course filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-tabs button {
  font-family: var(--title-font); font-weight: 500; font-size: 14px; color: var(--navy);
  background: #fff; border: 1px solid var(--border); padding: 10px 22px; border-radius: 30px; cursor: pointer; transition: var(--transition);
}
.filter-tabs button:hover { border-color: var(--blue); color: var(--blue); }
.filter-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Why-choose / icon list ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card .ic { width: 58px; height: 58px; border-radius: 50%; background: rgba(84,62,232,.1); color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.why-card h5 { margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--text); margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.testi-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px 28px; transition: var(--transition); }
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi-card .quote-ic { font-size: 30px; color: var(--blue); opacity: .25; margin-bottom: 14px; }
.testi-card .stars { color: var(--yellow); font-size: 14px; margin-bottom: 14px; }
.testi-card p { color: var(--text); font-size: 15px; }
.testi-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.testi-author .av { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--title-font); font-weight: 600; font-size: 20px; }
.testi-author h6 { margin: 0; }
.testi-author span { font-size: 13px; color: var(--text-muted); }

/* ---------- CTA / contact ---------- */
.cta-band { background: var(--gradient); color: #fff; border-radius: var(--radius-lg); padding: 60px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(84,62,232,.4), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band .container { position: relative; z-index: 2; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: block; font-family: var(--title-font); font-weight: 500; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--body-font); font-size: 15px; color: var(--navy); background: #fff; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,88,224,.12); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { background: var(--gradient); color: #fff; padding: 70px 0; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -100px; bottom: -100px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(84,62,232,.4), transparent 70%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.breadcrumb { display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 14px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.5); }
.breadcrumb .current { color: #8fb6ff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 80px 0 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-logo img { height: 64px; border-radius: 8px; margin-bottom: 20px; object-fit: contain; }
.footer-desc { font-size: 14.5px; line-height: 1.8; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 1.15rem; margin-bottom: 22px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links i { color: var(--blue); font-size: 12px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14.5px; }
.footer-contact i { color: var(--blue); margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,.72); }
.footer-contact a:hover { color: #fff; }
.footer-news p { font-size: 14.5px; margin-bottom: 18px; }
.footer-news form { display: flex; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.footer-news input { flex: 1; background: transparent; border: none; padding: 13px 16px; color: #fff; font-family: var(--body-font); font-size: 14px; }
.footer-news input::placeholder { color: rgba(255,255,255,.5); }
.footer-news input:focus { outline: none; }
.footer-news button { background: var(--blue); color: #fff; border: none; padding: 0 18px; cursor: pointer; transition: var(--transition); }
.footer-news button:hover { background: var(--blue-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a { color: rgba(255,255,255,.72); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue); color: #fff; border: none; cursor: pointer; font-size: 18px; z-index: 900;
  opacity: 0; pointer-events: none; transform: translateY(16px); transition: var(--transition); box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ---------- Modal (EmailJS) reuses turnworth-modal-* from emailjs-config.js ---------- */

/* ---------- Tables (cart/checkout) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }
table.tw-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.tw-table th { background: var(--bg-soft); color: var(--navy); font-family: var(--title-font); font-weight: 600; text-align: left; padding: 16px 18px; font-size: 14px; }
table.tw-table td { padding: 16px 18px; border-top: 1px solid var(--border-soft); font-size: 14.5px; vertical-align: middle; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty button { background: var(--bg-soft); border: none; width: 34px; height: 36px; cursor: pointer; color: var(--navy); }
.qty input { width: 46px; text-align: center; border: none; height: 36px; }

/* ---------- FAQ accordion ---------- */
.faq-item { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; transition: var(--transition); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--blue); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 26px; font-family: var(--title-font); font-weight: 600; font-size: 1.05rem; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q i { transition: transform .3s; color: var(--blue); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 26px 24px; color: var(--text); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.blog-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card__thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.06); }
.blog-card__body { padding: 26px; }
.blog-card__meta { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.blog-card__meta i { color: var(--blue); margin-right: 5px; }
.blog-card__title { font-family: var(--title-font); font-size: 1.25rem; color: var(--navy); margin-bottom: 12px; display: block; }
.blog-card__title:hover { color: var(--blue); }

/* ---------- Utility ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.product-card { background:#fff; border:1px solid var(--border-soft); border-radius: var(--radius); overflow:hidden; transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__thumb { aspect-ratio: 1/1; overflow:hidden; background: var(--bg-soft); }
.product-card__thumb img { width:100%; height:100%; object-fit: cover; }
.product-card__body { padding: 18px; text-align:center; }
.product-card__title { font-family: var(--title-font); font-weight:600; color: var(--navy); font-size: 1rem; display:block; margin-bottom:6px; }
.product-card__price { color: var(--blue); font-weight:600; font-family: var(--title-font); }

.mentor-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.mentor-card { background:#fff; border:1px solid var(--border-soft); border-radius: var(--radius-lg); overflow:hidden; text-align:center; transition: var(--transition); }
.mentor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mentor-card__thumb { aspect-ratio: 1/1; overflow:hidden; }
.mentor-card__thumb img { width:100%; height:100%; object-fit: cover; }
.mentor-card__body { padding: 22px; }
.mentor-card__body h5 { margin-bottom: 4px; }
.mentor-card__body span { font-size: 13px; color: var(--blue); }
.mentor-social { display:flex; justify-content:center; gap:10px; margin-top:14px; }
.mentor-social a { width:34px; height:34px; border-radius:50%; background: var(--bg-soft); color: var(--navy); display:flex; align-items:center; justify-content:center; font-size:13px; }
.mentor-social a:hover { background: var(--blue); color:#fff; }

.event-card { display:grid; grid-template-columns: 200px 1fr; gap: 0; background:#fff; border:1px solid var(--border-soft); border-radius: var(--radius-lg); overflow:hidden; transition: var(--transition); margin-bottom: 26px; }
.event-card:hover { box-shadow: var(--shadow); }
.event-card__thumb { overflow:hidden; }
.event-card__thumb img { width:100%; height:100%; object-fit:cover; }
.event-card__body { padding: 26px; }
.event-card__meta { display:flex; gap:18px; font-size:13px; color:var(--text-muted); margin-bottom:10px; flex-wrap:wrap; }
.event-card__meta i { color: var(--blue); margin-right:5px; }

.is-hidden { display: none !important; }
.d-none-mobile { display: inline-flex; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity:0; transform: translateY(24px);} to { opacity:1; transform: translateY(0);} }
[data-reveal] { opacity: 0; }
[data-reveal].in { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .shop-grid, .mentor-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 991px) {
  .section { padding: 70px 0; }
  .feature-grid, .why-grid { grid-template-columns: repeat(2,1fr); }
  .topic-grid, .course-grid, .testi-grid, .blog-grid { grid-template-columns: repeat(2,1fr); }
  .stat-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item + .stat-item:nth-child(odd) { border-left: none; }
  .col-6,.col-4,.col-3,.col-8,.col-7,.col-5 { flex: 0 0 100%; max-width: 100%; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; }
  .d-none-mobile { display: none; }
  .hero { padding: 80px 0 90px; }
  .hero-visual { margin-top: 40px; }
  .cta-band { padding: 40px 28px; }
  .form-card { padding: 28px; }
  .shop-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .topbar .container { justify-content: center; }
  .topbar ul { gap: 16px; justify-content:center; }
  .feature-grid, .why-grid, .topic-grid, .course-grid, .testi-grid, .blog-grid, .shop-grid, .mentor-grid { grid-template-columns: 1fr; }
  .stat-bar-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  h1 { font-size: 2rem; }
  .hero-stat-card
  .hero-stat-card { left: 50%; transform: translateX(-50%); bottom: -26px; }
}

/* ===================== Enhancements (senior dev pass) ===================== */
/* Skip link */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 2000; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px; font-family: var(--title-font); font-weight: 600; transition: top .25s; }
.skip-link:focus { top: 0; color: #fff; }

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(0,88,224,.45); outline-offset: 2px; border-radius: 6px;
}

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 1200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--gradient-accent); transition: width .1s linear; }

/* WhatsApp floating button */
.whatsapp-float { position: fixed; left: 26px; bottom: 26px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 900; box-shadow: 0 10px 24px rgba(37,211,102,.4); transition: var(--transition); }
.whatsapp-float:hover { color: #fff; transform: translateY(-3px) scale(1.05); }
.whatsapp-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37,211,102,.5); animation: waPulse 2s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Partners strip */
.partner-strip { display: flex; align-items: center; justify-content: center; gap: 50px; flex-wrap: wrap; }
.partner-item img { height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: var(--transition); }
.partner-item img:hover { filter: grayscale(0); opacity: 1; }

/* Process steps */
.step-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.step-card { position: relative; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 34px 26px 30px; transition: var(--transition); }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step-card .step-num { position: absolute; top: 18px; right: 22px; font-family: var(--title-font); font-weight: 700; font-size: 2.4rem; color: rgba(7,38,84,.07); line-height: 1; }
.step-card .ic { width: 60px; height: 60px; border-radius: 14px; background: var(--gradient-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.step-card h5 { margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text); margin: 0; }

/* Course search */
.course-search { position: relative; max-width: 520px; margin: 0 auto 28px; }
.course-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.course-search input { width: 100%; padding: 14px 18px 14px 46px; border: 1px solid var(--border); border-radius: 40px; font-family: var(--body-font); font-size: 15px; background: #fff; transition: var(--transition); }
.course-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,88,224,.12); }

/* Staggered reveal */
[data-reveal].in:nth-child(2) { animation-delay: .08s; }
[data-reveal].in:nth-child(3) { animation-delay: .16s; }
[data-reveal].in:nth-child(4) { animation-delay: .24s; }
[data-reveal].in:nth-child(5) { animation-delay: .3s; }
[data-reveal].in:nth-child(6) { animation-delay: .36s; }

@media (max-width: 991px) {
  .step-grid { grid-template-columns: repeat(2,1fr); }
  .partner-strip { gap: 34px; }
  .whatsapp-float { left: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 24px; }
}
@media (max-width: 600px) {
  .step-grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; }
  .whatsapp-float::after { display: none; }
}

/* ===================== Mobile optimization pass (deploy-ready) ===================== */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 54px 0; }
  .section-sm { padding: 40px 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head p { font-size: .98rem; }

  /* Why-choose: compact horizontal rows instead of tall boxes */
  .why-grid { gap: 12px; }
  .why-card { display: flex; align-items: center; text-align: left; gap: 16px; padding: 16px 18px; }
  .why-card .ic { margin-bottom: 0; flex: none; width: 46px; height: 46px; font-size: 19px; }
  .why-card h5 { margin-bottom: 2px; font-size: 1rem; }
  .why-card p { font-size: 13px; line-height: 1.45; }

  /* Feature cards: tighter, icon a touch smaller */
  .feature-card { padding: 22px 20px; }
  .feature-card .ic { width: 54px; height: 54px; font-size: 22px; margin-bottom: 14px; }

  /* Steps: compact horizontal rows */
  .step-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px 18px; }
  .step-card .ic { margin-bottom: 0; flex: none; width: 50px; height: 50px; font-size: 21px; }
  .step-card .step-num { font-size: 1.8rem; top: 14px; right: 16px; }
  .step-card h5 { margin-bottom: 4px; }

  /* Topic cards */
  .topic-card { padding: 16px 16px; gap: 14px; }
  .topic-card .ic { width: 48px; height: 48px; font-size: 19px; }
  .topic-card h4 { font-size: 1rem; }

  /* Hero */
  .hero { padding: 52px 0 60px; }
  .hero-lead { font-size: 1.02rem; }
  .hero-points { gap: 10px 16px; margin: 22px 0 26px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  /* Stat bar */
  .stat-bar { margin-top: -34px; }
  .stat-bar-inner { padding: 22px 14px; gap: 12px; }
  .stat-item .num { font-size: 1.7rem; }
  .stat-item p { font-size: 13px; }

  /* Cards padding */
  .testi-card { padding: 24px 20px; }
  .course-card__body { padding: 18px; }
  .form-card { padding: 22px 18px; }

  /* CTA + page hero */
  .cta-band { padding: 28px 20px; }
  .page-hero { padding: 52px 0; }

  /* About badge smaller so it doesn't overflow */
  .about-badge { padding: 16px 18px; right: 0; bottom: -14px; }
  .about-badge .num { font-size: 1.7rem; }
}

/* Small-tablet: keep why/steps as 2-up but tighter */
@media (min-width: 601px) and (max-width: 991px) {
  .step-grid { gap: 18px; }
  .why-card, .feature-card { padding: 24px 20px; }
}

/* ===================== Leads, consent, course-detail extras ===================== */
/* Mobile sticky CTA bar */
.mobile-cta-bar { display: none; }
@media (max-width: 600px) {
  .mobile-cta-bar {
    display: grid; grid-template-columns: repeat(3,1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: #fff; border-top: 1px solid var(--border-soft); box-shadow: 0 -4px 16px rgba(7,38,84,.08);
  }
  .mobile-cta-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 9px 4px; font-family: var(--title-font); font-weight: 600; font-size: 11px; color: var(--navy);
  }
  .mobile-cta-bar a i { font-size: 17px; }
  .mobile-cta-bar a:nth-child(2) { color: #25D366; }
  .mobile-cta-bar a:nth-child(3) { background: var(--blue); color: #fff; }
  body { padding-bottom: 60px; }              /* clear the fixed bar */
  .whatsapp-float { display: none; }          /* bar already has WhatsApp */
  .back-top { bottom: 74px; }                 /* sit above the bar */
}

/* Cookie consent */
.tw-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1300;
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  opacity: 0; transform: translateY(16px); transition: var(--transition);
}
.tw-consent.show { opacity: 1; transform: translateY(0); }
.tw-consent p { margin: 0; font-size: 14px; color: var(--text); flex: 1 1 280px; }
.tw-consent__btns { display: flex; gap: 10px; }
.tw-consent .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 600px) { .tw-consent { bottom: 70px; } }

/* Batch countdown banner */
.batch-countdown {
  margin-top: 22px; background: rgba(0,88,224,.07); border: 1px solid rgba(0,88,224,.18);
  color: var(--navy); border-radius: 12px; padding: 14px 18px; font-family: var(--title-font);
  font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 10px;
}
.batch-countdown i { color: var(--blue); }
