/* ===========================================
   HOW WAL IS DIFFERENT — Slide Presentation
   Merged from presentation.css + how-wal-is-different.css
   Fonts/colours inherit from styles.css
   =========================================== */

/* Slide-specific local vars not in styles.css */
:root {
    --near-black: #0d0d0d;
    --dark-grey: #262626;
}

/* ===== HOME LOGO ===== */
.slide-home-logo {
    position: fixed;
    top: 1rem;
    left: 1.5rem;
    z-index: 1100;
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.slide-home-logo:hover {
    opacity: 1;
}
.slide-home-logo img {
    height: 44px;
    width: auto;
    display: block;
}

/* ===== NAV OVERRIDES ===== */
/* Transparent nav on dark slide backgrounds */
.nav.transparent .nav-links a {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav.transparent .nav-links a:hover,
.nav.transparent .nav-links a.active {
    color: white;
    text-decoration: underline;
    text-decoration-color: var(--gold-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.nav.transparent .mobile-menu-btn span {
    background: var(--white);
}

/* ===== HTML/BODY OVERRIDES ===== */
/* Disable smooth scroll on slide pages — instant transitions look better */
html {
    scroll-behavior: auto;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--near-black);
    color: white;
}

/* ===== SLIDES WRAPPER ===== */
.slides-wrapper {
    position: relative;
    width: 100%;
}

.slide {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 6rem 2rem 4rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
}

.slide.active {
    display: flex;
}

/* Content group — grows to fill space and centers its children vertically */
.slide-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    min-height: 0;
    overflow: hidden;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold-accent);
    width: 0%;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* ===== SECTION TABS ===== */
#section-nav {
    position: fixed;
    top: var(--nav-h, 74px);
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: stretch;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 184, 0, 0.18);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#section-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.section-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 1.25rem 2rem 1.1rem;
    white-space: nowrap;
}

.section-tab + .section-tab {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.section-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

.section-tab.active {
    background: rgba(255, 184, 0, 0.07);
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
}

.section-tab-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.section-tab-sub {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.55;
    line-height: 1;
}

.section-tab.active .section-tab-sub {
    opacity: 0.85;
}

/* Bump slide top padding to clear nav + section tabs (~80px) */
.slide {
    padding-top: calc(var(--nav-h, 74px) + 82px);
}

/* Title and closing slides: tabs are hidden, only clear the nav */
.slide--no-tabs {
    padding-top: calc(var(--nav-h, 74px) + 24px);
}

/* Navigation dots - hidden on this page */
.nav-dots {
    display: none;
}

/* ===== TYPOGRAPHY ===== */
/* Use the same font family as all other pages (Noto Serif for headings) */
h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    color: white;
}

h1 span,
h2 span,
h3 span {
    color: var(--gold-accent);
    font-style: normal;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--white-85);
}

.subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--cream);
    font-weight: 500;
}

/* ===== SLIDE TRANSITIONS ===== */
@keyframes slideExitUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-100vh); }
}
@keyframes slideExitDown {
    from { transform: translateY(0); }
    to   { transform: translateY(100vh); }
}
@keyframes slideEnterUp {
    from { transform: translateY(100vh); }
    to   { transform: translateY(0); }
}
@keyframes slideEnterDown {
    from { transform: translateY(-100vh); }
    to   { transform: translateY(0); }
}

/* Both slides are fixed during transition so neither affects page height */
.slide.slide-exiting-fwd,
.slide.slide-exiting-bwd,
.slide.slide-entering-fwd,
.slide.slide-entering-bwd {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    overflow: hidden !important;
}

