/* =====================================================
   AMANI FOUNDATION
   NEWS & STORIES PAGE
===================================================== */


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --primary: #46407D;

    --teal: #22C7D5;

    --green: #63E67D;

    --dark: #0F172A;

    --text: #475569;

    --light: #F8FAFC;

    --white: #FFFFFF;

    --border: #E2E8F0;

    --heading: 'Poppins', sans-serif;

    --body: 'Inter', sans-serif;

}


/* =====================================================
   RESET
===================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: var(--body);

    color: var(--text);

    background: #FFFFFF;

    line-height: 1.7;

}


img {

    display: block;

    max-width: 100%;

}


a {

    text-decoration: none;

}


/* =====================================================
   NAVIGATION
===================================================== */

.news-navbar {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 20px 6%;

}


.nav-container {

    max-width: 1400px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.nav-logo img {

    width: 120px;

}


.news-navbar nav {

    display: flex;

    align-items: center;

    gap: 32px;

}


.news-navbar nav a {

    position: relative;

    color: #FFFFFF;

    font-size: .95rem;

    font-weight: 600;

    transition: .3s ease;

}


.news-navbar nav a:hover,

.news-navbar nav a.active {

    color: var(--green);

}


.news-navbar nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 3px;

    border-radius: 10px;

    background: var(--green);

    transition: .3s ease;

}


.news-navbar nav a:hover::after,

.news-navbar nav a.active::after {

    width: 100%;

}


.nav-donate {

    padding: 13px 25px;

    border-radius: 30px;

    background:

        linear-gradient(

            135deg,

            var(--teal),

            var(--green)

        );

    color: #FFFFFF;

    font-weight: 700;

    transition: .3s ease;

}


.nav-donate:hover {

    transform: translateY(-3px);

    box-shadow:

        0 10px 25px

        rgba(34,199,213,.25);

}


/* =====================================================
   HERO
===================================================== */

.news-hero {

    min-height: 600px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #FFFFFF;

    background-image:

        url("../images/news-hero.jpg");

    background-size: cover;

    background-position: center;

}


.news-hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(

            135deg,

            rgba(70,64,125,.94),

            rgba(15,23,42,.88)

        );

}


.news-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    padding: 40px 20px;

}


.hero-tag {

    display: inline-block;

    margin-bottom: 20px;

    color: var(--green);

    font-size: .9rem;

    font-weight: 700;

    letter-spacing: 3px;

}


.news-hero-content h1 {

    font-family: var(--heading);

    font-size:

        clamp(

            3rem,

            6vw,

            5.5rem

        );

    line-height: 1.05;

    font-weight: 800;

    margin-bottom: 25px;

}


.news-hero-content p {

    max-width: 700px;

    margin: auto;

    color:

        rgba(255,255,255,.85);

    font-size: 1.15rem;

}


/* =====================================================
   GLOBAL SECTION HEADER
===================================================== */

.section-header {

    max-width: 800px;

    margin:

        0 auto 60px;

    text-align: center;

}


.section-tag {

    display: inline-block;

    color: #159EB0;

    font-size: .85rem;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;

}


.section-header h2 {

    color: var(--dark);

    font-family: var(--heading);

    font-size:

        clamp(

            2.2rem,

            4vw,

            3.5rem

        );

    line-height: 1.2;

}


.title-divider {

    position: relative;

    width: 100%;

    max-width: 650px;

    height: 2px;

    margin: 28px auto 0;

    background: var(--teal);

}


.title-divider span {

    position: absolute;

    left: 50%;

    top: 50%;

    transform:

        translate(-50%, -50%);

    width: 54px;

    height: 54px;

    border-radius: 50%;

    border: 2px solid var(--teal);

    background: #FFFFFF;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--teal);

}


.section-intro {

    max-width: 720px;

    margin:

        35px auto 0;

}


/* =====================================================
   INTRO
===================================================== */

.news-intro {

    padding:

        110px 8% 70px;

    background: #FFFFFF;

}


