/* =========================================================
   ONE EARTH GENERATION
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --primary: #174d3b;
    --primary-dark: #0d3528;
    --primary-light: #2f7659;

    --accent: #3AB54A;
    --accent-dark: #1c4cc5;

    --dark: #10231c;
    --text: #34433d;
    --text-light: #68756f;

    --light: #f5f7f3;
    --white: #ffffff;

    --border: #e2e7e3;

    --container: 1200px;

    --transition: 0.35s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.7;

    overflow-x: hidden;
}


img {
    max-width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 20px 0;

    transition:
        background var(--transition),
        padding var(--transition),
        box-shadow var(--transition);
}


.site-header.scrolled {

    background: rgba(255, 255, 255, 0.97);

    padding: 12px 0;

    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.08);
}


.header-container {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--white);

    transition: color var(--transition);
}

.site-logo-image {
    display: block;
    max-width: 220px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}


.site-header.scrolled .logo {

    color: var(--dark);
}


.logo-mark {

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid currentColor;

    border-radius: 50%;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}


.logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.logo-text strong {

    font-size: 18px;

    font-weight: 800;
}


.logo-text small {

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

    opacity: 0.8;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {

    display: flex;

    align-items: center;

    gap: 25px;
}


.nav-link {

    position: relative;

    color: var(--white);

    font-size: 14px;

    font-weight: 600;

    transition: color var(--transition);
}


.site-header.scrolled .nav-link {

    color: var(--dark);
}


.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width var(--transition);
}


.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;
}


.nav-button {

    padding: 11px 20px;

    color: var(--white);

    background: var(--accent);

    border-radius: 3px;

    font-size: 13px;

    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}


.nav-button:hover {

    background: var(--accent-dark);

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background: transparent;

    cursor: pointer;

    padding: 8px;
}


.menu-toggle span {

    display: block;

    width: 100%;

    height: 2px;

    margin: 6px 0;

    background: currentColor;

    transition: var(--transition);
}


.site-header:not(.scrolled) .menu-toggle {

    color: var(--white);
}


.site-header.scrolled .menu-toggle {

    color: var(--dark);
}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    color: var(--white);

    overflow: hidden;
}


.hero-background {

    position: absolute;

    inset: 0;

    background-image:
        url("images/hero.jpg");

    background-size: cover;

    background-position: center;

    transform: scale(1.02);

    animation: heroZoom 15s ease-out forwards;
}


@keyframes heroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 30, 22, 0.88) 0%,
            rgba(7, 30, 22, 0.67) 45%,
            rgba(7, 30, 22, 0.25) 100%
        );
}


.hero-container {

    position: relative;

    z-index: 2;

    padding-top: 100px;
}


.hero-content {

    max-width: 800px;

    animation:
        heroContent 1s ease forwards;

    opacity: 0;
}


@keyframes heroContent {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-eyebrow {

    display: inline-block;

    margin-bottom: 20px;

    color: var(--accent);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 4px;
}


.hero h1 {

    max-width: 850px;

    margin-bottom: 25px;

    font-size:
        clamp(42px, 6vw, 50px);

    line-height: 1.05;

    letter-spacing: -2px;

    font-weight: 800;
}


.hero h1 span {

    display: block;

    color: var(--accent);
}


.hero p {

    max-width: 680px;

    margin-bottom: 35px;

    font-size: 18px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 0 28px;

    border-radius: 3px;

    font-size: 14px;

    font-weight: 700;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}


.btn:hover {

    transform: translateY(-3px);
}


.btn-primary {

    color: var(--white);

    background: var(--accent);

    border: 1px solid var(--accent);
}


.btn-primary:hover {

    background: var(--accent-dark);

    border-color: var(--accent-dark);
}


.btn-outline {

    color: var(--white);

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.6);
}


.btn-outline:hover {

    color: var(--dark);

    background: var(--white);

    border-color: var(--white);
}


/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {

    position: absolute;

    right: 0;

    bottom: 45px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

    transform: rotate(-90deg);

    transform-origin: right center;
}


.scroll-line {

    display: block;

    width: 55px;

    height: 1px;

    background: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section-padding {

    padding: 110px 0;
}


.section-label {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;
}


.section-label.light {

    color: var(--accent);
}


.accent-line {

    width: 55px;

    height: 4px;

    margin-top: 25px;

    background: var(--accent);
}


/* =========================================================
   VISION
========================================================= */

