/* =========================================================
   Nimbus Learning – SSC JE 2027 course page
   Course-detail layout: content column + sticky enrol card
   ========================================================= */

:root {
    --red: #e31e24;
    --red-dark: #b8141a;
    --red-soft: #fff1f1;
    --navy: #0c1f47;
    --navy-2: #13306b;
    --navy-soft: #eef2fb;
    --navy-tint: #dce4f7;
    --yellow: #ffc727;
    --ink: #1a1f36;
    --muted: #5b6480;
    --line: #e4e8f2;
    --bg: #ffffff;
    --bg-alt: #f4f6fb;
    --green: #16a34a;
    --green-soft: #e8f7ee;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 26px rgba(12, 31, 71, .07);
    --shadow-lg: 0 20px 50px rgba(12, 31, 71, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg-alt);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
    border: 2px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227, 30, 36, .25); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---------- Top strip ---------- */
.topbar { background: var(--navy); color: #dfe6f7; font-size: 13.5px; padding: 7px 0; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.topbar strong { color: var(--yellow); font-weight: 600; }
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; display: inline-block;
    box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: 14.5px; }
.nav a:hover { color: var(--red); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Breadcrumb ---------- */
.crumbs { padding: 18px 0 6px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: #9aa3bd; }
.crumbs a:hover { color: var(--red); }
.crumbs li:last-child { color: var(--navy); font-weight: 500; }

/* ---------- Course layout ---------- */
.course {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "head aside" "body aside";
    column-gap: 32px;
    align-items: start;
    padding: 10px 0 70px;
}
.course-head { grid-area: head; }
.course-body { grid-area: body; }
.course-aside { grid-area: aside; position: sticky; top: 86px; }

/* Title block */
.premium {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(90deg, #ffe7a3, #ffd257); color: #6b4a00;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.title-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.title-tags .premium { margin-bottom: 0; }
.paper-tag { font-size: 12px; font-weight: 600; color: var(--navy-2); background: var(--navy-soft); border: 1px solid var(--navy-tint); padding: 4px 12px; border-radius: 999px; }
.course-head h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.course-sub { font-size: 15.5px; color: var(--muted); max-width: 620px; margin-bottom: 14px; }
.branch-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.branch-pills span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 8px; }
.branch-pills i { color: var(--red); font-size: 12px; }
.meta {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px;
}
.meta > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.meta > div + div { border-left: 1px solid var(--line); }
.meta > div > i { flex: 0 0 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy-2); font-size: 14px; }
.meta .fa-star { color: #f5a623; background: #fff6e0; }
.meta span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.3; }
.meta strong { color: var(--navy); font-weight: 700; font-size: 14.5px; }

/* Banner */
.banner {
    position: relative; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 16 / 8; min-height: 240px;
    background: var(--navy) url("../images/slide-image-2.jpeg") center / cover no-repeat;
    color: #fff; box-shadow: var(--shadow);
}
.banner::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(12, 31, 71, .97) 0%, rgba(12, 31, 71, .88) 45%, rgba(12, 31, 71, .35) 100%);
}
.banner-inner { position: relative; height: 100%; padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.banner small { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); font-weight: 600; }
.banner h2 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; margin: 6px 0 8px; line-height: 1.05; }
.banner h2 span { color: var(--yellow); }
.banner p { margin: 0 0 16px; opacity: .92; font-size: 15px; }
.banner-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-tags span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.banner-badge {
    position: absolute; right: 18px; top: 18px; z-index: 1;
    background: var(--red); color: #fff; font-weight: 700; font-size: 13px;
    padding: 7px 12px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* Tabs */
.tabs {
    position: sticky; top: 70px; z-index: 40;
    display: flex; flex-wrap: wrap; gap: 6px;
    background: var(--bg-alt); padding: 14px 0 10px; margin: 18px 0 6px;
}
.tabs a {
    flex: 0 0 auto; padding: 9px 16px; text-align: center; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
    background: #fff; border: 1px solid var(--line);
}
.tabs a:hover { color: var(--navy); }
.tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 18px; }
.panel > h2 { font-size: 21px; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.checks i { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 11px; margin-top: 1px; }

/* Branch variant */
.variant { display: flex; flex-wrap: wrap; gap: 10px; }
.variant button {
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    display: inline-flex; align-items: center; gap: 8px;
}
.variant button:hover { border-color: var(--navy-2); }
.variant button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); }