/* =====================================================
   FEATURED STORY
===================================================== */

.featured-news {

    padding:

        70px 8% 120px;

    background: #FFFFFF;

}


.featured-container {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:

        1.1fr .9fr;

    gap: 70px;

    align-items: center;

}


/* =====================================================
   FEATURED IMAGE
===================================================== */

.featured-image {

    position: relative;

    height: 520px;

    overflow: hidden;

    border-radius: 30px;

}


.featured-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:

        transform .7s ease;

}


.featured-image:hover img {

    transform: scale(1.05);

}


.featured-category {

    position: absolute;

    left: 25px;

    bottom: 25px;

    padding:

        10px 18px;

    border-radius: 30px;

    background: var(--primary);

    color: #FFFFFF;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: 1px;

}


/* =====================================================
   FEATURED CONTENT
===================================================== */

.article-date {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--teal);

    font-size: .8rem;

    font-weight: 700;

    letter-spacing: 1px;

}


.featured-content h2 {

    margin:

        15px 0 22px;

    color: var(--dark);

    font-family: var(--heading);

    font-size:

        clamp(

            2.2rem,

            4vw,

            3.5rem

        );

    line-height: 1.15;

}


.featured-content p {

    margin-bottom: 18px;

}


.read-more {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 15px;

    padding:

        13px 23px;

    border-radius: 30px;

    background: var(--primary);

    color: #FFFFFF;

    font-weight: 700;

    transition: .3s ease;

}


.read-more:hover {

    background: var(--teal);

    transform: translateY(-3px);

}


.read-more i {

    transition: .3s ease;

}


.read-more:hover i {

    transform: translateX(5px);

}


/* =====================================================
   LATEST NEWS
===================================================== */

.latest-news {

    padding:

        120px 8%;

    background: var(--light);

}


.latest-container {

    max-width: 1200px;

    margin: auto;

}


/* =====================================================
   FILTERS
===================================================== */

.news-filters {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin:

        -20px auto 55px;

}


.filter {

    border: 1px solid var(--border);

    background: #FFFFFF;

    color: var(--text);

    padding:

        10px 20px;

    border-radius: 30px;

    cursor: pointer;

    font-family: var(--body);

    font-size: .9rem;

    font-weight: 600;

    transition: .3s ease;

}


.filter:hover,

.filter.active {

    border-color: var(--primary);

    background: var(--primary);

    color: #FFFFFF;

}


/* =====================================================
   NEWS GRID
===================================================== */

.news-grid {

    display: grid;

    grid-template-columns:

        repeat(3, 1fr);

    gap: 28px;

}


/* =====================================================
   NEWS CARD
===================================================== */

.news-card {

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 25px;

    background: #FFFFFF;

    transition:

        transform .4s ease,

        box-shadow .4s ease,

        opacity .3s ease;

}


.news-card:hover {

    transform: translateY(-8px);

    box-shadow:

        0 20px 45px

        rgba(15,23,42,.10);

}


.news-card.hidden {

    display: none;

}


/* =====================================================
   NEWS IMAGE
===================================================== */

.news-image {

    position: relative;

    height: 245px;

    overflow: hidden;

}


.news-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:

        transform .6s ease;

}


.news-card:hover .news-image img {

    transform: scale(1.07);

}


.news-category {

    position: absolute;

    top: 18px;

    left: 18px;

    padding:

        7px 13px;

    border-radius: 20px;

    background: #FFFFFF;

    color: var(--primary);

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: 1px;

    box-shadow:

        0 5px 15px

        rgba(0,0,0,.12);

}


/* =====================================================
   NEWS CONTENT
===================================================== */

.news-content {

    padding:

        27px 25px 30px;

}


.news-meta {

    margin-bottom: 10px;

}


.news-meta span {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #159EB0;

    font-size: .75rem;

    font-weight: 700;

}


.news-content h3 {

    margin-bottom: 12px;

    color: var(--dark);

    font-family: var(--heading);

    font-size: 1.35rem;

    line-height: 1.3;

}