.vision-section {

    background: var(--white);
}


.vision-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 100px;

    align-items: start;
}


.section-intro h2 {

    max-width: 500px;

    color: var(--dark);

    font-size:
        clamp(36px, 4vw, 55px);

    line-height: 1.15;

    letter-spacing: -1.5px;
}


.vision-content {

    padding-top: 5px;
}


.vision-content p {

    margin-bottom: 22px;

    color: var(--text-light);

    font-size: 16px;
}


.vision-content .vision-lead {

    color: var(--dark);

    font-size: 21px;

    line-height: 1.7;

    font-weight: 600;
}


.text-link {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-top: 12px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 800;

    transition: gap var(--transition);
}


.text-link span {

    font-size: 20px;

    line-height: 1;
}


.text-link:hover {

    gap: 18px;
}


/* =========================================================
   IMPACT SECTION
========================================================= */

.impact-section {

    position: relative;

    padding: 110px 0;

    color: var(--white);

    overflow: hidden;
}


.impact-background {

    position: absolute;

    inset: 0;

    background-image:
        url("images/impact.jpg");

    background-size: cover;

    background-position: center;
}


.impact-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(10, 51, 38, 0.94),
            rgba(15, 70, 51, 0.86)
        );
}


.impact-container {

    position: relative;

    z-index: 2;
}


.impact-heading {

    max-width: 700px;

    margin-bottom: 65px;
}


.impact-heading h2 {

    margin-bottom: 20px;

    font-size:
        clamp(35px, 4vw, 55px);

    line-height: 1.15;

    letter-spacing: -1px;
}


.impact-heading p {

    color: rgba(255, 255, 255, 0.78);

    font-size: 17px;
}


.counter-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 40px;
}


.counter-item {

    padding: 35px 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.25);
}


.counter-number {

    margin-bottom: 10px;

    font-size:
        clamp(55px, 7vw, 90px);

    line-height: 1;

    font-weight: 800;

    letter-spacing: -3px;

    color: var(--accent);
}


.counter-line {

    width: 35px;

    height: 3px;

    margin: 20px 0;

    background: var(--accent);
}


.counter-item h3 {

    font-size: 16px;

    font-weight: 600;

    color: var(--white);
}


/* =========================================================
   PLACEHOLDER SECTIONS
========================================================= */

.placeholder-section {

    padding: 120px 0;

    background: var(--light);
}


.placeholder-section.alternate {

    background: var(--white);
}


.placeholder-content {

    max-width: 750px;
}


.placeholder-content h2 {

    margin-bottom: 20px;

    color: var(--dark);

    font-size:
        clamp(36px, 4vw, 55px);

    line-height: 1.15;
}


.placeholder-content p {

    max-width: 680px;

    color: var(--text-light);

    font-size: 17px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {

    padding: 110px 0;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );
}


.cta-content {

    max-width: 800px;
}


.cta-content h2 {

    margin-bottom: 20px;

    font-size:
        clamp(40px, 5vw, 65px);

    line-height: 1.1;
}


