/* =====================================================
   FOOD & ENVIRONMENT RESEARCH PAGE
   Standalone stylesheet
   CSS prefix: fe-
===================================================== */

/* 1. BASE */
.fe-page {
    width: 100%;
    color: #071a43;
    font-family: inherit;
    overflow: hidden;
}

.fe-page *,
.fe-page *::before,
.fe-page *::after {
    box-sizing: border-box;
}

.fe-container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* 2. TYPOGRAPHY */
.fe-page h1,
.fe-page h2,
.fe-page h3,
.fe-page p {
    font-family: inherit;
}

.fe-page h1,
.fe-page h2,
.fe-page h3 {
    color: #071a43 !important;
}

.fe-page p {
    color: #4c5a70 !important;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
}

.fe-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #80e387 !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* 3. HERO */
.fe-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 330px;
    padding: 85px 0;
    background: #071a43;
    overflow: hidden;
}

.fe-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(128, 227, 135, .35);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(128, 227, 135, .035),
                0 0 0 90px rgba(128, 227, 135, .025);
    pointer-events: none;
}

.fe-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.fe-hero h1 {
    margin: 0;
    color: #ffffff !important;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.15;
}

/* 4. CONTENT SECTIONS */
.fe-section {
    padding: 90px 0;
    background: #ffffff;
}

.fe-section-light {
    background: #f5faf4;
}

.fe-content-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 65px;
}

.fe-content-grid-reverse {
    grid-template-columns: .95fr 1.05fr;
}

.fe-section-content {
    max-width: 650px;
}

.fe-section-number {
    display: inline-block;
    margin-bottom: 18px;
    color: #80e387 ;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.5;
}

.fe-section-content h2 {
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.fe-section-content h3 {
    margin: 0 0 17px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
}

.fe-section-content p {
    margin: 0 0 17px;
}

.fe-section-content p:last-child {
    margin-bottom: 0;
}

/* 5. IMAGES */
.fe-image-wrap {
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid #e3eae5;
    border-radius: 15px;
    background: #eaf0ec;
    box-shadow: 0 14px 36px rgba(7, 26, 67, .07);
}

.fe-image-wrap img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.fe-image-wrap:hover img {
    transform: scale(1.035);
}

/* 6. TABLET */
@media (max-width: 991px) {
    .fe-hero {
        min-height: 280px;
        padding: 75px 0;
    }

    .fe-hero h1 {
        font-size: 46px;
    }

    .fe-section {
        padding: 70px 0;
    }

    .fe-content-grid,
    .fe-content-grid-reverse {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .fe-section-content h2 {
        font-size: 34px;
    }

    .fe-section-content h3 {
        font-size: 20px;
    }

    .fe-image-wrap {
        min-height: 300px;
    }

    .fe-image-wrap img {
        height: 320px;
    }
}

/* 7. MOBILE */
@media (max-width: 600px) {
    .fe-container {
        width: 90%;
    }

    .fe-hero {
        min-height: 230px;
        padding: 65px 0;
    }

    .fe-hero h1 {
        font-size: 36px;
    }

    .fe-eyebrow {
        font-size: 12px;
    }

    .fe-section {
        padding: 55px 0;
    }

    .fe-content-grid,
    .fe-content-grid-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Keep image before text on alternating sections */
    .fe-content-grid-reverse .fe-image-wrap {
        order: 0;
    }

    .fe-content-grid-reverse .fe-section-content {
        order: 1;
    }

    .fe-section-content h2 {
        font-size: 30px;
    }

    .fe-section-content h3 {
        font-size: 19px;
    }

    .fe-page p {
        font-size: 15px;
        line-height: 1.8;
    }

    .fe-image-wrap {
        min-height: 240px;
        border-radius: 11px;
    }

    .fe-image-wrap img {
        height: 260px;
    }
}

@media (max-width: 380px) {
    .fe-hero h1 {
        font-size: 31px;
    }

    .fe-section-content h2 {
        font-size: 27px;
    }
}