/* Corporate Identity Colorways & Token System */
:root {
    --malkia-purple: #4A154B;
    --malkia-light-purple: #782573;
    --malkia-gold: #F2C94C;
    --malkia-yellow: #fbc800;
    --bg-light: #FDFBF7;
    --bg-card: #FFFFFF;
    --bg-card-2: #e9e7d4;
    --text-dark: #1A1A24;
    --text-muted: #5A5A6A;
    --border-muted: #E2DFD8;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1206px;
}

::selection {
    background-color: var(--malkia-yellow);
    color: var(--malkia-purple);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    background-color: var(--malkia-purple);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Hero Layout Block (Deep Purple Canopy) */
.hero-banner {
    background-color: var(--malkia-purple);
    background: url('../images/htmlbg.jpg') repeat fixed;
    color: #FFFFFF;
    padding: 20px 20px 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Text Content Wrapper */
.hero-text-block {
    max-width: 850px;
    margin: 0 auto;
    z-index: 5;
}

.brand-logo-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--malkia-gold);
    margin-bottom: 24px;
}

header img.logo {
    width: 200px;
}

/* Premium White-to-Gold Text Animation Engine */
.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.03em;

    /* 
       Creates an expanded double-sided color canvas: 
       Gold on the left, White in the middle, Gold on the right.
    */
    background: linear-gradient(120deg,
            var(--malkia-gold) 0%,
            #FFFFFF 50%,
            #FFFFFF 70%,
            var(--malkia-gold) 100%);
    /* Blows up the background canvas horizontally so we have room to slide it */
    background-size: 200% auto;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* 
       Uses 'ease-in-out' to make the bounce at each end velvety smooth,
       and 'alternate' tells it to natively play to-and-fro automatically.
    */
    animation: bounceShine 6s ease-in-out infinite alternate;
}

/* Glides the background position coordinate back and forth smoothly */
@keyframes bounceShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #F4F4F6;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* 3-Image Montage Stack Layout Frame */
.hero-montage-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 360px;
    margin-top: 0px;
    /* top: -10px; */
    z-index: 2;
}

/* Outer wrapper provides the animated gradient border frame */
.montage-card-wrapper {
    position: absolute;
    border-radius: 20px;
    padding: 4px;
    /* The width of the glowing border stroke */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.3s ease;
}

.montage-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    background-color: var(--malkia-purple);
}

/* --- Base Floating Mechanics & Positions --- */

.montage-card-wrapper.img-left {
    width: 35%;
    height: 240px;
    left: 0;
    top: 60px;
    z-index: 1;
    /* Loops horizontal float, subtle scaling, and shifting shadow density */
    animation: floatLeft 7s ease-in-out infinite;
}

.montage-card-wrapper.img-center {
    width: 45%;
    height: 300px;
    left: 27.5%;
    top: 0;
    z-index: 3;
    animation: floatCenter 10s ease-in-out infinite;
}

.montage-card-wrapper.img-right {
    width: 35%;
    height: 240px;
    right: 0;
    top: 80px;
    z-index: 2;
    animation: floatRight 8s ease-in-out infinite;
}

/* --- Keyframe Animation Engines --- */