.news-content p {

    font-size: .9rem;

    margin-bottom: 20px;

}


.card-link {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--primary);

    font-size: .9rem;

    font-weight: 700;

    transition: .3s ease;

}


.card-link i {

    transition: .3s ease;

}


.card-link:hover {

    color: var(--teal);

}


.card-link:hover i {

    transform: translateX(5px);

}


/* =====================================================
   STORY STRIP
===================================================== */

.story-strip {

    padding:

        100px 8%;

    background: #FFFFFF;

}


.story-strip-container {

    max-width: 1050px;

    margin: auto;

    padding:

        55px 60px;

    border-radius: 30px;

    display: flex;

    align-items: center;

    gap: 35px;

    background:

        linear-gradient(

            135deg,

            rgba(70,64,125,.07),

            rgba(34,199,213,.08)

        );

    border:

        1px solid

        rgba(34,199,213,.15);

}


.story-strip-icon {

    flex-shrink: 0;

    width: 85px;

    height: 85px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: var(--green);

    font-size: 30px;

    box-shadow:

        0 12px 30px

        rgba(70,64,125,.20);

}


.story-strip-content span {

    color: var(--teal);

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.story-strip-content h2 {

    margin:

        8px 0 10px;

    color: var(--dark);

    font-family: var(--heading);

    font-size:

        clamp(

            1.8rem,

            3vw,

            2.7rem

        );

    line-height: 1.2;

}


/* =====================================================
   CTA
===================================================== */

.news-cta {

    padding:

        110px 8%;

    text-align: center;

    color: #FFFFFF;

    background:

        linear-gradient(

            135deg,

            var(--primary),

            #159EB0

        );

}


.news-cta-content {

    max-width: 750px;

    margin: auto;

}


.news-cta-content > span {

    color: var(--green);

    font-size: .8rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.news-cta-content h2 {

    margin:

        12px 0 15px;

    font-family: var(--heading);

    font-size:

        clamp(

            2.2rem,

            4vw,

            3.5rem

        );

}


.news-cta-content p {

    max-width: 650px;

    margin: auto;

    color:

        rgba(255,255,255,.85);

}


/* =====================================================
   SOCIAL LINKS
===================================================== */

.social-links {

    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;

}


.social-links a {

    width: 48px;

    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    border:

        1px solid

        rgba(255,255,255,.4);

    color: #FFFFFF;

    transition: .3s ease;

}


.social-links a:hover {

    background: #FFFFFF;

    color: var(--primary);

    transform: translateY(-5px);

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {


    .news-navbar nav {

        gap: 17px;

    }


    .featured-container {

        gap: 45px;

    }


    .news-grid {

        grid-template-columns:

            repeat(2, 1fr);

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {


    .news-navbar {

        padding:

            15px 5%;

    }


    .news-navbar nav {

        display: none;

    }


    .nav-donate {

        padding:

            10px 18px;

    }


    .news-hero {

        min-height: 550px;

    }


    .news-hero-content h1 {

        font-size: 3rem;

    }


    .news-intro,

    .featured-news,

    .latest-news,

    .story-strip,

    .news-cta {

        padding-left: 6%;

        padding-right: 6%;

    }


    .featured-container {

        grid-template-columns: 1fr;

    }


    .featured-image {

        height: 380px;

    }


    .news-grid {

        grid-template-columns: 1fr;

    }


    .story-strip-container {

        flex-direction: column;

        text-align: center;

        padding:

            45px 30px;

    }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 480px) {


    .news-hero-content h1 {

        font-size: 2.6rem;

    }


    .news-hero-content p {

        font-size: 1rem;

    }


    .featured-image {

        height: 300px;

    }


    .featured-content h2 {

        font-size: 2rem;

    }


    .news-image {

        height: 220px;

    }


    .news-filters {

        gap: 7px;

    }


    .filter {

        padding:

            8px 14px;

        font-size: .8rem;

    }

}