:root {
    --primary-green: #01733b;
    --text-black: #000000;
    --text-gray: #545454;
    --bg-light: #ebf2f4;
    --white: #ffffff;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-black);
    line-height: 2;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

h2.section-title {
    color: var(--primary-green);
    font-size: 36px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h2.section-title.normal-case {
    text-transform: none;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    /*font-size: 1rem;*/
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 80px 0;
}

#who-we-are .who-we-are-top {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
}
#who-we-are .text-content {
    flex: 1;
    padding-top: 20px;
}
#who-we-are .subtitle {
    color: #545454;
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 30px;
}
#who-we-are .image-content {
    flex: 1;
}
#who-we-are .image-content img {
    width: 100%;
    border-radius: 0;
}

#who-we-are .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
#who-we-are .feature-card {
    background-color: var(--bg-light);
    border-radius: 80px;
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#who-we-are .icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#who-we-are .icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
}
#who-we-are .feature-card h4 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}
#who-we-are .feature-card p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 2.2;
}

@media (max-width: 992px) {
    #who-we-are .who-we-are-top {
        flex-direction: column;
    }
    #who-we-are .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    #who-we-are .features-grid {
        grid-template-columns: 1fr;
    }
    #who-we-are .feature-card {
        border-radius: 40px;
        padding: 40px 20px;
    }
}

#vision-mission .vm-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}
#vision-mission .image-content {
    flex: 1;
}
#vision-mission .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
#vision-mission .vm-block p {
    font-size: 1.1rem;
    line-height: 2.2;
    margin: 0;
}

@media (max-width: 992px) {
    #vision-mission .vm-layout {
        flex-direction: column;
    }
}

#core-values .intro-text {
    max-width: 900px;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

#core-values .banner-item {
    flex: 1;
    display: flex;
}
#core-values .banner-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    #core-values .banner-item {
        flex: 0 0 33.333%;
    }
}
@media (max-width: 480px) {
    #core-values .banner-item {
        flex: 0 0 50%;
    }
}
body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

#section-objectives {
    padding: 40px 24px;
    background-color: #ffffff;
}

#section-objectives .container {
    max-width: 1285px;
    margin: 0 auto;
}

.objectives-header {
    margin-bottom: 64px;
}

.objectives-header .title {
    color: #01733b;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.objectives-header .subtitle {
    color: #333333;
    font-size: 20px;
    line-height: 2.2;
    margin: 0;
    max-width: 1000px;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 56px 48px;
    min-height: 380px;
}

/* Specific border radii to match the design's unique outer rounded corners */
.card-image {
    padding: 0;
    border-radius: 48px 0 0 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-green {
    background-color: #01733b;
    color: #ffffff;
    border-radius: 0 48px 0 0;
}

.card-green .card-title {
    color: #ffffff;
}

.card-light {
    background-color: #ebf2f4;
    color: #000000;
}

.card-bl {
    border-radius: 0 0 0 48px;
}

.card-br {
    border-radius: 0 0 48px 0;
}

.card-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 24px 0;
    line-height: 2.2;
    letter-spacing: -0.5px;
}

.card-text {
    font-size: 18px;
    line-height: 2.2;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
        padding: 40px 32px;
    }

    /* Adjust border radii for stacked layout to maintain a cohesive block */
    .card-image {
        border-radius: 32px 32px 0 0;
        aspect-ratio: 4 / 3;
    }

    .card-green {
        border-radius: 0;
    }

    .card-bl {
        border-radius: 0;
    }

    .card-br {
        border-radius: 0 0 32px 32px;
    }

    .objectives-header .title {
        font-size: 32px;
    }

    .card-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    #section-objectives {
        padding: 48px 16px;
    }

    .card {
        padding: 32px 24px;
    }

    .objectives-header .title {
        font-size: 28px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-text,
    .objectives-header .subtitle {
        font-size: 20px;
    }
}

.banner-item {
    flex: 1;
    /* Initial State: Flipped away and invisible */
    opacity: 0;
    transform: rotateY(-90deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    transform-origin: left center;

    /* Flips open like a door */
}

/* The class JS will add when scrolled into view */
.banner-item.is-visible {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Staggered Delays: Creating the "one by one" effect */
.banner-item.is-visible:nth-child(1) {
    transition-delay: 0.1s;
}

.banner-item.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}

.banner-item.is-visible:nth-child(3) {
    transition-delay: 0.3s;
}

.banner-item.is-visible:nth-child(4) {
    transition-delay: 0.4s;
}

.banner-item.is-visible:nth-child(5) {
    transition-delay: 0.5s;
}

.banner-item.is-visible:nth-child(6) {
    transition-delay: 0.6s;
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    /* 1. Global structural padding adjustments */
    .section-padding {
        padding: 25px 0 !important; /* Minimal breathing room between sections */
    }

    /* 2. Who We Are Section Spacings */
    #who-we-are .who-we-are-top {
        gap: 15px;
        margin-bottom: 25px; /* Pulls the feature grid up close */
    }

    #who-we-are .subtitle {
        margin-bottom: 15px;
    }

    /* 3. Vision & Mission Section Spacings */
    #vision-mission .vm-layout {
        gap: 25px;
    }

    #vision-mission .text-content {
        gap: 20px; /* Snaps text blocks closer together */
    }

    /* 4. Core Values Section Spacings */
    #core-values .intro-text {
        margin-bottom: 15px;
    }

    /* 5. Section Objectives Spacings */
    #section-objectives {
        padding: 25px 16px !important;
    }

    .objectives-header {
        margin-bottom: 20px; /* Keeps heading section tight to the cards */
    }

    .objectives-header .title {
        margin-bottom: 8px;
    }

    .card {
        padding: 24px 20px !important; /* Shinks the fat inside the cards */
    }

    .card-title {
        margin-bottom: 12px !important; /* Pulls text closer to card titles */
    }
}

@media (max-width: 992px) {
    .card-image {
        width: calc(100% + 32px) !important; /* Offsets the section's 16px left/right padding */
        margin-left: -16px !important; /* Pulls the image perfectly to the left edge */
        margin-right: -16px !important; /* Pulls the image perfectly to the right edge */
        border-radius: 0 !important; /* Removes corners so it flushes flat against screen walls */
    }

    .card-image img {
        width: 100% !important;
        height: auto !important;
    }
}

/* ==========================================================================
   Desktop View (Default)
   ========================================================================== */

/* Container setup */
.wheels-banners {
    display: flex;
    perspective: 1000px; /* Essential for 3D depth */
    overflow: hidden;
    padding: 20px;
}

#core-values .wheels-banners {
    display: flex;
    width: 100%;
}

/* Hide the mobile container by default on desktop */
.wheels-banner-mobile {
    display: none;
}

/* ==========================================================================
   Mobile View (768px and below)
   ========================================================================== */

@media (max-width: 768px) {
    /* Instead of wrapping the desktop banners, hide them entirely */
    #core-values .wheels-banners {
        display: none !important;
    }

    /* Reveal the mobile container */
    .wheels-banner-mobile {
        display: block; /* Or display: flex / grid if you want to style its layout */
    }

    .wheels-banner-mobile > div {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
    }

    /* Animate them when JS adds the class */
    .wheels-banner-mobile > div.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Optional: If you want the mobile images to stack nicely or sit in a grid,
       you can add styles for .wheels-banner-mobile here */
}