@keyframes floatLeft {
    0% {
        transform: translate(0, 0) scale(1) rotate(-4deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }

    50% {
        transform: translate(-8px, -6px) scale(1.02) rotate(-3deg);
        box-shadow: -10px 25px 40px rgba(0, 0, 0, 0.35);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(-4deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }
}

@keyframes floatCenter {
    0% {
        transform: translate(0, 0) scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: translate(4px, -10px) scale(1.15);
        box-shadow: 0 35px 50px rgba(0, 0, 0, 0.4);
    }

    100% {
        transform: translate(0, 0) scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

@keyframes floatRight {
    0% {
        transform: translate(0, 0) scale(1) rotate(3deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }

    50% {
        transform: translate(8px, -8px) scale(1.01) rotate(4deg);
        box-shadow: 10px 25px 40px rgba(0, 0, 0, 0.35);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(3deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }
}

/* --- Interactive Hover State Engine --- */

.montage-card-wrapper:hover {
    animation-play-state: paused;
    /* Instantly locks floating position in mid-air */
    z-index: 10;
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);

    /* Injects a rotating conic gradient behind the image mask edge */
    background: conic-gradient(from 0deg,
            var(--malkia-purple) 0%,
            var(--malkia-gold) 25%,
            var(--malkia-yellow) 50%,
            var(--malkia-gold) 75%,
            var(--malkia-purple) 100%);
    animation: rotateGlow 2s linear infinite;
}

@keyframes rotateGlow {
    100% {
        background-position: 0 0;
        transform: scale(1.05) rotate(360deg);
    }

    /* Keeps glow moving smoothly */
}

/* Precision override so the image inside stays straight while its wrapper background border glows */
.montage-card-wrapper:hover .montage-img {
    animation: none;
}

/* --- Mobile Responsive Fallbacks --- */
@media screen and (max-width: 767px) {
    .hero-montage-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .montage-card-wrapper {
        position: relative;
        width: 100% !important;
        height: 220px !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        animation: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Precise Custom CTA Layout Engine */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 80%;
    max-width: 600px;
    margin: 40px auto 0 auto;
    padding: 20px;
}

/* Master Button Base Construction */
.btn-custom-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 420px;
}

.btn-malkia {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    padding: 24px 48px;
    width: 100%;
    min-height: 90px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-malkia:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* --- Yellow/Gold Button Geometry (Left Top Sharp, Bottom Swept Curve) --- */
.btn-gold-custom {
    background-color: var(--malkia-yellow);
    color: var(--malkia-purple);
    /* Creates the asymmetric rounded curve sweep on the bottom left corner */
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 60px;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 10px rgb(26, 26, 36, 0.4);
}

/* --- Purple Button Geometry (Diagonal Top-Right Cut) --- */
.btn-purple-custom {
    background-color: var(--malkia-light-purple);
    color: #FFFFFF;
    border-radius: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    padding-right: 64px;
    box-shadow: 0 5px 5px rgb(26, 26, 36, 0.2);
    margin-left: -1rem;
    /* Room for the magnifying glass breakout icon */
}

/* --- Breakout Icon Positioning Matrix --- */
.btn-icon-breakout {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.btn-custom-wrapper:hover .btn-icon-breakout {
    transform: scale(1.1) rotate(2deg);
}

/* Lightbulb Icon Placement (Top-Left Corner Breakout) */
.icon-lightbulb {
    width: 75px;
    height: 75px;
    left: -20px;
    top: -25px;
}

/* Magnifying Glass Icon Placement (Bottom-Right Corner Breakout) */
.icon-magnifier {
    width: 65px;
    height: 65px;
    right: -15px;
    bottom: -15px;
}

/* Desktop Symmetrical Row Assembly */
@media screen and (min-width: 768px) {
    .cta-group {
        flex-direction: row;
        gap: 0px;
        /* Aligns them into the tightly stacked inline block row */
    }

    .btn-custom-wrapper {
        max-width: 380px;
    }

    /* Slightly overlap or pull the purple button behind the yellow line if needed */
    .btn-custom-wrapper:nth-child(2) {
        margin-left: -4px;
    }
}

/* Why Our Work Matters Section */
.why-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.why-holder {
    transform: translateY(-11rem);
    margin-bottom: -11rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    background-color: #f9f1f9;
}

/* Base Desktop Split Grid for the Top Layer Text */
.why-top-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media screen and (min-width: 768px) {
    .why-top-split {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 40px;
    }
}

.why-header h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--malkia-purple);
    line-height: 1.1;
}


.why-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Responsive SDG Grid Architecture */
.sdg-grid-container {
    display: grid;
    /* Mobile default: Single column stacking vertically */
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.sdg-card {
    display: grid;
    /* Strict 2-column card split layout */
    grid-template-columns: 70px 1fr;
    background-color: var(--bg-card);
    /* border: 1px solid var(--border-muted); */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(74, 21, 75, 0.02);
    color: var(--bg-card) !important;
    transition: transform 0.2s ease;
}

.sdg-card:hover {
    transform: translateY(-2px) scale(1.05);
}

.sdg-icon-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 700;
}

/* Color palettes utilizing slightly darker background variations for layout definition */
.sdg-3 .sdg-icon-holder {
    background-color: #3b7e2c;
}

.sdg-4 .sdg-icon-holder {
    background-color: #a01424;
}

.sdg-5 .sdg-icon-holder {
    background-color: #d6301b;
}

.sdg-8 .sdg-icon-holder {
    background-color: #841436;
}

.sdg-10 .sdg-icon-holder {
    background-color: #b91055;
}

.sdg-16 .sdg-icon-holder {
    background-color: #00537e;
}

.sdg-meta-holder {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    color: var(--bg-card) !important;
}

.sdg-meta-holder h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--bg-card) !important;
}

.sdg-meta-holder p {
    font-size: 0.85rem;
    color: var(--bg-card) !important;
    line-height: 1.4;
}


@media screen and (min-width: 600px) {
    .sdg-grid-container {
        /* Wraps seamlessly to two distinct rows on tablet devices */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .sdg-grid-container {
        /* Settles cleanly into three columns across standard desktop frames */
        grid-template-columns: repeat(6, 1fr);
    }
}

/* SDG Badges Horizontal Strip */
.sdg-strip {
    max-width: var(--max-width);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.sdg-badge {
    scroll-snap-align: start;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}

.sdg-3 {
    background-color: #4C9F38;
}

.sdg-4 {
    background-color: #C5192D;
}

.sdg-5 {
    background-color: #FF3A21;
}

.sdg-8 {
    background-color: #A21942;
}

.sdg-10 {
    background-color: #DD1367;
}

.sdg-16 {
    background-color: #00689D;
}

/* Yellow Master Section (Pillars & Portfolio Container) */
.yellow-master-zone {
    background-color: var(--malkia-yellow);
    padding: 80px 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
}

.yellow-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    /* Mobile first: single full-width stack column */
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}



.section-sub-title {
    font-family: var(--font-display);
    font-size: 3.3rem;
    color: var(--malkia-purple);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yellow-container h4.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(74, 21, 75, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline;
}


/* Interactive Strategic Pillars Accordion UI */
.pillars-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border-bottom: 1px solid rgba(74, 21, 75, 0.15);
    padding-bottom: 16px;
}

.accordion-trigger {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--malkia-purple);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Physics Engine Layout Wrapper for Smooth Bouncing Collapse */
.accordion-content {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--malkia-purple);
    opacity: 0;
    display: grid;
    grid-template-rows: 0fr;
    /* Elastic cubic-bezier curves creating a distinct structural spring effect */
    transition: grid-template-rows 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.4s ease;
}

.accordion-inner {
    overflow: hidden;
    margin-top: 0;
    transition: margin-top 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
    opacity: 0.85;
}

.accordion-item.active .accordion-inner {
    margin-top: 12px;
}



/* Table Top Card Swipe Carousel UI */
.carousel-viewframe {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* Extra padding bottom to ensure controls are cleanly outside the card space */
    padding-bottom: 70px;
}

.carousel-track {
    width: 100%;
    height: 600px;
    position: relative;
}

/* Table Top Card Base State */
.portfolio-card {
    background: #FFE88F;
    background: linear-gradient(150deg, rgb(255, 255, 255) 0%, rgba(255, 246, 211, 1) 50%, rgba(255, 232, 143, 1) 100%);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    height: 580px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 10px 30px rgba(74, 21, 75, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;

    /* Smooth spring physics curve for depth scaling and rotation */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease,
        z-index 0.5s step-end;
    will-change: transform, opacity;
}

/* Active Top Card Focal State */
.portfolio-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) translateY(0) scale(1) rotate(0deg) !important;
    z-index: 20 !important;
    box-shadow: 0 20px 40px rgba(74, 21, 75, 0.25);
}

/* Stage 1: The Lift-Off State (peels out out to the right before going behind) */
.portfolio-card.shuffle-out {
    opacity: 1;
    z-index: 30 !important;
    /* Temporarily floats higher than everything during lift */
    transform: translateX(120%) translateY(-20px) rotate(12deg) scale(1.05) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

/* Stage 3: Sliding under the deck */
.portfolio-card.shuffle-in {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.card-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 16px;

    /* Pulls the image up and out to counter the parent's padding boundaries */
    margin-top: -32px;
    margin-left: -32px;
    margin-right: -40px;
}

@media screen and (max-width: 768px) {
    .card-scroll-body {
        margin-right: -44px;
    }
}

.card-scroll-body img {
    height: 250px;
    width: 100%;
    object-fit:cover;
    display: block;
    /* Eliminates inline baseline whitespace tracking bugs */
    margin-bottom: 16px;
    /* Provides separation between the trailing image mask and the card content metadata below */
    mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
}

@media screen and (max-width: 768px) {
    .portfolio-card {
        height: 650px;
    }
    .carousel-track {
        height: 680px;
    }
}

/* Compensates the metadata details with the padding lost from shifting the margins above */
.card-scroll-body .card-tag,
.card-scroll-body h4,
.card-scroll-body p,
.card-scroll-body strong {
    padding-left: 32px;
    padding-right: 32px;
}

.card-scroll-body strong {
    font-size: 1.2rem !important;
}

.card-scroll-body::-webkit-scrollbar {
    width: 4px;
}

.card-scroll-body::-webkit-scrollbar-thumb {
    background-color: var(--border-muted);
    border-radius: 2px;
}

.portfolio-card h4 {
    font-size: 1.5rem;
    color: var(--malkia-purple);
    margin-bottom: 4px;
}

.portfolio-card .card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    display: block;
    margin-top: -40px;
}

.portfolio-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.portfolio-card strong {
    color: var(--text-dark);
    font-size: 0.8rem;
    display: block;
    margin-top: 8px;
}

/* Relocated Controls Container Element */
.carousel-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
    z-index: 15;
}

.nav-arrow {
    background-color: var(--malkia-purple);
    color: #FFFFFF;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-size: 1.5rem;
}

.nav-arrow:hover {
    background-color: var(--malkia-light-purple);
}

.counter-label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--malkia-purple);
}

