﻿

/* ==============================
   HERO SECTION
============================== */
.about-hero {
    position: relative;
    background: url('../images/about/aboutusbanner.png') center center/cover no-repeat;
    height: 40vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.about-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0.1) 90%);
    display: flex;
    align-items: center;
}

.about-text {
    max-width: 600px;
    text-align: left;
    padding-left: 2%;
    margin-left: 0;
}

    .about-text h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #00A859;
        margin-bottom: 0.8rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
        font-weight: 600;
        color: #fff;
        line-height: 1.5;
    }

.about-description {
    background: #fff;
    text-align: center;
    padding: 70px 20px;
    max-width: 900px;
    margin: 0 auto;
}

    .about-description p {
        color: #222;
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 1.2rem;
        font-weight: 500;
    }

        .about-description p:last-child {
            margin-bottom: 0;
        }

/* HERO Responsive */
@media (max-width: 992px) {
    .about-hero {
        height: 55vh;
    }

    .about-text {
        padding-left: 8%;
    }

        .about-text h2 {
            font-size: 1.8rem;
        }

        .about-text h3 {
            font-size: 1.4rem;
        }

    .about-description {
        padding: 60px 30px;
    }
}

@media (max-width: 576px) {
    .about-hero {
        height: 45vh;
        align-items: flex-end;
        padding-bottom: 40px;
    }

    .about-text {
        padding: 0 20px;
    }

        .about-text h2 {
            font-size: 1.4rem;
        }

        .about-text h3 {
            font-size: 1.1rem;
            line-height: 1.4;
        }

    .about-description {
        padding: 40px 20px;
    }

        .about-description p {
            font-size: 0.95rem;
            line-height: 1.7;
        }
}

/* ==============================
   MISSION SECTION
============================== */
:root {
    --panel-bg: #e6f1fb;
    --accent-green: #0ea15f;
    --muted: #18262d;
    --radius: 36px;
    --gap: 32px;
    --max-width: 1200px;
}

/* ==============================
   Layered Overlap Design
============================== */
.mission-section {
    display: flex;
    align-items: stretch;
    gap: 0; /* remove gap */
    position: relative; /* needed for overlap positioning */
    max-width: calc(var(--max-width) + 160px);
    margin: 48px auto;
    padding: 0 40px;
}

/* Image on the left */
.mission-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    z-index: 2; /* keep image above the panel */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

    .mission-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius);
    }

/* Text panel overlapping the image */
.mission-panel {
    flex: 0 0 50%;
    background: var(--panel-bg);
    border-radius: var(--radius);
    padding: 48px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-left: -40px; /* <-- key overlap */
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-green); /* stylish touch */
}

/* Optional decorative curve at the join */
.mission-image::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(230, 241, 251, 0), rgba(230, 241, 251, 1));
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}


.mission-title {
    color: var(--accent-green);
    font-weight: 800;
    font-size: 38px;
    line-height: 1.02;
    margin-bottom: 18px;
}

.mission-sub {
    color: var(--muted);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 18px;
}

.mission-lead {
    font-size: 24px;
    font-weight: 800;
    color: #0b222b;
    line-height: 1.15;
    margin-bottom: 18px;
}

.mission-copy {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Mission Responsive */
@media (max-width: 990px) {
    .mission-section {
        flex-direction: column;
        padding: 0 20px;
    }

    .mission-panel {
        margin-left: 0; /* remove overlap */
        border-left: none;
        border-top: 5px solid var(--accent-green);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: none;
    }

    .mission-image::after {
        display: none;
    }
}


    .mission-title {
        font-size: 32px;
    }

    .mission-lead {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .mission-panel {
        padding: 20px;
    }

    .mission-title {
        font-size: 26px;
    }

    .mission-lead {
        font-size: 18px;
    }

    .mission-copy {
        font-size: 15px;
    }
}

/* ==============================
   PILLARS SECTION
============================== */
:root {
    --mint: #A6E0CC;
    --mint-dark: #00A859;
    --green: #00A859;
    --text: #0b0b0b;
    --muted-dark: #333;
    --radius: 28px;
}

/* ===== Scroll-Proof Pillars Section ===== */
.pillars-section {
    overflow-x: hidden; /* Prevent any horizontal overflow */
    overflow-y: visible; /* Allow natural vertical flow only */
    width: 100%; /* Lock width to viewport */
    max-width: 100vw; /* Prevent content from exceeding screen width */
    box-sizing: border-box;
}


/* Inner layout grid */
.pillars-inner {
    display: grid;
    grid-template-columns: 1fr 240px 1fr;
    gap: 40px;
    justify-items: center;
    align-items: center;
    max-width: 1200px; /* Keeps layout centered */
    margin: 0 auto;
    padding: 60px 20px; /* Add some inner breathing space */
    box-sizing: border-box;
}

/* Prevent flex children from causing overflow */
.pillar, .icon-circle, .outer-square, .inner-square {
    max-width: 100%;
    box-sizing: border-box;
}

    /* Fix hover scale not causing overflow */
    .icon-circle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform-origin: center;
    }

