/* ============================================================
   YOLAINE ROUSSEAU — SITE STYLES
   Shared stylesheet for all secondary pages.
   Mirrors the conventions of index.html.
   ============================================================ */

/* --- CSS Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Guard against transient horizontal scroll from off-screen reveal
   transforms (.reveal-left/-right translate ±32px before they animate
   in). `clip` keeps overflow-y visible, so vertical scrolling and
   scroll-margin-top anchors are unaffected. */
html { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in.visible,
    .lite-yt,
    .expertise-card,
    .gallery-item,
    .video-card,
    .date-card,
    .subject-card,
    .cycle-step,
    .testimonial-card,
    .news-entry,
    .btn,
    nav,
    .nav-links .dropdown {
        transition: none !important;
        animation: none !important;
    }
}
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fdfdfd;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography & Refined Color Palette --- */
:root {
    --color-primary: #FF7700;
    --color-dark: #1A2E42;
    --color-light: #FFFFFF;
    --color-bg-light: #F7FBFF;
    --color-nature: #86C166;
}
h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--color-dark);
}
p {
    margin-bottom: 15px;
}

/* --- Animation (Fade-in) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- Navigation (Sticky, Light, Modern) --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-dark);
}
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
    min-width: 44px;
    min-height: 44px;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--color-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
nav.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
nav.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
nav.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}
.nav-links > li {
    margin-left: 18px;
    position: relative;
}
.nav-links a {
    color: var(--color-dark);
    font-weight: 600;
    position: relative;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-links > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}
.dropdown-caret {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.has-dropdown:hover .dropdown-caret,
.has-dropdown:focus-within .dropdown-caret {
    transform: rotate(180deg);
}

/* --- Dropdown menu --- */
.nav-links .dropdown {
    list-style: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: var(--color-light);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-radius: 12px;
    min-width: 270px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    border-top: 3px solid var(--color-primary);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-links .dropdown li {
    margin: 0;
}
.nav-links .dropdown a {
    display: block;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-links .dropdown a::after {
    display: none;
}
.nav-links .dropdown a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

/* --- Page hero (smaller than home hero) --- */
.page-hero {
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    background-image: linear-gradient(135deg, rgba(26,46,66,0.85) 0%, rgba(26,46,66,0.55) 100%), url('header_yolaine_rousseau.webp');
    background-size: cover;
    background-position: center;
    color: var(--color-light);
}
.page-hero::before {
    display: none;
}
.page-hero .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--color-light);
}
.page-hero .hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(255, 119, 0, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.page-hero .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 auto 30px auto;
    max-width: 800px;
    color: rgba(255,255,255,0.92);
}

/* --- Buttons (Modern/Rounded) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 15px;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #E56A00;
    box-shadow: 0 10px 20px rgba(255, 119, 0, 0.4);
}
.btn-secondary {
    background-color: var(--color-nature);
    color: var(--color-light);
    border: none;
    margin-left: 10px;
}
.btn-secondary:hover {
    background-color: #75a857;
    transform: translateY(-3px);
}
.btn-ghost {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}
.btn-ghost:hover {
    background: var(--color-dark);
    color: var(--color-light);
    transform: translateY(-3px);
}

/* --- Section Styling --- */
section {
    padding: 70px 0;
    scroll-margin-top: 90px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
}
.bg-light {
    background-color: var(--color-light);
}
.bg-alt {
    background-color: var(--color-bg-light);
}

/* --- Callout/Quote --- */
.callout {
    background-color: #e8f6f0;
    border-left: 5px solid var(--color-nature);
    padding: 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: #2a4f34;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
}

