/* =========================================================
   OYDC ZAMBIA
   NEWS PAGE
   FEATURED NEWS DESIGN
========================================================= */


/* =========================================================
   FONT - WORLD ATHLETICS
========================================================= */

@font-face {

    font-family: 'World Athletics';

    src: url('../Font/WorldAthletics.eot');

    src:
        local('World Athletics'),
        local('WorldAthletics'),
        url('../Font/WorldAthletics.eot?#iefix')
            format('embedded-opentype'),
        url('../Font/WorldAthletics.woff2')
            format('woff2'),
        url('../Font/WorldAthletics.woff')
            format('woff'),
        url('../Font/WorldAthletics.ttf')
            format('truetype');

    font-weight: normal;
    font-style: normal;
    font-display: swap;

}


/* =========================================================
   WORLD ATHLETICS HEADLINE FONT
========================================================= */

@font-face {

    font-family: 'World Athletics Headline';

    src: url('../Font/WorldAthleticsHeadline.eot');

    src:
        local('World Athletics Headline'),
        local('WorldAthleticsHeadline'),
        url('../Font/WorldAthleticsHeadline.eot?#iefix')
            format('embedded-opentype'),
        url('../Font/WorldAthleticsHeadline.ttf')
            format('truetype');

    font-weight: bold;
    font-style: normal;
    font-display: swap;

}


/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --oydc-green: #00843d;

    --oydc-dark-green: #006b32;

    --oydc-deep-green: #004d27;

    --oydc-black: #111111;

    --oydc-white: #ffffff;

    --text-color: #171717;

    --muted-text: #777777;

    --light-text: #999999;

    --border-color: #e9ece9;

    --light-bg: #f6f8f6;

    --soft-green: #eef7f1;

    --shadow-small:
        0 8px 25px rgba(0,0,0,0.06);

    --shadow-medium:
        0 18px 45px rgba(0,0,0,0.10);

}


/* =========================================================
   BODY
========================================================= */

body {

    font-family:
        'World Athletics',
        Arial,
        sans-serif;

    color:
        var(--text-color);

    background:
        var(--oydc-white);

}


/* =========================================================
   NEWS HERO
========================================================= */

.news-hero {

    position: relative;

    min-height: 390px;

    display: flex;

    align-items: center;

    overflow: hidden;

    padding:
        80px 7%;

    background:
        linear-gradient(
            135deg,
            var(--oydc-green) 0%,
            var(--oydc-dark-green) 60%,
            var(--oydc-deep-green) 100%
        );

}


/* =========================================================
   HERO DECORATIVE SHAPE
========================================================= */

.news-hero::after {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    right: -160px;

    top: -150px;

    border-radius: 50%;

    border:
        70px solid rgba(255,255,255,0.05);

    pointer-events: none;

}


/* =========================================================
   HERO CONTENT
========================================================= */

.news-hero-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

}


/* =========================================================
   HERO LABEL
========================================================= */

.news-label {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        var(--oydc-white);

    font-size:
        13px;

    font-weight:
        bold;

    letter-spacing:
        2.5px;

    text-transform:
        uppercase;

    margin-bottom:
        18px;

}


/* =========================================================
   SMALL GREEN / WHITE DOT
========================================================= */

.news-label::before {

    content: "";

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background:
        var(--oydc-white);

}


/* =========================================================
   HERO TITLE
========================================================= */

.news-hero h1 {

    color:
        var(--oydc-white);

    font-family:
        'World Athletics Headline',
        sans-serif;

    font-size:
        clamp(52px, 7vw, 86px);

    line-height:
        0.95;

    letter-spacing:
        -1px;

    margin-bottom:
        22px;

}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.news-hero p {

    max-width:
        720px;

    color:
        rgba(255,255,255,0.90);

    font-size:
        18px;

    line-height:
        1.7;

}


/* =========================================================
   NEWS SECTION
========================================================= */

.news-section {

    padding:
        85px 7% 90px;

    background:
        var(--oydc-white);

}


/* =========================================================
   NEWS CONTAINER
========================================================= */

.news-container {

    width:
        100%;

    max-width:
        1450px;

    margin:
        0 auto;

}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        30px;

    margin-bottom:
        42px;

}


