/* ==========================================================================
   LMTC site layer: design tokens + shared components.
   Loaded after the template's style.css / responsive.css on every public page.
   Colour rules:
   - --lm-accent is for orange TEXT on light backgrounds (AA contrast on #fff / #f7f8fa).
   - --lm-fill is for orange BACKGROUNDS that carry white text (AA contrast).
   - --lm-brand is the original bright orange, for decoration only (no text on/in it).
   - Dark sections re-point --lm-accent to a light orange (see "Dark surfaces").
   ========================================================================== */
:root {
    --lm-ink: #333146;
    --lm-text: #4a5560;
    --lm-muted: #5b6870;
    --lm-accent: #c93d15;
    --lm-fill: #c93d15;
    --lm-fill-hover: #a8320f;
    --lm-brand: #ff5a2c;
    --lm-brand-tint: rgba(255, 90, 44, .1);
    --lm-accent-on-dark: #ff8a66;
    --lm-bg-alt: #f7f8fa;
    --lm-line: #e4e7eb;
    --lm-dark: #333146;
    --lm-radius: 8px;
    --lm-radius-lg: 14px;
    --lm-font-head: "Poppins", sans-serif;
    --lm-font-body: "Rubik", sans-serif;
    --lm-shadow: 0 10px 30px rgba(31, 31, 50, .08);
}

/* Dark surfaces: orange text must be the light variant to stay readable. */
.hc, .pg-cta, .pg-dhero, .cs-closing, .cs-path--featured, .cs-cta, .fp-quote, .lm-dark, .lm-cta, .lm-hero, .footer_2 {
    --lm-accent: var(--lm-accent-on-dark);
}

