/*
 * ============================================================
 * CourseHub — Course Page Template
 * File: course-template.css
 * Version: 1.0 (Production)
 *
 * Based on approved design: V3
 * Do NOT modify layout or visual properties without
 * client sign-off. This is a locked design.
 *
 * HOW TO USE
 * ----------
 * Enqueue this file on course pages only via functions.php:
 *   wp_enqueue_style(
 *     'coursehub-course',
 *     get_template_directory_uri() . '/css/course-template.css'
 *   );
 *
 * Font: Manrope (400, 600, 700, 800) — enqueue separately:
 *   https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800
 *
 * TABLE OF CONTENTS
 * -----------------
 * 1.  Reset
 * 2.  Design tokens
 * 3.  Base & layout
 * 4.  Typography components
 * 5.  Buttons
 * 6.  Section: Hero
 * 7.  Section: Overview + Info card + Who Is It For
 * 8.  Section: Career Paths
 * 9.  Section: Learning Outcomes
 * 10. Section: Why This Course
 * 11. Section: Certificate
 * 12. Section: Final CTA
 * 13. Responsive — tablet (≤1024px)
 * 14. Responsive — mobile (≤640px)
 * ============================================================
 */


/* ── 1. Reset ──────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, li { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ── 2. Design tokens ──────────────────────────────────────── */

:root {
    /* Brand colours */
    --navy:         #0D1F3C;
    --navy-mid:     #16305A;
    --blue:         #1A4A8A;
    --accent:       #2563EB;
    --accent-bg:    rgba(37, 99, 235, 0.08);
    --accent-mid:   rgba(37, 99, 235, 0.14);

    /* Surfaces */
    --bg:           #F5F7FA;
    --bg-2:         #EDF0F5;
    --white:        #FFFFFF;

    /* Text */
    --t1:           #0D1F3C;  /* headings */
    --t2:           #2D3A4E;  /* body */
    --t3:           #5A6A7E;  /* secondary */
    --t4:           #8FA0B4;  /* muted */

    /* Borders */
    --border:       rgba(13, 31, 60, 0.08);
    --border-2:     rgba(13, 31, 60, 0.14);

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(13,31,60,0.06), 0 4px 12px rgba(13,31,60,0.05);
    --shadow:       0 2px 8px rgba(13,31,60,0.07), 0 12px 32px rgba(13,31,60,0.08);

    /* Font */
    --font:         'Manrope', system-ui, -apple-system, sans-serif;

    /* Layout */
    --max-w:        1160px;
    --pad-x:        40px;

    /* Spacing */
    --s3:   12px;
    --s4:   16px;
    --s5:   24px;
    --s6:   32px;
    --s7:   48px;
    --s8:   64px;
    --s9:   96px;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;

    /* Transition */
    --ease: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── 3. Base & layout ──────────────────────────────────────── */

body {
    font-family: var(--font);
    color: var(--t2);
    background: var(--bg);
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}


/* ── 4. Typography components ──────────────────────────────── */

/* Overline / label above section headings */
.label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--t1);
    margin: 0 0 14px;
}

.section-sub {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--t3);
    margin: 0;
}

.section-header {
    margin-bottom: 40px;
}


/* ── 5. Buttons ────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--r-sm);
    padding: 13px 24px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background var(--ease),
        border-color var(--ease),
        color var(--ease),
        box-shadow var(--ease),
        transform var(--ease);
    -webkit-tap-highlight-color: transparent;
}

/* Solid blue — primary action */
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
}
.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37,99,235,0.30);
    transform: translateY(-1px);
    color: #fff;
}
.btn-primary:active { transform: none; box-shadow: none; }

/* Outlined — secondary action on light bg */
.btn-outline {
    background: transparent;
    color: var(--t1);
    border: 1.5px solid var(--border-2);
}
.btn-outline:hover {
    background: var(--bg-2);
    border-color: rgba(13,31,60,0.22);
    color: var(--t1);
}

/* Ghost white — secondary action on dark bg */
.btn-outline-white {
    background: transparent;
    color: rgba(255,255,255,0.70);
    border: 1.5px solid rgba(255,255,255,0.20);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.90);
}

