/* ═══════════════════════════════════════════════════════════
   LEGIT ROBOTICS CENTER — Program Detail Pages
   Extends styles.css with program-specific layouts
   ═══════════════════════════════════════════════════════════ */

/* ─── Program Hero ─── */
.program-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;          /* centered like the home hero (kills the bottom-aligned top gap) */
    padding: 80px 0 40px;
    overflow: hidden;
}

/* Hero image, "like the home hero" (managed/repositionable via the local CMS):
   desktop = a prominent image as a faded right-side panel (text stays on the
   plain background, so it's legible in both themes); mobile = stacked below the
   text. A single per-level "topic" accent bar sits at the bottom. */
.program-hero-bg {
    position: absolute;
    top: 0; right: 0; bottom: auto; left: auto;
    width: 55%;                /* same width footprint as the home hero image */
    aspect-ratio: 4 / 3;       /* hero image is a fixed 4:3 box (per request); object-fit:cover crops the photo into it */
    height: auto;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 62%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 62%);
}
html[dir="rtl"] .program-hero-bg {
    right: auto; left: 0;
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 62%);
            mask-image: linear-gradient(270deg, transparent 0%, #000 62%);
}
/* tablets: fade the photo further — the 900px text column overlaps it here */
@media (max-width: 1024px) and (min-width: 769px) {
    .program-hero-bg { opacity: 0.45; }
}
.program-hero-bg.is-empty { opacity: 0; }
.program-hero > .program-hero-content { position: relative; z-index: 2; }