.cta-content p {

    max-width: 650px;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 17px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {

    background: var(--light);
}


.contact-content {

    max-width: 750px;
}


.contact-content h2 {

    margin-bottom: 20px;

    color: var(--dark);

    font-size:
        clamp(38px, 4vw, 58px);

    line-height: 1.1;
}


.contact-content p {

    margin-bottom: 15px;

    color: var(--text-light);

    font-size: 17px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    color: rgba(255, 255, 255, 0.8);

    background: #0a2119;
}


.footer-container {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 70px;

    padding: 75px 0;
}


.footer-logo {

    margin-bottom: 25px;
}


.footer-brand p {

    max-width: 400px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 14px;
}


.footer-links {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}


.footer-links h3 {

    margin-bottom: 10px;

    color: var(--white);

    font-size: 15px;
}


.footer-links a {

    color: rgba(255, 255, 255, 0.6);

    font-size: 14px;

    transition: color var(--transition);
}


.footer-links a:hover {

    color: var(--accent);
}


.footer-bottom {

    padding: 22px 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.footer-bottom p {

    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.reveal.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {

    .main-nav {

        gap: 16px;
    }


    .nav-link {

        font-size: 13px;
    }


    .nav-button {

        padding: 10px 15px;
    }


    .vision-grid {

        gap: 55px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 850px) {

    .site-header {

        padding: 15px 0;
    }


    .menu-toggle {

        display: block;
    }


    .main-nav {

        position: absolute;

        top: 100%;

        left: 20px;
        right: 20px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 20px;

        background: var(--white);

        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.15);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-10px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }


    .main-nav.open {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }


    .nav-link {

        padding: 12px 0;

        color: var(--dark) !important;

        border-bottom:
            1px solid var(--border);
    }


    .nav-link::after {

        display: none;
    }


    .nav-button {

        margin-top: 15px;

        text-align: center;
    }


    .hero {

        min-height: 750px;
    }


    .hero-container {

        padding-top: 110px;
    }


    .hero h1 {

        letter-spacing: -1px;
    }


    .scroll-indicator {

        display: none;
    }


    .vision-grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    .counter-grid {

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .counter-item {

        padding: 30px 0;
    }


    .footer-container {

        grid-template-columns: 1fr 1fr;

        gap: 45px;
    }


    .footer-brand {

        grid-column:
            1 / -1;
    }

}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 550px) {

    .container {

        width:
            calc(100% - 30px);
    }


    .section-padding {

        padding: 80px 0;
    }


    .hero {

        min-height: 700px;
    }


    .hero h1 {

        font-size: 42px;
    }


    .hero p {

        font-size: 16px;
    }


    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }


    .btn {

        width: 100%;
    }


    .impact-section {

        padding: 80px 0;
    }


    .placeholder-section {

        padding: 80px 0;
    }


    .cta-section {

        padding: 80px 0;
    }


    .footer-container {

        grid-template-columns: 1fr;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}


/* =========================================================
   STORIES / BLOG — MODERN EDITORIAL DESIGN
   ========================================================= */

.stories-page {
    background: #f5f7f3;
}

/* ---------------------------------------------------------
   STORIES HERO
   --------------------------------------------------------- */

.stories-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            120deg,
            rgba(13, 53, 40, 0.98) 0%,
            rgba(23, 77, 59, 0.94) 55%,
            rgba(23, 77, 59, 0.78) 100%
        );
    color: #ffffff;
}

.stories-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(58, 181, 74, 0.22),
            transparent 35%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(255, 255, 255, 0.06),
            transparent 30%
        );
    pointer-events: none;
}

.stories-hero .container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), 1200px);
}

.stories-hero-content {
    max-width: 820px;
    padding: 120px 0 90px;
}

.stories-hero .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #9be7a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.stories-hero .section-label::before {
    content: "";
    width: 34px;
    height: 2px;
    background: #3AB54A;
}

.stories-hero h1 {
    margin: 0 0 24px;
    max-width: 850px;
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.stories-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.15rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.stories-intro {
    padding: 90px 0 45px;
    background: #ffffff;
}

.stories-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: end;
}

.stories-intro h2 {
    margin: 0;
    color: #10231c;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.stories-intro p {
    max-width: 680px;
    margin: 0;
    color: #68756f;
    font-size: 1.05rem;
    line-height: 1.85;
}


