/* ==========================================================================
   MÈRE SOFIA 2025 - OCTOBER CMS 4 THEME STYLESHEET
   Responsive Grid & Flexbox Layout System matching Figma exact specs
   Figma Node: 4216:2235 (Accueil + photo 2)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Parkinsans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Figma Tokens */
    --color-bg-page: #F8F7FA;
    --color-surface-white: #FFFFFF;
    --color-text-primary: #212C4A;
    --color-text-dark: #0D0D0D;
    --color-text-light: #FFFFFF;
    --color-border-dark: #0D0D0D;

    /* Special Links & Brand Colors (Figma exact specs) */
    --color-special-yellow: #F09C10;
    --color-special-yellow-hover: #F6BA23;
    --color-special-yellow-active: #D4760B;

    --color-special-purple: #7D649D;
    --color-special-purple-hover: #A290C2;
    --color-special-purple-active: #685384;

    --color-special-red: #E25244;
    --color-special-red-hover: #F97370;
    --color-special-red-active: #BA1F1B;

    --color-special-blue: #4A72B8;
    --color-special-blue-hover: #6A8FD4;
    --color-special-blue-active: #385896;

    --color-special-black: #0D0D0D;
    --color-special-black-hover: #212C4A;
    --color-special-black-active: #0D0D0D;

    /* Layout Dimensions */
    --site-max-width: 1440px;
    --container-max-width: 1280px;
    --container-padding-desktop: 80px;
    --container-padding-tablet: 32px;
    --container-padding-mobile: 20px;

    /* Spacing & Gaps */
    --section-gap-desktop: 112px;
    --section-gap-tablet: 64px;
    --section-gap-mobile: 40px;

    /* Typography */
    --font-heading: 'Parkinsans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-page);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    padding-top: 117px; /* Account for fixed header height (117px) */
}

main {
    padding-top: 50px;
}

/* Site Wrapper & Main Grid Container */
.site-wrapper {
    width: 100%;
    min-height: calc(100vh - 117px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-page);
}

.site-container {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
}

/* ==========================================================================
   0. SPECIAL LINKS COMPONENT SET (Figma Node: 4402:2873)
   Variants: Type (link | button | button-filled), Color (yellow, purple, red, blue, black)
   States: default | hover | active
   ========================================================================== */
.special-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type = link (Text-only link) */
.special-link--link {
    font-size: 18px;
    line-height: 1.388; /* 25px / 18px */
    padding: 2px 4px;
}

.special-link--link.special-link--yellow {
    color: var(--color-text-dark);
}

.special-link--link.special-link--yellow:hover,
.special-link--link.special-link--yellow.state-hover {
    color: var(--color-special-yellow);
}

.special-link--link.special-link--yellow:active,
.special-link--link.special-link--yellow.state-active {
    color: var(--color-special-yellow-active);
}

.special-link--link.special-link--purple {
    color: var(--color-text-dark);
}

.special-link--link.special-link--purple:hover,
.special-link--link.special-link--purple.state-hover {
    color: var(--color-special-purple);
}

.special-link--link.special-link--purple:active,
.special-link--link.special-link--purple.state-active {
    color: var(--color-special-purple-active);
}

.special-link--link.special-link--red {
    color: var(--color-text-dark);
}

.special-link--link.special-link--red:hover,
.special-link--link.special-link--red.state-hover {
    color: var(--color-special-red);
}

.special-link--link.special-link--red:active,
.special-link--link.special-link--red.state-active {
    color: var(--color-special-red-active);
}

.special-link--link.special-link--blue {
    color: var(--color-text-dark);
}

.special-link--link.special-link--blue:hover,
.special-link--link.special-link--blue.state-hover {
    color: var(--color-special-blue);
}

.special-link--link.special-link--blue:active,
.special-link--link.special-link--blue.state-active {
    color: var(--color-special-blue-active);
}

.special-link--link.special-link--black {
    color: var(--color-text-dark);
}

.special-link--link.special-link--black:hover {
    color: var(--color-special-black-hover);
}

.special-link--link.special-link--black:active {
    color: var(--color-special-black-active);
}


/* Type = button (Outlined Pill Button) */
.special-link--button {
    height: 36px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 2px solid currentColor;
    font-size: 16px;
    line-height: 1.25; /* 20px / 16px */
    background-color: transparent;
}