/* 2025 At A Glance Section (Olive Green Block) */
.glance-section {
    background-color: #c1b72f;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    /* Earthy structural olive green mapping asset */
    padding: 80px 20px;
}

.glance-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.glance-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
}

.glance-card {
    scroll-snap-align: start;
    min-width: 480px;
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    flex: 1;
    border: 1px solid var(--border-muted);
}

.glance-card h3 {
    font-size: 36px;
    color: var(--malkia-purple);
    margin-bottom: 4px;
}

.glance-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.glance-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Sponsor Section & Custom Interactive Timeline Layer */

.sponsors {
    background-color: #fffff7;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
}

.sponsor-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.sponsor-section h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 3rem;
    margin-bottom: 1rem;
}

.sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 40px 0;
}

.sub-card {
    background-color: #FFFDF9;
    border: 1px solid var(--border-muted);
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-card.active {
    /* border-color: var(--malkia-purple); */
    background-color: #FBF7FC;
    box-shadow: 0 8px 20px rgba(74, 21, 75, 0.05);
}

.sub-card h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.sub-price {
    font-size: 36px;
    color: var(--malkia-purple);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Custom Vector Journey Timeline Illustration */
.timeline-box {
    background-color: #FFFDF9;
    border: 1px solid var(--border-muted);
    border-radius: 20px;
    padding: 40px 20px;
    margin-top: 60px;
    position: relative;
}

.timeline-track {
    height: 12px;
    background-color: #EBE8E0;
    border-radius: 6px;
    position: relative;
    margin: 40px 0;
}

.timeline-fill {
    height: 100%;
    width: 68%;
    /* Baseline sync with 2025 position */
    background: linear-gradient(90deg, var(--malkia-purple), var(--malkia-gold));
    border-radius: 6px;
    transition: width 0.6s ease;
}

.timeline-markers {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: -4px;
    left: 0;
    padding: 0 10px;
}

.marker-dot {
    width: 20px;
    height: 20px;
    background-color: #FFFFFF;
    border: 4px solid var(--border-muted);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.marker-dot.active {
    border-color: var(--malkia-purple);
    background-color: var(--malkia-gold);
}

.marker-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.sponsors .bottom-vi {
    margin-top: -8rem;
}

.sponsors .bottom-vi img {
    position: relative;
    top: 8.2rem;
    width: 100%;
}

/* Kajiado Pastoral Landscape Graphic Backdrop */
.landscape-backdrop {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0 auto;
    opacity: 0.15;
    display: block;
}

/* Partners Array Section */
.partners-section {
    background-color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.partners-section .container-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.partners-section h3 {
    font-size: 3rem;
    color: var(--malkia-purple);
    font-weight: 800;
    font-family: var(--font-display);
}

.partners-section hr.partners {
    max-width: 100px;
    background-color: var(--malkia-purple);
    height: 6px;
    border-radius: 10px;
    border: none;
    text-align: center;
    margin: 1.5rem auto;
}

.logos-array {
    display: grid;
    /* Mobile First: Strictly 1 row per logo element */
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    width: 100%;
    margin: 60px auto;
}

.partner-logo-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: transform 0.2s ease;
}

.partner-logo-fallback:hover {
    transform: translateY(-4px);
}

.partner-logo-fallback img {
    height: auto;
    max-height: 85px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* filter: grayscale(100%); */
    opacity: 1;
    transition: all 0.2s ease;
}

.partner-logo-fallback img.segal {
    max-height: 145px;
    top:-1rem;
}

.partner-logo-fallback img.issrof {
    max-height: 105px;
}

.partner-logo-fallback:hover img {
    filter: grayscale(0%);
    opacity: 0.8;
}

.gratitude-block {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
    /* border-top: 1px solid var(--border-muted); */
    padding-top: 24px;
}

/* Looking Ahead Footer Block (Rich Purple Environment) */
.footer-commitments {
    background: url('../images/htmlbg.jpg') repeat fixed;
    color: #FFFFFF;
    padding: 80px 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.commitments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-container h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--malkia-light);
    margin-bottom: 0;
}

.footer-container h2 {
    font-family: var(--font-display);
    font-size: 2.3rem;
    color: var(--malkia-gold);
    margin-bottom: 16px;
}

.commit-col p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 16px;
}

.founder-profile-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border-top: 1px solid rgba(255, 255, 255, 0.15); */
    text-align: center;
}