.slide.slide-exiting-fwd {
    animation: slideExitUp 0.65s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    z-index: 20;
    pointer-events: none;
}
.slide.slide-exiting-bwd {
    animation: slideExitDown 0.65s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    z-index: 20;
    pointer-events: none;
}
.slide.slide-entering-fwd {
    animation: slideEnterUp 0.65s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    z-index: 10;
    pointer-events: none;
}
.slide.slide-entering-bwd {
    animation: slideEnterDown 0.65s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    z-index: 10;
    pointer-events: none;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.slide.visible .reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(1) {
    transition-delay: 0.1s;
}
.reveal:nth-child(2) {
    transition-delay: 0.2s;
}
.reveal:nth-child(3) {
    transition-delay: 0.3s;
}
.reveal:nth-child(4) {
    transition-delay: 0.4s;
}
.reveal:nth-child(5) {
    transition-delay: 0.5s;
}
.reveal:nth-child(6) {
    transition-delay: 0.6s;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.slide.visible .reveal-scale {
    opacity: 1;
    transform: scale(1);
}

/* ===== SLIDE BACKGROUNDS ===== */
.slide-dark {
    background: var(--near-black);
}
.slide-lighter {
    background: var(--charcoal);
}
.slide-darker {
    background: #000000;
}

/* ===== TITLE SLIDE ===== */
.title-slide {
    text-align: center;
    background: linear-gradient(135deg, #000000 0%, var(--near-black) 100%);
}

.title-tag {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--near-black);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.gold-divider {
    width: 100px;
    height: 4px;
    background: var(--gold-accent);
    margin: 1.5rem auto;
}

/* ===== SECTION DIVIDER SLIDE ===== */
.section-slide {
    text-align: center;
    background: var(--charcoal);
}

.section-number {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--gold-accent);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* ===== CONTENT SLIDE LAYOUT ===== */

.slide-content {
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
    overflow-wrap: break-word;
    margin: 0 auto;
    text-align: left;
}

.slide-content.slide-video {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Video slide header */
.video-slide-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.video-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-accent);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
}

/* Cinematic video frame */
.video-frame-wrap {
    width: 100%;
    max-width: 860px;
    position: relative;
    padding: 6px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.08) 50%, rgba(212, 175, 55, 0.3));
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-frame-inner {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-frame-wrap .video-container {
    aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
}

.video-frame-wrap .video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== TESTIMONY ITEMS ===== */
.testimony-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.testimony-caption {
    padding: 0 0.25rem;
}

.testimony-caption h3 {
    margin-bottom: 0.2rem;
}

.testimony-caption p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ===== TELL / TEACH / INVOLVE ===== */
.tti-quote {
    margin: 0.25rem auto 1.25rem;
    max-width: 780px;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.tti-quote-mark {
    display: block;
    font-size: 5rem;
    line-height: 0.6;
    color: var(--gold-accent);
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.tti-quote p {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-style: italic;
    color: var(--white-90);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.tti-quote p em {
    color: var(--gold-accent);
    font-style: normal;
    font-weight: 700;
}

.tti-quote cite {
    font-size: 0.8rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.slide-title {
    margin-bottom: 1rem;
}

.slide-subtitle {
    margin-bottom: 1.5rem;
}

/* ===== SLIDE 9: 3-top / 2-bottom grid ===== */
.slide9-grid {
    grid-template-columns: repeat(6, 1fr);
}

.slide9-grid > .card:nth-child(-n + 3) {
    grid-column: span 2;
}

.slide9-grid > .card:nth-child(n + 4) {
    grid-column: span 3;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.card-grid-1 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--charcoal);
    border-left: 4px solid var(--gold-accent);
    padding: 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card-grid--gold-headings .card h3 {
    color: var(--gold-accent);
}
.card p {
    margin-bottom: 0.5rem;
}
.card p:last-child {
    margin-bottom: 0;
}

/* ===== TOC CARDS ===== */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2.5rem;
}

.toc-card {
    background: var(--charcoal);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--gold-accent);
    padding: 1.25rem;
    border-radius: 4px;
    text-align: left;
    transition: all 0.3s ease;
}

.toc-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-accent);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.toc-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--gold-accent);
}

.toc-card p {
    font-size: 0.95rem;
    color: var(--cream);
}

/* ===== QUOTE BLOCK ===== */
.quote-block {
    background: var(--charcoal);
    border-left: 5px solid var(--gold-accent);
    padding: 1.25rem 1.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    max-width: 900px;
}

.quote-block p {
    font-style: italic;
    line-height: 1.6;
    color: var(--white-90);
}

.quote-block .bold-part {
    color: var(--gold-accent);
    font-weight: 700;
}

/* ===== TABLE ===== */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    margin: 1.25rem 0;
    background: linear-gradient(
        135deg,
        var(--white-08) 0%,
        var(--white-04) 100%
    );
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--gold-accent);
}