/* --- Expertise / Card grid --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.expertise-card {
    background: var(--color-light);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.expertise-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.expertise-card i,
.expertise-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    display: inline-block;
}
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.link-card .card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.link-card .card-link i {
    font-size: 0.85rem;
    margin-left: 5px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    margin-bottom: 0;
    display: inline-block;
}
.link-card:hover .card-link i {
    transform: translateX(5px);
}

/* --- Testimonial cards --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    background: var(--color-bg-light);
    padding: 35px;
    border-radius: 12px;
    border-top: 4px solid var(--color-nature);
    text-align: left;
}
.testimonial-card i {
    font-size: 1.8rem;
    color: var(--color-nature);
    margin-bottom: 15px;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #2c3e50;
}
.testimonial-author {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.9rem;
}

/* --- Mission / Activism style lists --- */
.mission-list {
    list-style: none;
    padding-left: 0;
    max-width: 900px;
    margin: 0 auto;
}
.mission-list li {
    margin-bottom: 18px;
    padding-left: 32px;
    position: relative;
    font-size: 1.05rem;
}
.mission-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-nature);
    position: absolute;
    left: 0;
    top: 4px;
}

/* --- Generic content lists used in course pages --- */
.content-list {
    list-style: none;
    padding-left: 0;
    max-width: 900px;
    margin: 0 auto;
}
.content-list > li {
    background: var(--color-light);
    padding: 18px 24px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.content-list > li:hover {
    transform: translateX(4px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}
.content-list .item-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* --- Course / chapter blocks --- */
.chapter-block {
    background: var(--color-light);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    border-top: 4px solid var(--color-primary);
}
.chapter-block.alt {
    border-top-color: var(--color-nature);
}
.chapter-block h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chapter-block h3 i {
    color: var(--color-primary);
    font-size: 1.4rem;
}
.chapter-block.alt h3 i {
    color: var(--color-nature);
}
.chapter-block ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}
.chapter-block ul li {
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px dashed #eee;
}
.chapter-block ul li:last-child {
    border-bottom: none;
}
.chapter-block ul li::before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 11px;
}
.chapter-block.alt ul li::before {
    color: var(--color-nature);
}

/* --- Subject grid (used on course landing pages) --- */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.subject-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    border-top: 4px solid var(--color-primary);
}
.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.subject-card i {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.subject-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.subject-card p {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 0;
}
.subject-card.alt {
    border-top-color: var(--color-nature);
}
.subject-card.alt i {
    color: var(--color-nature);
}

/* --- Tag --- */
.tag {
    display: inline-block;
    background: var(--color-dark);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.tag.tag-primary { background: var(--color-primary); }
.tag.tag-nature { background: var(--color-nature); }

/* --- Photo gallery --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 40px;
}
.gallery-item {
    background: #ccc;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 30px 18px 16px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* --- Video grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 30px;
}
.video-card {
    background: var(--color-light);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    padding: 22px;
    border-left: 4px solid var(--color-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}
.video-card i.fa-play-circle {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.video-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-dark);
}

/* --- Lazy-loaded YouTube embeds (lite-youtube pattern) --- */
.video-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 28px;
    margin-top: 30px;
}
.lite-yt {
    background-color: #000;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: block;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lite-yt:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.lite-yt::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}
.lite-yt:hover::before { opacity: 1; }
.lite-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 56px;
    background-color: rgba(255, 119, 0, 0.92);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.25s ease;
    z-index: 2;
}
.lite-yt:hover .lite-yt-play {
    background-color: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.08);
}
.lite-yt-play::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 18px solid var(--color-light);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 5px;
}
.lite-yt-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--color-light);
    padding: 18px 18px 16px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    z-index: 1;
}
.lite-yt-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 119, 0, 0.92);
    color: var(--color-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}
.lite-yt iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.lite-yt.activated::before,
.lite-yt.activated .lite-yt-play,
.lite-yt.activated .lite-yt-title,
.lite-yt.activated .lite-yt-badge {
    display: none;
}