/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {

    display:
        block;

    color:
        var(--oydc-green);

    font-size:
        13px;

    font-weight:
        bold;

    letter-spacing:
        2.5px;

    text-transform:
        uppercase;

    margin-bottom:
        9px;

}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-heading h2 {

    font-family:
        'World Athletics Headline',
        sans-serif;

    color:
        var(--oydc-black);

    font-size:
        clamp(34px, 4vw, 48px);

    line-height:
        1;

}


/* =========================================================
   NEWS GRID

   IMPORTANT:

   JavaScript displays 9 posts at a time.

   FIRST CARD
   = LARGE FEATURED ARTICLE

   OTHER 8 CARDS
   = SUPPORTING NEWS ARTICLES
========================================================= */

.news-grid {

    position:
        relative;

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    grid-template-rows:
        repeat(3, auto);

    gap:
        22px;

    width:
        100%;

    overflow:
        hidden;

}


/* =========================================================
   NEWS CARD BASE
========================================================= */

.news-card {

    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;

    overflow:
        hidden;

    background:
        var(--oydc-white);

    border:
        1px solid var(--border-color);

    border-radius:
        6px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


/* =========================================================
   CARD HOVER
========================================================= */

.news-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(0,132,61,0.18);

    box-shadow:
        var(--shadow-medium);

}


/* =========================================================
   FEATURED FIRST CARD

   First article occupies:
   2 columns
   2 rows
========================================================= */

.news-card:first-child {

    grid-column:
        span 2;

    grid-row:
        span 2;

}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.news-card:first-child .news-image {

    height:
        100%;

    min-height:
        520px;

}


/* =========================================================
   STANDARD IMAGE
========================================================= */

.news-image {

    position:
        relative;

    display:
        block;

    height:
        205px;

    overflow:
        hidden;

    background:
        var(--light-bg);

}


/* =========================================================
   IMAGE
========================================================= */

.news-image img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

    transition:
        transform 0.6s ease;

}


/* =========================================================
   IMAGE HOVER
========================================================= */

.news-card:hover .news-image img {

    transform:
        scale(1.06);

}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.news-card:first-child .news-image::after {

    content:
        "";

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        0;

    height:
        60%;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0)
        );

    pointer-events:
        none;

}


/* =========================================================
   CATEGORY
========================================================= */

.news-category {

    position:
        absolute;

    left:
        16px;

    bottom:
        16px;

    z-index:
        3;

    display:
        inline-flex;

    align-items:
        center;

    padding:
        7px 11px;

    border-radius:
        3px;

    background:
        var(--oydc-green);

    color:
        var(--oydc-white);

    font-size:
        10px;

    font-weight:
        bold;

    letter-spacing:
        1px;

    text-transform:
        uppercase;

}


/* =========================================================
   FEATURED CATEGORY
========================================================= */

.news-card:first-child .news-category {

    left:
        25px;

    bottom:
        25px;

    padding:
        8px 13px;

    font-size:
        11px;

}


/* =========================================================
   NEWS CONTENT
========================================================= */

.news-content {

    display:
        flex;

    flex-direction:
        column;

    flex: 1;

    padding:
        21px 22px 23px;

}


/* =========================================================
   FEATURED CONTENT
========================================================= */

.news-card:first-child .news-content {

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        0;

    z-index:
        4;

    padding:
        35px 30px 30px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.90),
            rgba(0,0,0,0)
        );

}


/* =========================================================
   DATE
========================================================= */

.news-date {

    display:
        flex;

    align-items:
        center;

    gap:
        6px;

    color:
        var(--muted-text);

    font-size:
        12px;

    line-height:
        1.4;

    margin-bottom:
        10px;

}


/* =========================================================
   DATE ICON
========================================================= */

.news-date i {

    color:
        var(--oydc-green);

}


/* =========================================================
   FEATURED DATE
========================================================= */

.news-card:first-child .news-date {

    color:
        rgba(255,255,255,0.75);

}


/* =========================================================
   FEATURED DATE ICON
========================================================= */

.news-card:first-child .news-date i {

    color:
        rgba(255,255,255,0.85);

}


/* =========================================================
   NEWS TITLE
========================================================= */

.news-content h3 {

    font-family:
        'World Athletics Headline',
        sans-serif;

    font-size:
        20px;

    line-height:
        1.25;

    margin-bottom:
        10px;

}


