.eoy-financial {
    width: 100%;
    display: flex;
    justify-content: center;
}

.eoy-financial .container {
    background-color: transparent;
    padding-left: 0 !important;
    width: 100%;
    padding: 5rem 0;
    margin: 0 0;
    position: relative;
}

.financial-image {
    width: 118px;
    height: 118px;
}

.financial-heading {
    display: flex;
    align-items: center;
}

.financial-title h2 {
    color: white !important;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 700;
}

.financial-text p {
    color: #fff;
    font-family: Nunito;
    font-size: 1.3125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.financial-chart-amount {
    color: #8447d9;
}

/* .financial-chart-list li{
    animation: fadeIn 0.5s ease reverse slide-in;
} */

.pie-chart {
    width: 430px;
    height: 430px;
    margin: 0 auto;
    margin-left: 50px;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
}

.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.pie-segment.programs {
    background-image: url("../../../assets/images/eoy-2025/Backgrounds/BG-purple.png");
    background-size: 3091px 4000px;
    background-position: 20% 60%;
    background-repeat: no-repeat;
    -webkit-mask-image: conic-gradient(#000 0deg 316.8deg,
            transparent 316.8deg 360deg);
    mask-image: conic-gradient(#000 0deg 316.8deg, transparent 316.8deg 360deg);
    z-index: 2;
    transform-origin: center;
}

.pie-segment.operations {
    background-image: url("../../../assets/images/eoy-2025/Backgrounds/BG-green.png");
    background-size: 800px 800px;
    background-position: 20% 80%;
    background-repeat: no-repeat;
    z-index: 1;
}

.pie-percentage {
    position: absolute;
    bottom: 20%;
    right: 15%;
    font-size: 3.125rem;
    /* what is 50px in rem? */
    font-weight: bold;
    color: white;
    z-index: 5;
    pointer-events: none;
}

.pie-percentage-12 {
    position: absolute;
    top: 10%;
    left: 27%;
    font-size: 2.5625rem;
    font-weight: bold;
    color: white;
    z-index: 5;
    pointer-events: none;
}

.pie-label {
    position: absolute;
    bottom: 13%;
    right: 15%;
    font-size: 0.9rem;
    color: white;
    z-index: 5;
    pointer-events: none;
}

.pie-segment.operations::after {
    content: "12%";
    position: absolute;
    top: 30%;
    right: 20%;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    z-index: 3;
}

.financial-chart-section {
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.financial-chart-text h3,
.financial-chart-text ul,
.financial-chart-text p {
    color: white !important;
}

.financial-chart-text li {
    color: white !important;
}

.financial-chart-text {
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.financial-chart-text li {
    opacity: 0;
    transform: translateX(-20px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.pie-segment.programs {
    transition:
        all 1s ease,
        transform 1s ease,
        background-size 0.6s ease;
}

.financial-chart-section.in-view .financial-chart-text {
    visibility: visible;
    opacity: 1;
}

.financial-chart-section.in-view .financial-chart-text li {
    opacity: 1;
    transform: translateX(0);
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(1) {
    transition-delay: 0.1s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(2) {
    transition-delay: 0.15s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(3) {
    transition-delay: 0.2s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(4) {
    transition-delay: 0.25s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(5) {
    transition-delay: 0.3s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(6) {
    transition-delay: 0.35s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(7) {
    transition-delay: 0.4s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(8) {
    transition-delay: 0.45s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(9) {
    transition-delay: 0.5s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(10) {
    transition-delay: 0.55s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(11) {
    transition-delay: 0.6s;
}

.financial-chart-section.in-view .financial-chart-text li:nth-child(12) {
    transition-delay: 0.65s;
}

.financial-chart-section.in-view .pie-segment.programs {
    transform: scale(1.1);
    background-size: 727.27px 727.27px;
}

.pie-segment::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    z-index: 2;
    pointer-events: none;
}

.pie-chart:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.financial-chart-section:hover .pie-chart {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.financial-chart-section:hover .pie-chart {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile - Hide text and pie chart, show carousel */
@media screen and (max-width: 675px) {

    .financial-text,
    .financial-chart-section {
        display: none;
    }

    .mobile-section {
        display: block;
    }
}

/* Tablet - Scale everything down */
@media screen and (min-width: 676px) and (max-width: 1024px) {
    .financial-chart-section {
        gap: 30px;
        padding-left: 1em;
        padding-right: 1em;
        margin-left: 20px;
        margin-right: 20px;
    }

    .pie-chart {
        width: 300px;
        height: 300px;
        margin-left: 30px;
    }

    .financial-chart-section.in-view .pie-chart {
        transform: scale(1.1);
    }

    .pie-segment.programs,
    .pie-segment.operations {
        background-size: 560px 725px;
    }

    .financial-chart-section.in-view .pie-segment.programs,
    .financial-chart-section.in-view .pie-segment.operations {
        background-size: 509.09px 659.09px;
    }

    .pie-percentage {
        font-size: 2.2rem;
    }

    .pie-percentage-12 {
        font-size: 1.8rem;
    }

    .pie-label {
        font-size: 0.75rem;
    }

    .financial-chart-text {
        max-width: 450px;
    }

    .financial-chart-text h3 {
        font-size: 1.3rem;
    }

    .financial-chart-text li {
        font-size: 0.9rem;
    }

    .financial-chart-text p {
        font-size: 0.9rem;
    }
}

/* Desktop - Original styles */
@media screen and (min-width: 1025px) {
    .pie-chart {
        width: 430px;
        height: 430px;
    }

    .pie-percentage {
        font-size: 3.125rem;
    }

    .pie-percentage-12 {
        font-size: 2.5625rem;
    }

    .pie-label {
        font-size: 0.9rem;
    }

    .pie-segment.operations::after {
        font-size: 1.5rem;
    }
}

/* ========== MOBILE CAROUSEL CSS START ========== */
/* Copy from here to add carousel styles to another section */

/* Mobile carousel */
@media screen and (max-width: 675px) {
    .eoy-financial .container {
        padding: 0;
    }

    .financial-heading {
        flex-direction: column;
    }

    .financial-carousel-track .carousel-slide {
        background:
            linear-gradient(135deg, #35373c, #35373c),
            linear-gradient(to right, #5ebf8d, #d5b43a);
        background-origin: padding-box, border-box;
        background-clip: padding-box, border-box;
        background-repeat: no-repeat;
    }

    /* Slide 3 - tighter list spacing */
    .financial-carousel-track>.slide-3 ul {
        margin-top: 0px;
    }

    .financial-carousel-track>.slide-3 li {
        line-height: 1.3;
    }

    /* Slide 2 - Mobile Pie Chart */
    .financial-carousel-track>.slide-2 {
        justify-content: center;
        align-items: center;
        padding: 30px;
    }

    .mobile-pie-chart {
        width: 280px;
        height: 280px;
        position: relative;
        border-radius: 50%;
    }

    .mobile-pie-chart .pie-segment {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .mobile-pie-chart .pie-segment.programs {
        background-image: url("../../../assets/images/eoy-2025/Backgrounds/BG-purple.png");
        background-size: 800px 800px;
        background-position: 30% 60%;
        background-repeat: no-repeat;
        -webkit-mask-image: conic-gradient(#000 0deg 316.8deg,
                transparent 316.8deg 360deg);
        mask-image: conic-gradient(#000 0deg 316.8deg, transparent 316.8deg 360deg);
        z-index: 2;
    }

    .mobile-pie-chart .pie-segment.operations {
        background-image: url("../../../assets/images/eoy-2025/Backgrounds/BG-green.png");
        background-size: 522px 522px;
        background-position: 20% 80%;
        background-repeat: no-repeat;
        z-index: 1;
    }

    .mobile-pie-chart .pie-percentage {
        position: absolute;
        bottom: 20%;
        right: 15%;
        font-size: 2rem;
        font-weight: bold;
        color: white;
        z-index: 5;
    }

    .mobile-pie-chart .pie-percentage-12 {
        position: absolute;
        top: 10%;
        left: 28%;
        font-size: 1.65rem;
        font-weight: bold;
        color: white;
        z-index: 5;
    }

    .financial-carousel-track>.slide-1,
    .financial-carousel-track>.slide-3 {
        justify-content: center;
        border-radius: 20px;
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%),
            linear-gradient(142deg, #5ebf8d 0%, #d5b43a 100%);
        background-origin: padding-box, border-box;
        background-clip: padding-box, border-box;
        background-repeat: no-repeat;
    }

    .financial-carousel-track>.slide-3 {
        gap: 0px;
        color: white;
        font-size: 1.3125rem;
    }

    .financial-carousel-track>.slide-3 p {
        font-size: 1.3125rem;
    }
}

/* Smaller mobile screens - Scale down carousel */
@media screen and (max-width: 400px) {
    .financial-carousel-track>.slide-3 {
        font-size: 16px;
    }

    .financial-carousel-track>.slide-3 ul {
        margin-top: 0px;
    }

    .financial-carousel-track>.slide-3 p {
        font-size: 16px;
    }

    /* Scale down mobile pie chart */
    .mobile-pie-chart {
        width: 240px;
        height: 240px;
    }

    .mobile-pie-chart .pie-segment.programs {
        background-size: 400px 400px;
    }

    .mobile-pie-chart .pie-segment.operations {
        background-size: 447px 447px;
    }

    .mobile-pie-chart .pie-percentage {
        font-size: 1.7rem;
    }

    .mobile-pie-chart .pie-percentage-12 {
        font-size: 1.4rem;
    }
}

/* ========== MOBILE CAROUSEL CSS END ========== */