/* Featured video — large hero embed */
.featured-video {
    max-width: 920px;
    margin: 0 auto 40px auto;
}
.featured-video .lite-yt {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.featured-video .lite-yt-play {
    width: 96px;
    height: 68px;
}
.featured-video .lite-yt-title {
    font-size: 1.1rem;
    padding: 24px 22px 22px 22px;
}

/* --- Life cycle stages --- */
.cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 40px;
}
.cycle-step {
    background: var(--color-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
    position: relative;
}
.cycle-step .step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.cycle-step h3 {
    font-size: 1.05rem;
    margin-top: 14px;
    margin-bottom: 8px;
    color: var(--color-dark);
}
.cycle-step p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

/* --- Contact / form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: stretch;
}
.contact-info-card {
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--color-primary);
}
.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.contact-info-card .info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.contact-info-card .info-row i {
    color: var(--color-primary);
    margin-top: 4px;
    width: 22px;
    text-align: center;
}
.contact-info-card .social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}
.contact-info-card .social-row a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
.contact-info-card .social-row a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}
.contact-form {
    background: var(--color-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.contact-form .form-row {
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e6ec;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background: var(--color-bg-light);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-light);
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* --- Global focus-visible for all interactive elements --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.lite-yt:focus-visible,
.lite-yt-play:focus-visible,
.subject-card:focus-visible,
.expertise-card:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 6px;
}
.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* --- News list --- */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}
.news-entry {
    display: flex;
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}
.news-entry:last-child {
    border-bottom: none;
}
.news-date-block {
    flex-shrink: 0;
    width: 110px;
    text-align: center;
    background: var(--color-bg-light);
    border-radius: 10px;
    padding: 12px 8px;
    border-top: 3px solid var(--color-primary);
}
.news-date-block .news-day {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.news-date-block .news-month {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-dark);
    margin-top: 4px;
}
.news-date-block .news-year {
    font-size: 0.78rem;
    color: #666;
    margin-top: 2px;
}
.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.news-content .news-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}
.news-content .news-meta .news-tag {
    display: inline-block;
    background: var(--color-bg-light);
    color: var(--color-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 8px;
}

/* --- Accomplishment row (used on film & event pages) --- */
.accomplishment {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.accomplishment > * {
    flex: 1;
    min-width: min(100%, 280px);
}
.accomplishment img {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* --- Section lead (centered intro paragraph) --- */
.section-lead {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* --- Footer --- */
footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}
footer a {
    color: #ccc;
    text-decoration: underline;
}
footer a:hover {
    color: var(--color-primary);
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: var(--color-bg-light);
    padding: 18px 0;
    margin-top: 90px;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb li::after {
    content: "›";
    font-family: "Font Awesome 6 Free", "Montserrat", sans-serif;
    font-weight: 700;
    margin-left: 8px;
    color: #999;
}
.breadcrumb li:last-child::after {
    display: none;
}
.breadcrumb a {
    color: var(--color-primary);
    font-weight: 600;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb li:last-child {
    color: var(--color-dark);
    font-weight: 600;
}

/* --- Responsive Design --- */
@media(max-width: 1100px) {
    .nav-links > li {
        margin-left: 12px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}

@media(max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    nav .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 5px;
        padding: 10px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        align-items: stretch;
    }
    nav.menu-open .nav-links {
        display: flex;
            max-height: calc(100vh - 80px);
            max-height: calc(100dvh - 80px);
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
    }
    .nav-links > li {
        margin: 0;
    }
    .nav-links > li > a {
        padding: 12px 22px;
        display: block;
        width: 100%;
        font-size: 0.95rem;
    }
    .nav-links .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--color-primary);
        border-radius: 0;
        margin: 0 22px 12px 22px;
        padding: 6px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .has-dropdown.open-mobile .dropdown {
        max-height: 800px;
    }
    .has-dropdown > a {
        justify-content: space-between;
    }
    .nav-links .dropdown a {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    .page-hero h1 {
        font-size: 2.5rem;
    }
    .page-hero .hero-subtitle {
        font-size: 1.05rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .news-entry {
        flex-direction: column;
        gap: 12px;
    }
    .news-date-block {
        width: 100%;
        max-width: 200px;
    }
}

/* ============================================================
   PREMIUM ENHANCEMENTS — additive layer (appended)
   Reuses existing tokens: --color-primary #FF7700,
   --color-dark #1A2E42, --color-nature #86C166,
   --color-bg-light #F7FBFF, font Montserrat.
   Nothing below overrides existing class behaviour; it only
   adds new tokens, new classes, and refined hover states.
   All motion is wrapped in prefers-reduced-motion: no-preference.
   ============================================================ */

/* --- (2) New design tokens: gradients + shadow scale --- */
:root {
    --grad-monarch: linear-gradient(135deg, #FF8A1E 0%, #FF7700 45%, #E25C00 100%);
    --grad-nature: linear-gradient(135deg, #9FD27E 0%, #86C166 50%, #5FA046 100%);
    --grad-dark: linear-gradient(135deg, #22405C 0%, #1A2E42 55%, #122336 100%);
    --grad-dark-monarch: linear-gradient(125deg, #1A2E42 0%, #1F3950 55%, #3A2A1C 100%);

    --shadow-sm: 0 1px 3px rgba(16, 33, 51, 0.08), 0 1px 2px rgba(16, 33, 51, 0.06);
    --shadow-md: 0 6px 18px rgba(16, 33, 51, 0.10), 0 2px 6px rgba(16, 33, 51, 0.06);
    --shadow-lg: 0 18px 40px rgba(16, 33, 51, 0.14), 0 6px 14px rgba(16, 33, 51, 0.08);
    --shadow-xl: 0 30px 70px rgba(16, 33, 51, 0.22), 0 12px 24px rgba(16, 33, 51, 0.12);

    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Reserve vertical room so the fixed nav's progress bar never overlaps content */
    --nav-h: 64px;
}

/* --- (1) Glassmorphism sticky nav: stronger blur + saturation --- */
/* Enhances the existing fixed nav without changing its layout. */
nav {
    background-color: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(26, 46, 66, 0.06);
    box-shadow: 0 4px 24px rgba(16, 33, 51, 0.05);
}
@media (prefers-reduced-motion: no-preference) {
    nav {
        transition: padding 0.35s var(--ease-out-soft),
                    background-color 0.35s var(--ease-out-soft),
                    box-shadow 0.35s var(--ease-out-soft),
                    backdrop-filter 0.35s var(--ease-out-soft);
        will-change: padding, background-color;
    }
}
/* Shrink-on-scroll state (toggled by JS) */
nav.scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 8px 30px rgba(16, 33, 51, 0.10);
}
@media (prefers-reduced-motion: no-preference) {
    nav.scrolled .logo {
        transform: scale(0.94);
        transition: transform 0.35s var(--ease-out-soft);
    }
    .logo {
        transition: transform 0.35s var(--ease-out-soft);
        transform-origin: left center;
    }
}

/* --- (1) Thin scroll-progress bar pinned to the bottom edge of the nav --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 1001;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: var(--grad-monarch);
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.55);
    border-radius: 0 3px 3px 0;
}
@media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
        transition: transform 0.08s linear;
    }
}

/* --- (3) Multi-column mega-menu --------------------------------- */
/* Lives inside the existing .has-dropdown li. On desktop it shows via
   the SAME :hover / :focus-within rules already defined for .dropdown,
   so no JS change is required for open/close. We only style layout. */
.nav-links .mega-panel {
    list-style: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(var(--mega-cols, 3), minmax(190px, 1fr));
    gap: 6px 26px;
    background: var(--color-light);
    padding: 26px 30px;
    border-radius: 16px;
    border-top: 3px solid var(--color-primary);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 1002;
}
@media (prefers-reduced-motion: no-preference) {
    .nav-links .mega-panel {
        transition: opacity 0.28s var(--ease-out-soft),
                    transform 0.28s var(--ease-out-soft),
                    visibility 0.28s var(--ease-out-soft);
    }
}
/* Subtle pointer notch */
.nav-links .mega-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 36px;
    width: 14px;
    height: 14px;
    background: var(--color-light);
    border-top: 1px solid rgba(26, 46, 66, 0.06);
    border-left: 1px solid rgba(26, 46, 66, 0.06);
    transform: rotate(45deg);
}
.has-dropdown:hover .mega-panel,
.has-dropdown:focus-within .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mega-col-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--color-primary);
    padding: 0 12px 8px 12px;
    margin: 4px 0 6px 0;
    border-bottom: 1px solid rgba(26, 46, 66, 0.08);
    white-space: nowrap;
}
.mega-col:nth-child(2) .mega-col-title { color: var(--color-nature); }
.mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-dark);
    border-radius: 9px;
    white-space: nowrap;
    position: relative;
}
.nav-links .mega-link::after { display: none; } /* cancel the underline pseudo from nav anchors */
.mega-link i {
    font-size: 0.85rem;
    color: var(--color-primary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.mega-col:nth-child(2) .mega-link i { color: var(--color-nature); }
@media (prefers-reduced-motion: no-preference) {
    .mega-link {
        transition: background-color 0.2s ease, color 0.2s ease,
                    transform 0.2s var(--ease-out-soft), padding-left 0.2s ease;
    }
}
.mega-link:hover,
.mega-link:focus-visible {
    background: var(--color-bg-light);
    color: var(--color-primary);
}
@media (prefers-reduced-motion: no-preference) {
    .mega-link:hover { transform: translateX(3px); }
}
.mega-link .mega-link-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #7c8a99;
    margin-top: 1px;
}

/* --- (4) Scroll-reveal utility (+ staggered children) ----------- */
.reveal {
    opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s var(--ease-out-soft),
                    transform 0.7s var(--ease-out-soft);
        will-change: opacity, transform;
    }
    .reveal.in-view {
        opacity: 1;
        transform: none;
    }
    /* Directional variants */
    .reveal.reveal-left  { transform: translateX(-32px); }
    .reveal.reveal-right { transform: translateX(32px); }
    .reveal.reveal-scale { transform: scale(0.94); }
    .reveal.reveal-left.in-view,
    .reveal.reveal-right.in-view,
    .reveal.reveal-scale.in-view { transform: none; }

    /* Staggered children: each direct child eases in after its sibling.
       Tune base delay via --stagger (default 90ms) on the container. */
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.6s var(--ease-out-soft),
                    transform 0.6s var(--ease-out-soft);
    }
    .reveal-stagger.in-view > * {
        opacity: 1;
        transform: none;
    }
    .reveal-stagger.in-view > *:nth-child(1)  { transition-delay: calc(var(--stagger, 90ms) * 0); }
    .reveal-stagger.in-view > *:nth-child(2)  { transition-delay: calc(var(--stagger, 90ms) * 1); }
    .reveal-stagger.in-view > *:nth-child(3)  { transition-delay: calc(var(--stagger, 90ms) * 2); }
    .reveal-stagger.in-view > *:nth-child(4)  { transition-delay: calc(var(--stagger, 90ms) * 3); }
    .reveal-stagger.in-view > *:nth-child(5)  { transition-delay: calc(var(--stagger, 90ms) * 4); }
    .reveal-stagger.in-view > *:nth-child(6)  { transition-delay: calc(var(--stagger, 90ms) * 5); }
    .reveal-stagger.in-view > *:nth-child(7)  { transition-delay: calc(var(--stagger, 90ms) * 6); }
    .reveal-stagger.in-view > *:nth-child(8)  { transition-delay: calc(var(--stagger, 90ms) * 7); }
    .reveal-stagger.in-view > *:nth-child(9)  { transition-delay: calc(var(--stagger, 90ms) * 8); }
    .reveal-stagger.in-view > *:nth-child(n+10) { transition-delay: calc(var(--stagger, 90ms) * 9); }
}

/* --- (5) lite-yt shimmer skeleton ------------------------------ */
/* The existing .lite-yt sets a dark bg and shows the thumbnail image.
   Until JS adds .activated (iframe loaded) or .thumb-loaded
   (poster decoded), a soft animated shimmer fills the frame. */
@media (prefers-reduced-motion: no-preference) {
    .lite-yt::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(110deg,
            rgba(26, 46, 66, 0.55) 8%,
            rgba(54, 78, 102, 0.85) 18%,
            rgba(26, 46, 66, 0.55) 33%);
        background-size: 220% 100%;
        animation: lite-yt-shimmer 1.6s ease-in-out infinite;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.45s ease;
    }
    @keyframes lite-yt-shimmer {
        0%   { background-position: 150% 0; }
        100% { background-position: -50% 0; }
    }
}
/* Static fallback skeleton when motion is reduced */
@media (prefers-reduced-motion: reduce) {
    .lite-yt:not(.activated):not(.thumb-loaded)::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: rgba(26, 46, 66, 0.6);
        pointer-events: none;
    }
}
/* Hide the shimmer once the poster has decoded or the embed is live */
.lite-yt.thumb-loaded::after,
.lite-yt.activated::after {
    opacity: 0;
    animation: none;
    visibility: hidden;
}
/* Keep play button / title / badge above the shimmer layer */
.lite-yt-play   { z-index: 3; }
.lite-yt-title  { z-index: 3; }
.lite-yt-badge  { z-index: 3; }
.lite-yt::before { z-index: 2; }

/* --- (6) Refined hover micro-interactions ---------------------- */
@media (prefers-reduced-motion: no-preference) {
    /* Buttons: subtle sheen + spring lift. Reuses existing radius/colors. */
    .btn {
        position: relative;
        overflow: hidden;
        transition: transform 0.3s var(--ease-spring),
                    background-color 0.3s ease,
                    box-shadow 0.3s ease;
    }
    .btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 80%;
        height: 100%;
        background: linear-gradient(110deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 100%);
        transform: skewX(-20deg);
        pointer-events: none;
    }
    .btn:hover::before {
        transition: left 0.6s var(--ease-out-soft);
        left: 130%;
    }
    .btn:active { transform: translateY(-1px) scale(0.99); }

    /* Expertise cards: lift + accent top edge reveal */
    .expertise-card {
        position: relative;
        overflow: hidden;
        transition: transform 0.35s var(--ease-out-soft),
                    box-shadow 0.35s var(--ease-out-soft);
    }
    .expertise-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--grad-monarch);
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform 0.4s var(--ease-out-soft);
    }
    .expertise-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }
    .expertise-card:hover::after { transform: scaleX(1); }
    .expertise-card .card-icon,
    .expertise-card > i {
        transition: transform 0.4s var(--ease-spring);
    }
    .expertise-card:hover .card-icon,
    .expertise-card:hover > i {
        transform: translateY(-4px) scale(1.08);
    }

    /* Subject cards: lift + icon pop; keeps existing colored top border */
    .subject-card {
        transition: transform 0.35s var(--ease-out-soft),
                    box-shadow 0.35s var(--ease-out-soft);
    }
    .subject-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }
    .subject-card i {
        transition: transform 0.4s var(--ease-spring);
    }
    .subject-card:hover i {
        transform: scale(1.14) rotate(-4deg);
    }
}