.founder-avatar {
    border-radius: 50%;
    background-color: var(--malkia-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.founder-quote {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin-left: 2rem;
    color: var(--malkia-yellow);
}

@media screen and (max-width: 768px) {
    .founder-quote {
        margin-left: 0;
    }
}

.founder-quote span.name {
    display: block;
    margin-top: 8px;
    color: var(--malkia-yellow);
    font-weight: 700;
    font-style: normal;
    font-size: 1rem;
}

footer hr {
    width: 50%;
    background-color: var(--malkia-light-purple);
    height: 0.6rem;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border-radius: 15px;
    margin-top: 2rem;
}

.meta-contact-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    font-size: 1.2rem;
    opacity: 1;
    /* border-top: 1px solid rgba(255, 255, 255, 0.15); */
    padding-top: 32px;
    margin-top: 40px;
    color: var(--bg-card);
}

.meta-contact-footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.meta-contact-footer a:hover {
    color: var(--malkia-yellow);
    font-size: 1.3rem;
}

footer .social-icons {
    font-size: 1.5rem;
    & > a {
        padding: 0 0.5rem;
    }
}

footer .copyright {
    display: flex;
    justify-content: center;
    /* Horizontal center */
    align-items: center;
    margin-top: 5rem;
    opacity: 0.8;
    font-style: italic;

    &>p {
        text-align: center;
    }
}

/* ----------------------------------------------------
           RESPONSIVE VIEWPORT MEDIA QUERIES
           ---------------------------------------------------- */

@media screen and (min-width: 768px) {
    .hero-title {
        font-size: 52px;
    }

    .cta-group {
        flex-direction: row;
    }

    .why-section {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .yellow-master-zone {
        padding: 100px 20px;
    }

    .yellow-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .glance-grid {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-array {
        /* Desktop grid balances horizontally up to 1206px */
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .commitments-grid {
        grid-template-columns: 1fr 1fr;
    }

    .founder-profile-row {
        flex-direction: row;
        text-align: left;
    }

    .meta-contact-footer {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .glance-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sub-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .logos-array {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* 2025 At A Glance Section (Olive Green Block) */
.glance-section {
    background-color: #c1b72f;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    padding: 80px 20px;
}

.glance-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* Slider Window Framework Container */
.glance-slider-window {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.glance-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 24px;
    width: 100%;
}

/* Hide native scrollbars but maintain native swipe physics engine on mobile touch screen views */
.glance-grid::-webkit-scrollbar {
    display: none;
}

.glance-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.glance-card {
    scroll-snap-align: start;
    min-width: 100%;
    /* Mobile first: Scales down cleanly to fill viewport */
    background-color: var(--bg-card-2);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-muted);
    transition: transform 0.3s ease;
    box-shadow: 1px 1px 5px #938c30;
    transition: all 0.2s ease;
}

.glance-card:hover {
    box-shadow: none;
    background-color: var(--bg-card);
}

.glance-card-header {
    display: flex;
    align-items: center;
    /* Centers both columns vertically */
    gap: 16px;
    /* Adjust this value to widen or narrow space between column 1 and 2 */
    margin-bottom: 16px;
    /* Provides clean spacing between this header row and the descriptive text below */
}

.glance-card-header .icon {
    flex-shrink: 0;
    /* Prevents the icon container from squeezing on smaller devices */
    display: flex;
    align-items: center;
    justify-content: center;
}

.glance-card-header .icon img {
    width: auto;
    /* Explicit layout sizing for standard interface presentation */
    height: 80px;
    object-fit: contain;
}

.glance-card-header .title {
    display: flex;
    flex-direction: column;
    /* Stacks the numeric total cleanly directly above the label string */
    gap: 2px;
}

.glance-card-header .title h3 {
    margin: 0;
    line-height: 1.1;
    font-size: 3rem !important;
}

.glance-card-header .title h4 {
    margin: 0;
    line-height: 1.2;
    font-size: 1.5rem;
    color: var(--malkia-purple);
}

.glance-card p {
    font-size: 1.15rem;
    line-height: 1.5rem;
}

/* Header with slider actions integrated natively */
.glance-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.glance-section-header .text-block h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--malkia-purple);
}

.glance-slider-controls {
    display: flex;
    gap: 12px;
}

.glance-btn {
    background-color: var(--malkia-purple);
    color: #FFFFFF;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-size: 1.5rem;
}

.glance-btn:hover {
    background-color: var(--malkia-light-purple);
}

/* Responsive Grid Layer Viewport Breaks */
@media screen and (min-width: 600px) {
    .glance-card {
        /* Calculates layout to render exactly 2 cards completely plus a 40px visibility layout hint */
        min-width: calc((100% - 16px - 40px) / 3);
    }
}

@media screen and (min-width: 1024px) {
    .glance-card {
        /* Maintains 2 visible cards plus a 60px desktop preview hint of the subsequent stack element */
        min-width: calc((100% - 16px - 60px) / 3);
    }

    .glance-slider-controls {
        display: flex;
        /* Enforces slider arrows display window across all device screen profiles */
    }
}

/* Desktop Precision Responsive Breakpoint */
@media screen and (min-width: 768px) {
    .yellow-container {
        /* Sets the exact 40/60 distribution framework for pillars vs cards */
        grid-template-columns: 4fr 6fr;
        gap: 60px;
    }
}



/* SPONSOR UPDATE STYLES */

/* --- Sponsor Options Matrix Layout --- */
.sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 100px 0 100px 0;
    align-items: start;
}

@media screen and (min-width: 768px) {
    .sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .sub-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sub-card {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 32px 24px 40px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 420px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.sub-card .card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8C8C9A;
    font-weight: 700;
}

.sub-card h4 {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.circle-badge {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.03);
}

.circle-badge .sub-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
}

.sub-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 0 8px;
}

/* --- Micro Color Variations from Design Guidelines --- */
.card-1-queen {
    background-color: #FFFFFF;
}

.card-1-queen h4 {
    color: #2C2C2C;
}

.card-1-queen .circle-badge {
    background-color: #F7F5EE;
}

.card-1-queen .circle-badge .sub-price {
    color: #2C2C2C;
}

.card-10-queens {
    background-color: #FBC800;
    transform: translateY(-20px);
    height: 480px;
}

.card-10-queens h4 {
    color: #4A154B;
}

.card-10-queens .circle-badge {
    background-color: #4A154B;
}

.card-10-queens .circle-badge .sub-price {
    color: #FFFFFF;
}

.card-10-queens p {
    color: #4A154B;
    opacity: 0.9;
}

.card-comm-anchor {
    background-color: #4A154B;
    transform: translateY(-50px);
    min-height: 540px;
}

.card-comm-anchor h4 {
    color: #FBC800;
}

.card-comm-anchor .card-category {
    color: #FFFFFF;
    opacity: 0.6;
}

.card-comm-anchor .circle-badge {
    background-color: #FBC800;
}

.card-comm-anchor .circle-badge .sub-price {
    color: #4A154B;
}

.card-comm-anchor p {
    color: #FFFFFF;
    opacity: 0.9;
}

.card-inst-anchor {
    background-color: #E2E6B3;
    transform: translateY(-30px);
    min-height: 500px;
}

.card-inst-anchor h4 {
    color: #333333;
}

.card-inst-anchor .circle-badge {
    background-color: #CBD097;
}

.card-inst-anchor .circle-badge .sub-price {
    color: #333333;
}

/* --- Re-Engineered Hover Flap System --- */
.hover-flap {
    display: none !important;
    position: absolute;
    /* Starts hidden higher up, tucked flat right behind the bottom boundary edge */
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 52px;
    background-color: #FBC800;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    opacity: 0;
    /* Drops down smoothly on the Y-axis while fading in */
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    /* Forces the flap underneath the parent card content stacking context */
    z-index: -1;
}

.hover-flap span {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #4A154B;
}

.hover-flap i {
    font-size: 1.2rem;
    color: #FFFFFF;
    background-color: #4A154B;
    padding: 6px;
    border-radius: 50%;
}

/* --- Trigger Mechanics --- */
.sub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 21, 75, 0.08);
}

