:root {
    --color-matisse-50: #f1f8fe;
    --color-matisse-100: #e3effb;
    --color-matisse-200: #c0dff7;
    --color-matisse-300: #88c6f1;
    --color-matisse-400: #49a8e7;
    --color-matisse-500: #218ed6;
    --color-matisse-600: #1370b6;
    --color-matisse-700: #1261a0;
    --color-matisse-800: #124c7a;
    --color-matisse-900: #144166;
    --color-matisse-950: #0e2943;
    --color-red: #e63946;
    --color-white: #ffffff;
    --color-off-white: #f5f8fa;
    --color-black: #111111;
    
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

* { box-sizing: border-box; }

.about-page {
    font-family: "apertura", sans-serif;
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.5;
}

.about-page h1, .about-page h2, .about-page h3, .about-page h4, .about-page h5 {
    font-family: "din-2014", sans-serif;
    color: var(--color-black);
    margin-top: 0;
}

.about-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

/* Typography */
.highlight-blue { color: var(--color-matisse-600); }
.section-title { font-size: 2.5rem; margin-bottom: 16px; }
.section-subtitle { font-size: 1.125rem; color: #555; max-width: 600px; margin: 0 auto 48px; }
.text-left { text-align: left; }

/* Hero */
.hero-title { font-size: 4rem; letter-spacing: -1px; margin-bottom: 24px; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px; }
.hero-image-wrapper { width: 100%; border-radius: var(--border-radius-lg); overflow: hidden; }
.hero-image { width: 100%; height: auto; display: block; object-fit: cover; max-height: 600px; }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    text-align: left;
}
.bento-card {
    background: var(--color-off-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}
.bento-card:hover { transform: translateY(-4px); }
.large-card img { width: 100%; height: 300px; object-fit: cover; border-radius:24px; padding:10px}
.bento-col { display: flex; flex-direction: column; gap: 24px; }
.row-card { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; }
.row-card img { width: 50%; object-fit: contain; padding: 8px; border-radius:24px;}
.card-content { padding: 8px; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--color-matisse-800); }
.card-content p { color: #555; margin: 0; font-size: 0.95rem; }

/* Avatar Banner */
.support-banner {
    background: var(--color-white);
    border: 1px solid #e1e8ed;
    border-radius: 100px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.support-banner p { margin: 0; font-weight: 500; }

/* Stats & Radial Charts */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.chart-card {
    background: var(--color-matisse-50);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.radial-svg-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}
.radial-center-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radial-center-text .label {
    font-size: 1.25rem;
    color: var(--color-matisse-900);
    font-weight: 500;
}
.radial-legend {
    width: 100%;
    font-size: 0.95rem;
    color: var(--color-matisse-900);
}
.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.legend-item:last-child {
    border-bottom: none;
}
.legend-label {
    display: flex;
    align-items: center;
    gap: 12px;
}
.legend-percent {
    font-size: 1.125rem;
    color: var(--color-matisse-950);
}
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.matisse-600 { background: var(--color-matisse-600); }
.dot.matisse-500 { background: var(--color-matisse-500); }
.dot.matisse-400 { background: var(--color-matisse-400); }
.dot.matisse-300 { background: var(--color-matisse-300); }
.stats-footer {
    grid-column: 1 / -1;
    background: var(--color-off-white);
    border-radius: var(--border-radius-md);
    padding: 32px 40px;
}
.stats-footer h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--color-matisse-900); }
.stats-footer p { font-size: 1.1rem; color: #555; margin: 0; }

/* ==========================================================
   TESTIMONIALS (NEW QUOTE CARD STRUCTURE) 
   ========================================================== */

.about-testimonials { overflow: hidden; }
.swiper.is-quotes { padding-bottom: 40px; overflow: visible; }

.swiper.is-quotes .swiper-wrapper {
    align-items: stretch;
}

/* Make slides equal height so all cards stretch to match */
.swiper-slide { 
    height: auto !important; /* Force swiper to respect flex stretch */
    display: flex; 
}

/* Card */
.quote-wrapper {
    width: 100%;
    height: 100%; /* Force card to fill the stretched slide */
    flex: 1 1 auto; 
    padding: 48px;
    background: #e5f7fa;
    border: 1px solid #c9e5e8;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    color: #003b46;
}

/* Author */
.author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 42px;
}

.author-photo-wrapper {
    position: relative;
    width: 78px;
    height: 96px;
    flex-shrink: 0;
    transform: rotate(-8deg);
}

.author-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 14px;
}

.author-logo {
    position: absolute;
    right: -15px;
    bottom: -10px;
    width: 38px;
    height: 38px;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transform: rotate(8deg);
}

.author-bio {
    text-align: left;
}

.author-name {
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
}

.author-role {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    line-height: 1.3;
    color: #36788a;
}

/* Quote + stat */
.quote-figure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1; /* Allows grid to fill remaining height */
}