/* =========================================================
   FEATURED TITLE
========================================================= */

.news-card:first-child .news-content h3 {

    font-size:
        clamp(28px, 3vw, 40px);

    line-height:
        1.08;

    max-width:
        720px;

    margin-bottom:
        12px;

}


/* =========================================================
   TITLE LINK
========================================================= */

.news-content h3 a {

    color:
        var(--oydc-black);

    text-decoration:
        none;

    transition:
        color 0.2s ease;

}


/* =========================================================
   TITLE HOVER
========================================================= */

.news-content h3 a:hover {

    color:
        var(--oydc-green);

}


/* =========================================================
   FEATURED TITLE LINK
========================================================= */

.news-card:first-child .news-content h3 a {

    color:
        var(--oydc-white);

}


/* =========================================================
   FEATURED TITLE HOVER
========================================================= */

.news-card:first-child .news-content h3 a:hover {

    color:
        rgba(255,255,255,0.80);

}


/* =========================================================
   EXCERPT
========================================================= */

.news-content p {

    color:
        #666666;

    font-size:
        14px;

    line-height:
        1.6;

    margin-bottom:
        17px;

}


/* =========================================================
   FEATURED EXCERPT
========================================================= */

.news-card:first-child .news-content p {

    max-width:
        700px;

    color:
        rgba(255,255,255,0.82);

    font-size:
        15px;

    line-height:
        1.6;

}


/* =========================================================
   READ MORE
========================================================= */

.read-more {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    width:
        fit-content;

    margin-top:
        auto;

    color:
        var(--oydc-green);

    font-size:
        12px;

    font-weight:
        bold;

    letter-spacing:
        0.5px;

    text-decoration:
        none;

    text-transform:
        uppercase;

}


/* =========================================================
   READ MORE ARROW
========================================================= */

.read-more i {

    font-size:
        11px;

    transition:
        transform 0.25s ease;

}


/* =========================================================
   READ MORE HOVER
========================================================= */

.read-more:hover i {

    transform:
        translateX(5px);

}


/* =========================================================
   FEATURED READ MORE
========================================================= */

.news-card:first-child .read-more {

    color:
        var(--oydc-white);

    font-size:
        13px;

}


/* =========================================================
   FEATURED READ MORE HOVER
========================================================= */

.news-card:first-child .read-more:hover {

    color:
        rgba(255,255,255,0.80);

}


/* =========================================================
   NEWS PAGINATION SLIDE ANIMATIONS
   THESE REMAIN FOR JAVASCRIPT PAGINATION
========================================================= */

.news-slide-in {

    animation:
        newsSlideIn 0.45s ease forwards;

}


.news-slide-in-reverse {

    animation:
        newsSlideInReverse 0.45s ease forwards;

}


.news-slide-out-left {

    animation:
        newsSlideOutLeft 0.25s ease forwards;

}


.news-slide-out-right {

    animation:
        newsSlideOutRight 0.25s ease forwards;

}


/* =========================================================
   SLIDE KEYFRAMES
========================================================= */

@keyframes newsSlideIn {

    from {

        opacity:
            0;

        transform:
            translateX(70px);

    }

    to {

        opacity:
            1;

        transform:
            translateX(0);

    }

}


@keyframes newsSlideInReverse {

    from {

        opacity:
            0;

        transform:
            translateX(-70px);

    }

    to {

        opacity:
            1;

        transform:
            translateX(0);

    }

}


@keyframes newsSlideOutLeft {

    from {

        opacity:
            1;

        transform:
            translateX(0);

    }

    to {

        opacity:
            0;

        transform:
            translateX(-70px);

    }

}


@keyframes newsSlideOutRight {

    from {

        opacity:
            1;

        transform:
            translateX(0);

    }

    to {

        opacity:
            0;

        transform:
            translateX(70px);

    }

}


/* =========================================================
   NEWS NAVIGATION
========================================================= */

.news-navigation {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        20px;

    width:
        100%;

    margin-top:
        45px;

}


/* =========================================================
   NAVIGATION BUTTON
========================================================= */