/* Text links: animated underline that works with or without motion.
   Scoped so it never touches nav, buttons, cards, breadcrumb or footer. */
.rich-text a:not(.btn),
.section-lead a:not(.btn),
.callout a:not(.btn),
.news-content a:not(.btn) {
    color: var(--color-primary);
    font-weight: 600;
    background-image: linear-gradient(var(--color-primary), var(--color-primary));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    padding-bottom: 1px;
}
@media (prefers-reduced-motion: no-preference) {
    .rich-text a:not(.btn),
    .section-lead a:not(.btn),
    .callout a:not(.btn),
    .news-content a:not(.btn) {
        transition: background-size 0.35s var(--ease-out-soft), color 0.2s ease;
    }
}
.rich-text a:not(.btn):hover,
.section-lead a:not(.btn):hover,
.callout a:not(.btn):hover,
.news-content a:not(.btn):hover {
    background-size: 100% 2px;
    color: #E25C00;
}

/* --- (7) Tasteful gradient treatment for dark CTA sections ----- */
/* Opt-in classes; do not alter existing section backgrounds. */
.cta-dark,
section.cta-dark,
.bg-dark {
    position: relative;
    overflow: hidden;
    background: var(--grad-dark-monarch);
    color: var(--color-light);
    isolation: isolate;
}
/* Soft monarch + nature glows behind content */
.cta-dark::before,
.bg-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 80% at 85% 15%, rgba(255, 119, 0, 0.22), transparent 60%),
        radial-gradient(55% 70% at 10% 90%, rgba(134, 193, 102, 0.18), transparent 60%);
    pointer-events: none;
}
.cta-dark h1, .cta-dark h2, .cta-dark h3, .cta-dark h4,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--color-light);
}
.cta-dark p,
.bg-dark p {
    color: rgba(255, 255, 255, 0.86);
}
.cta-dark .section-title::after,
.bg-dark .section-title::after {
    background: var(--grad-monarch);
}
/* A clean ghost button variant that reads on dark gradients */
.cta-dark .btn-ghost,
.bg-dark .btn-ghost {
    color: var(--color-light);
    border-color: rgba(255, 255, 255, 0.6);
}
.cta-dark .btn-ghost:hover,
.bg-dark .btn-ghost:hover {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}