/* ---------------------------------------------------------
   FEATURED STORY
   --------------------------------------------------------- */

.featured-story-section {
    padding: 45px 0 100px;
    background: #ffffff;
}

.featured-story-section > .container > h2 {
    margin: 0 0 28px;
    color: #10231c;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.featured-story {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    min-height: 520px;
    overflow: hidden;
    background: #174d3b;
    border-radius: 4px;
    box-shadow: 0 24px 70px rgba(16, 35, 28, 0.13);
}

.featured-story-image {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #dfe8e2;
}

.featured-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-story:hover .featured-story-image img {
    transform: scale(1.04);
}

.featured-story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent 60%,
            rgba(13, 53, 40, 0.18)
        );
    pointer-events: none;
}

.featured-story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 65px;
    color: #ffffff;
}

.featured-story-content .story-category {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 24px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: #a9eab1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-story-content h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.featured-story-content p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.featured-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.featured-story-content .button {
    align-self: flex-start;
}


/* ---------------------------------------------------------
   CATEGORY NAVIGATION
   --------------------------------------------------------- */

.story-categories-section {
    padding: 75px 0 25px;
    background: #f5f7f3;
}

.story-categories-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.story-categories-header h2 {
    margin: 0;
    color: #10231c;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.story-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.story-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 19px;
    border: 1px solid #d7dfda;
    border-radius: 100px;
    background: #ffffff;
    color: #174d3b;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.story-category-link:hover {
    transform: translateY(-2px);
    border-color: #174d3b;
    background: #174d3b;
    color: #ffffff;
}


/* ---------------------------------------------------------
   LATEST STORIES
   --------------------------------------------------------- */

.stories-list-section {
    padding: 55px 0 110px;
    background: #f5f7f3;
}

.stories-list-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.stories-list-header h2 {
    margin: 0;
    color: #10231c;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.stories-list-header p {
    max-width: 470px;
    margin: 0;
    color: #68756f;
    line-height: 1.7;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.story-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e1e7e2;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(16, 35, 28, 0.045);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.story-card:hover {
    transform: translateY(-7px);
    border-color: #d2ddd6;
    box-shadow: 0 20px 45px rgba(16, 35, 28, 0.11);
}

.story-card-image {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #dfe8e2;
}

.story-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-card:hover .story-card-image img {
    transform: scale(1.06);
}

.story-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 53, 40, 0.18),
        transparent 45%
    );
    pointer-events: none;
}

.story-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.story-card-category {
    margin-bottom: 14px;
    color: #2f7659;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.story-card h3 {
    margin: 0 0 14px;
    color: #10231c;
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.story-card h3 a {
    color: inherit;
    text-decoration: none;
}

.story-card h3 a:hover {
    color: #174d3b;
}

.story-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 24px;
    color: #68756f;
    font-size: 0.94rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.story-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #edf0ed;
}

.story-card-date {
    color: #8a958f;
    font-size: 0.78rem;
}

.story-card-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #174d3b;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.story-card-read::after {
    content: "→";
    transition: transform 0.2s ease;
}

.story-card-read:hover::after {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.stories-empty {
    padding: 70px 30px;
    border: 1px dashed #ccd7d0;
    border-radius: 4px;
    background: #ffffff;
    text-align: center;
}

.stories-empty h3 {
    margin: 0 0 10px;
    color: #174d3b;
    font-size: 1.5rem;
}

.stories-empty p {
    margin: 0;
    color: #68756f;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   STORIES CTA
   --------------------------------------------------------- */

.stories-cta {
    position: relative;
    overflow: hidden;
    padding: 95px 0;
    background: #0d3528;
    color: #ffffff;
}

.stories-cta::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -260px;
    border-radius: 50%;
    background: rgba(58, 181, 74, 0.12);
}

.stories-cta::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: -180px;
    bottom: -220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
}

