/* ══════════════════════════════════════════════════════
   KAELO TRAINING INSTITUTION — Global Platform CSS v9
   Palette: Warm Navy #0d1b4e · Gold #d4a843 · Red #c62828
   Warm cream #fef9f0 · Clean readable typography
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy:   #0d1b4e;
  --navy2:  #162060;
  --navy3:  #1e2d6e;
  --gold:   #d4a843;
  --gold2:  #e8c068;
  --gold3:  #f5d78e;
  --red:    #c62828;
  --red2:   #e53535;
  --green:  #2e7d32;
  --teal:   #00695c;

  --white:  #ffffff;
  --cream:  #fef9f0;
  --cream2: #fdf3e3;
  --g50:    #f8f9fa;
  --g100:   #f1f3f5;
  --g200:   #e9ecef;
  --g300:   #dee2e6;
  --g400:   #adb5bd;
  --g500:   #6c757d;
  --g600:   #495057;
  --g700:   #343a40;
  --g900:   #212529;

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  --nav-h:  68px;
  --r:      8px;
  --r-lg:   12px;
  --max-w:  1200px;
  --px:     5%;

  --sh-s:  0 2px 8px rgba(13,27,78,.10), 0 4px 16px rgba(13,27,78,.07);
  --sh-m:  0 4px 20px rgba(13,27,78,.14), 0 12px 40px rgba(13,27,78,.10);
  --sh-lg: 0 8px 32px rgba(13,27,78,.18), 0 24px 64px rgba(13,27,78,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--body); color: var(--g900); background: var(--white); line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
p   { line-height: 1.8; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-brand a { display: flex; align-items: center; }
.nav-logo    { height: 42px; width: auto; }
.nav-menu    { display: flex; align-items: stretch; height: var(--nav-h); gap: 0; }
.nav-menu li a {
  display: flex; align-items: center;
  padding: 0 .85rem;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.72);
  transition: color .2s, background .2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-menu li a:hover  { color: var(--gold2); background: rgba(255,255,255,.05); }
.nav-menu li a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-cta-btn {
  display: flex !important; align-items: center;
  background: var(--gold) !important; color: var(--navy) !important;
  font-size: .72rem !important; font-weight: 700 !important;
  padding: 0 1.3rem !important; margin: 12px 0 12px .4rem;
  height: 40px; border-radius: var(--r);
  transition: background .2s !important; border-bottom: none !important;
}
.nav-cta-btn:hover { background: var(--gold2) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ── PAGE CONTENT ── */
.page-content { padding-top: var(--nav-h); }

/* ── SECTION HEADING ── */
.section-hdr { text-align: center; margin-bottom: 3rem; }
.section-hdr .overline {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: var(--gold); margin-bottom: .6rem;
  font-family: var(--body);
}
.section-hdr h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy); line-height: 1.15; margin-bottom: .5rem;
}
.section-hdr h2.light { color: var(--white); }
.section-hdr p {
  font-size: .95rem; color: var(--g500); max-width: 580px;
  margin: 0 auto; font-weight: 400;
}
.section-hdr p.light { color: rgba(255,255,255,.6); }
.gold-rule { width: 48px; height: 3px; background: var(--gold); margin: .7rem auto 0; border-radius: 2px; }
.overline {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: var(--gold); margin-bottom: .5rem;
  font-family: var(--body);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.6rem; border-radius: var(--r);
  font-family: var(--body); font-size: .82rem; font-weight: 600;
  letter-spacing: .03em; cursor: pointer; transition: all .2s;
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn-gold   { background: var(--gold);  color: var(--navy);  border-color: var(--gold);  }
.btn-gold:hover  { background: var(--gold2); box-shadow: 0 4px 16px rgba(212,168,67,.4); transform: translateY(-2px); }
.btn-navy   { background: var(--navy);  color: var(--white); border-color: var(--navy);  }
.btn-navy:hover  { background: var(--navy2); transform: translateY(-1px); }
.btn-red    { background: var(--red);   color: var(--white); border-color: var(--red);   }
.btn-red:hover   { background: var(--red2); transform: translateY(-1px); }
.btn-outline-gold  { background: transparent; color: var(--gold);  border-color: var(--gold);  }
.btn-outline-gold:hover  { background: var(--gold); color: var(--navy); }
.btn-outline-navy  { background: transparent; color: var(--navy);  border-color: var(--navy);  }
.btn-outline-navy:hover  { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-sm  { padding: .45rem 1rem;  font-size: .75rem; }
.btn-lg  { padding: .85rem 2rem;  font-size: .88rem; }

/* ── COURSE CARD ── */
.course-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--g200); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
  box-shadow: var(--sh-s);
}
.course-card:hover { box-shadow: var(--sh-lg); transform: translateY(-5px); }