/* Optional gradient text accent (e.g. a stat number or eyebrow) */
.text-gradient {
    background: var(--grad-monarch);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary); /* fallback */
}

/* Animated counter presentation helper (optional wrapper) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}
.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}
.cta-dark .stat-num,
.bg-dark .stat-num { color: var(--color-light); }
.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6a7787;
}
.cta-dark .stat-label,
.bg-dark .stat-label { color: rgba(255,255,255,0.75); }

/* --- (3) Mega-menu: collapse to a nested accordion on mobile --- */
@media (max-width: 768px) {
    /* Re-flow the mega panel exactly like the existing .dropdown does on mobile */
    .nav-links .mega-panel {
        position: static;
        display: block;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--color-primary);
        border-radius: 0;
        margin: 0 22px 12px 22px;
        padding: 4px 0;
        max-height: 0;
        overflow: hidden;
        background: var(--color-bg-light);
    }
    @media (prefers-reduced-motion: no-preference) {
        .nav-links .mega-panel {
            transition: max-height 0.35s var(--ease-out-soft);
        }
    }
    .nav-links .mega-panel::before { display: none; }
    /* Reuse the existing .open-mobile toggle the nav JS already sets */
    .has-dropdown.open-mobile .mega-panel {
        max-height: none; overflow: visible;
    }
    .mega-col {
        border-bottom: 1px dashed rgba(26, 46, 66, 0.12);
        padding-bottom: 6px;
        margin-bottom: 4px;
    }
    .mega-col:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    .mega-col-title {
        padding: 12px 18px 6px 18px;
        border-bottom: none;
    }
    .mega-link {
        padding: 11px 18px;
        white-space: normal;
        min-height: 44px;
        box-sizing: border-box;
    }
    /* Nested accordion: collapse each column under its title.
       The nav JS toggles .open on a tapped .mega-col (see jsAdditions). */
    .mega-col.is-accordion .mega-col-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }
    .mega-col.is-accordion .mega-col-title::after {
        content: "\f078"; /* chevron-down */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.7rem;
        color: var(--color-primary);
    }
    @media (prefers-reduced-motion: no-preference) {
        .mega-col.is-accordion .mega-col-title::after {
            transition: transform 0.3s var(--ease-out-soft);
        }
    }
    .mega-col.is-accordion.open .mega-col-title::after {
        transform: rotate(180deg);
    }
    .mega-col.is-accordion .mega-col-links {
        max-height: 0;
        overflow: hidden;
    }
    @media (prefers-reduced-motion: no-preference) {
        .mega-col.is-accordion .mega-col-links {
            transition: max-height 0.3s var(--ease-out-soft);
        }
    }
    .mega-col.is-accordion.open .mega-col-links {
        max-height: 1600px;
    }
}