.quote-left {
    min-width: 0;
    padding-right: 32px;
}

blockquote {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    text-align: left;
}

blockquote::before {
    content: "“";
    position: absolute;
    left: -18px;
    top: -8px;
    font-size: 32px;
    color: #8ebec7;
}

/* Sidebar */
.quote-figure-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding-left: 32px;
    border-left: 1px solid #c5dfe3;
    text-align: left;
    height: 100%;
}

.quote-figure {
    margin-bottom: 48px;
    font-size: 56px;
    line-height: 1;
    font-weight: 400;
    font-family: "din-2014", sans-serif;
}

.body-xs {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.4;
}

/* Pill Button */
.quote-wrapper .pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto; /* Pushes button to bottom */
    padding: 10px 10px 10px 18px;
    background: #fff;
    border-radius: 999px;
    color: #003b46;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.25s ease;
    border: none;
}

.quote-wrapper .pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: #f4f7f7;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.quote-wrapper .pill:hover .arrow-wrapper {
    transform: scale(1.12);
}

.quote-wrapper .pill:hover .arrow {
    transform: translateX(3px);
}

/* ==========================================================
   PAGINATION (CONTAINED PILL WITH EXPANDING CIRCLES)
   ========================================================== */

/* The outer container with rounded corners */
.about-testimonials .swiper-pagination.is-autoplay {
    position: static; /* Overrides default Swiper positioning */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Pill styling */
    background: var(--color-white);
    border: 1px solid #c9e5e8;
    padding: 12px 18px;
    border-radius: 999px;
    width: fit-content;
    margin: 40px auto 0; /* Centers it below the cards */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Dormant state: A simple circle */
.about-testimonials .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--color-matisse-200); /* Light blue empty state */
    opacity: 1; /* Overrides default Swiper opacity */
    margin: 0 !important; /* Overrides default Swiper margins */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* This transition is what makes it "zoom out" / expand smoothly */
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active state: Expands to show the full filling bar */
.about-testimonials .swiper-pagination-bullet-active {
    width: 48px;
}

/* The element that fills up */
.about-testimonials .swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: var(--color-matisse-700); /* Dark blue fill color */
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: 999px;
}

/* When the bullet is active, run the filling animation */
.about-testimonials .swiper-pagination-bullet-active::after {
    /* Uses the variable from HTML, falls back to 5000ms if missing */
    animation: bulletFill var(--autoplay-delay, 5000ms) linear forwards;
}

/* Keyframes to scale the fill from 0 to 100% */
@keyframes bulletFill {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Keeps the CSS filling animation perfectly in sync with JS pauseOnMouseEnter */
.swiper.is-quotes:hover .swiper-pagination-bullet-active::after {
    animation-play-state: paused;
}

/* ==========================================================
   PARTNERS & LOCATIONS
   ========================================================== */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.logo-item {
    background: var(--color-off-white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: flex-start; 
    text-align: left;
    gap: 20px;
}
.logo-item img { 
    width: 56px; 
    max-height: 48px; 
    object-fit: contain; 
    flex-shrink: 0; 
    margin-bottom: 0; 
}
.logo-item h4 { margin: 0; font-size: 1.1rem; color: var(--color-matisse-900); }
.logo-item p { margin: 0; font-size: 0.9rem; color: #555; }

.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.location-card {
    border: 1px solid #e1e8ed;
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s;
}
.location-card:hover { transform: translateY(-4px); border-color: var(--color-matisse-200); }
.location-card img { height: 60px; margin-bottom: 16px; }
.location-card h3 { margin-bottom: 12px; }
.location-card p { color: #555; font-size: 0.9rem; margin-bottom: 0; flex-grow: 1; }

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; }
    .row-card { flex-direction: column; align-items: flex-start; }
    .row-card img { width: 100%; padding: 0 32px 32px; }
    .hero-title { font-size: 3rem; }
    .stats-grid { grid-template-columns: 1fr; padding: 24px; }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .support-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
    .about-page .container { padding: 40px 20px; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .chart-card { padding: 24px; }
    
    /* New Quote Card Mobile Overrides */
    .quote-wrapper {
        padding: 28px 24px;
        border-radius: 20px;
    }
    .author {
        align-items: flex-start;
        margin-bottom: 32px;
    }
    .author-role {
        font-size: 14px;
    }
    .quote-figure-grid {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 32px;
    }
    blockquote {
        font-size: 20px;
    }
    .quote-left {
        padding-right: 0;
    }
    .quote-figure-sidebar {
        min-height: auto;
        padding-left: 0;
        padding-top: 28px;
        border-left: none;
        border-top: 1px solid #c5dfe3;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .quote-figure {
        margin-bottom: 20px;
        font-size: 48px;
    }
    .quote-wrapper .pill {
        max-width: 220px;
    }
}

@media (max-width: 600px) {
    .locations-grid { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .support-banner { padding: 24px; }
}