.comparison-table th {
    background: var(--gold-accent);
    color: #1a1a1a;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow-wrap: break-word;
}

.comparison-table th:first-child {
    border-radius: 4px 0 0 4px;
}
.comparison-table th:last-child {
    border-radius: 0 4px 4px 0;
}

.comparison-table td {
    background: var(--white-10);
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--white-12);
    overflow-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.comparison-table tbody tr:hover td {
    background: var(--white-12);
    transition: background 0.2s ease;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.stat-box {
    text-align: center;
    padding: 1.25rem;
    background: var(--charcoal);
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--gold-accent);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--white-60);
}

/* ===== FEATURE LIST & GRID ===== */
.feature-list {
    list-style: none;
    margin: 1.25rem 0;
}

.feature-list li {
    padding: 1rem;
    background: var(--charcoal);
    border-left: 3px solid var(--gold-accent);
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* ===== ARROW NAVIGATION (legacy — kept for other slide pages) ===== */
.arrow-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.5rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
    background: rgba(26, 10, 10, 0.85);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--white-12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.slide-counter {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white-60);
    letter-spacing: 0.05em;
    min-width: 2.75rem;
    text-align: center;
    user-select: none;
}

.arrow-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1.5px solid var(--white-35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--white-85);
    font-size: 0.9rem;
    line-height: 1;
}

.arrow-btn:hover:not(:disabled) {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--near-black);
}

.arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== SLIDE ACTIONS (primary navigation bar) ===== */
.slides-wrapper {
    position: relative;
}

.slide .slide-actions {
    position: relative;
    padding: 2rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: none;
    z-index: 1002;
    width: 100%;
}

.slide .slide-actions > * {
    pointer-events: all;
}

.side-slide-btn {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000000;
    background: var(--gold-accent);
    border: 2px solid var(--gold-accent);
    border-radius: 100px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.side-slide-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Order applies to direct children of .slide-actions */
.nav-btn-wrap--prev {
    order: 1;
}
.audio-control {
    order: 2;
}
.nav-btn-wrap--next {
    order: 3;
}

/* When buttons are not yet wrapped (before JS runs) */
.side-slide-btn--prev {
    order: 1;
}
.side-slide-btn--next {
    order: 3;
}

/* Reset order inside the wrap so button stays above the label */
.nav-btn-wrap .side-slide-btn {
    order: 0;
}

.side-slide-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn-arrow {
    font-size: 1rem;
    line-height: 1;
}

/* Button + label column wrapper — each takes equal share of slide-actions width */
.nav-btn-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Prev group: button and label both flush right */
.nav-btn-wrap--prev {
    align-items: flex-end;
}

/* Next group: button and label both flush left */
.nav-btn-wrap--next {
    align-items: flex-start;
}

/* Slide name label below the button */
.nav-btn-label {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--white-65);
    line-height: 1.4;
    margin: 0;
    white-space: normal;
}

.nav-btn-wrap--prev .nav-btn-label {
    text-align: right;
}
.nav-btn-wrap--next .nav-btn-label {
    text-align: left;
}

/* Slide page counter */
.slide-page-num {
    position: absolute;
    right: 0;
    top: 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--cream);
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

/* ===== AUDIO CONTROL ===== */
.audio-play-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: crimson;
    border: 1px solid crimson;
    border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 35px rgba(220, 20, 60, 0.35);
}