/* Course card image container — fixed height, proper contain */
.course-card-img-wrap {
  width: 100%; height: 200px; overflow: hidden; flex-shrink: 0;
  background: var(--g200);
}
.course-card-img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center; display: block;
  transition: transform .4s ease;
}
.course-card:hover .course-card-img { transform: scale(1.04); }

.course-card-body  { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }

.course-cat-tag {
  display: inline-block;
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: .2rem .65rem; border-radius: 20px; margin-bottom: .55rem;
  background: rgba(212,168,67,.12); color: var(--navy); border: 1px solid rgba(212,168,67,.35);
}
.course-cat-tag.blue  { background: rgba(37,99,235,.08); color: #1e40af; border-color: rgba(37,99,235,.25); }
.course-cat-tag.red   { background: rgba(198,40,40,.08); color: var(--red);   border-color: rgba(198,40,40,.25); }
.course-cat-tag.green { background: rgba(46,125,50,.08); color: var(--green); border-color: rgba(46,125,50,.25); }
.course-cat-tag.teal  { background: rgba(0,105,92,.08);  color: var(--teal);  border-color: rgba(0,105,92,.25); }

.course-card-title {
  font-family: var(--display); font-size: 1.02rem; font-weight: 600;
  color: var(--navy); margin-bottom: .45rem; line-height: 1.3; text-align: left;
}
.course-card-desc  {
  font-size: .83rem; color: var(--g600); line-height: 1.75;
  margin-bottom: .9rem; flex: 1; font-weight: 400;
}
.course-card-meta  { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-bottom: .85rem; }
.course-meta-item  {
  font-size: .73rem; color: var(--g500); font-weight: 500;
  display: flex; align-items: center; gap: .3rem;
}
.course-card-footer {
  border-top: 1px solid var(--g200); padding-top: .9rem;
  margin-top: auto; display: flex; gap: .5rem; align-items: center;
}
.course-card-footer .btn { flex: 1; justify-content: center; }

/* ── DARK PRODUCT CARD ── */
.pcard {
  background: var(--navy); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(212,168,67,.18);
  box-shadow: var(--sh-s);
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(13,27,78,.35); border-color: rgba(212,168,67,.4); }

.pcard-cover {
  height: 210px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem 1.4rem;
}
.pcard-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: .45; transition: transform .4s ease;
}
.pcard:hover .pcard-cover-img { transform: scale(1.05); }
.pcard-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,78,.97) 30%, rgba(13,27,78,.25) 100%); }
.pcard-cover > * { position: relative; z-index: 2; }
.pcard-badge {
  position: absolute; top: 1rem; left: 1.2rem; z-index: 3;
  background: var(--gold); color: var(--navy);
  font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .65rem; border-radius: 4px;
}
.pcard-kmark { font-family: var(--display); font-size: .95rem; color: var(--gold); opacity: .6; margin-bottom: .15rem; }
.pcard-title { font-family: var(--display); font-size: 1.05rem; color: var(--white); line-height: 1.3; font-weight: 600; }
.pcard-body  { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.pcard-tag   { font-size: .78rem; font-weight: 600; color: var(--gold2); margin-bottom: .4rem; text-align: left; }
.pcard-desc  { font-size: .81rem; color: rgba(255,255,255,.62); line-height: 1.75; flex: 1; margin-bottom: .9rem; font-weight: 400; }
.pcard-modules { margin-bottom: .9rem; }
.pcard-modules li {
  font-size: .74rem; color: rgba(255,255,255,.48);
  padding: .2rem 0; display: flex; gap: .4rem; font-weight: 400;
  align-items: flex-start;
}
.pcard-modules li::before { content: '›'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.pcard-specs { display: flex; gap: .5rem; margin-bottom: .9rem; flex-wrap: wrap; }
.pcard-spec {
  font-size: .65rem; color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: .15rem .55rem; border-radius: 4px; font-weight: 500;
}
.pcard-footer {
  border-top: 1px solid rgba(212,168,67,.15);
  padding-top: .9rem; display: flex; align-items: center;
  justify-content: space-between;
}
.pcard-price { font-family: var(--display); font-size: 1.6rem; color: var(--gold); font-weight: 400; line-height: 1; }
.pcard-price-sub { font-size: .63rem; color: rgba(255,255,255,.28); margin-top: .08rem; }
.pcard-actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.btn-buy {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem 1.1rem; border-radius: var(--r);
  background: var(--gold); color: var(--navy);
  font-size: .76rem; font-weight: 700; cursor: pointer;
  transition: all .18s; text-decoration: none; white-space: nowrap;
}
.btn-buy:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,168,67,.4); }
.btn-prev { font-size: .68rem; color: rgba(212,168,67,.5); text-decoration: underline; cursor: pointer; text-align: right; }
.btn-prev:hover { color: var(--gold); }