.special-link--button.special-link--yellow {
    color: var(--color-special-yellow);
    border-color: var(--color-special-yellow);
}

.special-link--button.special-link--yellow:hover {
    color: var(--color-special-yellow-hover);
    border-color: var(--color-special-yellow-hover);
    transform: translateX(4px);
}

.special-link--button.special-link--yellow:active {
    color: var(--color-special-yellow-active);
    border-color: var(--color-special-yellow-active);
    transform: translateX(2px);
}

.special-link--button.special-link--purple {
    color: var(--color-special-purple);
    border-color: var(--color-special-purple);
}

.special-link--button.special-link--purple:hover {
    color: var(--color-special-purple-hover);
    border-color: var(--color-special-purple-hover);
    transform: translateX(4px);
}

.special-link--button.special-link--purple:active {
    color: var(--color-special-purple-active);
    border-color: var(--color-special-purple-active);
    transform: translateX(2px);
}

.special-link--button.special-link--red {
    color: var(--color-special-red);
    border-color: var(--color-special-red);
}

.special-link--button.special-link--red:hover {
    color: var(--color-special-red-hover);
    border-color: var(--color-special-red-hover);
    transform: translateX(4px);
}

.special-link--button.special-link--red:active {
    color: var(--color-special-red-active);
    border-color: var(--color-special-red-active);
    transform: translateX(2px);
}

.special-link--button.special-link--blue {
    color: var(--color-special-blue);
    border-color: var(--color-special-blue);
}

.special-link--button.special-link--blue:hover {
    color: var(--color-special-blue-hover);
    border-color: var(--color-special-blue-hover);
    transform: translateX(4px);
}

.special-link--button.special-link--blue:active {
    color: var(--color-special-blue-active);
    border-color: var(--color-special-blue-active);
    transform: translateX(2px);
}

.special-link--button.special-link--black {
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.special-link--button.special-link--black:hover {
    color: var(--color-special-black-hover);
    border-color: var(--color-special-black-hover);
    transform: translateX(4px);
}

.special-link--button.special-link--black:active {
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
    transform: translateX(2px);
}


/* Type = button-filled (Filled Pill Button) */
.special-link--button-filled {
    height: 50px;
    padding: 12px 24px;
    border-radius: 9999px;
    border: none;
    font-size: 18px;
    line-height: 1.388;
    color: var(--color-surface-white);
}

.special-link--button-filled.special-link--yellow {
    background-color: var(--color-special-yellow);
}

.special-link--button-filled.special-link--yellow:hover {
    background-color: var(--color-special-yellow-hover);
    transform: translateY(-2px);
}

.special-link--button-filled.special-link--yellow:active {
    background-color: var(--color-special-yellow-active);
    transform: translateY(0);
}

.special-link--button-filled.special-link--purple {
    background-color: var(--color-special-purple);
}

.special-link--button-filled.special-link--purple:hover {
    background-color: var(--color-special-purple-hover);
    transform: translateY(-2px);
}

.special-link--button-filled.special-link--purple:active {
    background-color: var(--color-special-purple-active);
    transform: translateY(0);
}

.special-link--button-filled.special-link--red {
    background-color: var(--color-special-red);
}

.special-link--button-filled.special-link--red:hover {
    background-color: var(--color-special-red-hover);
    transform: translateY(-2px);
}

.special-link--button-filled.special-link--red:active {
    background-color: var(--color-special-red-active);
    transform: translateY(0);
}

.special-link--button-filled.special-link--blue {
    background-color: var(--color-special-blue);
}

.special-link--button-filled.special-link--blue:hover {
    background-color: var(--color-special-blue-hover);
    transform: translateY(-2px);
}

.special-link--button-filled.special-link--blue:active {
    background-color: var(--color-special-blue-active);
    transform: translateY(0);
}

.special-link--button-filled.special-link--black {
    background-color: var(--color-text-dark);
}

.special-link--button-filled.special-link--black:hover {
    background-color: var(--color-special-black-hover);
    transform: translateY(-2px);
}

.special-link--button-filled.special-link--black:active {
    background-color: var(--color-text-dark);
    transform: translateY(0);
}


/* ==========================================================================
   1. NAVIGATION HEADER (Figma Node: 4402:3120 Closed & 4420:12171 Open)
   Fixed top header height: 117px | Background: #F8F7FA
   ========================================================================== */
.header-nav {
    width: 100%;
    height: 117px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-bg-page);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-nav__inner {
    width: 100%;
    height: 117px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 10vw, 170px);
    padding-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-text-dark);
}