.audio-play-btn:hover:not(:disabled) {
    background: #b00020;
    border-color: #b00020;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(220, 20, 60, 0.5);
}

.audio-play-btn.playing {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: #000000;
    animation: pulse 2s ease-in-out infinite;
}

.audio-play-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.audio-icon,
.audio-icon-playing {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.audio-text {
    white-space: nowrap;
}

/* ===== HELPER / UTILITY CLASSES ===== */
.card-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}
.note-text {
    font-size: 0.85rem;
    opacity: 0.7;
}
.card-label {
    color: var(--gold-accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.card-note-top {
    margin-top: 0.75rem;
}
.card-note-m0 {
    margin-top: 0;
}
.phase-number {
    color: var(--gold-accent);
    font-weight: 700;
}

.pill {
    padding: 0.5rem 1rem;
    background: var(--charcoal);
    font-size: 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-block;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-tag-crimson {
    color: #1a1a1a;
    background: var(--gold-accent);
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.simple-list li {
    background: transparent;
    padding: 0.5rem 0;
    border: none;
}

/* History / Academic boxes */
.history-box,
.history-box-lg {
    margin-top: 1.5rem;
    background: var(--charcoal);
    border-radius: 4px;
}

.history-box {
    padding: 1.5rem;
}
.history-box-lg {
    padding: 1.75rem;
}

.history-box h3,
.history-title-crimson {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Certification grid */
.cert-grid {
    display: grid;
    margin-top: 1rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cert-item {
    text-align: center;
    padding: 0.875rem;
    background: var(--charcoal);
    border-radius: 4px;
}

.cert-item-name {
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

/* Delivery model grid */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
    align-items: stretch;
}

.delivery-divider {
    width: 2px;
    background: var(--white-15);
    align-self: stretch;
}

.delivery-note {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(38, 38, 38, 0.5);
    border-radius: 4px;
    border-left: 2px solid var(--gold-accent);
}

.delivery-note p {
    font-style: italic;
    color: var(--white-60);
    margin-top: 0;
}

/* Methodology icons */
.methodology-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.methodology-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--gold-accent);
}

/* Text colour utilities */
.text-gold {
    color: var(--gold-accent);
}
.text-white {
    color: white;
}
.text-grey {
    color: var(--text-grey);
}

/* Font size utilities */
.fs-sm {
    font-size: 0.85rem;
}
.fs-md {
    font-size: 0.9rem;
}
.fs-lg {
    font-size: 1.1rem;
}

/* Tag pills */
.tags-flex {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-gold {
    background: var(--gold-accent);
    color: var(--charcoal);
}
.tag-light {
    background: var(--cream);
    color: var(--charcoal);
}

/* ===== SLIDE-SPECIFIC OVERRIDES ===== */
#slide-4 .card-grid {
    margin-top: 1rem;
}
#slide-4 .card p:last-child {
    margin-bottom: 0;
}

#slide-8 .card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#slide-9 .feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.25rem 0;
}

#slide-9 .feature-list li {
    margin-bottom: 0;
}

#slide-9 .feature-list li:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: calc(50% + 0.75rem);
}

#slide-9 .feature-list li:nth-child(5) {
    grid-column: 2 / 3;
}

#slide-11 > div > div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#slide-11 .card-grid {
    margin-top: 0;
}

#slide-12 .slide-title {
    margin-bottom: 0.5rem;
}
#slide-12 .slide-subtitle {
    margin-bottom: 0.75rem;
}
#slide-12 .stats-grid {
    margin: 0.75rem 0;
    gap: 0.75rem;
}
#slide-12 .stat-box {
    padding: 0.75rem 1rem;
}
#slide-12 .stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.25rem;
}
#slide-12 .stat-label {
    font-size: 0.85rem;
}

#slide-13 .card {
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(38, 38, 38, 0.6);
}

#slide-13 .card:hover {
    border-left-color: var(--gold-accent);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