/* ── STATS BAR ── */
.stats-bar { background: var(--navy); padding: 2.5rem var(--px); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); max-width: var(--max-w); margin: 0 auto; gap: 1px; background: rgba(212,168,67,.2); border-radius: var(--r-lg); overflow: hidden; }
.stat-item  { background: var(--navy2); padding: 2rem; text-align: center; }
.stat-num   { font-family: var(--display); font-size: 2.8rem; color: var(--gold); font-weight: 400; line-height: 1; margin-bottom: .3rem; }
.stat-label { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }

/* ── INSIGHT STRIP ── */
.insight-strip {
  background: var(--navy); padding: 2.5rem var(--px); text-align: center;
  border-top: 1px solid rgba(212,168,67,.2); border-bottom: 1px solid rgba(212,168,67,.2);
}
.insight-strip blockquote {
  font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic; color: var(--gold2); max-width: 760px; margin: 0 auto; line-height: 1.55;
}
.insight-strip cite { display: block; font-size: .72rem; color: rgba(255,255,255,.38); font-style: normal; margin-top: .5rem; letter-spacing: .06em; text-transform: uppercase; }

/* ── CREDS BAR ── */
.creds-bar {
  background: var(--gold); padding: .65rem var(--px);
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.8rem;
}
.cred-item  { font-size: .72rem; color: var(--navy); font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; gap: .35rem; }
.cred-div   { width: 1px; height: 14px; background: rgba(13,27,78,.25); }

/* ── ACCREDITATION ── */
.accred-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--g200); padding: 2rem;
  text-align: center; transition: border-color .25s, box-shadow .25s, transform .25s;
  box-shadow: var(--sh-s);
}
.accred-card:hover { border-color: var(--gold); box-shadow: var(--sh-m); transform: translateY(-3px); }
.accred-icon { font-size: 2.2rem; margin-bottom: .7rem; }
.accred-card h3 { font-family: var(--display); font-size: 1.05rem; color: var(--navy); margin-bottom: .4rem; font-weight: 600; }
.accred-card p  { font-size: .82rem; color: var(--g600); line-height: 1.7; font-weight: 400; }
.accred-detail  { font-size: .7rem; color: var(--gold); font-weight: 700; margin-top: .6rem; }

