/* ACE Training Lab — one stylesheet for the whole site.
   1. Variables  2. Base  3. Header  4. Buttons  5. Sections
   6. Cards and grids  7. Course page  8. Forms  9. Footer  10. Small screens */

/* 1. VARIABLES — change a colour here and it changes everywhere */
:root {
  --navy: #0B132B;        /* brand navy, from acetraininglab.com */
  --navy-dark: #070D1F;
  --blue: #1C2541;        /* lighter navy for bands */
  --gold: #D4AF37;        /* brand gold */
  --gold-light: #E2C35A;
  --text: #333333;
  --muted: #555555;
  --line: #DEDEDE;
  --field: #8793A6;
  --soft: #F6F5F1;
  --white: #FFFFFF;
  --danger: #B42318;
  --ok: #17663A;
  --radius: 14px;
  --max: 1180px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-ui: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* 2. BASE */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--navy); font-weight: 800; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--white); padding: 10px 14px; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 3. HEADER */
.topbar { background: var(--navy); color: var(--white); font-size: 14px; }
.topbar .container { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.topbar a { color: var(--white); font-weight: 600; }
.topbar a.wa { color: var(--gold-light); }
.topbar-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .container { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 12px 32px; justify-content: space-between; align-items: center; }
.logo img { width: 68px; height: 64px; object-fit: contain; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 26px; align-items: center; font-weight: 600; font-size: 15px; }
.main-nav a, .main-nav .drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; border-bottom: 3px solid transparent; }
.main-nav a.active { border-bottom-color: var(--gold); }
.main-nav .drop-btn { font: inherit; font-weight: 600; background: none; border-top: 0; border-left: 0; border-right: 0; color: var(--navy); cursor: pointer; }
.has-drop { position: relative; }
.dropdown { display: none; position: absolute; left: -16px; top: 100%; min-width: 290px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(15, 42, 74, 0.12); }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown, .has-drop.open .dropdown { display: block; }
.dropdown .group-name { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 8px 0 2px; }
.dropdown a { display: block; padding: 9px 0; border: 0; font-weight: 600; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; }