.stories-cta .container {
    position: relative;
    z-index: 2;
}

.stories-cta-content {
    max-width: 760px;
}

.stories-cta h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.stories-cta p {
    max-width: 650px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   MODERN BUTTONS INSIDE STORIES
   --------------------------------------------------------- */

.stories-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.stories-page .button:hover {
    transform: translateY(-2px);
}

.stories-page .button-primary {
    border: 1px solid #3AB54A;
    background: #3AB54A;
    color: #ffffff;
}

.stories-page .button-primary:hover {
    background: #2f9d3d;
    border-color: #2f9d3d;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .stories-intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .featured-story {
        grid-template-columns: 1fr;
    }

    .featured-story-image,
    .featured-story-image img {
        min-height: 400px;
        height: 400px;
    }

    .featured-story-content {
        padding: 50px;
    }

    .stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .stories-hero {
        min-height: 470px;
    }

    .stories-hero-content {
        padding: 100px 0 70px;
    }

    .stories-hero h1 {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .stories-intro {
        padding: 65px 0 30px;
    }

    .featured-story-section {
        padding: 30px 0 70px;
    }

    .featured-story-image,
    .featured-story-image img {
        min-height: 300px;
        height: 300px;
    }

    .featured-story-content {
        padding: 35px 28px 40px;
    }

    .featured-story-content h2 {
        font-size: 2rem;
    }

    .story-categories-section {
        padding-top: 55px;
    }

    .story-categories-header,
    .stories-list-header {
        display: block;
    }

    .story-categories-header h2,
    .stories-list-header h2 {
        margin-bottom: 15px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .story-card-image {
        height: 235px;
    }

    .stories-list-section {
        padding-bottom: 75px;
    }

    .stories-cta {
        padding: 70px 0;
    }
}


@media (max-width: 480px) {

    .stories-hero .container,
    .stories-intro .container,
    .featured-story-section .container,
    .story-categories-section .container,
    .stories-list-section .container,
    .stories-cta .container {
        width: min(calc(100% - 30px), 1200px);
    }

    .stories-hero-content {
        padding: 90px 0 60px;
    }

    .stories-hero p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .featured-story-content {
        padding: 30px 22px 35px;
    }

    .story-card-content {
        padding: 23px;
    }

    .story-categories {
        gap: 8px;
    }

    .story-category-link {
        min-height: 40px;
        padding: 0 15px;
        font-size: 0.78rem;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .featured-story-image img,
    .story-card-image img,
    .story-card,
    .story-category-link,
    .stories-page .button {
        transition: none;
    }
}

/* =========================================================
   STORY CATEGORY FILTER DESCRIPTION
   ========================================================= */

.story-category-description {
    max-width: 760px;
    margin-top: 30px;
    padding: 25px 30px;
    border-left: 3px solid #3AB54A;
    background: #ffffff;
}

.story-category-description h3 {
    margin: 0 0 8px;
    color: #174d3b;
    font-size: 1.2rem;
    line-height: 1.3;
}

.story-category-description p {
    margin: 0;
    color: #68756f;
    font-size: 0.95rem;
    line-height: 1.75;
}

.story-category-link.active {
    border-color: #174d3b;
    background: #174d3b;
    color: #ffffff;
}

.story-category-link.active:hover {
    border-color: #0d3528;
    background: #0d3528;
}


/* =========================================================
   INDIVIDUAL STORY VIEW
   ========================================================= */

.story-view-page {
    background: #ffffff;
}

/* Article header */

.story-view-header {
    padding: 150px 0 65px;
    background: #f5f7f3;
    text-align: center;
}

.story-view-header .container {
    max-width: 940px;
}

.story-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 38px;
    color: #68756f;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.story-back-link:hover {
    color: #174d3b;
}

.story-view-category {
    display: table;
    margin: 0 auto 22px;
    padding: 8px 15px;
    border: 1px solid #d7dfda;
    border-radius: 100px;
    color: #2f7659;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.story-view-category:hover {
    border-color: #174d3b;
    background: #174d3b;
    color: #ffffff;
}

.story-view-header h1 {
    max-width: 900px;
    margin: 0 auto 24px;
    color: #10231c;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.story-view-excerpt {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #68756f;
    font-size: 1.15rem;
    line-height: 1.8;
}

.story-view-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    color: #849088;
    font-size: 0.84rem;
}


/* Article image */

.story-view-image-section {
    padding: 0 0 35px;
    background: #f5f7f3;
}

.story-view-image {
    max-width: 1050px;
    max-height: 620px;
    margin: 0 auto;
    overflow: hidden;
    background: #dfe8e2;
}

.story-view-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}