/* Responsive fix for mobile (prevents horizontal scrolling) */
@media (max-width: 768px) {
    .pillars-inner {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 36px;
        padding: 40px 16px;
    }

    .pillar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        width: 100%;
    }

    .icon-circle {
        margin: 0 auto;
    }

    /* Prevent any accidental overflow on small screens */
    .outer-square, .inner-square {
        margin: 0 auto;
        max-width: 100%;
    }
}

/* Safety fix for ultra-small devices */
@media (max-width: 400px) {
    .pillars-section {
        padding-left: 0;
        padding-right: 0;
    }

    .pillars-inner {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.left {
    align-items: flex-end;
    padding-right: 16px;
}

.right {
    align-items: flex-start;
    padding-left: 16px;
}

/* Pillar Items */
.pillar {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 420px;
    width: 100%;
}

    .pillar.reverse {
        flex-direction: row-reverse;
    }

    .pillar .text {
        max-width: 280px;
    }

.left .pillar .text {
    text-align: right;
}

.right .pillar .text {
    text-align: left;
}

.pillar h3 {
    margin: 0;
    font-size: 22px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
}

.pillar p {
    margin: 6px 0 0;
    color: var(--muted-dark);
    font-size: 15px;
    line-height: 1.5;
}

/* Icons */
.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #000;
    /*box-shadow: 0 0 0 6px rgba(0,0,0,0.05) inset;*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

    .icon-circle img {
        width: 65%;
        height: 65%;
        object-fit: contain;
    }

    .icon-circle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

/* Center Block */
.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.outer-square {
    width: 240px;
    height: 240px;
    border-radius: 34px;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-square {
    width: 180px;
    height: 180px;
    border-radius: 22px;
    background: var(--mint-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-text strong {
    color: #fff;
    font-size: 30px;
    text-align: center;
    line-height: 1.05;
    font-weight: 800;
}

/* Pillars Responsive */
@media (max-width: 1024px) {
    .pillars-inner {
        grid-template-columns: 1fr 260px 1fr;
        gap: 30px;
    }

    .outer-square {
        width: 200px;
        height: 200px;
    }

    .inner-square {
        width: 150px;
        height: 150px;
    }

    .pillar h3 {
        font-size: 20px;
    }

    .icon-circle {
        width: 85px;
        height: 85px;
    }
}

@media (max-width: 768px) {
    .pillars-inner {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 36px;
    }

    .left, .right {
        align-items: center;
        padding: 0;
    }

    .pillar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

        .pillar.reverse {
            flex-direction: column;
        }

    .icon-circle {
        width: 80px;
        height: 80px;
    }

    .outer-square {
        width: 180px;
        height: 180px;
    }

    .inner-square {
        width: 130px;
        height: 130px;
    }

    .square-text strong {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .pillars-section {
        padding: 40px 12px;
    }

    .pillar h3 {
        font-size: 18px;
    }

    .pillar p {
        font-size: 14px;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
    }

    .outer-square {
        width: 160px;
        height: 160px;
    }

    .inner-square {
        width: 110px;
        height: 110px;
    }

    .square-text strong {
        font-size: 22px;
    }
}

/* ==============================
   JOIN SECTION
============================== */
.join-section {
    background: url('/Content/assets/images/about/farmabput.jpg') center/cover no-repeat;
    border-radius: 30px;
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 1100px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.join-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.join-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 14px 28px;
    cursor: pointer;
    font-size: 0.95rem;
}

    .btn.yellow {
        background-color: #f9c74f;
        color: #111;
    }

    .btn.green {
        background-color: #24b47e;
        color: #fff;
    }

/* Join Responsive */
@media (max-width: 768px) {
    .join-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 20px;
    }

    .join-buttons {
        justify-content: center;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        white-space: normal;
    }
}