/* ---------- Base / accessibility ---------- */
.lm-skip {
    position: absolute; left: 12px; top: -60px; z-index: 10000;
    padding: 10px 16px; border-radius: var(--lm-radius);
    background: var(--lm-ink); color: #fff !important; font: 500 15px var(--lm-font-body);
}
.lm-skip:focus { top: 12px; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #1a5fd0; outline-offset: 2px;
}
.lm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Template overrides: header ---------- */
header .header_top .info_wrapper .contact_info ul li a { color: inherit; }
header .header_top .info_wrapper .contact_info ul li a:hover { color: #fff; text-decoration: underline; }
header .edu_nav nav .navbar-brand img { max-height: 56px; }
header .edu_nav nav .navbar-nav li a.active,
header .edu_nav nav .navbar-nav li a:hover { color: var(--lm-accent) !important; }
/* Dropdowns open on keyboard focus too, not only on hover. */
header .edu_nav nav .navbar-nav li:focus-within > ul { visibility: visible; opacity: 1; top: 97px; }
header .edu_nav nav .navbar-nav li.has-sub > a::after {
    content: ""; display: inline-block; margin-left: 6px; vertical-align: middle;
    border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
header .edu_nav nav .navbar-nav li.nav-cta { display: flex; align-items: center; }
header .edu_nav nav .navbar-nav li.nav-cta > a {
    padding: 11px 20px !important; margin: 0 0 0 12px;
    background: var(--lm-fill); color: #fff !important; border-radius: var(--lm-radius);
    text-transform: none; font-weight: 500;
}
header .edu_nav nav .navbar-nav li.nav-cta > a:hover { background: var(--lm-fill-hover); color: #fff !important; }
@media (max-width: 1199px) {
    header .edu_nav nav .navbar-nav li a { margin: 0 12px; font-size: 14px; }
}
.mean-container .mean-nav ul li.nav-cta a { background: var(--lm-fill); color: #fff; }

/* ---------- Buttons ---------- */
.lm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px; border-radius: var(--lm-radius);
    font: 500 16px/1.2 var(--lm-font-body); border: 2px solid transparent;
    text-decoration: none !important; transition: background .2s ease, border-color .2s ease, color .2s ease;
    cursor: pointer;
}
.lm-btn--primary { background: var(--lm-fill); border-color: var(--lm-fill); color: #fff !important; }
.lm-btn--primary:hover { background: var(--lm-fill-hover); border-color: var(--lm-fill-hover); }
.lm-btn--light { background: #fff; border-color: #fff; color: var(--lm-ink) !important; }
.lm-btn--light:hover { background: transparent; color: #fff !important; }
.lm-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.lm-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.lm-btn--outline { background: #fff; border-color: var(--lm-line); color: var(--lm-ink) !important; }
.lm-btn--outline:hover { border-color: var(--lm-ink); }
.lm-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section scaffolding ---------- */
.lm-section { padding: 88px 0; font-family: var(--lm-font-body); color: var(--lm-text); }
.lm-section--alt { background: var(--lm-bg-alt); }
.lm-eyebrow { display: inline-block; margin-bottom: 12px; font: 500 13px var(--lm-font-body); letter-spacing: 1.5px; text-transform: uppercase; color: var(--lm-accent); }
.lm-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.lm-head h2 { font: 700 34px/1.25 var(--lm-font-head); color: var(--lm-ink); margin: 0 0 12px; }
.lm-head p { font-size: 17px; line-height: 1.7; color: var(--lm-muted); margin: 0; }
.lm-link { font-weight: 500; color: var(--lm-accent); }
.lm-link:hover { color: var(--lm-fill-hover); text-decoration: none; }
.lm-link i { margin-left: 6px; }
@media (max-width: 767px) {
    .lm-section { padding: 60px 0; }
    .lm-head { margin-bottom: 32px; }
    .lm-head h2 { font-size: 27px; }
}

/* ---------- Home hero ---------- */
.lm-hero { position: relative; overflow: hidden; background: #1d1c2b; color: #fff; font-family: var(--lm-font-body); }
.lm-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.lm-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(20, 19, 34, .94) 0%, rgba(20, 19, 34, .82) 42%, rgba(20, 19, 34, .25) 75%, rgba(20, 19, 34, .1) 100%);
}
.lm-hero .container { position: relative; z-index: 2; }
.lm-hero__inner { max-width: 640px; padding: 96px 0 104px; }
.lm-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .5px; color: var(--lm-accent); margin-bottom: 18px; }
.lm-hero h1 { font: 700 50px/1.12 var(--lm-font-head); color: #fff; margin: 0 0 20px; letter-spacing: -.5px; }
.lm-hero__lead { font-size: 19px; line-height: 1.65; color: rgba(255, 255, 255, .86); margin: 0 0 32px; max-width: 580px; }
.lm-hero__sub { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.lm-hero__sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lm-hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); }
.lm-hero__proof li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.lm-hero__proof b { font: 700 22px var(--lm-font-head); color: #fff; }
.lm-hero__proof i { color: var(--lm-accent); }
@media (max-width: 991px) {
    .lm-hero::before { background: linear-gradient(180deg, rgba(20, 19, 34, .8) 0%, rgba(20, 19, 34, .92) 100%); }
    .lm-hero__inner { padding: 72px 0 80px; }
    .lm-hero h1 { font-size: 40px; }
}
@media (max-width: 575px) {
    .lm-hero__inner { padding: 48px 0 56px; }
    .lm-hero h1 { font-size: 31px; }
    .lm-hero__lead { font-size: 17px; margin-bottom: 26px; }
    .lm-hero .lm-btns .lm-btn { flex: 1 1 100%; }
    .lm-hero__proof { gap: 12px 20px; margin-top: 30px; padding-top: 22px; }
    .lm-hero__proof li { font-size: 14px; }
    .lm-hero__proof b { font-size: 19px; }
}

/* ---------- Audience paths ---------- */
.lm-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lm-path {
    display: flex; flex-direction: column; padding: 34px 32px; border-radius: var(--lm-radius-lg);
    background: #fff; border: 1px solid var(--lm-line); box-shadow: var(--lm-shadow);
}
.lm-path__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--lm-brand-tint); color: var(--lm-accent); font-size: 22px; margin-bottom: 18px; }
.lm-path h3 { font: 700 23px/1.3 var(--lm-font-head); color: var(--lm-ink); margin: 0 0 8px; }
.lm-path > p { font-size: 16px; line-height: 1.7; color: var(--lm-muted); margin: 0 0 18px; }
.lm-path ul { list-style: none; margin: 0 0 26px; padding: 0; }
.lm-path li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 15px; color: var(--lm-text); }
.lm-path li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; font-size: 13px; color: var(--lm-accent); }
.lm-path .lm-btns { margin-top: auto; }
@media (max-width: 767px) {
    .lm-paths { grid-template-columns: 1fr; }
    .lm-path { padding: 26px 22px; }
    .lm-path .lm-btn, .lm-form button.lm-btn, .lm-more .lm-btn { flex: 1 1 100%; width: 100%; }
}

/* ---------- Programs grid on home (reuses .pg-card) ---------- */
.lm-programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .lm-programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .lm-programs { grid-template-columns: 1fr; } }
.lm-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- Upcoming batches ---------- */
.lm-batches { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lm-batch { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-radius: var(--lm-radius-lg); background: #fff; border: 1px solid var(--lm-line); }
.lm-batch__date { flex: 0 0 64px; text-align: center; font-family: var(--lm-font-head); color: var(--lm-ink); line-height: 1.1; }
.lm-batch__date b { display: block; font-size: 26px; }
.lm-batch__date small { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--lm-accent); }
.lm-batch__info { flex: 1; min-width: 0; }
.lm-batch__info h3 { font: 600 17px/1.35 var(--lm-font-head); color: var(--lm-ink); margin: 0 0 4px; }
.lm-batch__info p { margin: 0; font-size: 14px; color: var(--lm-muted); }
@media (max-width: 575px) { .lm-batch { flex-wrap: wrap; } .lm-batch .lm-btn { width: 100%; } }

/* ---------- How it works ---------- */
.lm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.lm-step { position: relative; padding: 30px 26px; border-radius: var(--lm-radius-lg); background: #fff; border: 1px solid var(--lm-line); }
.lm-step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 16px;
    border-radius: 50%; background: var(--lm-fill); color: #fff; font: 700 18px var(--lm-font-head);
}
.lm-step h3 { font: 600 19px/1.35 var(--lm-font-head); color: var(--lm-ink); margin: 0 0 8px; }
.lm-step p { font-size: 15px; line-height: 1.65; color: var(--lm-muted); margin: 0; }
@media (max-width: 767px) { .lm-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.lm-faq { max-width: 820px; margin: 0 auto; }
.lm-faq details { border-bottom: 1px solid var(--lm-line); }
.lm-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 4px; cursor: pointer; list-style: none;
    font: 600 17px/1.4 var(--lm-font-head); color: var(--lm-ink);
}
.lm-faq summary::-webkit-details-marker { display: none; }
.lm-faq summary::after { content: "+"; flex: 0 0 auto; font: 400 26px/1 var(--lm-font-body); color: var(--lm-accent); }
.lm-faq details[open] summary::after { content: "\2212"; }
.lm-faq details p { margin: 0 4px 20px; font-size: 16px; line-height: 1.7; color: var(--lm-text); }

/* ---------- Testimonials / clients (rendered only when real data is configured) ---------- */
.lm-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.lm-quote { margin: 0; padding: 30px 28px; border-radius: var(--lm-radius-lg); background: #fff; border: 1px solid var(--lm-line); }
.lm-quote blockquote { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--lm-text); }
.lm-quote figcaption { font-size: 14px; color: var(--lm-muted); }
.lm-quote figcaption b { display: block; font-size: 15px; color: var(--lm-ink); }
.lm-clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin: 48px 0 0; padding: 0; list-style: none; }
.lm-clients img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; }

