/* =====================================================
   NEWS PAGE
   ===================================================== */


/* =====================================================
   HERO
   ===================================================== */

.news-hero {

    min-height: 75vh;

    display: flex;

    align-items: flex-end;

    padding: 100px 7%;

    background:
        linear-gradient(
            90deg,
            rgba(5,7,8,0.96),
            rgba(5,7,8,0.45)
        ),url("../images/hero1.jpeg") center center/ cover no-repeat;
}


.news-hero-content {

    max-width: 900px;
}


.news-hero h1 {

    margin: 0;

    font-size: clamp(55px, 8vw, 105px);

    line-height: 0.9;

    letter-spacing: -5px;
}


.news-hero h1 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


.news-hero-content > p:last-child {

    max-width: 600px;

    margin-top: 30px;

    color: rgba(255,255,255,0.55);

    line-height: 1.8;
}


/* =====================================================
   FEATURED STORY
   ===================================================== */

.featured-news {

    padding: 140px 0;

    background: #090b0d;
}


.featured-news-grid {

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 80px;

    align-items: center;
}


.featured-news-image {

    min-height: 500px;

    display: flex;

    align-items: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.85)
        ),
        url("../images/featured-news.jpg")
        center / cover no-repeat;
}


.featured-news-image span {

    padding: 7px 10px;

    background: rgba(0,0,0,0.7);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.featured-news-content h2 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


.featured-news-content > p:not(.section-label) {

    max-width: 500px;

    margin: 25px 0;

    color: rgba(255,255,255,0.4);

    line-height: 1.8;
}


.news-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin: 25px 0;

    color: rgba(255,255,255,0.3);

    font-size: 9px;
}


.news-meta span {

    display: flex;

    align-items: center;

    gap: 7px;
}


.read-story-button,
.news-read-more {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 0;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;
}


/* =====================================================
   LATEST NEWS
   ===================================================== */

.latest-news {

    padding: 140px 0;

    background: #0d1012;
}


.news-heading {

    margin-bottom: 50px;
}


.news-heading h2 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


/* =====================================================
   FILTERS
   ===================================================== */

.news-filters {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 55px;
}


.news-filter {

    padding: 12px 18px;

    border: 1px solid rgba(255,255,255,0.1);

    background: transparent;

    color: rgba(255,255,255,0.45);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;
}


.news-filter:hover,
.news-filter.active {

    background: #ffffff;

    color: #080a0c;

    border-color: #ffffff;
}


/* =====================================================
   NEWS GRID
   ===================================================== */

.news-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.news-card {

    background: #090b0d;

    border: 1px solid rgba(255,255,255,0.07);

    overflow: hidden;

    transition: 0.3s ease;
}


.news-card:hover {

    transform: translateY(-5px);

    border-color: rgba(255,255,255,0.15);
}


/* =====================================================
   NEWS IMAGES
   ===================================================== */

.news-card-image {

    height: 240px;

    display: flex;

    align-items: flex-end;

    padding: 20px;

    background-position: center;

    background-size: cover;
}


.news-card-image span {

    padding: 6px 9px;

    background: rgba(0,0,0,0.75);

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 1px;
}


.news-image-one {

    background-image:
        linear-gradient(
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.8)
        ),
        url("../images/news-1.jpg");
}


.news-image-two {

    background-image:
        linear-gradient(
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.8)
        ),
        url("../images/news-2.jpg");
}


.news-image-three {

    background-image:
        linear-gradient(
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.8)
        ),
        url("../images/news-3.jpg");
}


.news-image-four {

    background-image:
        linear-gradient(
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.8)
        ),
        url("../images/news-4.jpg");
}


.news-image-five {

    background-image:
        linear-gradient(
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.8)
        ),
        url("../images/news-5.jpg");
}


.news-image-six {

    background-image:
        linear-gradient(
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.8)
        ),
        url("../images/news-6.jpg");
}


/* =====================================================
   NEWS CONTENT
   ===================================================== */

.news-card-content {

    padding: 25px;
}


.news-card-date {

    margin-bottom: 12px;

    color: rgba(255,255,255,0.25);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1px;
}


.news-card-content h3 {

    margin-bottom: 12px;

    font-size: 19px;

    line-height: 1.25;
}