/* Honour reduced-motion for all the new interactive pieces too */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    nav,
    nav.scrolled .logo,
    .mega-panel,
    .mega-link,
    .reveal,
    .reveal-stagger > *,
    .btn,
    .btn::before,
    .expertise-card,
    .expertise-card::after,
    .subject-card,
    .subject-card i,
    .lite-yt::after {
        transition: none !important;
        animation: none !important;
    }
    .reveal,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ============================================================
   PORTAIL SUPPLEMENT — mega-menu link variants, accent balance,
   tablet layout, list resets. Appended after the design layer
   so it wins on equal specificity.
   ============================================================ */
.mega-col-links { display: flex; flex-direction: column; }

/* Balanced alternating column accent across the 4 columns
   (override the design layer's nth-child(2)-only green). */
.mega-col:nth-child(2) .mega-col-title { color: var(--color-primary); }
.mega-col:nth-child(2) .mega-link i    { color: var(--color-primary); }
.mega-col:nth-child(even) .mega-col-title { color: var(--color-nature); }
.mega-col:nth-child(even) .mega-link i    { color: var(--color-nature); }

/* Section heads inside a column (e.g. "Cours de physique") */
.mega-link-head {
    font-weight: 800;
    color: var(--color-dark);
    margin-top: 8px;
}
.mega-link-head:first-child { margin-top: 0; }
/* Prominent "hub" link */
.mega-link-hub {
    background: var(--color-bg-light);
    font-weight: 700;
    border: 1px solid rgba(26,46,66,0.06);
    margin-bottom: 4px;
}
.mega-link-hub:hover { background: #fff3e6; }
/* Outbound (pasyoscience.com) links read lighter */
.mega-link-out { color: #4a5765; font-weight: 500; }
.mega-link-out i { font-size: 0.68rem; opacity: 0.75; margin-left: 2px; }
/* Mega links must WRAP, never clip. Beat the base `.nav-links .dropdown a
   { white-space: nowrap }` (specificity 0,2,1) with a higher-specificity
   rule (0,3,1) so long labels (e.g. "Film « La légende du papillon »")
   wrap inside their column instead of overflowing the panel and being cut
   off behind the vertical scrollbar that the height-cap adds. */
.nav-links .dropdown a.mega-link {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Tablet: avoid an over-wide 4-col panel between 769–992px.
   The 2-col panel is tall (~1200px); cap it and let it scroll so the
   lower items are never stranded below the fold (it is position:absolute
   inside a fixed nav, so the page itself cannot scroll to them). */
@media (min-width: 769px) and (max-width: 992px) {
    .nav-links .mega-panel {
        --mega-cols: 2 !important;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}
/* Short viewports (laptops / small windows): same safeguard for the
   4-col desktop panel, which is ~634px tall and would otherwise clip. */
@media (min-width: 769px) and (max-height: 760px) {
    .nav-links .mega-panel {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Desktop safety: never let the panel exceed the viewport */
.nav-links .mega-panel { max-width: min(96vw, 1000px); }

/* Mobile: keep the Cloudflare Turnstile widget inside the contact card */
@media (max-width: 768px) {
    .contact-form { padding: 24px; }
}
@media (max-width: 400px) {
    .cf-turnstile { transform: scale(0.9); transform-origin: left top; }
}

/* Mobile responsive refinements (audit follow-up) */
@media (max-width: 768px) {
    .gallery-item .gallery-caption { opacity: 1; }
    a.tag { min-height: 44px; display: inline-flex; align-items: center; }
    .contact-info-card .social-row a { width: 44px; height: 44px; }
    .testimonial-grid { grid-template-columns: 1fr; }
}