/* 4. BUTTONS */
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 15px 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.3; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-line-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-line-white:hover { color: var(--gold-light); border-color: var(--gold-light); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.main-nav a.btn { padding: 12px 24px; border: 2px solid transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 5. SECTIONS */
.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-blue h2 { color: var(--white); }
.section-navy p { color: #D3DCEA; }
.section-blue { background: var(--blue); color: var(--white); padding: 60px 0; }
.section-blue p { color: #DCE5F2; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 38px; }
.split { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.split > .grow { flex: 1 1 420px; min-width: 0; }
.hero { background: var(--soft); padding: 68px 0; }
.hero .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-text p { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-img { flex: 1 1 400px; min-width: 0; }
.hero-img img { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { background: var(--white); border: 1px solid #D5DCE8; border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--navy); }
.page-hero { background: var(--soft); padding: 48px 0 52px; }
.page-hero .container { display: flex; flex-direction: column; gap: 14px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { padding: 10px 0; display: inline-block; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 24px; margin-top: 14px; }
.notice { background: #FFF6E0; border: 1px solid var(--gold); border-radius: 10px; padding: 14px 18px; color: var(--navy); }

/* 6. CARDS AND GRIDS */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.card > img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card-body p { color: var(--muted); font-size: 15px; }
.card-body .btn { margin-top: auto; }
.link-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.link-list a:last-child { border-bottom: 0; }
.tile { background: var(--soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile.white { background: var(--white); }
.tile .num { font-size: 40px; line-height: 1; font-weight: 800; color: var(--gold); }
.tile .photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.why { display: flex; flex-direction: column; gap: 10px; }
.why::before { content: ""; width: 44px; height: 4px; background: var(--gold); border-radius: 2px; }
.why h3 { font-size: 19px; font-weight: 700; }
.why p { font-size: 15px; }
.quote { max-width: 860px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.quote blockquote { margin: 0; font-size: clamp(20px, 3vw, 26px); line-height: 1.45; font-weight: 600; color: var(--navy); }
.more-link { font-weight: 700; border-bottom: 2px solid var(--gold); padding: 10px 0; }
.price { font-weight: 800; color: var(--navy); }
.price s { font-weight: 500; color: #556070; margin-left: 8px; }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 0 18px; color: var(--muted); }

/* 7. COURSE PAGE */
.course-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.course-top .grow { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 640px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact small { display: block; font-size: 13px; color: var(--muted); }
.fact strong { color: var(--navy); }
.fee-card { flex: 1 1 300px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.fee-card .big { font-size: 40px; line-height: 1; font-weight: 800; color: var(--navy); }
.fee-card s { font-size: 18px; color: #556070; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding: 16px 20px; border-bottom: 1px solid var(--line); }
table.data td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.strong { font-weight: 700; color: var(--navy); }
table.data td.right { text-align: right; }

/* 8. FORMS */
.form-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.form-card { flex: 999 1 560px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 32px; }
.form-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--white); color: var(--text); width: 100%; }
.upload { border: 2px dashed var(--field); border-radius: 12px; padding: 24px 20px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; padding: 8px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.check a { text-decoration: underline; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.steps li { background: var(--navy); color: var(--white); border-radius: 12px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.steps li b { color: var(--gold-light); font-size: 22px; font-weight: 800; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.box-navy { background: var(--navy); color: var(--white); border: 0; }
.box-navy h2 { color: var(--white); font-size: 19px; }
.acct { border-top: 1px solid #2B4669; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: #D3DCEA; }
.acct b { color: var(--gold-light); font-size: 16px; }
.row-between { display: flex; justify-content: space-between; gap: 12px; }
.form-msg { display: none; border-radius: 10px; padding: 14px 18px; font-weight: 600; }
.form-msg.show { display: block; }
.form-msg.error { background: #FDECEA; color: var(--danger); border: 1px solid var(--danger); }
.form-msg.info { background: #FFF6E0; color: var(--navy); border: 1px solid var(--gold); }

/* 9. FOOTER */
.site-footer { background: var(--navy-dark); color: #D3DCEA; font-size: 15px; padding: 64px 0 28px; }
.site-footer a { color: #D3DCEA; display: block; padding: 5px 0; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); }
.site-footer a.gold { color: var(--gold-light); font-weight: 700; }
.site-footer h3 { color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { background: var(--white); border-radius: 12px; padding: 8px; align-self: flex-start; margin-bottom: 8px; }
.footer-logo img { width: 86px; height: 80px; object-fit: contain; }
.footer-bottom { border-top: 1px solid #24405F; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer-bottom div { display: flex; gap: 24px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #128C4B; color: var(--white); font-weight: 700; padding: 14px 20px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.wa-float:hover { color: var(--white); background: #0E7A40; }

/* 10. SMALL SCREENS */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; max-height: 80vh; overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .main-nav .drop-btn { width: 100%; padding: 14px 0; }
  .main-nav .drop-btn { display: none; }
  .dropdown { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .main-nav a.btn { margin-top: 10px; justify-content: center; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0; }
  .hero-img img { height: 260px; }
  .form-card { padding: 22px; }
}

/* 11. ADDITIONS: hidden anti-spam field, results cards */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { margin: 0; background: var(--soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.result blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.result figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); margin-top: auto; }
.result figcaption strong { color: var(--navy); font-size: 16px; }
.result .score { align-self: flex-start; margin-top: 8px; background: var(--navy); color: var(--white); font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* Keep each price together on one line (for example "Rs 32,000" never splits) */
.fee-card s, .price, .price s { white-space: nowrap; }
.fee-card .big { display: inline-block; margin-right: 8px; }

/* 12. HOME PAGE NUMBERS, EXAM LINKS, PHONE LAYOUT */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; padding-top: 28px; padding-bottom: 28px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--navy); }
.stat span { font-size: 14px; color: var(--muted); }
.exam-pick { display: flex; flex-direction: column; gap: 10px; }
.exam-pick > span { font-size: 15px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; background: var(--white); border: 1px solid #C3CCDA; border-radius: 999px; padding: 6px 18px; font-size: 15px; font-weight: 700; color: var(--navy); }
.pills a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.wa-float { width: 58px; height: 58px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.mobile-bar { display: none; }
.btn-wa { background: #128C4B; color: var(--white); }
.btn-wa:hover { background: #0E7A40; color: var(--white); }

@media (max-width: 900px) {
  /* one-line top bar: the message is dropped, the two contact links stay */
  .topbar { font-size: 13px; }
  .topbar .container { padding-top: 8px; padding-bottom: 8px; justify-content: center; }
  .topbar .container > span { display: none; }
  .topbar-links { gap: 6px 18px; justify-content: center; }
  .logo img { width: 52px; height: 49px; }
  .site-header .container { padding-top: 6px; padding-bottom: 6px; }

  .hero { padding: 32px 0 36px; }
  .hero .container { gap: 28px; }
  .hero-text { gap: 18px; }
  .hero-img img { height: 210px; }

  .stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 22px; padding-bottom: 22px; }
  .stat strong { font-size: 24px; }

  /* shorter course cards */
  #course-groups .card > img { height: 110px; }
  #course-groups .card-body { padding: 18px; gap: 10px; }
  #course-groups .card-body > p { display: none; }

  /* instructors and results: swipe sideways instead of a long column */
  #instructors, #results > .grid { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-right: -24px; padding-right: 24px; }
  #instructors > .tile, #results > .grid > .result { flex: 0 0 78%; scroll-snap-align: start; }

  /* "why" points two across, enrol steps tighter */
  .section-navy .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .why h3 { font-size: 17px; }
  .why p { font-size: 14px; }
  .tile.white { padding: 18px; }
  .tile .num { font-size: 30px; }

  /* fixed action bar at the bottom of the screen */
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--white); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(15, 42, 74, 0.10); }
  .mobile-bar .btn { flex: 1 1 0; padding: 13px 10px; font-size: 15px; }
  body.has-mobile-bar { padding-bottom: 76px; }
  body.has-mobile-bar .wa-float { display: none; }
}

/* 13. BRAND LOOK — colours, fonts and layouts taken from acetraininglab.com */
h1, h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0; }
h3, .btn, .main-nav, .eyebrow, .pills a, .stat strong, legend, .steps li, .price, .fee-card .big, table.data th { font-family: var(--font-ui); }
h3 { font-weight: 600; }
.eyebrow { color: #8A6D12; }
.section-navy .eyebrow { color: var(--gold); }

/* buttons: gold with navy text, squarer corners, as on the live site */
.btn { border-radius: 4px; font-weight: 600; letter-spacing: 0.2px; }
.btn-gold, .main-nav a.btn { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }

/* header: navy bar, logo on a white badge so it stays readable */
.topbar { background: var(--navy-dark); }
.topbar a.wa { color: var(--gold); }
.site-header { background: var(--navy); border-bottom: 0; }
.logo { background: var(--white); border-radius: 10px; padding: 4px 8px; display: inline-flex; }
.logo img { width: 72px; height: 68px; }
.main-nav > ul > li > a:not(.btn) { color: var(--white); font-weight: 500; }
.main-nav > ul > li > a:not(.btn):hover { color: var(--gold); }
.main-nav a.active { border-bottom-color: var(--gold); }
.dropdown a { color: var(--navy); }
.nav-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.4); }
.nav-toggle span { background: var(--white); }

/* home hero: photo behind, white heading, gold second line */
.hero.hero-photo { background: var(--navy) url('../images/hero-student.jpg') center top / cover no-repeat; position: relative; padding: 96px 0 104px; }
.hero.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 19, 43, 0.97) 0%, rgba(11, 19, 43, 0.88) 30%, rgba(11, 19, 43, 0.35) 52%, rgba(11, 19, 43, 0) 72%); }
.hero.hero-photo .container { position: relative; }
.hero.hero-photo .hero-text { flex: 0 1 520px; }
.hero.hero-photo h1, .hero.hero-photo .hero-text p { text-shadow: 0 2px 10px rgba(11, 19, 43, 0.55); }
.hero.hero-photo h1 { color: var(--white); font-size: clamp(34px, 5vw, 48px); line-height: 1.2; }
.hero.hero-photo h1 span { display: block; color: var(--gold); font-size: 0.75em; margin-top: 10px; }
.hero.hero-photo .hero-text p { color: #E0E0E0; }
.hero.hero-photo .exam-pick > span { color: #E0E0E0; }
.hero.hero-photo .btn-line { background: transparent; color: var(--white); border-color: var(--white); }
.hero.hero-photo .btn-line:hover { color: var(--gold); border-color: var(--gold); }
.hero.hero-photo .pills a { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.hero.hero-photo .pills a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* centred uppercase section title, as "OUR COURSES" on the live site */
.title-center { text-align: center; text-transform: uppercase; font-family: var(--font-head); font-weight: 900; font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin-bottom: 44px; }

/* course cards: rounded, square picture, centred uppercase text, gold button */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.course-card { border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; text-align: center; }
.course-card > img { width: 100%; aspect-ratio: 1 / 0.96; height: auto; object-fit: cover; }
.course-card .body { padding: 26px 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; flex-grow: 1; }
.course-card h3 { font-size: 23px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); }
.course-card p { font-size: 14px; line-height: 1.7; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2px; color: var(--muted); }
.course-card .price { font-size: 15px; }
.course-card .btn { margin-top: auto; min-width: 200px; }

.stat strong { color: var(--navy); }
.tile .num { color: var(--gold); }
.why::before { background: var(--gold); }
.more-link { border-bottom-color: var(--gold); }
.site-footer { background: var(--navy); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.16); }
.site-footer a.gold { color: var(--gold); }
.steps li b, .acct b { color: var(--gold); }
.acct { border-top-color: rgba(255, 255, 255, 0.18); }
.notice, .form-msg.info { background: #FBF6E3; border-color: var(--gold); }

@media (max-width: 1000px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .logo img { width: 50px; height: 47px; }
  .main-nav { background: var(--navy); border-bottom: 0; }
  .dropdown { background: transparent; }
  .dropdown a { color: #E0E0E0; }
  .dropdown .group-name { color: var(--gold); }
  .hero.hero-photo { padding: 44px 0 48px; }
  .hero.hero-photo::before { background: rgba(11, 19, 43, 0.86); }
  .title-center { margin-bottom: 28px; }
}
@media (max-width: 640px) {
  /* phones: two posters across, each shown whole (they carry their own text), with the name and button under it */
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .course-card { border-radius: 16px; }
  .course-card .body { padding: 12px 10px 14px; gap: 8px; }
  .course-card h3 { font-size: 14px; letter-spacing: 0.2px; }
  .course-card p { display: none; }
  .course-card .price { font-size: 13px; }
  .course-card .btn { min-width: 0; width: 100%; padding: 10px 8px; font-size: 14px; }
}

/* 14. HOME HERO ON PHONES: the photo sits above the text so it is always visible */
[hidden] { display: none !important; }
.stats .container { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 900px) {
  /* as on acetraininglab.com: the photo fills the hero, a navy fade on the left carries the text */
  .hero.hero-photo { background: var(--navy) url('../images/hero-student.jpg') 68% top / cover no-repeat; padding: 44px 0 36px; }
  .hero.hero-photo::before { position: absolute; display: block; height: auto; margin: 0; inset: 0;
    background: linear-gradient(180deg, rgba(11, 19, 43, 0) 52%, rgba(11, 19, 43, 0.92) 78%),
                linear-gradient(90deg, rgba(11, 19, 43, 0.96) 0%, rgba(11, 19, 43, 0.74) 36%, rgba(11, 19, 43, 0) 70%); }
  .hero.hero-photo h1, .hero.hero-photo .hero-text > p { max-width: 62%; }
  .hero.hero-photo h1 { font-size: 34px; line-height: 1.18; }
  .hero.hero-photo h1 span { font-size: 0.72em; line-height: 1.25; }
  .hero.hero-photo .hero-text > p { font-size: 16px; min-height: 150px; }
  .stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 15. GOLD LOGO: sits directly on the navy, no white badge */
.logo { background: none; padding: 0; border-radius: 0; }
.logo img { width: auto; height: 62px; }
.footer-logo { background: none; padding: 0; border-radius: 0; margin-bottom: 12px; }
.footer-logo img { width: 190px; height: auto; object-fit: contain; }
@media (max-width: 900px) { .logo img { width: auto; height: 46px; } }