.news-card-content p {

    margin-bottom: 22px;

    color: rgba(255,255,255,0.35);

    font-size: 10px;

    line-height: 1.7;
}


/* =====================================================
   NEWS STORY PANEL
   ===================================================== */

.news-story-panel {

    display: none;

    position: relative;

    padding: 100px 0;

    background: #111417;

    border-top: 1px solid rgba(255,255,255,0.08);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}


.news-story-panel.open {

    display: block;

    animation: newsPanelOpen 0.3s ease;
}


@keyframes newsPanelOpen {

    from {

        opacity: 0;

        transform: translateY(15px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


.close-news-story {

    position: absolute;

    top: 30px;

    right: 7%;

    width: 38px;

    height: 38px;

    border: 1px solid rgba(255,255,255,0.1);

    background: transparent;

    color: #ffffff;

    cursor: pointer;
}


.close-news-story:hover {

    background: #ffffff;

    color: #080a0c;
}


.news-story-panel h2 {

    max-width: 900px;

    margin: 10px 0 25px;

    font-size: clamp(40px, 6vw, 75px);

    line-height: 1;
}


.news-story-meta {

    display: flex;

    gap: 25px;

    margin-bottom: 30px;

    color: rgba(255,255,255,0.3);

    font-size: 9px;

    text-transform: uppercase;
}


#news-story-text {

    max-width: 750px;

    color: rgba(255,255,255,0.5);

    line-height: 2;

    font-size: 13px;
}


/* =====================================================
   NEWSLETTER
   ===================================================== */

.news-newsletter {

    padding: 100px 0;

    background: #ffffff;

    color: #080a0c;
}


.newsletter-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;
}


.news-newsletter .section-label {

    color: rgba(0,0,0,0.4);
}


.news-newsletter h2 {

    margin: 0;

    color: #080a0c;
}


.news-newsletter h2 span {

    display: block;

    color: rgba(0,0,0,0.3);
}


.newsletter-form {

    display: flex;

    width: min(100%, 500px);

    border-bottom: 1px solid rgba(0,0,0,0.2);
}


.newsletter-form input {

    flex: 1;

    min-width: 0;

    padding: 16px 5px;

    border: none;

    outline: none;

    background: transparent;

    color: #080a0c;

    font-size: 12px;
}


.newsletter-form button {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 15px 5px;

    border: none;

    background: transparent;

    color: #080a0c;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

    .featured-news-grid {

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .news-grid {

        grid-template-columns: repeat(2, 1fr);

    }


    .newsletter-content {

        flex-direction: column;

        align-items: flex-start;

    }

}


@media (max-width: 600px) {

    .news-hero {

        min-height: 650px;

        padding: 70px 5%;

    }


    .news-hero h1 {

        font-size: 55px;

        letter-spacing: -3px;

    }


    .featured-news,
    .latest-news {

        padding: 90px 0;

    }


    .featured-news-image {

        min-height: 350px;

    }


    .news-grid {

        grid-template-columns: 1fr;

    }


    .news-story-panel {

        padding: 80px 0;

    }


    .news-newsletter {

        padding: 80px 0;

    }


    .newsletter-form {

        width: 100%;

    }

}

/* PAGINATION AND SEARCH */
/* =====================================================
   NEWS SEARCH
   ===================================================== */

.news-search {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    width: 100%;
}

.news-search-box {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.news-search-box > i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    pointer-events: none;
}

.news-search-box input {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 3rem;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 4px;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s ease;
}

.news-search-box input:focus {
    border-color: currentColor;
}

.clear-news-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    font-size: 1rem;
}

.news-search-button {
    height: 52px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: 0.3s ease;
}

.news-search-button:hover {
    transform: translateY(-2px);
}


/* =====================================================
   NEWS PAGINATION
   ===================================================== */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.pagination-button:hover {
    transform: translateY(-2px);
}

.pagination-page {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .news-search {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-box {
        max-width: none;
    }

    .news-search-button {
        width: 100%;
        justify-content: center;
    }

    .news-pagination {
        gap: 0.7rem;
    }

    .pagination-button {
        padding: 0.7rem 0.9rem;
    }

}