/* === Design tokens === */
:root {
    --navy: #0b1b3a;
    --navy-light: #1a2f59;
    --red: #f25555;
    --white: #ffffff;
    --gold: #f5c878;
    --slate: #050d1f;
    --surface: #101c32;
    --surface-alt: #182745;
    --text: #eef2ff;
    --muted: #c0c9df;
}

/* === Base === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    background: var(--slate);
    color: var(--text);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

a,
p,
li {
    color: var(--muted);
    font-size: 1.02rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
}

strong {
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
}

/* === Layout === */
main {
    padding: 2rem clamp(1rem, 4vw, 4rem) 4rem clamp(1rem, 8vw, 10rem);
    max-width: 1200px;
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    background: linear-gradient(90deg, rgba(245, 200, 120, 0.14), transparent);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
}

.section {
    margin: 4rem 0;
}

.section-header h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.6rem);
    margin-top: 0;
    color: var(--text);
}

.section-header p {
    color: var(--muted);
}

/* === Hero === */
.hero {
    padding-top: 4rem;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    margin: 0.5rem 0 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.4fr) minmax(260px, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    margin: 0.2rem 0 0.75rem;
    color: var(--text);
    letter-spacing: 0.02em;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 24px rgba(245, 200, 120, 0.14);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.hero-logo {
    display: block;
    width: clamp(180px, 42vw, 240px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.hero-visual-horizontal {
    align-self: stretch;
}

.logo-tile {
    display: grid;
    place-items: center;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: hidden;
}

.logo-tile img {
    width: clamp(240px, 70vw, 420px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.hero-statement-box {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    color: var(--text);
    font-weight: 650;
    margin: 0.5rem 0 1rem;
    letter-spacing: 0.04em;
}


.hero-subtext {
    font-size: 1.1rem;
    max-width: 650px;
    color: var(--muted);
}

.hero-note,
.donor-note {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(245, 200, 120, 0.12);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.8rem;
}

.donor-note {
    display: block;
    margin-bottom: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.timeline .step {
    background: linear-gradient(145deg, #142446, #101c32);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.timeline .step p {
    color: var(--muted);
}

.timeline .step span {
    display: inline-block;
    font-weight: 700;
    color: #050d1f;
    background: var(--gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-bottom: 0.5rem;
}

/* === Cards === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: linear-gradient(145deg, var(--surface), var(--surface-alt));
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.card p,
.card li {
    color: var(--muted);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.value-card ul {
    padding-left: 1.2rem;
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(245, 200, 120, 0.14);
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.icon-badge:empty {
    display: none;
}


.donor-opps {
    margin-top: 1.5rem;
}

.muted-text {
    color: var(--muted);
}

.engage-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.card ul {
    padding-left: 1.2rem;
}

.card li {
    margin-bottom: 0.4rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-card .course-image {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.course-card .course-summary {
    margin: 0;
}

.course-card .detail-link {
    align-self: flex-start;
}

.mini-cases {
    margin-top: 1.5rem;
}

.mini-cases-toggle {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(15, 181, 168, 0.08));
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mini-cases-toggle span:first-child {
    color: var(--gold);
    font-weight: 800;
}

.mini-cases-toggle .mini-cases-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.mini-cases-toggle[aria-expanded="true"] .mini-cases-icon {
    transform: rotate(-135deg);
}

.mini-cases-body[hidden] {
    display: none;
}

.mini-cases h3 {
    margin: 0 0 0.75rem;
}

.course-points {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.course-points li {
    margin: 0;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 0.9rem;
    white-space: normal;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn.primary {
    color: var(--text);
    background: linear-gradient(120deg, #f67f7f, #f9ae85);
    box-shadow: 0 12px 24px rgba(246, 127, 127, 0.25);
}

.btn.secondary {
    color: var(--text);
    background: linear-gradient(120deg, #121f3b, #1d2e52);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn.slim {
    margin-top: 1rem;
    padding: 0.7rem 1.4rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.external-icon {
    font-size: 0.85em;
    margin-left: 0.35rem;
    opacity: 0.75;
    display: inline-flex;
    align-items: center;
}

.presentation-preview {
    margin-top: 1rem;
}

.budget-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.budget-cards .card {
    text-align: center;
    color: var(--text);
}

.budget-cards .figure {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0.5rem 0 0;
}

.budget-cards .highlight {
    border: 1px solid var(--gold);
    box-shadow: 0 12px 32px rgba(245, 200, 120, 0.3);
}

.donor-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.donor-chart {
    margin-top: 2rem;
}

.chart-intro {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.chart-row {
    display: grid;
    grid-template-columns: 1.1fr 2fr auto;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.chart-label {
    font-weight: 600;
    color: var(--text);
}

.chart-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    height: 12px;
    position: relative;
}

.chart-track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(217, 164, 65, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.chart-fill {
    display: block;
    height: 100%;
    background: linear-gradient(120deg, var(--red), #f45a4a);
    border-radius: inherit;
    width: 0;
    transition: width 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.chart-value {
    font-weight: 600;
    color: var(--gold);
}

.chart-row.active .chart-track::after {
    opacity: 0.4;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.kpi-card {
    text-align: center;
    padding: 1.4rem;
    border-radius: 16px;
    background: linear-gradient(160deg, #121f38, #0b1325);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.kpi-value {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
}

.kpi-label {
    margin: 0.5rem 0 0;
    font-weight: 600;
    color: var(--text);
}

.detail-link {
    margin-top: 1rem;
}

.impact-text {
    max-width: 720px;
    color: var(--muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.role {
    color: var(--gold);
    font-weight: 600;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-form label {
    font-weight: 600;
    display: block;
    margin-top: 1rem;
}

.contact-info a {
    color: var(--gold);
}


.contact-photo {
    width: 100%;
    display: block;
    margin-top: 1rem;
    border-radius: 12px;
    max-height: 240px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b1325;
    color: var(--text);
    margin-top: 0.4rem;
    font-family: inherit;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 1px rgba(242, 85, 85, 0.35);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #62709a;
}

.contact-form button {
    margin-top: 1.5rem;
}

.footer {
    background: #050d1f;
    color: var(--muted);
    text-align: center;
    padding: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: block;
    width: 130px;
    max-width: 40%;
    margin: 0 auto 0.75rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.footer-links {
    margin-top: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer a {
    color: var(--gold);
}

/* === Navigation === */
.side-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(5, 13, 31, 0.9);
    padding: 0.8rem;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 50;
}

.side-nav a {
    color: var(--muted);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.side-nav a.active {
    background: linear-gradient(120deg, #f67f7f, #f9ae85);
    color: var(--text);
    transform: translateX(-4px);
    box-shadow: 0 10px 24px rgba(246, 127, 127, 0.25);
}

.side-nav a:hover {
    background: rgba(242, 85, 85, 0.2);
    color: var(--text);
    transform: translateX(-2px);
}

.mobile-bar {
    display: none;
    background: #070f23;
    color: var(--text);
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 60;
}

.menu-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    border-radius: 8px;
    padding: 0.2rem 0.6rem;
    font-size: 1.1rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #0b1325;
    position: sticky;
    top: 3rem;
    z-index: 55;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text);
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Utilities === */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Course detail layout */
.course-detail {
    display: none;
    padding-bottom: 4rem;
}

.detail-hero {
    background-image: linear-gradient(160deg, rgba(11, 27, 58, 0.8), rgba(11, 27, 58, 0.4)), var(--detail-hero-image, url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=60"));
    background-size: cover;
    background-position: center;
    border-radius: 0 0 40px 40px;
    padding: 4rem clamp(1.5rem, 6vw, 6rem);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.detail-overlay {
    max-width: 760px;
}

.detail-lede {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    color: var(--white);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.detail-note {
    font-weight: 600;
    color: var(--white);
}

.detail-back {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.detail-body {
    padding: clamp(1rem, 6vw, 4rem);
    max-width: 1100px;
    margin: 0 auto;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.meta-card {
    background: linear-gradient(145deg, #0b1b3a, #162b54);
    color: var(--white);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.meta-icon {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.assurance-header {
    margin: 1.2rem 0 0.5rem;
}

.meta-sub {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.kpi-meta {
    align-items: stretch;
}

.verification-card {
    margin-top: 1rem;
}

.verification-head h3 {
    margin: 0 0 0.2rem;
}

.verify-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.verify-step {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.verify-badge {
    display: inline-block;
    background: rgba(245, 200, 120, 0.14);
    color: var(--gold);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.dqa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.donut {
    width: 100%;
    max-width: 140px;
    margin-top: 0.6rem;
}

.donut-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.donut-fill {
    fill: none;
    stroke: var(--gold);
    stroke-linecap: round;
    stroke-width: 10;
    stroke-dasharray: 0 314;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 1s ease, stroke-dashoffset 1s ease;
    opacity: 0.9;
}

.donut-text {
    fill: var(--text);
    font-size: 0.9rem;
    text-anchor: middle;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.accordion-item {
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    background: var(--surface);
    overflow: hidden;
}

.accordion-toggle {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text);
}

.accordion-toggle .chevron {
    width: 1rem;
    height: 1rem;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] .chevron {
    transform: rotate(-135deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
    color: var(--muted);
    display: block;
}

.accordion-content.open {
    padding-bottom: 1.5rem;
    max-height: 2000px;
}

.accordion-content ul {
    padding-left: 1.2rem;
}

.accordion-content p {
    margin-top: 0.6rem;
    color: var(--muted);
}

.pulse-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pulse-list li {
    position: relative;
    padding-left: 1.6rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.pulse-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 200, 120, 0.6);
}

.pulse-list li.list-visible {
    opacity: 1;
    transform: translateX(0);
}

.assurance-strip {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.5rem;
}

.assurance-item .pill {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.detail-cta {
    margin-top: 1.5rem;
    text-align: right;
}

body.detail-mode {
    background: var(--slate);
}

body.detail-mode main,
body.detail-mode .side-nav,
body.detail-mode .mobile-bar,
body.detail-mode .mobile-menu {
    display: none;
}

body.detail-mode .course-detail {
    display: block;
}

.course-detail.hidden {
    display: none !important;
}


@media (max-width: 960px) {
    main {
        padding: 1rem 1rem 3rem;
    }

    .side-nav {
        display: none;
    }

    .mobile-bar {
        display: flex;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 0.25rem;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        order: 0;
        text-align: left;
    }

    .hero-logo {
        width: clamp(100px, 45vw, 140px);
        height: auto;
    }

    .hero h1 {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-logo {
        width: clamp(150px, 60vw, 200px);
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .chart-row {
        grid-template-columns: 1fr;
    }

    .chart-track {
        width: 100%;
    }

    .chart-value {
        justify-self: flex-start;
    }

    .detail-hero {
        border-radius: 0 0 24px 24px;
        padding: 3rem 1.2rem;
    }

    .detail-tags {
        flex-direction: column;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }

    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .donut-fill,
    .chart-fill,
    .mini-cases-toggle .mini-cases-icon,
    .accordion-toggle .chevron,
    .btn {
        transition: none;
    }
}


/* --- Trainer App Page Styles --- */
.trainer-page-container {
    max-width: 600px;
    margin: 4rem auto;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.trainer-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.trainer-page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.trainer-page-header p {
    color: var(--muted);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--gold);
}

.trainer-form label {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.trainer-form input,
.trainer-form select,
.trainer-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.2s;
}

.trainer-form input:focus,
.trainer-form select:focus,
.trainer-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.trainer-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.trainer-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--gold);
    flex-shrink: 0;
}

.trainer-form .checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 400;
}

.trainer-form button[type="submit"] {
    width: 100%;
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid #059669;
}

.form-feedback.error {
    display: block;
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid #e11d48;
}

/* Honeypot */
.trainer-website-field {
    display: none !important;
}