.sub-card.card-comm-anchor:hover {
    transform: translateY(-24px);
}

/* Explicitly pushes the flap out 44px down past the bottom edge on hover */
.sub-card:hover .hover-flap {
    opacity: 1;
    transform: translateY(44px);
}

/* --- Progress Bar Framework (.webp Blueprint Alignment) --- */
.timeline-box-redesigned {
    width: 90%;
    margin: 80px auto 40px auto;
    position: relative;
    padding-right: 180px;
    left: 5%;
    /* Leave space for the Sun vector on the right */
    box-sizing: border-box;
}

.grass-soil-container {
    width: 100%;
    position: relative;
}

.grass-layer {
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Cpath d='M0,20 L5,5 L10,20 L15,3 L20,20 L25,6 L30,20 L35,4 L40,20 L45,5 L50,20 L55,2 L60,20 Z' fill='%2363B38F'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 40px 24px;
    margin-bottom: -5px;
}

.soil-dotted-layer {
    height: 14px;
    background-color: #D3A373;
    background-image: radial-gradient(#4A154B 15%, transparent 16%);
    background-size: 8px 8px;
}

.yellow-progress-bar-wrapper {
    height: 36px;
    background-color: #FFF6D3;
    position: relative;
    overflow: visible;
}

.yellow-progress-fill {
    height: 100%;
    width: 75%;
    /* Starting Baseline calculation value */
    background-color: #FBC800;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bar-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.b-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #8C5827;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.b-marker.clicked-marker {
    cursor: pointer;
    pointer-events: auto;
}

.marker-popover {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dark);
    text-align: center;
    white-space: nowrap;
    line-height: 1.3;
}