/* Support card */
.support {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(100deg, var(--navy-soft), #fff); border: 1px solid var(--navy-tint);
}
.support .who { display: flex; align-items: center; gap: 14px; }
.support .who > i { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 20px; }
.support small { color: var(--muted); display: block; font-size: 13px; }
.support strong { color: var(--navy); font-size: 16px; }

/* Included grid */
.incl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.incl-item { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.incl-item > i { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: #fff; color: var(--red); box-shadow: 0 3px 10px rgba(12, 31, 71, .06); }
.incl-item h3 { font-size: 15px; margin: 0 0 3px; }
.incl-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Exam pattern */
.exam-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.exam-info div { background: var(--bg-alt); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.exam-info small { display: block; color: var(--muted); font-size: 12px; }
.exam-info strong { color: var(--navy); font-size: 14px; line-height: 1.35; display: block; }
.papers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.paper { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.paper-head { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; padding: 11px 16px; }
.paper-head.red { background: var(--red); }
.paper-head h3 { color: #fff; font-size: 15px; margin: 0; }
.paper-head span { font-size: 12.5px; background: rgba(255, 255, 255, .18); padding: 3px 10px; border-radius: 999px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.paper th, .paper td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.paper th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
.paper td:not(:first-child), .paper th:not(:first-child) { text-align: center; }
.paper tfoot td { font-weight: 700; color: var(--navy); border-bottom: 0; }
.paper-note { font-size: 12.5px; color: var(--muted); padding: 0 14px 12px; margin: 8px 0 0; }
.paper-note i { color: var(--red); }
.pattern-foot { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* Results */
.results-img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }

/* Learn with Nimbus */
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.learn-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-alt); }
.learn-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.learn-card .in { padding: 16px; }
.learn-card h3 { font-size: 16px; }
.learn-card ul li { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 6px; }
.learn-card ul i { color: var(--red); margin-top: 4px; font-size: 12px; }
.yt-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 0; }
.yt-top > i { font-size: 34px; color: #ff0000; }
.yt-top strong { display: block; color: var(--navy); }
.yt-top a { font-size: 13px; color: var(--red); }

/* Reviews */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testi { margin: 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.stars { color: #f5a623; font-size: 13px; margin-bottom: 8px; }
.testi p { font-size: 14px; color: var(--ink); }
.testi-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.testi-user strong { display: block; color: var(--navy); font-size: 14px; }
.testi-user span { font-size: 12px; color: var(--muted); }

/* FAQs */
.faq-head small { color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
    padding: 15px 18px; font-weight: 600; color: var(--navy); font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .num { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); font-size: 13px; display: grid; place-items: center; font-weight: 700; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq[open] summary .num { background: var(--red); color: #fff; }
.faq p { padding: 0 18px 16px 66px; margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Enrol card (aside) ---------- */
.enrol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.enrol-top { padding: 18px 20px 14px; border-bottom: 1px dashed var(--line); }
.enrol-top .mini { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.enrol-top .mini img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.enrol-top .mini strong { color: var(--navy); font-size: 14.5px; line-height: 1.35; display: block; }
.enrol-top .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.enrol-top .price b { font-size: 26px; color: var(--navy); font-weight: 800; }
.enrol-top .price em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 999px; }
.enrol-stats { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.enrol-stats i { color: var(--navy-2); margin-right: 4px; }
.enrol-incl { padding: 12px 20px; border-bottom: 1px dashed var(--line); }
.enrol-incl h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.enrol-incl li { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.enrol-incl li span { display: inline-flex; gap: 8px; align-items: center; }
.enrol-incl li span i { color: var(--navy-2); width: 16px; }
.enrol-incl li b { color: var(--green); font-size: 13px; }
.enrol-incl li strong { color: var(--navy); font-size: 13.5px; }
.enrol-top .price s, .mobile-bar s { color: #9aa3bd; font-size: 15px; }
.mobile-bar s { font-size: inherit; }
.total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); }
.total strong { font-size: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; margin-right: 4px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.enrol form { padding: 16px 20px 18px; }
.field { margin-bottom: 11px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.input-wrap { position: relative; }
.input-wrap i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9aa3bd; font-size: 13px; pointer-events: none; }
.input-wrap input, .input-wrap select {
    width: 100%; font: inherit; font-size: 14px; color: var(--ink);
    padding: 10px 12px 10px 36px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
    appearance: none; -webkit-appearance: none;
}
.input-wrap select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6480' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 12px center no-repeat; padding-right: 30px; }
.input-wrap input:focus, .input-wrap select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(19, 48, 107, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.form-note i { color: var(--green); }
.form-success { display: flex; gap: 10px; align-items: flex-start; background: var(--green-soft); color: #11632f; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin: 16px 20px 0; }
.form-success i { margin-top: 3px; }
.form-error { background: var(--red-soft); color: var(--red-dark); }
.form-error a { font-weight: 700; text-decoration: underline; }
.aside-help { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.aside-help i { color: var(--red); font-size: 18px; }
.aside-help a { color: var(--navy); font-weight: 700; }


/* ---------- Related courses (inside course column) ---------- */
.related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.related-head small { color: var(--red); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.related-head h2 { font-size: 21px; margin: 2px 0 0; }
.see-all { font-size: 13.5px; font-weight: 600; color: var(--navy-2); display: inline-flex; gap: 8px; align-items: center; }
.see-all:hover { color: var(--red); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rel-card {
    display: grid; grid-template-columns: 84px minmax(0, 1fr);
    background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.rel-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--navy-tint); }
.rel-top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; color: #fff; text-align: center; }
.rel-top i { font-size: 22px; opacity: .95; }
.rel-top span { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.rt-navy { background: linear-gradient(160deg, var(--navy), var(--navy-2)); }
.rt-red { background: linear-gradient(160deg, #b8141a, var(--red)); }
.rt-teal { background: linear-gradient(160deg, #0b6e78, #13909b); }
.rt-purple { background: linear-gradient(160deg, #4a2a8c, #6a41b8); }
.rel-body { padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.rel-tag { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; }
.rel-body h3 { font-size: 15px; margin-bottom: 4px; }
.rel-body p { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 10px; }
.rel-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.rel-price b { font-size: 18px; font-weight: 800; color: var(--navy); }
.rel-price s { font-size: 13px; color: #9aa3bd; }
.rel-price em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 999px; }
.rel-body .btn { padding: 8px 14px; font-size: 13.5px; border-width: 1.5px; border-radius: 10px; }

/* ---------- App download (inside course column) ---------- */
.app-band {
    display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: end;
    background: linear-gradient(120deg, var(--navy-soft) 0%, #fff 100%);
    border: 1px solid var(--navy-tint); border-radius: var(--radius);
    padding: 28px 28px 0; margin-top: 18px; overflow: hidden;
}
.app-copy { padding-bottom: 28px; align-self: center; }
.app-copy > small { display: inline-flex; gap: 8px; align-items: center; color: var(--red); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.app-copy h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 6px 0 8px; }
.app-copy > p { color: var(--muted); font-size: 14.5px; max-width: 440px; margin-bottom: 0; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 20px; }
.store-btn {
    display: inline-flex; align-items: center; gap: 10px; min-width: 168px; height: 54px;
    background: #000; color: #fff; padding: 0 18px; border-radius: 12px; border: 1px solid #3a3a3a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18); transition: transform .15s ease, box-shadow .2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, .24); }
.store-btn:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; }
.store-btn .gp-logo { width: 24px; height: 26px; flex: 0 0 auto; }
.store-btn i { font-size: 28px; width: 24px; text-align: center; }
.store-btn span { display: flex; flex-direction: column; font-size: 18px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.store-btn small { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.app-stats { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.app-stats strong { display: block; font-size: 16px; color: var(--navy); }
.app-stats span { font-size: 12px; color: var(--muted); }
.phone {
    justify-self: center; width: 200px; height: 290px;
    background: var(--navy); border-radius: 30px 30px 0 0; padding: 10px 10px 0;
    box-shadow: 0 -10px 40px rgba(12, 31, 71, .18);
}
.phone-screen { background: var(--bg-alt); height: 100%; border-radius: 22px 22px 0 0; padding: 14px 12px; overflow: hidden; }
.ps-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; color: var(--navy); margin-bottom: 10px; }
.ps-head img { width: 26px; height: 26px; border-radius: 8px; }
.ps-live { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 9px; }
.ps-card { background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); margin-bottom: 9px; }
.ps-card strong { display: block; font-size: 12.5px; color: var(--navy); }
.ps-card span { font-size: 11px; color: var(--muted); }
.ps-bar { height: 6px; background: var(--line); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.ps-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.ps-row { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.ps-row i { color: var(--red); }
/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(110deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff; border-radius: var(--radius); padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    margin-bottom: 70px;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin: 4px 0 6px; }
.cta-band small { color: var(--yellow); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; }
.cta-band p { margin: 0; opacity: .88; }
.cta-stats { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.cta-stats strong { display: block; font-size: 20px; color: var(--yellow); }
.cta-stats span { font-size: 12.5px; opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #0a1733; color: #b9c3dc; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 50px 20px 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; }
.footer-brand strong { color: #fff; display: block; font-size: 17px; }
.footer-brand em { color: var(--yellow); font-size: 13px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.footer li i { color: var(--yellow); width: 14px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 18px; }

/* ---------- Mobile enrol bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nav { display: none; }
    .course { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; }
    .exam-info { grid-template-columns: repeat(2, 1fr); }
}
/* Two-column layout with a narrow course column */
@media (min-width: 861px) and (max-width: 1100px) {
    .related-grid { grid-template-columns: 1fr; }
    .app-band { grid-template-columns: 1fr; padding: 28px; }
    .app-copy { padding-bottom: 0; }
    .phone { display: none; }
}
@media (max-width: 860px) {
    html { scroll-padding-top: 130px; }
    .course { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "body"; }
    .course-aside { position: static; margin-top: 20px; }
    .header-cta .btn-outline { display: none; }
    .papers, .learn, .testi-grid { grid-template-columns: 1fr; }
    .meta { grid-template-columns: repeat(2, 1fr); }
    .meta > div:nth-child(3) { border-left: 0; }
    .meta > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .mobile-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        background: #fff; border-top: 1px solid var(--line); padding: 10px 16px;
        box-shadow: 0 -8px 24px rgba(12, 31, 71, .1);
    }
    .mobile-bar small { display: block; font-size: 11.5px; color: var(--muted); }
    .mobile-bar strong { color: var(--navy); font-size: 17px; }
    .mobile-bar em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
    .mobile-bar .btn { padding: 11px 18px; }
    body { padding-bottom: 70px; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .header .container { height: 62px; }
    .logo img { height: 36px; }
    .tabs {
        position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
        background: none; padding: 0; margin: 16px 0 0;
    }
    .tabs { grid-auto-rows: 1fr; }
    .tabs a { display: flex; align-items: center; justify-content: center; padding: 8px 4px; font-size: 12.5px; line-height: 1.25; }
    .topbar { font-size: 12.5px; }
    .checks, .incl { grid-template-columns: 1fr; }
    .panel { padding: 20px 16px; }
    .banner { aspect-ratio: auto; }
    .banner-inner { padding: 24px 20px; }
    .banner-badge { display: none; }
    .faq p { padding-left: 18px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .related-grid { grid-template-columns: 1fr; }
    .meta > div { padding: 10px; gap: 8px; }
    .meta > div > i { flex-basis: 30px; height: 30px; }
    .app-band { grid-template-columns: 1fr; padding: 24px 18px; }
    .app-copy { padding-bottom: 0; }
    .phone { display: none; }
    .rel-card { grid-template-columns: 72px minmax(0, 1fr); }
    .store-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .store-btn { min-width: 0; height: 50px; padding: 0 12px; gap: 8px; justify-content: center; }
    .store-btn span { font-size: 15px; }
    .store-btn small { font-size: 9.5px; }
    .cta-band { padding: 26px 20px; }
}