.header-nav__logo {
    height: 45px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-nav__logo img,
.header-nav__logo svg {
    height: 100%;
    width: auto;
}

.header-nav__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 36px;
    flex-grow: 1;
}

.header-nav__primary-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 36px;
}

/* Action & Toggle Buttons */
.header-nav__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

/* Menu Toggle Button - Clean borderless burger & cross icon (Figma Nodes: 4402:2776 Closed & 4420:11967 Open) */
.btn-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-dark);
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.btn-menu-toggle:hover {
    background: transparent;
    color: var(--color-special-blue-active);
    opacity: 0.75;
}

.btn-menu-toggle:focus-visible {
    outline: 2px solid var(--color-text-dark);
    outline-offset: 4px;
    border-radius: 4px;
}

.btn-menu-toggle.is-open {
    background: transparent;
    color: var(--color-text-dark);
    border: none;
}

.btn-menu-toggle.is-open:hover {
    background: transparent;
    color: var(--color-special-blue-active);
    opacity: 0.75;
}

.btn-menu-toggle__icon {
    width: 24px;
    height: 24px;
    overflow: visible;
    flex-shrink: 0;
    display: block;
}

.btn-menu-toggle__icon line {
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: square;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform-origin: 12px 12px;
}

.btn-menu-toggle.is-open .icon-line-mid {
    opacity: 0;
}

.btn-menu-toggle.is-open .icon-line-top {
    transform: translateX(-4px) translateY(4px) rotate(45deg);
}

.btn-menu-toggle.is-open .icon-line-bottom {
    transform: translateX(-4px) translateY(-4px) rotate(-45deg)
}

/* ==========================================================================
   MEGA MENU DROPDOWN (Figma Specs: Node 4402:3120 Closed/Default & 4420:12171 Hover)
   3 Columns: "Nos prestations", "La fonda", "À vous de jouer"
   Side indicator bar + color accent hover behavior per brand item
   ========================================================================== */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-surface-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 24px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease;
    z-index: 999;
}

.mega-menu-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-menu-dropdown__inner {
    padding-top: 64px;
    padding-bottom: 72px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.mega-menu-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mega-menu-col__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.2;
}

/* Column Links Container (Column 1 & Column 2) */
.mega-menu-col__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 24px;
    position: relative;
}

.mega-menu-link {
    position: relative;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover segment overlay directly over the continuous vertical line */
.mega-menu-link::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-text-dark);
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Hover behaviors for Column 1 & 2 Links: Overlay Segment AND Text change color */
.mega-menu-link--yellow:hover::before {
    background-color: var(--color-special-yellow);
}

.mega-menu-link--yellow:hover {
    color: var(--color-special-yellow-hover);
}

.mega-menu-link--purple:hover::before {
    background-color: var(--color-special-purple);
}

.mega-menu-link--purple:hover {
    color: var(--color-special-purple-hover);
}

.mega-menu-link--red:hover::before {
    background-color: var(--color-special-red);
}

.mega-menu-link--red:hover {
    color: var(--color-special-red-hover);
}

.mega-menu-link--blue:hover::before {
    background-color: var(--color-special-blue);
}

.mega-menu-link--blue:hover {
    color: var(--color-special-blue-hover);
}

/* Column 3 Outlined Pill Buttons Container (With Continuous Vertical Line - Node 4402:3050 & 4402:3080) */
.mega-menu-col__pills {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-left: 24px;
    position: relative;
}

.mega-menu-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 2px solid var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
    background-color: var(--color-surface-white);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover segment overlay directly over the continuous vertical line for Column 3 pills */