/* Solid white — primary action on dark/blue bg */
.btn-white {
    background: #fff;
    color: var(--navy);
    border: 1.5px solid #fff;
    font-weight: 700;
}
.btn-white:hover {
    background: #f0f4f8;
    border-color: #f0f4f8;
    box-shadow: 0 4px 16px rgba(255,255,255,0.18);
    transform: translateY(-1px);
    color: var(--navy);
}

.btn-full { width: 100%; }
.btn-lg   { padding: 16px 32px; font-size: 14px; }


/* ── 6. Hero ────────────────────────────────────────────────── */

.hero {
    background: var(--navy);
    padding: 56px 0 0;
    position: relative;
    overflow: hidden;
}

/* Subtle directional tint — no glow, no particles */
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 55%; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(37,99,235,0.08) 100%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    align-self: start;
    padding-top: 8px;
    padding-bottom: 36px;
}

/* Breadcrumb — links generated from course.category_url */
.hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.30);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    flex-wrap: wrap;
}
.hero__breadcrumb a { color: rgba(255,255,255,0.30); transition: color var(--ease); }
.hero__breadcrumb a:hover { color: rgba(255,255,255,0.60); }
.hero__breadcrumb span { color: rgba(255,255,255,0.15); }

/* Category pill — course.category */
.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(37,99,235,0.18);
    border: 1px solid rgba(37,99,235,0.30);
    border-radius: 4px;
    padding: 5px 10px;
    margin-bottom: 20px;
    line-height: 1;
}

/* course.title */
.hero__title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 18px;
}

/* course.description */
.hero__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255,255,255,0.50);
    margin: 0 0 32px;
    max-width: 500px;
}

/* Stats row — course.stats.* */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__stat-val {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.hero__stat-key {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.hero__stat-div {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.10);
    flex-shrink: 0;
}

/*
 * Marketing metrics — OPTIONAL
 * Hidden by default. Rendered only when data exists.
 *
 * WordPress pattern:
 *   <?php if ( get_field('marketing_rating') ) : ?>
 *     <div class="hero__rating"> ... </div>
 *   <?php endif; ?>
 */
.hero__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.hero__stars {
    display: flex;
    gap: 2px;
}

.hero__star {
    width: 14px;
    height: 14px;
    background: #fbbf24;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%,
        79% 91%, 50% 70%, 21% 91%, 32% 57%,
        2% 35%, 39% 35%
    );
}

/* course.marketing.rating · course.marketing.students · course.marketing.reviews */
.hero__rating-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
}

/* CTA buttons */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* course.image */
.hero__image {
    align-self: center;
    position: relative;
}

.hero__img-wrap {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--navy-mid);
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.90) saturate(0.88);
    display: block;
}

/* Trust badge overlaid on image — static, decorative */
.hero__badge {
    position: absolute;
    bottom: 20px;
    left: -16px;
    background: #fff;
    border-radius: var(--r-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.hero__badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__badge-text { line-height: 1; }

.hero__badge-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    display: block;
    margin-bottom: 3px;
}

.hero__badge-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--t3);
}


/* ── 7. Overview + Info card + Who Is It For ───────────────── */

.overview {
    background: var(--white);
    padding: var(--s9) 0;
    border-bottom: 1px solid var(--border);
}

.overview__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 72px;
    align-items: start;
}

/* course.overview — one <p> per paragraph */
.overview__body {
    margin: var(--s5) 0 var(--s7);
}

.overview__body p {
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.80;
    color: var(--t2);
    margin: 0 0 16px;
}

.overview__body p:last-child { margin-bottom: 0; }

/* ── Info card ── */

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 76px; /* adjust to match your theme's nav height */
}

.info-card__head {
    background: var(--navy);
    padding: 20px 24px;
}

/* course.price */
.info-card__price {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

/* course.price_note */
.info-card__price-note {
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255,255,255,0.40);
}

.info-card__body { padding: 20px 24px; }

.info-card__rows { margin-bottom: 20px; }