/* Article and sidebar layout */

.story-view-content-section {
    padding: 75px 0 100px;
}

.story-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 75px;
    align-items: start;
}

.story-view-article {
    min-width: 0;
}

.story-view-body {
    color: #34433d;
    font-size: 1.08rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.story-view-body p {
    margin: 0 0 1.5em;
}

.story-view-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid #e2e7e3;
}

.story-view-bottom-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #174d3b;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.story-view-bottom-link span {
    transition: transform 0.2s ease;
}

.story-view-bottom-link:hover span {
    transform: translateX(4px);
}


/* Sidebar */

.story-view-sidebar {
    position: sticky;
    top: 110px;
}

.story-sidebar-card {
    padding: 30px 26px;
    border-top: 3px solid #3AB54A;
    background: #f5f7f3;
}

.story-sidebar-card .section-label {
    display: block;
    margin-bottom: 18px;
    color: #2f7659;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.story-sidebar-card h2 {
    margin: 0 0 18px;
    color: #174d3b;
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.story-sidebar-card p {
    margin: 0 0 24px;
    color: #68756f;
    font-size: 0.9rem;
    line-height: 1.75;
}

.story-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #174d3b;
    font-size: 0.83rem;
    font-weight: 800;
    text-decoration: none;
}

.story-sidebar-link span {
    transition: transform 0.2s ease;
}

.story-sidebar-link:hover span {
    transform: translateX(4px);
}


/* Bottom CTA */

.story-view-cta {
    position: relative;
    overflow: hidden;
    padding: 85px 0;
    background: #0d3528;
    color: #ffffff;
}

.story-view-cta::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -150px;
    top: -260px;
    border-radius: 50%;
    background: rgba(58, 181, 74, 0.12);
}

.story-view-cta .container {
    position: relative;
    z-index: 1;
}

.story-view-cta-content {
    max-width: 760px;
}

.story-view-cta h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.story-view-cta p {
    max-width: 650px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}


/* Not found */

.story-not-found {
    display: flex;
    min-height: 65vh;
    align-items: center;
    padding: 100px 0;
    text-align: center;
}

.story-not-found .container {
    max-width: 700px;
}

.story-not-found h1 {
    margin: 18px 0;
    color: #10231c;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.story-not-found p {
    margin: 0 auto 28px;
    color: #68756f;
    font-size: 1rem;
    line-height: 1.8;
}


/* Responsive */

@media (max-width: 900px) {
    .story-view-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .story-view-sidebar {
        position: static;
    }

    .story-sidebar-card {
        max-width: 620px;
    }
}

@media (max-width: 600px) {
    .story-view-header {
        padding: 120px 0 45px;
    }

    .story-back-link {
        margin-bottom: 28px;
    }

    .story-view-excerpt {
        font-size: 1rem;
        line-height: 1.7;
    }

    .story-view-image-section {
        padding-bottom: 10px;
    }

    .story-view-image img {
        min-height: 220px;
    }

    .story-view-content-section {
        padding: 50px 0 70px;
    }

    .story-view-body {
        font-size: 1rem;
        line-height: 1.85;
    }

    .story-view-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 40px;
    }

    .story-view-cta {
        padding: 65px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-back-link,
    .story-view-bottom-link span,
    .story-sidebar-link span {
        transition: none;
    }
}