.mega-menu-pill::before {
    content: '';
    position: absolute;
    left: -24px;
    top: -8px;
    bottom: -8px;
    width: 3px;
    background-color: var(--color-text-dark);
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Hover behaviors for Column 3 Pill Buttons: Accentuate border, text AND vertical line segment */
.mega-menu-pill--yellow:hover {
    border-color: var(--color-special-yellow);
    color: var(--color-special-yellow);
}

.mega-menu-pill--yellow:hover::before {
    background-color: var(--color-special-yellow);
}

.mega-menu-pill--purple:hover {
    border-color: var(--color-special-purple);
    color: var(--color-special-purple);
}

.mega-menu-pill--purple:hover::before {
    background-color: var(--color-special-purple);
}

.mega-menu-pill--red:hover {
    border-color: var(--color-special-red);
    color: var(--color-special-red);
}

.mega-menu-pill--red:hover::before {
    background-color: var(--color-special-red);
}

.mega-menu-pill--blue:hover {
    border-color: var(--color-special-blue);
    color: var(--color-special-blue);
}

.mega-menu-pill--blue:hover::before {
    background-color: var(--color-special-blue);
}

.mega-menu-pill--dark:hover {
    border-color: var(--color-special-black-hover);
    color: var(--color-special-black-hover);
}

.mega-menu-pill--dark:hover::before {
    background-color: var(--color-special-black-hover);
}

/* Header Backdrop Overlay */
.header-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.35);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.header-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ==========================================================================
   2. HERO SECTION (Figma Node: 4402:2641 - Group 50)
   2-Column Grid Layout: Content Left (#212C4A text), Square Image Right
   Dimensions: Width 1282px | Image: 629x629px | Font: Parkinsans & Outfit
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    background-color: var(--color-bg-page);
    padding-top: 40px;
    padding-bottom: 64px;
}

.hero-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    min-height: 629px;
}

.hero-section__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 629px;
    padding-right: 16px;
}

.hero-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 6.5vw, 118px);
    font-weight: 600;
    line-height: 0.98;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.hero-section__subtitle-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 628px;
}

.hero-section__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.8vw, 28px);
    font-weight: 500;
    line-height: 1.28;
    color: var(--color-text-primary);
    margin: 0;
}

.hero-section__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Button Variants from Design System */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    height: 36px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-pill--dark {
    background-color: var(--color-text-primary);
    color: #FFFBEB;
}

.btn-pill--dark:hover {
    background-color: #161E34;
}

.btn-pill--white {
    background-color: var(--color-surface-white);
    color: var(--color-text-primary);
}

.btn-pill--outline-white {
    background: transparent;
    border: 2px solid var(--color-surface-white);
    color: var(--color-text-light);
}