/* Container sizing scaled up 1.5x with transform-origin locked to the right edge */
.sun-milestone-badge {
    position: absolute;
    right: 4rem;
    /* Slight right-edge correction for scaled overflow */
    top: -45px;
    /* Adjusted vertical placement to account for the larger boundary */
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;

    /* Scales the badge and all child elements up by exactly 50% */
    transform: scale(1.5);
    transform-origin: center right;
}

.sun-center {
    width: 100px;
    height: 100px;
    background-color: #FCD851;
    border: 4px solid #71551D;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.sun-center h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1;
}

.sun-center p {
    font-size: 0.65rem;
    font-weight: 700;
    color: #71551D;
    line-height: 1.2;
    margin-top: 2px;
}

/* Adjust timeline container right padding so the progress track doesn't overlap the 50% larger sun */
.timeline-box-redesigned {
    width: 80%;
    margin: 80px auto 40px auto;
    position: relative;
    padding-right: 240px;
    /* Increased from 180px to accommodate the 1.5x scaled badge */
    box-sizing: border-box;
}

/* --- Your Custom Ray Layout (Preserved Exactly) --- */
.sun-rays span {
    position: absolute;
    width: 14px;
    height: 30px;
    background-color: #FCD851;
    border: 3px solid #71551D;
    border-radius: 8px;
    top: 50%;
    left: 50%;
}