.info-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.info-card__row:last-child { border-bottom: none; }

.info-card__row-key {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--t3);
}

.info-card__row-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.55;
}

.info-card__row-val {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t1);
    text-align: right;
}

.info-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Static — "30-day satisfaction guarantee" */
.info-card__guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--t3);
    margin-top: 12px;
}

.info-card__guarantee svg { flex-shrink: 0; }

/* ── Who Is It For (inside overview left column) ── */

/*
 * OPTIONAL SECTION
 * Only rendered when course.audience data exists.
 *
 * WordPress:
 *   <?php if ( have_rows('audience') ) : ?>
 *     <div class="who-section"> ... </div>
 *   <?php endif; ?>
 */
.who-section {
    margin-top: var(--s7);
    padding-top: var(--s7);
    border-top: 1px solid var(--border);
}

.who-section__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--t1);
    margin-bottom: var(--s5);
}

.who-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* course.audience[n] */
.who-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--ease), background var(--ease);
}
.who-item:hover { background: var(--bg-2); border-color: var(--border-2); }

.who-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.who-item__icon svg { width: 16px; height: 16px; }

.who-item__text { line-height: 1; }

/* course.audience[n].role */
.who-item__role {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t1);
    display: block;
    margin-bottom: 4px;
}

/* course.audience[n].desc */
.who-item__desc {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--t3);
    line-height: 1.5;
}


/* ── 8. Career Paths ────────────────────────────────────────── */

/*
 * OPTIONAL SECTION
 * Only rendered when course.career_paths data exists.
 *
 * WordPress:
 *   <?php if ( have_rows('career_paths') ) : ?>
 *     <section class="careers"> ... </section>
 *   <?php endif; ?>
 */
.careers {
    background: var(--bg);
    padding: var(--s9) 0;
    border-bottom: 1px solid var(--border);
}

.careers__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 40px;
}

/* Static note text */
.careers__note {
    font-size: 13px;
    font-weight: 400;
    color: var(--t3);
    text-align: right;
    max-width: 220px;
    line-height: 1.6;
    align-self: flex-end;
}

.careers__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* course.career_paths[n] */
.career-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.career-card:hover {
    border-color: rgba(37,99,235,0.25);
    box-shadow: 0 4px 20px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}

/* Icon — static per career item */
.career-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.career-card__icon svg { width: 18px; height: 18px; }

/* course.career_paths[n].title */
.career-card__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.3;
}

/* course.career_paths[n].desc */
.career-card__desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--t3);
    line-height: 1.6;
    flex: 1;
}

/* course.career_paths[n].tag — optional demand label */
.career-card__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    border-radius: 4px;
    padding: 3px 8px;
    line-height: 1;
    align-self: flex-start;
}


/* ── 9. Learning Outcomes ───────────────────────────────────── */

/*
 * OPTIONAL SECTION
 * Only rendered when course.outcomes data exists.
 *
 * WordPress:
 *   <?php if ( have_rows('outcomes') ) : ?>
 *     <section class="outcomes"> ... </section>
 *   <?php endif; ?>
 */
.outcomes {
    background: var(--white);
    padding: var(--s9) 0;
    border-bottom: 1px solid var(--border);
}

.outcomes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* course.outcomes[n] */
.outcome-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg);
    transition: border-color var(--ease), background var(--ease);
}
.outcome-card:hover {
    border-color: var(--border-2);
    background: var(--bg-2);
}

/* Auto-numbered — static ordinal, generated in PHP loop */
.outcome-card__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1;
}

/* course.outcomes[n].title */
.outcome-card__title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.35;
    margin-bottom: 10px;
}

/* course.outcomes[n].text */
.outcome-card__text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.70;
    color: var(--t3);
}


/* ── 10. Why This Course ────────────────────────────────────── */

/*
 * OPTIONAL SECTION
 * Only rendered when course.why_items data exists.
 *
 * WordPress:
 *   <?php if ( have_rows('why_items') ) : ?>
 *     <section class="why"> ... </section>
 *   <?php endif; ?>
 */