.news-nav-button {

    position:
        relative;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    min-width:
        125px;

    height:
        48px;

    padding:
        0 20px;

    border:
        1px solid #dfe5df;

    border-radius:
        3px;

    background:
        var(--oydc-white);

    color:
        var(--oydc-black);

    font-family:
        'World Athletics',
        Arial,
        sans-serif;

    font-size:
        13px;

    font-weight:
        bold;

    text-transform:
        uppercase;

    letter-spacing:
        0.5px;

    cursor:
        pointer;

    transition:
        all 0.25s ease;

}


/* =========================================================
   BUTTON HOVER
========================================================= */

.news-nav-button:hover:not(:disabled) {

    background:
        var(--oydc-green);

    border-color:
        var(--oydc-green);

    color:
        var(--oydc-white);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,132,61,0.16);

}


/* =========================================================
   BUTTON ACTIVE
========================================================= */

.news-nav-button:active:not(:disabled) {

    transform:
        translateY(0);

}


/* =========================================================
   DISABLED BUTTON
========================================================= */

.news-nav-button:disabled {

    opacity:
        0.35;

    cursor:
        not-allowed;

}


/* =========================================================
   NAVIGATION ICON
========================================================= */

.news-nav-button i {

    font-size:
        11px;

    transition:
        transform 0.25s ease;

}


/* =========================================================
   LEFT ARROW HOVER
========================================================= */

.news-nav-button:hover:not(:disabled)
.fa-arrow-left {

    transform:
        translateX(-4px);

}


/* =========================================================
   RIGHT ARROW HOVER
========================================================= */

.news-nav-button:hover:not(:disabled)
.fa-arrow-right {

    transform:
        translateX(4px);

}


/* =========================================================
   PAGE INDICATOR
========================================================= */

.news-page-indicator {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        65px;

    height:
        48px;

    color:
        var(--oydc-green);

    font-family:
        'World Athletics',
        Arial,
        sans-serif;

    font-size:
        14px;

    font-weight:
        bold;

}


/* =========================================================
   LOADING AREA

   NOTE:
   The circular spinner has been removed.
   This keeps the page consistent with the
   Reports / Contact / Donation page style.
========================================================= */
/* =========================================================
   OYDC ZAMBIA
   PREMIUM NEWS LOADING ANIMATION
   ========================================================= */

/* ---------------------------------------------------------
   LOADING CONTAINER
--------------------------------------------------------- */

.news-loading {
    position: relative;
    width: 100%;
    min-height: 360px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(0,132,61,0.045) 0%,
            rgba(0,132,61,0.018) 35%,
            rgba(255,255,255,0) 70%
        );
}


/* ---------------------------------------------------------
   REMOVE THE OLD CIRCULAR SPINNER COMPLETELY
--------------------------------------------------------- */

.news-loading .loading-spinner {
    position: relative;

    display: block !important;

    width: 260px;
    height: 4px;

    margin: 0;

    border: none !important;
    border-radius: 50px;

    background:
        linear-gradient(
            90deg,
            rgba(0,132,61,0.08),
            rgba(0,132,61,0.18),
            rgba(0,132,61,0.08)
        );

    overflow: hidden;

    box-shadow:
        0 0 0 1px rgba(0,132,61,0.04),
        0 5px 20px rgba(0,132,61,0.08);

    animation: none !important;
}


/* ---------------------------------------------------------
   PREMIUM MOVING ENERGY
--------------------------------------------------------- */

.news-loading .loading-spinner::after {
    content: "";

    position: absolute;

    top: 0;
    left: -35%;

    width: 35%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.95),
            #ffffff,
            rgba(255,255,255,0.95),
            transparent
        );

    filter:
        drop-shadow(0 0 5px rgba(255,255,255,0.9))
        drop-shadow(0 0 10px rgba(0,132,61,0.35));

    animation:
        newsPremiumScan
        1.35s
        cubic-bezier(0.65,0,0.35,1)
        infinite;
}


/* ---------------------------------------------------------
   GREEN ACTIVE BAR
--------------------------------------------------------- */

.news-loading .loading-spinner::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #006b32 0%,
            #00843d 30%,
            #00a94f 50%,
            #00843d 70%,
            #006b32 100%
        );

    background-size: 200% 100%;

    animation:
        newsPremiumGreenFlow
        1.8s
        linear
        infinite;

    opacity: 0.9;
}


/* ---------------------------------------------------------
   LOADING LABEL
--------------------------------------------------------- */