/* ---------- Closing CTA band ---------- */
.lm-cta { padding: 80px 0; background: var(--lm-dark); color: #fff; text-align: center; font-family: var(--lm-font-body); }
.lm-cta h2 { font: 700 34px/1.25 var(--lm-font-head); color: #fff; margin: 0 0 12px; }
.lm-cta p { max-width: 620px; margin: 0 auto 28px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.lm-cta .lm-btns { justify-content: center; }
@media (max-width: 575px) { .lm-cta { padding: 60px 0; } .lm-cta h2 { font-size: 26px; } .lm-cta .lm-btn { flex: 1 1 100%; } }

/* ---------- Forms ---------- */
.lm-form label { display: block; margin-bottom: 6px; font: 500 14px var(--lm-font-body); color: var(--lm-ink); }
.lm-form label .opt { font-weight: 400; color: var(--lm-muted); }
.lm-form .form-control { min-height: 48px; border-radius: var(--lm-radius); border: 1px solid #cfd4da; font-size: 16px; color: var(--lm-ink); }
.lm-form textarea.form-control { min-height: 140px; }
.lm-form .form-control:focus { border-color: var(--lm-ink); box-shadow: none; }
.lm-form .is-invalid { border-color: #b3261e; }
.lm-form .invalid-feedback { display: block; color: #b3261e; font-size: 14px; }
.lm-form .lm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lm-form .lm-note { font-size: 14px; color: var(--lm-muted); margin: 12px 0 0; }
.lm-alert { padding: 16px 18px; border-radius: var(--lm-radius); margin-bottom: 22px; font-size: 15px; line-height: 1.6; }
.lm-alert--ok { background: #e7f6ec; color: #17602f; border: 1px solid #b9e2c6; }
.lm-alert--err { background: #fdecea; color: #8a1c14; border: 1px solid #f5c2bd; }

/* ---------- Floating WhatsApp + mobile action bar ---------- */
.whatsapp-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.whatsapp-float:hover, .whatsapp-float:focus { transform: scale(1.08); }
.lm-mbar { display: none; }
@media (max-width: 767px) {
    .whatsapp-float, .scroll-top { display: none !important; }
    .lm-mbar {
        display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
        background: #fff; border-top: 1px solid var(--lm-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .lm-mbar a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 58px; font: 500 13px var(--lm-font-body); color: var(--lm-ink); text-decoration: none;
    }
    .lm-mbar a i, .lm-mbar a svg { font-size: 18px; }
    .lm-mbar a.is-wa svg { fill: #1a9e4b; }
    .lm-mbar a.is-primary { flex-direction: row; gap: 8px; margin: 7px 8px; min-height: 44px; border-radius: var(--lm-radius); background: var(--lm-fill); color: #fff; font-size: 15px; }
    body { padding-bottom: 64px; }
}