/* ── PILL TAGS ── */
.pill-tag {
  display: inline-block; background: rgba(13,27,78,.06); color: var(--navy);
  font-size: .68rem; font-weight: 600; padding: .22rem .7rem; border-radius: 20px;
  border: 1px solid rgba(13,27,78,.15); margin: .18rem;
}
.pill-tag.light {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.2);
}

/* ── CONTACT STRIP ── */
.contact-strip { background: var(--navy); padding: 1.8rem var(--px); border-top: 1px solid rgba(212,168,67,.2); }
.contact-strip-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; max-width: var(--max-w); margin: 0 auto; }
.contact-item  { display: flex; align-items: flex-start; gap: .6rem; }
.contact-icon  { font-size: 1.2rem; flex-shrink: 0; margin-top: .05rem; }
.contact-text  { font-size: .78rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.contact-text strong { display: block; font-size: .8rem; color: var(--gold); font-weight: 600; margin-bottom: .05rem; }
.contact-text a { color: rgba(255,255,255,.65); transition: color .2s; }
.contact-text a:hover { color: var(--gold); }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy); padding: 1rem var(--px);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(212,168,67,.2);
}
.footer-copy    { font-size: .68rem; color: rgba(255,255,255,.3); font-weight: 400; }
.footer-tagline { font-family: var(--display); font-size: .78rem; font-style: italic; color: var(--gold); opacity: .65; }
.footer-logo    { height: 28px; opacity: .4; }

/* ── PARTNER LOGOS ── */
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem; }
.partners-row img { height: 44px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .4; transition: opacity .2s; }
.partners-row img:hover { opacity: .75; }

/* ── FRAMEWORK STEPS ── */
.fw-steps { display: flex; flex-direction: column; gap: 1px; border-radius: var(--r-lg); overflow: hidden; }
.fw-step  { display: grid; grid-template-columns: 72px 1fr; background: var(--navy3); border-bottom: 1px solid rgba(255,255,255,.06); }
.fw-step:last-child { border-bottom: none; }
.fw-step-num { background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.4rem; color: var(--navy); font-weight: 700; }
.fw-step-content { padding: 1.2rem 1.4rem; }
.fw-step-title { font-size: .92rem; font-weight: 700; color: var(--white); margin-bottom: .25rem; }
.fw-step-desc  { font-size: .81rem; color: rgba(255,255,255,.58); line-height: 1.65; font-weight: 400; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--g200); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 0; cursor: pointer;
  font-size: .95rem; font-weight: 600; color: var(--navy); transition: color .2s;
}
.faq-question:hover { color: var(--gold); }
.faq-arrow { width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s; color: var(--gold); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { font-size: .88rem; color: var(--g600); line-height: 1.8; padding-bottom: 1.2rem; font-weight: 400; }

/* ── CATEGORY HEADER ── */
.cat-hdr { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--g200); }
.cat-icon-box { width: 52px; height: 52px; background: var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.cat-hdr-text h2 { font-family: var(--display); font-size: 1.35rem; color: var(--navy); font-weight: 600; margin-bottom: .2rem; }
.cat-hdr-text p  { font-size: .83rem; color: var(--g600); font-weight: 400; line-height: 1.65; max-width: 700px; }

/* ── COURSES GRID ── */
.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }

/* ── GLOBAL REACH TAG ── */
.global-strip { background: rgba(212,168,67,.08); border: 1px solid rgba(212,168,67,.25); border-radius: var(--r-lg); padding: 1.2rem 1.8rem; }
.global-regions { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.global-tag { font-size: .75rem; color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: .3rem; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1060px) { .nav-menu li a { padding: 0 .6rem; font-size: .68rem; } }
@media (max-width: 920px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column; height: auto;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy); padding: .5rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.4); z-index: 999;
  }
  .nav-menu.open li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-menu.open li a { padding: .85rem var(--px); height: auto; font-size: .78rem; border-bottom: none; }
  .nav-menu.open .nav-cta-btn { margin: .5rem var(--px); border-radius: var(--r); }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .courses-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip-grid { grid-template-columns: 1fr; }
  .creds-bar { gap: .4rem 1rem; }
}