.btn-pill--outline-dark {
    background: transparent;
    border: 2px solid var(--color-text-primary);
    color: var(--color-text-primary);
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill--outline-dark:hover {
    background-color: var(--color-text-primary);
    color: var(--color-surface-white);
    border-color: var(--color-text-primary);
}

/* Hero Section Media (Right Column - Figma Node 4402:2642) */
.hero-section__media {
    width: 100%;
    height: 629px;
    overflow: hidden;
    position: relative;
    background-color: #E2E8F0;
}

.hero-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   3. 3-CARD GRID SECTION (Figma Specs: Node 4402:2680)
   Cards 1, 2, 3 Dev Mode Reproduction
   ========================================================================== */
.cards-grid-section {
    width: 100%;
    margin-top: 80px;
    margin-bottom: 96px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.card-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-surface-white);
    border-radius: 0px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Figma Card Drop Shadows per Accent Color */
.card--yellow {
    box-shadow: 0px 8px 30px rgba(68, 26, 4, 0.16);
}

.card--yellow:hover {
    box-shadow: 0px 14px 36px rgba(68, 26, 4, 0.24);
}

.card--purple {
    box-shadow: 0px 8px 30px rgba(55, 45, 72, 0.16);
}

.card--purple:hover {
    box-shadow: 0px 14px 36px rgba(55, 45, 72, 0.24);
}

.card--red {
    box-shadow: 0px 8px 30px rgba(69, 11, 10, 0.16);
}

.card--red:hover {
    box-shadow: 0px 14px 36px rgba(69, 11, 10, 0.24);
}

/* Upper Main Card Body (padding 40px 24px 32px 24px, gap 32px) */
.card-main {
    padding: 40px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 32px;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Header with Icon and Title (gap 12px) */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header__icon {
    width: 35px;
    height: 28px;
    color: var(--card-accent, #212C4A);
    display: inline-block;
    flex-shrink: 0;
}

.card-header__icon--mask {
    background-color: var(--card-accent, #212C4A);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.card-header__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: #212C4A;
    margin: 0;
}

/* Schedule Section (border-left 1px solid #212C4A, padding-left 16px, gap 2px) */
.card-schedule {
    display: flex;
    align-items: stretch;
    min-height: 98px;
    width: 100%;
}

.card-schedule__col {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    width: 100%;
    gap: 2px;
    border-left: 1px solid #212C4A;
    padding-left: 16px;
    padding-top: 2px;
    padding-bottom: 2px;
    box-sizing: border-box;
}

.card-schedule__label {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    color: #212C4A;
}

.card-schedule__desc,
.card-schedule__note,
.card-schedule__time {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
    color: #212C4A;
}

/* Contact Details (gap 16px) */
.card-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card--yellow .card-contact-item__icon {
    color: #F09C10;
}

.card--purple .card-contact-item__icon {
    color: #7D649D;
}

.card--red .card-contact-item__icon {
    color: #F04743;
}

.card-contact-item__icon {
    width: 14px;
    height: 15px;
    margin-top: 7px;
}

.card-contact-item__text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #212C4A;
}

/* Actions CTA (height 50px, radius 9999px, padding 10px 16px) */
.card-actions {
    display: flex;
    gap: 6px;
    padding-top: 8px;
}

.card-actions--split {
    display: flex;
    gap: 6px;
}

.card-actions--split .card-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 15px;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
    text-decoration: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.card-btn--dark {
    background-color: #212C4A;
    color: #ffffff;
}

.card--yellow .card-btn--dark:hover {
    background-color: #F09C10;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(240, 156, 16, 0.4);
}

.card--purple .card-btn--dark:hover {
    background-color: #7D649D;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(125, 100, 157, 0.4);
}

.card--red .card-btn--dark:hover {
    background-color: #F04743;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(240, 71, 67, 0.4);
}

/* Lower Card Footer (padding 24px, space-between) */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background-color: #ffffff;
    border-top: 1px solid rgba(33, 44, 74, 0.08);
    box-sizing: border-box;
    margin-top: auto;
}

.card-tags {
    display: flex;
    align-items: center;
}

.card-tags-svg {
    height: 106px;
    display: block;
}

.card-illustration {
    width: 150px;
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.card-illustration img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==========================================================================
   4. NEWS & CAROUSEL SECTION (Figma Node: 4216:2345 - Frame 47)
   Margin Top: 112px | Gap: 48px | Header Layout & Slide Track
   ========================================================================== */
.news-carousel-section {
    width: 100%;
    margin-top: var(--section-gap-desktop);
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.news-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}

.news-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 90px);
    font-weight: 600;
    line-height: 1.08;
    color: var(--color-text-primary);
    flex-grow: 1;
    margin: 0;
}

.news-header__action {
    flex-shrink: 0;
}

.news-carousel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

.news-carousel-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 720px;
    padding-left: calc(50vw - 640px);
    padding-right: calc(50vw - 640px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}

.news-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Single Card Carousel State (Non-slidable when only 1 article) */
.news-carousel-wrapper.has-single-card .news-carousel-track,
.news-carousel-track.has-single-card {
    overflow-x: hidden !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-snap-type: none !important;
}

.news-carousel-wrapper.has-single-card .news-carousel-card,
.news-carousel-track.has-single-card .news-carousel-card {
    transform: scale(1) !important;
    opacity: 1 !important;
    cursor: default;
}

.news-carousel-wrapper.has-single-card .news-carousel-nav {
    display: none !important;
}

.news-carousel-card {
    flex: 0 0 clamp(300px, 85vw, 1280px);
    width: clamp(300px, 85vw, 1280px);
    height: 720px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    background-color: var(--color-text-primary);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    cursor: pointer;
    border-radius: 0;
}

/* Side cards scaled down to match Figma specs (597px height vs 720px center = scale 0.83) */
.news-carousel-card:not(.is-active) {
    transform: scale(0.83);
    opacity: 0.85;
}

.news-carousel-card.is-active {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
}

.news-card__link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Figma Specs Node 4402:2663: padding 32px 32px 44px 32px, background rgba(33, 44, 74, 0.80), backdrop-filter blur(10px) */
.news-card__content {
    width: 100%;
    min-height: 121px;
    padding: 32px 32px 44px 32px;
    background: rgba(33, 44, 74, 0.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 6;
}

/* Figma Specs Node 4402:2663: Frame 6 itemSpacing 16px between Date and Title */
.news-card__content-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Figma Specs Node 4402:2665: Outfit SemiBold 12px, line-height 16px (1.333), White #FFFFFF */
.news-card__date {
    font-family: 'Outfit', var(--font-body), sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.333;
    color: var(--color-surface-white);
    margin: 0;
}

.news-carousel-card:not(.is-active) .news-card__content {
    opacity: 0.75;
}

/* Figma Specs Node 4402:2666: Parkinsans Bold 28px, Line height 36px (1.2857), White #FFFFFF */
.news-card__title {
    font-family: 'Parkinsans', var(--font-heading), sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2857;
    color: var(--color-surface-white);
    margin: 0;
}

.news-card__title-link {
    color: var(--color-surface-white);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.news-card__title-link:hover {
    opacity: 0.85;
}

/* Figma Specs Node 4402:2672: Frame 8 Nav controls (gap 16px, 32px circle buttons, 12px dots) */
.news-carousel-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.news-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 2px solid var(--color-text-primary);
    background: transparent;
    color: var(--color-text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.news-nav-btn:hover {
    background-color: var(--color-text-primary);
    color: var(--color-surface-white);
}

.news-dots {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.news-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-text-primary);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.news-dots .dot--active {
    background-color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

/* ==========================================================================
   5. FOOTER SECTION (Figma Node: 4216:1947 - Footer Specs)
   Height: 86px | Padding: 16px top/bottom | Double border #212C4A
   ========================================================================== */
.footer-section {
    width: 100%;
    margin-top: var(--section-gap-desktop);
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-inner {
    width: 100%;
    border-top: 2px solid var(--color-border-dark);
    border-bottom: 2px solid var(--color-border-dark);
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-left-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-border-dark);
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-brand-logo {
    height: 23px;
    width: auto;
    display: block;
}

.footer-contact-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-border-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-contact-item:hover {
    opacity: 0.75;
}

.footer-info-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: currentColor;
}

.footer-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.btn-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    color: var(--color-border-dark);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-social-icon:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.footer-right-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-border-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-link:hover {
    opacity: 0.75;
}

.footer-divider {
    color: var(--color-border-dark);
    font-size: 14px;
}

.footer-agency-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-border-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-agency-logo {
    height: 12.5px;
    width: auto;
    display: block;
}

.footer-agency-link .agency-name {
    font-weight: 700;
}

.footer-agency-link:hover {
    opacity: 0.75;
}

.agency-arrow-icon {
    stroke: currentColor;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    .site-container {
        padding-left: var(--container-padding-tablet);
        padding-right: var(--container-padding-tablet);
    }

    .header-nav__inner {
        gap: 48px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }

    .hero-section__content {
        min-height: auto;
        padding-right: 0;
        gap: 32px;
    }

    .hero-section__media {
        height: 450px;
    }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .site-container {
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }

    .header-nav {
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .header-nav__inner {
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 20px;
    }

    .header-nav__links {
        display: none; /* Can be toggled with mobile nav menu */
    }

    .hero-section {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .hero-section__grid {
        gap: 28px;
    }

    .hero-section__heading {
        font-size: clamp(2.5rem, 10vw, 3.75rem);
    }

    .hero-section__subtitle {
        font-size: 1.125rem;
        line-height: 1.35;
    }

    .hero-section__media {
        height: 320px;
    }

    .cards-grid-section {
        margin-top: 48px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-container {
        min-height: auto;
    }

    .card-upper {
        height: auto;
        padding: 24px 20px;
    }

    .card-lower {
        height: auto;
        padding: 20px;
    }

    .news-carousel-section,
    .footer-section {
        margin-top: var(--section-gap-mobile);
    }

    .news-carousel-card {
        min-height: 480px;
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-left-group,
    .footer-contact-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