/* =========================================================
   SOCIAL MEDIA DRAWER
========================================================= */

.social-drawer {
    position: fixed;

    left: 0;
    bottom: 35px;

    z-index: 9990;

    display: flex;
    align-items: center;
}


/* Hide the checkbox */

.social-drawer-checkbox {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/* Social links */

.social-drawer-links {
    display: flex;
    flex-direction: column;

    gap: 7px;

    padding: 10px 8px;

    background: rgba(13, 53, 40, 0.96);

    border-radius: 0 10px 10px 0;

    box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.18);

    transform: translateX(-100%);

    transition:
        transform 0.3s ease;
}


/* Open drawer */

.social-drawer-checkbox:checked
~ .social-drawer-links {

    transform: translateX(0);
}


/* Individual social link */

.social-drawer-link {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    text-decoration: none;

    border-radius: 7px;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}


.social-drawer-link:hover {
    transform: translateX(3px);

    color: #ffffff;
}


/* SVG icons */

.social-drawer-link svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
}


/* Brand hover backgrounds */

.social-facebook:hover {
    background: #1877f2;
}

.social-instagram:hover {
    background: #e4405f;
}

.social-twitter:hover {
    background: #000000;
}

.social-linkedin:hover {
    background: #0a66c2;
}

.social-youtube:hover {
    background: #ff0000;
}


/* =========================================================
   DRAWER TOGGLE
========================================================= */

.social-drawer-toggle {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #174d3b;

    color: #ffffff;

    cursor: pointer;

    border-radius: 0 10px 10px 0;

    box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.18);

    transition:
        background-color 0.2s ease;
}


.social-drawer-toggle:hover {
    background: #2f7659;
}


/* Plus */

.social-toggle-icon {
    display: block;

    font-size: 28px;

    line-height: 1;

    font-weight: 300;

    transition:
        transform 0.3s ease;
}


/* Change + to × when open */

.social-drawer-checkbox:checked
~ .social-drawer-toggle
.social-toggle-icon {

    transform: rotate(45deg);
}


/* =========================================================
   FOOTER SOCIAL LINKS
========================================================= */

.footer-social {
    margin-top: 18px;
}


.footer-social-title {
    margin: 0 0 10px;

    font-size: 14px;

    font-weight: 600;

    color: inherit;
}


.footer-social-links {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}


.footer-social-link {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: inherit;

    border: 1px solid currentColor;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}


.footer-social-link:hover {
    transform: translateY(-2px);

    color: #ffffff;

    background: #3AB54A;

    border-color: #3AB54A;
}


.footer-social-link svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .social-drawer {
        bottom: 25px;
    }


    .social-drawer-link {
        width: 36px;
        height: 36px;
    }


    .social-drawer-toggle {
        width: 44px;
        height: 44px;
    }


    .footer-social {
        margin-top: 15px;
    }

}


/* =========================================================
   FOOTER SOCIAL LINKS
========================================================= */

.footer-social {
    margin-top: 18px;
}


.footer-social-title {
    margin: 0 0 10px;

    font-size: 14px;

    font-weight: 600;

    color: inherit;
}


.footer-social-links {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-wrap: wrap;
}


.footer-social-link {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: inherit;

    border: 1px solid currentColor;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}


.footer-social-link:hover {
    transform: translateY(-2px);

    color: #ffffff;

    background: #3AB54A;

    border-color: #3AB54A;
}


.footer-social-link svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .social-drawer {
        bottom: 25px;
    }


    .social-drawer-link {
        width: 36px;
        height: 36px;
    }


    .social-drawer-toggle {
        width: 44px;
        height: 44px;
    }


    .footer-social {
        margin-top: 15px;
    }

}