.news-loading::after {
    content: "LOADING NEWS";

    margin-top: 25px;

    font-family:
        "World Athletics",
        Arial,
        sans-serif;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3.5px;

    color:
        var(--oydc-dark-green);

    text-transform: uppercase;

    animation:
        newsPremiumText
        1.8s
        ease-in-out
        infinite;
}


/* ---------------------------------------------------------
   THREE STATUS DOTS
--------------------------------------------------------- */

.news-loading {
    --loading-dot-size: 4px;
}


/* Create the dots using a separate visual layer */
.news-loading::before {
    content: "•••";

    position: absolute;

    left: 50%;

    top: calc(50% + 42px);

    transform:
        translateX(-50%);

    color:
        var(--oydc-green);

    font-family:
        Arial,
        sans-serif;

    font-size:
        14px;

    letter-spacing:
        5px;

    line-height:
        1;

    opacity:
        0.45;

    animation:
        newsPremiumDots
        1.4s
        ease-in-out
        infinite;
}


/* =========================================================
   PREMIUM LOADING ANIMATIONS
   ========================================================= */


/* ---------------------------------------------------------
   MOVING WHITE SCAN
--------------------------------------------------------- */

@keyframes newsPremiumScan {

    0% {
        left: -35%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}


/* ---------------------------------------------------------
   GREEN FLOW
--------------------------------------------------------- */

@keyframes newsPremiumGreenFlow {

    0% {
        background-position:
            200% 0;
    }

    100% {
        background-position:
            -200% 0;
    }
}


/* ---------------------------------------------------------
   TEXT PULSE
--------------------------------------------------------- */

@keyframes newsPremiumText {

    0% {
        opacity: 0.45;
        letter-spacing: 3px;
        transform:
            translateY(2px);
    }

    50% {
        opacity: 1;
        letter-spacing: 3.5px;
        transform:
            translateY(0);
    }

    100% {
        opacity: 0.45;
        letter-spacing: 3px;
        transform:
            translateY(2px);
    }
}


/* ---------------------------------------------------------
   DOT PULSE
--------------------------------------------------------- */

@keyframes newsPremiumDots {

    0% {
        opacity: 0.2;
        transform:
            translateX(-50%)
            translateY(0);
    }

    33% {
        opacity: 0.55;
    }

    66% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
        transform:
            translateX(-50%)
            translateY(-2px);
    }
}


/* =========================================================
   PREMIUM LOADER RESPONSIVE
   ========================================================= */