#slide-14 .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ===== RESPONSIVE: TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
    #slide-8 .card-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    #slide-13 div[style*="display: grid"][style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    #slide-13 div[style*="width: 2px"] {
        display: none !important;
    }
}

/* ===== RESPONSIVE: MOBILE (≤768px) ===== */
@media (max-width: 768px) {
    /* Section tabs — scrollable on mobile */
    #section-nav {
        top: var(--nav-h, 74px);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        /* Don't stretch tabs to fill width — let them be natural width */
        align-items: stretch;
    }

    #section-nav::-webkit-scrollbar {
        display: none;
    }

    .section-tab {
        flex: 0 0 auto; /* don't shrink — keep natural width so text fits */
        min-width: 42vw; /* each tab takes ~42% of viewport, hinting there's more */
        padding: 0.9rem 1.25rem 0.8rem;
        gap: 0.35rem;
    }

    .section-tab-label {
        font-size: 0.88rem;
        letter-spacing: 0.04em;
    }

    .section-tab-sub {
        display: block;
        font-size: 0.72rem;
        opacity: 0.55;
    }

    /* Hide scrollbar indicator — page still scrolls via touch */
    html,
    body {
        scrollbar-width: none;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }

    /* Slide 11: WAL licensing framework — 3-column inline grid → single column */
    #slide-11 div[style*="display: grid"][style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    #slide-11 div[style*="width: 2px"] {
        display: none !important;
    }

    /* ── Mobile slide layout: content drives height, page scrolls naturally ── */

    /* Wrapper no longer needs a fixed height or clipping */
    .slides-wrapper {
        height: auto;
        overflow: visible;
    }

    /* Slides leave absolute positioning — each active slide flows in the document */
    .slide {
        position: relative;
        height: auto;
        /* top: clear nav + section tabs (~80px on mobile) + breathing room */
        padding-top: calc(var(--nav-h, 74px) + 90px);
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 6rem; /* clears the fixed action bar */
        overflow: visible;
    }

    /* Edge slides (title + closing) have no tabs — only clear the nav */
    .slide--no-tabs {
        padding-top: calc(var(--nav-h, 74px) + 28px);
    }

    /* slide-body no longer needs internal scrolling */
    .slide-body {
        overflow: visible;
        padding-bottom: 0;
        padding-top: 0.5rem;
    }

    .slide-content {
        max-width: 100%;
        overflow-x: clip; /* clip prevents horizontal overflow without promoting overflow-y to auto */
        flex: 1;
    }

    /* Match base specificity (.slide .slide-actions) to override position: relative */
    .slide .slide-actions {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
        padding: 0.5rem 0.75rem;
        gap: 0.65rem;
        width: calc(100% - 1.5rem);
        background: rgba(10, 5, 5, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 100px;
        border: 1px solid rgba(255, 184, 0, 0.15);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
        /* Allow clicks on the action bar background (overrides base pointer-events: none) */
        pointer-events: all;
    }

    /* Hide slide name labels in the fixed bar — too cramped */
    .nav-btn-label {
        display: none;
    }

    /* Hide page counter inside the fixed bar on mobile */
    .slide-page-num {
        display: none;
    }

    .side-slide-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }

    .nav-btn-name {
        max-width: 8ch;
    }

    /* Grids → single column */
    .card-grid,
    .card-grid-2,
    .card-grid-3,
    .stats-grid,
    .toc-grid,
    .cert-grid,
    #slide-8 .card-grid-2,
    #slide-14 .card-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .quote-block {
        padding: 1.25rem 1.5rem;
        margin: 1.5rem 0;
    }

    /* Table → stacked rows */
    .comparison-table {
        border-spacing: 0;
    }
    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody,
    .comparison-table tr {
        display: block;
    }

    .comparison-table tr {
        margin-bottom: 1.5rem;
        background: var(--charcoal);
        border-radius: 4px;
        overflow: hidden;
    }

    .comparison-table td {
        display: block;
        padding: 1rem;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--white-08);
        position: relative;
    }

    .comparison-table td:last-child {
        border-bottom: none;
    }

    .comparison-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--gold-accent);
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Arrow nav */
    .arrow-nav {
        bottom: 1rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .arrow-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .slide-counter {
        font-size: 0.7rem;
        min-width: 2.5rem;
    }

    /* Slide 9 mobile */
    .slide9-grid {
        grid-template-columns: 1fr !important;
    }

    .slide9-grid > .card:nth-child(-n + 3),
    .slide9-grid > .card:nth-child(n + 4) {
        grid-column: span 1 !important;
    }

    #slide-9 .feature-list {
        grid-template-columns: 1fr;
    }

    #slide-9 .feature-list li:nth-child(4),
    #slide-9 .feature-list li:nth-child(5) {
        grid-column: 1;
        margin-left: 0;
    }

    /* Slide 11 — no internal scroll; page scroll handles overflow */
    #slide-11 .slide-content,
    #slide-11 .slide-content > div {
        overflow-x: clip !important;
        max-width: 100%;
    }

    #slide-11
        div[style*="display: grid"][style*="grid-template-columns"]
        > div {
        padding: 1.25rem !important;
    }

    #slide-11 div[style*="display: grid"][style*="grid-template-columns"] h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    #slide-11 div[style*="display: grid"][style*="grid-template-columns"] ul {
        margin: 0.5rem 0 0 !important;
        padding-left: 1.25rem !important;
    }

    #slide-11 div[style*="display: grid"][style*="grid-template-columns"] li {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }

    #slide-11 div[style*="display: flex"][style*="flex-wrap: wrap"] > div {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.85rem !important;
        white-space: nowrap !important;
    }

    /* Slide 12 */
    #slide-12 {
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding-bottom: 2rem !important;
    }

    #slide-12 .slide-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden;
        max-height: calc(100vh - 8rem);
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    #slide-12 .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin: 1rem 0;
    }

    #slide-12 .stat-box {
        padding: 0.75rem;
        background: rgba(60, 60, 60, 0.95);
        border: 1px solid rgba(212, 175, 55, 0.5);
    }

    #slide-12 .cert-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    #slide-12 .cert-item {
        padding: 0.75rem;
    }
    #slide-12 .cert-item-name {
        font-size: 0.85rem;
    }
    #slide-12 .history-box-lg {
        padding: 1.25rem;
    }

    /* Slide 13 */
    #slide-13 .slide-content,
    #slide-13 .slide-content > div {
        overflow-x: clip !important;
        max-width: 100%;
    }

    #slide-13 div[style*="display: grid"][style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: stretch !important;
        grid-template-columns: unset !important;
    }

    #slide-13 div[style*="width: 2px"] {
        display: none !important;
    }
    #slide-13 .card {
        max-width: 100%;
        width: 100%;
    }

    .title-tag {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    .gold-divider {
        width: 80px;
        height: 3px;
        margin: 1.5rem auto;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .audio-play-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .audio-icon,
    .audio-icon-playing {
        width: 16px;
        height: 16px;
    }

    /* Slide-darker on mobile */
    .slide-darker {
        background: #000000;
        background-color: #000000;
    }
}

/* ===== RESPONSIVE: SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
    .slide {
        padding-top: calc(var(--nav-h, 74px) + 90px);
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 5.5rem;
    }

    .slide--no-tabs {
        padding-top: calc(var(--nav-h, 74px) + 28px);
    }

    .slide .slide-actions {
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
        padding: 0.4rem 0.65rem;
        gap: 0.5rem;
    }

    .arrow-nav {
        bottom: 0.75rem;
        padding: 0.35rem 0.65rem;
        gap: 0.4rem;
    }

    .arrow-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    .quote-block {
        padding: 1.25rem;
    }

    #slide-11 div[style*="display: flex"][style*="flex-wrap: wrap"] > div {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.75rem !important;
    }

    .audio-play-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .audio-icon,
    .audio-icon-playing {
        width: 14px;
        height: 14px;
    }

    .side-slide-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
}