.why {
    background: var(--bg);
    padding: var(--s9) 0;
    border-bottom: 1px solid var(--border);
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* course.why_items[n] */
.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px 22px;
}

/* Auto-numbered — static ordinal */
.why-card__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

/* course.why_items[n].title */
.why-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.3;
    margin-bottom: 10px;
}

/* course.why_items[n].text */
.why-card__text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--t3);
}


/* ── 11. Certificate ────────────────────────────────────────── */

/* Always shown for certificated courses */
.certificate {
    background: var(--navy);
    padding: var(--s9) 0;
}

.certificate__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 72px;
    align-items: center;
}

/* Static — same text for all certificated courses */
.certificate__body {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.80;
    color: rgba(255,255,255,0.45);
    margin: 0 0 28px;
}

/* Static list — same for all certificated courses */
.certificate__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.certificate__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.60);
    line-height: 1.5;
}

.certificate__list li::before {
    content: '';
    width: 16px; height: 16px; flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.20);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5.5L4 7.5L8 3' stroke='rgba(255,255,255,0.6)' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px; background-repeat: no-repeat; background-position: center;
}

/* Decorative certificate visual — aria-hidden="true" */
.certificate__actions {
    margin-top: 26px;
}

.certificate__brand {
    margin: 0 0 18px;
    max-width: min(100%, 188px);
}

.certificate__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.cert-visual {
    background-color: var(--white);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 360' fill='none'%3E%3Cpath d='M-32 170C58 126 146 126 236 170C326 214 414 214 504 170C594 126 682 126 772 170' stroke='%232563eb' stroke-opacity='.072' stroke-width='1.1'/%3E%3Cpath d='M-32 198C58 154 146 154 236 198C326 242 414 242 504 198C594 154 682 154 772 198' stroke='%230d1f3c' stroke-opacity='.055' stroke-width='1'/%3E%3Cpath d='M-32 226C58 182 146 182 236 226C326 270 414 270 504 226C594 182 682 182 772 226' stroke='%232563eb' stroke-opacity='.048' stroke-width='1'/%3E%3Cpath d='M-32 254C58 210 146 210 236 254C326 298 414 298 504 254C594 210 682 210 772 254' stroke='%230d1f3c' stroke-opacity='.04' stroke-width='1'/%3E%3C/svg%3E"),
        radial-gradient(circle, rgba(13,31,60,0.028) 1px, transparent 1px);
    background-repeat: no-repeat, repeat;
    background-size: 96% auto, 20px 20px;
    background-position: center 62%, 0 0;
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 56px rgba(0,0,0,0.28);
    overflow: hidden;
}

.cert-visual__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cert-visual__logo {
    display: flex;
    align-items: center;
    max-width: min(100%, 188px);
}

.cert-visual__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.cert-visual__label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 6px;
}

.cert-visual__name {
    font-size: 22px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    line-height: 1.2;
}

/* course.title */
.cert-visual__course {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--t3);
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    line-height: 1.5;
}

.cert-visual__course-id {
    font-size: 11px;
    font-weight: 400;
    color: var(--t4);
    margin-bottom: 24px;
}

.cert-visual__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cert-visual__date-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t4);
    margin-bottom: 3px;
}

.cert-visual__date {
    font-size: 11px;
    font-weight: 600;
    color: var(--t2);
}

.cert-visual__verify {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.cert-visual__qr {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(13,31,60,0.12);
    box-shadow: 0 5px 12px rgba(13,31,60,0.08);
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-visual__qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: crisp-edges;
}

.cert-visual__qr-label {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(13,31,60,0.5);
    text-align: center;
}

.certificate .cert-visual {
    will-change: transform, opacity, filter;
    transition:
        transform 1.02s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.72s ease,
        filter 1.02s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 1.02s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: 50% 82%;
}

.certificate .cert-visual__verify {
    will-change: transform, opacity;
    transition:
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.62s ease;
}

.certificate .cert-visual__verify { transition-delay: 0.18s; }

.certificate .cert-visual:not(.is-visible) {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(42px) rotate(0.8deg) scale(0.968);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 12px 28px rgba(0,0,0,0.16),
        0 26px 58px rgba(0,0,0,0.14);
}

.certificate .cert-visual:not(.is-visible) .cert-visual__verify {
    opacity: 0;
    transform: translateY(12px) scale(0.86);
}

.certificate .cert-visual.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: rotate(-1.5deg) translateY(0) scale(1);
}