/* single "topic" accent bar (one topic = this program page) */
.program-hero::after {
    content: '';
    position: absolute; left: 24px; bottom: 0;
    height: 4px; width: 160px; z-index: 3;
    border-radius: 2px 2px 0 0;
    background: #1A73E8;
}
.program-hero[data-level="1"]::after { background: #00c853; }
.program-hero[data-level="2"]::after { background: #1A73E8; }
.program-hero[data-level="3"]::after { background: #c9a227; }
.program-hero[data-level="4"]::after { background: #7c4dff; }
.program-hero[data-level="5"]::after { background: #ff6d00; }

/* RTL: accent bar hugs the right edge on desktop (mobile rule below spans full width) */
@media (min-width: 769px) {
    html[dir="rtl"] .program-hero::after {
        left: auto;
        right: 24px;
    }
}

/* phones: stack text → contained image → full-width topic bar (like the home hero) */
@media (max-width: 768px) {
    .program-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 100px 20px 22px; }
    .program-hero > .program-hero-content { order: 0; max-width: 100%; padding-left: 0; padding-right: 0; }
    .program-hero-content h1, .program-hero-content .program-hero-desc { max-width: 100%; }
    .program-hero-bg,
    html[dir="rtl"] .program-hero-bg {
        order: 1; position: static; right: auto; left: auto;
        width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; opacity: 1;
        -webkit-mask-image: none; mask-image: none;
        margin-top: 18px; border-radius: 12px;
    }
    .program-hero::after { left: 0; width: 100%; border-radius: 0; }
}

.program-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.program-hero[data-level="1"]::before {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0, 200, 83, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(105, 240, 174, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0b0b0d 0%, #000000 100%);
}

.program-hero[data-level="2"]::before {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(26, 115, 232, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(77, 163, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0b0b0d 0%, #000000 100%);
}

.program-hero[data-level="3"]::before {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(180, 155, 50, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(180, 155, 50, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0b0b0d 0%, #000000 100%);
}

.program-hero[data-level="4"]::before {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(124, 77, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(179, 136, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0b0b0d 0%, #000000 100%);
}

.program-hero[data-level="5"]::before {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255, 109, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 171, 64, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0b0b0d 0%, #000000 100%);
}

.program-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0;                 /* left-aligned like the home hero (text hard against the left, not centered) */
    padding: 0 80px;           /* text starts ~80px from the left — same as the home hero */
    width: 100%;
}

.program-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.program-hero-breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

.program-hero-breadcrumb a:hover {
    color: var(--accent-light);
}

.program-hero-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* RTL: breadcrumb separator chevron points the other way (it's directional) */
html[dir="rtl"] .program-hero-breadcrumb svg {
    transform: scaleX(-1);
}

.program-hero-level {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.program-hero-level.level-green {
    background: rgba(0, 168, 70, 0.15);
    color: #00a846;
    border: 1px solid rgba(0, 168, 70, 0.25);
}

.program-hero-level.level-blue {
    background: rgba(26, 115, 232, 0.15);
    color: #1a73e8;
    border: 1px solid rgba(26, 115, 232, 0.25);
}

.program-hero-level.level-dark {
    background: rgba(180, 155, 50, 0.12);
    color: #b08d17;
    border: 1px solid rgba(180, 155, 50, 0.2);
}

.program-hero-level.level-purple {
    background: rgba(101, 50, 220, 0.12);
    color: #6532dc;
    border: 1px solid rgba(101, 50, 220, 0.25);
}

.program-hero-level.level-navy {
    background: rgba(220, 90, 0, 0.12);
    color: #dc5a00;
    border: 1px solid rgba(220, 90, 0, 0.25);
}

.program-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
}

.program-hero .program-hero-age {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
}

[data-level="1"] .program-hero-age {
    color: #00a846;
}

[data-level="2"] .program-hero-age {
    color: var(--accent-light);
}

[data-level="3"] .program-hero-age {
    color: #b08d17;
}

[data-level="4"] .program-hero-age {
    color: #6532dc;
}

[data-level="5"] .program-hero-age {
    color: #dc5a00;
}

.program-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   Program hero — ALWAYS DARK (never flips to white in light theme).
   Mirrors the home hero (which is hard-coded #000). Text is forced
   light and per-level accents are brightened for the dark surface.
   ═══════════════════════════════════════════════════════════ */
.program-hero { background: #000; }
.program-hero h1 { color: #ffffff; }
.program-hero .program-hero-desc { color: rgba(255, 255, 255, 0.74); }
.program-hero .program-hero-breadcrumb,
.program-hero .program-hero-breadcrumb a,
.program-hero .program-hero-breadcrumb svg { color: rgba(255, 255, 255, 0.6); }
.program-hero .program-hero-breadcrumb a:hover { color: #4da3ff; }
.program-hero[data-level="1"] .program-hero-age { color: #00e676; }
.program-hero[data-level="2"] .program-hero-age { color: #4da3ff; }
.program-hero[data-level="3"] .program-hero-age { color: #e3c14d; }
.program-hero[data-level="4"] .program-hero-age { color: #b388ff; }
.program-hero[data-level="5"] .program-hero-age { color: #ff9d4d; }

/* ─── Program Goal Banner ─── */
.program-goal-banner {
    padding: 52px 0;
    background: var(--bg-primary);
}

.program-goal-banner .section-tag {
    color: var(--accent);
}

.program-goal-banner h2,
.program-goal-banner h4,
.program-goal-banner strong {
    color: var(--text-primary);
}

.program-goal-banner p {
    color: var(--text-secondary);
}

.goal-content {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.goal-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.goal-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.goal-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.goal-highlight-item:hover {
    border-color: var(--border-active);
    background: var(--bg-glass-hover);
    transform: translateX(4px);
}

html[dir="rtl"] .goal-highlight-item:hover {
    transform: translateX(-4px);
}

.goal-highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.goal-highlight-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.goal-highlight-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─── Detailed Curriculum ─── */
.curriculum-section {
    padding: 58px 0;
    background: var(--bg-primary);
}

.curriculum-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

.curriculum-header {
    text-align: center;
    margin-bottom: 60px;
}

.curriculum-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.curriculum-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.curriculum-modules {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.curriculum-module {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.curriculum-module:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    cursor: pointer;
    transition: var(--transition);
}

.module-header:hover {
    background: var(--bg-glass-hover);
}

.module-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    opacity: 0.2;
    min-width: 48px;
}

.module-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.module-info {
    flex: 1;
}

.module-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.module-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.module-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.curriculum-module.open .module-toggle {
    transform: rotate(180deg);
    color: var(--accent-light);
    border-color: var(--accent);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.curriculum-module.open .module-content {
    max-height: 1000px;
}

.module-content-inner {
    padding: 0 32px 32px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.module-content-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.module-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.module-skill-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.module-skill-tag:hover {
    border-color: var(--border-active);
    background: rgba(26, 115, 232, 0.06);
}

.module-skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

[data-level="1"] .module-skill-dot {
    background: #00a846;
}

[data-level="2"] .module-skill-dot {
    background: var(--accent-light);
}

[data-level="3"] .module-skill-dot {
    background: #b08d17;
}

[data-level="4"] .module-skill-dot {
    background: #6532dc;
}

[data-level="5"] .module-skill-dot {
    background: #dc5a00;
}

/* ─── Methodology Section ─── */
.methodology-section {
    padding: 58px 0;
    background: var(--bg-primary);
}

.methodology-section .section-tag {
    color: var(--accent);
}

.methodology-section .curriculum-header h2 {
    color: var(--text-primary);
}

.methodology-section .curriculum-header p {
    color: var(--text-secondary);
}

.methodology-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.methodology-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
    text-align: center;
}

.methodology-card:hover {
    border-color: var(--border-active);
    background: var(--bg-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.methodology-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.methodology-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.methodology-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ─── Tools Grid ─── */
.tools-section {
    padding: 58px 0;
    background: var(--bg-primary);
}

.tools-section .section-tag {
    color: var(--accent);
}

.tools-section .curriculum-header h2 {
    color: var(--text-primary);
}

.tools-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.tool-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--border-active);
    background: var(--bg-glass-hover);
    transform: translateY(-3px);
}

.tool-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tool-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Brand logo frame in tool card — fixed white tile; the logo scales INSIDE it (CMS zoom) */
.tool-logo-box {
    width: 180px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tool-card:hover .tool-logo-box {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tool-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

/* CMS stores per-logo zoom inline (transform: scale); inline beats this hover reset */
.tool-card:hover .tool-logo {
    transform: none;
}

/* ─── Outcomes Section ─── */
.outcomes-section {
    padding: 58px 0;
    background: var(--bg-primary);
}

.outcomes-section .section-tag {
    color: var(--accent);
}

.outcomes-section .curriculum-header h2 {
    color: var(--text-primary);
}

.outcomes-section .curriculum-header p {
    color: var(--text-secondary);
}

.outcomes-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.outcome-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.outcome-card:hover {
    border-color: var(--border-active);
    background: var(--bg-glass-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.outcome-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.outcome-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.outcome-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── CTA Section ─── */
.program-cta-section {
    padding: 52px 0;
    text-align: center;
}

.program-cta-section .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.program-cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.program-cta-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Page Navigation ─── */
.page-nav {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.page-nav-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.page-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.page-nav-link:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.page-nav-link strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
}

/* ─── Level-specific accent overrides ─── */
[data-level="1"] .section-tag {
    background: rgba(0, 168, 70, 0.1);
    border-color: rgba(0, 168, 70, 0.2);
    color: #00a846;
}

[data-level="3"] .section-tag {
    background: rgba(180, 155, 50, 0.1);
    border-color: rgba(180, 155, 50, 0.2);
    color: #b08d17;
}

[data-level="4"] .section-tag {
    background: rgba(101, 50, 220, 0.1);
    border-color: rgba(101, 50, 220, 0.2);
    color: #6532dc;
}

[data-level="5"] .section-tag {
    background: rgba(220, 90, 0, 0.1);
    border-color: rgba(220, 90, 0, 0.2);
    color: #dc5a00;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .goal-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .methodology-grid {
        grid-template-columns: 1fr 1fr;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Hero — layout (flex-direction/padding 100px 20px 22px/etc.) lives in the
       single .program-hero rule in the 768px block near the top of this file */
    .program-hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .program-hero-age {
        font-size: 0.95rem;
    }

    .program-hero-desc {
        font-size: 0.92rem;
        max-width: 100%;
    }

    /* Compact "01 FOUNDATION" badge pinned to the breadcrumb row (saves the big
       vertical block it used to take). Sits at the start-end of the breadcrumb. */
    .program-hero-content { position: relative; }
    .program-hero-level {
        position: absolute;
        top: 0;
        inset-inline-end: 0;
        margin: 0;
        gap: 6px;
        padding: 5px 11px;
        font-size: 0.66rem;
    }
    .program-hero-level span:first-child {
        font-size: 1.05rem;
    }

    .program-hero-breadcrumb {
        font-size: 0.78rem;
        gap: 6px;
        margin-bottom: 20px;
        padding-inline-end: 112px;   /* reserve room for the badge on the right */
        min-height: 28px;
    }

    .program-hero-breadcrumb svg {
        width: 12px;
        height: 12px;
    }

    /* Goal/Philosophy */
    .program-goal-banner {
        padding: 44px 0;
    }

    .goal-content {
        padding: 0 20px;
    }

    .goal-text h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }

    .goal-text p {
        font-size: 0.9rem;
    }

    .goal-highlight-item {
        padding: 20px 16px;
        gap: 14px;
    }

    .goal-highlight-icon {
        font-size: 1.4rem;
        min-width: 40px;
    }

    .goal-highlight-item h4 {
        font-size: 0.95rem;
    }

    .goal-highlight-item p {
        font-size: 0.82rem;
    }

    /* Curriculum Accordion */
    .curriculum-section {
        padding: 44px 0;
    }

    .curriculum-container {
        padding: 0 20px;
    }

    .curriculum-header h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .curriculum-header p {
        font-size: 0.9rem;
    }

    .module-header {
        padding: 18px 16px;
        gap: 12px;
    }

    .module-number {
        font-size: 1rem;
        min-width: 28px;
        height: 28px;
        line-height: 28px;
    }

    .module-icon {
        font-size: 1.2rem;
    }

    .module-info h3 {
        font-size: 0.95rem;
    }

    .module-info span {
        font-size: 0.75rem;
    }

    .module-content-inner {
        padding: 16px 16px 20px;
    }

    .module-content-inner p {
        font-size: 0.88rem;
    }

    .module-skills {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .module-skill-tag {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    /* Methodology */
    .methodology-section {
        padding: 44px 0;
    }

    .methodology-container {
        padding: 0 20px;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .methodology-card {
        padding: 24px 20px;
    }

    .methodology-icon {
        font-size: 1.6rem;
    }

    .methodology-card h4 {
        font-size: 0.95rem;
    }

    .methodology-card p {
        font-size: 0.82rem;
    }

    /* Tools */
    .tools-section {
        padding: 44px 0;
    }

    .tools-container {
        padding: 0 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-card {
        padding: 18px 16px;
        gap: 14px;
    }

    .tool-icon {
        font-size: 1.4rem;
        min-width: 40px;
    }

    .tool-card h4 {
        font-size: 0.92rem;
    }

    .tool-card p {
        font-size: 0.78rem;
    }

    /* Outcomes */
    .outcomes-section {
        padding: 44px 0;
    }

    .outcomes-container {
        padding: 0 20px;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .outcome-card {
        padding: 20px 16px;
        gap: 14px;
    }

    .outcome-icon {
        font-size: 1.4rem;
    }

    .outcome-card h4 {
        font-size: 0.92rem;
    }

    .outcome-card p {
        font-size: 0.82rem;
    }

    /* CTA */
    .program-cta-section {
        padding: 60px 20px;
    }

    .program-cta-section h2 {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
    }

    .program-cta-section p {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Page Navigation */
    .page-nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .page-nav-link {
        padding: 14px 18px;
        font-size: 0.82rem;
    }

    .page-nav-link strong {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .program-hero {
        padding: 90px 16px 32px;
    }

    .program-hero-content h1 {
        font-size: 1.6rem;
    }

    .program-hero-desc {
        font-size: 0.85rem;
    }

    .program-hero-level span:first-child {
        font-size: 1.05rem;   /* compact badge (was 2rem) — matches the pinned-to-breadcrumb layout */
    }

    .goal-content {
        padding: 0 16px;
    }

    .goal-text h2 {
        font-size: 1.3rem;
    }

    .curriculum-container,
    .methodology-container,
    .tools-container,
    .outcomes-container {
        padding: 0 16px;
    }

    .module-skills {
        grid-template-columns: 1fr;
    }

    .module-header {
        flex-wrap: wrap;
    }

    .section-tag {
        font-size: 0.72rem;
    }
}
/* ─── Program gallery (12 editable photos + click-to-zoom) ─── */
.program-gallery-section { padding: 58px 0; background: var(--bg-primary); }
.prog-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.prog-gallery-item {
    position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1;
    background: var(--bg-glass, rgba(127,127,127,.06)); border: 1px solid var(--border);
}
.prog-gallery-ph {
    position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--accent); opacity: .4; background: var(--bg-glass, rgba(127,127,127,.06));
}
.prog-gallery-item img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.prog-gallery-item:hover img { transform: scale(1.05); }
.prog-gallery-item.is-empty img { opacity: 0; }
.prog-gallery-item:not(.is-empty) { cursor: zoom-in; }
@media (max-width: 768px) { .prog-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.prog-lightbox { position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 32px; cursor: zoom-out; }
.prog-lightbox.open { display: flex; }
.prog-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6); animation: progZoomIn .25s ease; }
@keyframes progZoomIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.prog-lightbox-close { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .8; }
.prog-lightbox-close:hover { opacity: 1; }
.prog-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); border: none; color: #fff; font-size: 2.4rem; line-height: 1; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; opacity: .7; display: flex; align-items: center; justify-content: center; transition: opacity .15s, background .15s; z-index: 2; }
.prog-lightbox-nav:hover { opacity: 1; background: rgba(0,0,0,.6); }
.prog-lightbox-prev { left: 20px; }
.prog-lightbox-next { right: 20px; }
@media (max-width: 600px) { .prog-lightbox-nav { width: 44px; height: 44px; font-size: 2rem; } .prog-lightbox-prev { left: 8px; } .prog-lightbox-next { right: 8px; } }

/* ══ Mobile (≤768px): denser columns + tap-to-reveal tech logos. Desktop untouched. ══ */
@media (max-width: 768px) {
    .methodology-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .outcomes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .methodology-card { padding: 18px 14px; }
    .outcome-card { padding: 24px 18px; gap: 12px; flex-direction: column; align-items: center; text-align: center; }
    .outcome-icon { font-size: 1.9rem; margin-bottom: 2px; }
    /* tech logos: show logo-only tiles in a 3-across grid; text revealed on tap (popup) */
    .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
    .tool-card { padding: 12px 8px; gap: 0; min-height: 76px; justify-content: center; cursor: pointer; }
    .tool-card h4, .tool-card p { display: none; }
    .tool-logo-box { width: 100%; height: 58px; padding: 8px 10px; }
}
/* Tech-logo tap popup — opened only on mobile by JS, so the desktop view never shows it */
.tool-popup { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.6); }
.tool-popup.open { display: flex; }
.tool-popup-box { position: relative; width: 100%; max-width: 340px; background: #ffffff; color: #111111; border: 1px solid rgba(0,0,0,.12); border-radius: 14px; padding: 30px 24px 26px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.tool-popup-logo { width: 160px; height: 70px; object-fit: contain; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 4px 12px rgba(0,0,0,.12); display: block; margin-left: auto; margin-right: auto; }
.tool-popup-name { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700; margin: 16px 0 8px; color: #111111; }
.tool-popup-desc { color: #555555; font-size: 0.92rem; line-height: 1.6; }
.tool-popup-close { position: absolute; top: 6px; inset-inline-end: 12px; background: none; border: none; font-size: 1.9rem; line-height: 1; color: #777777; cursor: pointer; }