@media (max-width: 650px) {

    .news-loading {
        min-height:
            300px;
    }

    .news-loading .loading-spinner {
        width:
            210px;
    }

    .news-loading::after {
        font-size:
            11px;

        letter-spacing:
            2.8px;
    }

    .news-loading::before {
        top:
            calc(50% + 39px);
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .news-loading {
        min-height:
            260px;
    }

    .news-loading .loading-spinner {
        width:
            180px;
    }

    .news-loading::after {
        font-size:
            10px;

        letter-spacing:
            2.3px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .news-loading .loading-spinner,
    .news-loading .loading-spinner::before,
    .news-loading .loading-spinner::after,
    .news-loading::before,
    .news-loading::after {
        animation:
            none !important;
    }

    .news-loading .loading-spinner {
        background:
            #00843d;
        box-shadow:
            0 0 0 1px rgba(0,132,61,0.08);
    }

    .news-loading .loading-spinner::before {
        display:
            none;
    }

    .news-loading .loading-spinner::after {
        display:
            none;
    }

    .news-loading::after {
        opacity:
            1;
        letter-spacing:
            3px;
    }

    .news-loading::before {
        opacity:
            0.6;
    }
}


/* =========================================================
   ERROR / NO NEWS
========================================================= */

.news-error,
.no-news {

    min-height:
        300px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    padding:
        40px;

}


/* =========================================================
   ERROR ICON / NO NEWS ICON
========================================================= */

.news-error i,
.no-news i {

    font-size:
        42px;

    color:
        var(--oydc-green);

    margin-bottom:
        18px;

}


/* =========================================================
   ERROR TITLE
========================================================= */

.news-error h3,
.no-news h3 {

    font-family:
        'World Athletics Headline',
        sans-serif;

    font-size:
        28px;

    margin-bottom:
        10px;

}


/* =========================================================
   ERROR TEXT
========================================================= */

.news-error p,
.no-news p {

    max-width:
        600px;

    color:
        #666;

    line-height:
        1.6;

    margin-bottom:
        20px;

}


/* =========================================================
   ERROR BUTTON
========================================================= */

.news-error button {

    border:
        none;

    background:
        var(--oydc-green);

    color:
        var(--oydc-white);

    padding:
        12px 24px;

    border-radius:
        3px;

    cursor:
        pointer;

    font-family:
        inherit;

    font-weight:
        bold;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


/* =========================================================
   ERROR BUTTON HOVER
========================================================= */

.news-error button:hover {

    background:
        var(--oydc-dark-green);

    transform:
        translateY(-2px);

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.news-nav-button:focus-visible,
.read-more:focus-visible,
.news-content h3 a:focus-visible {

    outline:
        3px solid rgba(0,132,61,0.25);

    outline-offset:
        3px;

}


/* =========================================================
   =========================================================
   PAGE LOAD ANIMATION
   SAME STYLE AS REPORTS / CONTACT / DONATION
   =========================================================
========================================================= */


/* =========================================================
   GENERAL PAGE FADE
========================================================= */

body {

    animation:
        newsPageFadeIn
        0.9s
        ease-out
        both;

}


/* =========================================================
   HERO CONTENT
   Slides in from the left
========================================================= */

.news-hero-content {

    animation:
        newsHeroIn
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.15s
        both;

}


/* =========================================================
   HERO LABEL
========================================================= */

.news-hero .news-label {

    animation:
        newsLabelIn
        0.7s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.30s
        both;

}


/* =========================================================
   HERO TITLE
========================================================= */

.news-hero h1 {

    animation:
        newsHeadingIn
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.38s
        both;

}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.news-hero p {

    animation:
        newsDescriptionIn
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.52s
        both;

}


/* =========================================================
   HERO DECORATIVE CIRCLE
========================================================= */

.news-hero::after {

    animation:
        newsHeroDecorationIn
        1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.20s
        both;

}


/* =========================================================
   NEWS SECTION
========================================================= */

.news-section {

    animation:
        newsSectionIn
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.30s
        both;

}


/* =========================================================
   SECTION HEADING
========================================================= */

.news-section .section-heading {

    animation:
        newsSectionHeadingIn
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.42s
        both;

}


/* =========================================================
   NEWS GRID
========================================================= */

.news-grid {

    animation:
        newsGridIn
        0.8s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.48s
        both;

}


/* =========================================================
   NEWS CARDS
   Staggered entrance
========================================================= */

.news-grid .news-card {

    opacity:
        0;

    animation:
        newsCardIn
        0.8s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

}


/* =========================================================
   FIRST FEATURED CARD
========================================================= */

.news-grid .news-card:nth-child(1) {

    animation-delay:
        0.52s;

}


/* =========================================================
   SECOND CARD
========================================================= */

.news-grid .news-card:nth-child(2) {

    animation-delay:
        0.64s;

}


/* =========================================================
   THIRD CARD
========================================================= */

.news-grid .news-card:nth-child(3) {

    animation-delay:
        0.76s;

}


/* =========================================================
   FOURTH CARD
========================================================= */

.news-grid .news-card:nth-child(4) {

    animation-delay:
        0.88s;

}


/* =========================================================
   FIFTH CARD
========================================================= */

.news-grid .news-card:nth-child(5) {

    animation-delay:
        1.00s;

}


/* =========================================================
   SIXTH CARD
========================================================= */

.news-grid .news-card:nth-child(6) {

    animation-delay:
        1.12s;

}


/* =========================================================
   SEVENTH CARD
========================================================= */

.news-grid .news-card:nth-child(7) {

    animation-delay:
        1.24s;

}


/* =========================================================
   EIGHTH CARD
========================================================= */

.news-grid .news-card:nth-child(8) {

    animation-delay:
        1.36s;

}


/* =========================================================
   NINTH CARD
========================================================= */

.news-grid .news-card:nth-child(9) {

    animation-delay:
        1.48s;

}


/* =========================================================
   NEWS NAVIGATION
========================================================= */

.news-navigation {

    animation:
        newsNavigationIn
        0.8s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.72s
        both;

}


/* =========================================================
   PAGE INDICATOR
========================================================= */

.news-page-indicator {

    animation:
        newsPageIndicatorIn
        0.7s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.88s
        both;

}


/* =========================================================
   ERROR / EMPTY STATE
========================================================= */

.news-error,
.no-news {

    animation:
        newsEmptyStateIn
        0.8s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.50s
        both;

}


/* =========================================================
   =========================================================
   PAGE LOAD KEYFRAMES
   =========================================================
========================================================= */


/* =========================================================
   PAGE FADE
========================================================= */

@keyframes newsPageFadeIn {

    from {

        opacity:
            0;

    }

    to {

        opacity:
            1;

    }

}


/* =========================================================
   HERO CONTENT
========================================================= */

@keyframes newsHeroIn {

    from {

        opacity:
            0;

        transform:
            translateX(-40px);

    }

    to {

        opacity:
            1;

        transform:
            translateX(0);

    }

}


/* =========================================================
   HERO LABEL
========================================================= */

@keyframes newsLabelIn {

    from {

        opacity:
            0;

        transform:
            translateX(-25px);

    }

    to {

        opacity:
            1;

        transform:
            translateX(0);

    }

}


/* =========================================================
   HERO TITLE
========================================================= */

@keyframes newsHeadingIn {

    from {

        opacity:
            0;

        transform:
            translateY(25px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

@keyframes newsDescriptionIn {

    from {

        opacity:
            0;

        transform:
            translateY(20px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   HERO DECORATION
========================================================= */

@keyframes newsHeroDecorationIn {

    from {

        opacity:
            0;

        transform:
            scale(0.82)
            rotate(-15deg);

    }

    to {

        opacity:
            1;

        transform:
            scale(1)
            rotate(0deg);

    }

}


/* =========================================================
   NEWS SECTION
========================================================= */

@keyframes newsSectionIn {

    from {

        opacity:
            0;

        transform:
            translateY(25px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   SECTION HEADING
========================================================= */

@keyframes newsSectionHeadingIn {

    from {

        opacity:
            0;

        transform:
            translateY(25px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   NEWS GRID
========================================================= */

@keyframes newsGridIn {

    from {

        opacity:
            0;

        transform:
            translateY(20px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   NEWS CARD
========================================================= */

@keyframes newsCardIn {

    from {

        opacity:
            0;

        transform:
            translateY(28px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   NAVIGATION
========================================================= */

@keyframes newsNavigationIn {

    from {

        opacity:
            0;

        transform:
            translateY(20px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   PAGE INDICATOR
========================================================= */

@keyframes newsPageIndicatorIn {

    from {

        opacity:
            0;

        transform:
            scale(0.90);

    }

    to {

        opacity:
            1;

        transform:
            scale(1);

    }

}


/* =========================================================
   EMPTY STATE
========================================================= */

@keyframes newsEmptyStateIn {

    from {

        opacity:
            0;

        transform:
            translateY(25px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   =========================================================
   GREEN LOADING LINE
   SAME STYLE AS REPORTS / CONTACT / DONATION
   =========================================================
========================================================= */

body::before {

    content:
        "";

    position:
        fixed;

    top:
        0;

    left:
        0;

    width:
        100%;

    height:
        3px;

    background:
        var(--oydc-green);

    transform-origin:
        left;

    transform:
        scaleX(0);

    animation:
        newsPageLoadingLine
        1.1s
        cubic-bezier(0.65, 0, 0.35, 1)
        both;

    z-index:
        99999;

    pointer-events:
        none;

}


/* =========================================================
   GREEN LOADING LINE KEYFRAME
========================================================= */

@keyframes newsPageLoadingLine {

    0% {

        transform:
            scaleX(0);

        opacity:
            1;

    }

    70% {

        transform:
            scaleX(0.85);

        opacity:
            1;

    }

    100% {

        transform:
            scaleX(1);

        opacity:
            0;

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .news-section {

        padding:
            70px 6% 80px;

    }


    .news-grid {

        grid-template-columns:
            repeat(3, 1fr);

        grid-template-rows:
            auto;

    }


    .news-card:first-child {

        grid-column:
            span 2;

        grid-row:
            span 2;

    }


    .news-card:first-child .news-image {

        min-height:
            450px;

    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 850px) {

    .news-hero {

        min-height:
            340px;

        padding:
            70px 6%;

    }


    .section-heading {

        align-items:
            flex-start;

        flex-direction:
            column;

        margin-bottom:
            35px;

    }


    .news-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .news-card:first-child {

        grid-column:
            span 2;

        grid-row:
            auto;

    }


    .news-card:first-child .news-image {

        height:
            430px;

        min-height:
            430px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .news-hero {

        min-height:
            320px;

        padding:
            60px 7%;

    }


    .news-hero h1 {

        font-size:
            48px;

        line-height:
            0.98;

    }


    .news-hero p {

        font-size:
            16px;

        line-height:
            1.6;

    }


    /* -----------------------------------------------------
       SECTION
    ----------------------------------------------------- */

    .news-section {

        padding:
            55px 6% 65px;

    }


    /* -----------------------------------------------------
       SECTION HEADING
    ----------------------------------------------------- */

    .section-heading {

        margin-bottom:
            30px;

    }


    .section-heading h2 {

        font-size:
            34px;

    }


    /* -----------------------------------------------------
       NEWS GRID
    ----------------------------------------------------- */

    .news-grid {

        display:
            grid;

        grid-template-columns:
            1fr;

        grid-template-rows:
            auto;

        gap:
            20px;

    }


    /* -----------------------------------------------------
       FEATURED CARD
    ----------------------------------------------------- */

    .news-card:first-child {

        grid-column:
            auto;

        grid-row:
            auto;

    }


    .news-card:first-child .news-image {

        height:
            350px;

        min-height:
            350px;

    }


    /* -----------------------------------------------------
       STANDARD CARD IMAGE
    ----------------------------------------------------- */

    .news-image {

        height:
            220px;

    }


    /* -----------------------------------------------------
       FEATURED TITLE
    ----------------------------------------------------- */

    .news-card:first-child .news-content h3 {

        font-size:
            28px;

    }


    /* -----------------------------------------------------
       FEATURED CONTENT
    ----------------------------------------------------- */

    .news-card:first-child .news-content {

        padding:
            25px 22px 22px;

    }


    /* -----------------------------------------------------
       STANDARD CONTENT
    ----------------------------------------------------- */

    .news-content {

        padding:
            20px;

    }


    /* -----------------------------------------------------
       NAVIGATION
    ----------------------------------------------------- */

    .news-navigation {

        gap:
            10px;

        margin-top:
            30px;

    }


    .news-nav-button {

        min-width:
            100px;

        height:
            44px;

        padding:
            0 13px;

        font-size:
            12px;

    }


    .news-page-indicator {

        min-width:
            45px;

        height:
            44px;

        font-size:
            13px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .news-hero {

        min-height:
            300px;

        padding:
            50px 6%;

    }


    .news-hero h1 {

        font-size:
            42px;

    }


    .news-hero p {

        font-size:
            15px;

    }


    .news-section {

        padding:
            45px 5% 55px;

    }


    .section-heading h2 {

        font-size:
            30px;

    }


    .news-card:first-child .news-image {

        height:
            300px;

        min-height:
            300px;

    }


    .news-card:first-child .news-content h3 {

        font-size:
            25px;

    }


    .news-image {

        height:
            200px;

    }


    .news-content h3 {

        font-size:
            20px;

    }


    .news-navigation {

        gap:
            5px;

    }


    .news-nav-button {

        min-width:
            85px;

        height:
            42px;

        padding:
            0 9px;

    }


    .news-nav-button span {

        font-size:
            11px;

    }


    .news-page-indicator {

        min-width:
            40px;

        font-size:
            12px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    body,
    body::before,

    .news-hero-content,
    .news-label,
    .news-hero h1,
    .news-hero p,
    .news-hero::after,

    .news-section,
    .news-section .section-heading,
    .news-grid,
    .news-grid .news-card,

    .news-navigation,
    .news-page-indicator,

    .news-error,
    .no-news,

    .news-card,
    .news-image img,
    .read-more,
    .news-nav-button,
    .news-nav-button i {

        animation:
            none !important;

        transition:
            none !important;

        opacity:
            1 !important;

        transform:
            none !important;

    }

}