.certificate .cert-visual.is-visible .cert-visual__verify {
    opacity: 1;
    transform: none;
}


/* ── 12. Final CTA ──────────────────────────────────────────── */

/* Always shown */
.cta-final {
    background: var(--blue);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,31,60,0.35) 0%, transparent 60%);
    pointer-events: none;
}

.cta-final__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Static heading */
.cta-final__title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 12px;
}

/* Static description */
.cta-final__desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.70;
    color: rgba(255,255,255,0.55);
    margin: 0;
    max-width: 480px;
}

.cta-final__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}


/* ── 13. Responsive — tablet ≤1024px ────────────────────────── */

@media (max-width: 1024px) {
    :root { --pad-x: 28px; }

    /* Hero: stack content above image */
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero__content { padding-bottom: 0; }
    .hero__img-wrap { aspect-ratio: 16 / 9; border-radius: 12px; }
    .hero__badge { display: none; }

    /* Overview: stack left column above info card */
    .overview__inner { grid-template-columns: 1fr; gap: 48px; }
    .info-card { position: static; }

    /* Careers: 3 columns */
    .careers__grid { grid-template-columns: repeat(3, 1fr); }
    .careers__header { grid-template-columns: 1fr; }
    .careers__note { text-align: left; }

    /* Outcomes: 2 columns */
    .outcomes__grid { grid-template-columns: repeat(2, 1fr); }

    /* Why: 2 columns */
    .why__grid { grid-template-columns: repeat(2, 1fr); }

    /* Certificate: stack */
    .certificate__inner { grid-template-columns: 1fr; gap: 48px; }

    /* CTA: stack */
    .cta-final__inner { grid-template-columns: 1fr; gap: 36px; }
    .cta-final__actions { flex-direction: row; align-items: flex-start; }
}


/* ── 14. Responsive — mobile ≤640px ────────────────────────── */

@media (max-width: 640px) {
    :root { --pad-x: 18px; }

    .hero__title { font-size: clamp(30px, 9vw, 44px); }
    .hero__stats { gap: 16px; }
    .hero__stat-div { display: none; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    /* Careers: 2 columns on small screens */
    .careers__grid { grid-template-columns: 1fr 1fr; }

    /* Outcomes + Why: single column */
    .outcomes__grid { grid-template-columns: 1fr; }
    .why__grid { grid-template-columns: 1fr; }

    /* CTA: full-width stacked buttons */
    .cta-final__inner { gap: 28px; }
    .cta-final__actions { flex-direction: column; width: 100%; }
    .cta-final__actions .btn { width: 100%; justify-content: center; }
}

.floating-course-buy {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 179;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 106px;
    height: 50px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(37,99,235,0.12);
    color: var(--navy);
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(13,31,60,0.18), 0 6px 18px rgba(13,31,60,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform var(--ease),
        box-shadow var(--ease),
        border-color var(--ease),
        background var(--ease);
}

.floating-course-buy:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.22);
    box-shadow: 0 18px 36px rgba(13,31,60,0.2), 0 8px 20px rgba(13,31,60,0.1);
}

.floating-course-buy:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.14), 0 18px 36px rgba(13,31,60,0.2), 0 8px 20px rgba(13,31,60,0.1);
}

.floating-course-buy__icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.floating-course-buy__label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    color: currentColor;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .floating-course-buy {
        right: 14px;
        bottom: 78px;
        min-width: 94px;
        height: 46px;
        padding: 0 16px 0 12px;
        gap: 8px;
    }

    .floating-course-buy__icon {
        width: 18px;
        height: 18px;
    }

    .floating-course-buy__label {
        font-size: 13px;
    }
}