.sun-rays span:nth-child(1) {
    transform: translate(-50%, -75px);
}

.sun-rays span:nth-child(2) {
    transform: translate(-50%, 45px);
}

.sun-rays span:nth-child(3) {
    transform: translate(-65px, -50%) rotate(90deg);
}

.sun-rays span:nth-child(4) {
    transform: translate(50px, -50%) rotate(90deg);
}

.sun-rays span:nth-child(5) {
    transform: translate(-50px, -50px) rotate(135deg);
}

.sun-rays span:nth-child(6) {
    transform: translate(30px, 30px) rotate(135deg);
}

.sun-rays span:nth-child(7) {
    transform: translate(30px, -55px) rotate(-135deg);
}

.sun-rays span:nth-child(8) {
    transform: translate(-45px, 30px) rotate(-135deg);
}

@media screen and (max-width: 767px) {
    .timeline-box-redesigned {
        padding-right: 0;
        margin-bottom: 120px;
        display: none;
    }

    .sun-milestone-badge {
        position: relative;
        margin: 40px auto 0 auto;
        top: 0;
        right: 0;
    }
}

/* --- Custom Modal Glass Overlay Box System --- */
.sponsor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 21, 75, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.sponsor-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sponsor-modal-box {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sponsor-modal-overlay.open .sponsor-modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.sponsor-modal-box h3 {
    font-family: var(--font-display);
    color: var(--malkia-purple);
    font-size: 1.5rem;
}

.sponsor-modal-box h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: #FBC800;
    margin: 10px 0;
}

.modal-divider {
    border: none;
    height: 1px;
    background-color: var(--border-muted);
    margin: 20px 0;
}

.sponsor-modal-box h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal-flow-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #FAF8F5;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.modal-action-cta {
    width: 100%;
    background-color: var(--malkia-purple);
    color: #FFFFFF;
    border: none;
    padding: 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-action-cta:hover {
    background-color: var(--malkia-light-purple);
}