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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #010208;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   PAGE
========================================================= */

.news-page {

    min-height: 100vh;

    padding:
        65px 20px 100px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(80,110,255,.16),
            transparent 40%
        ),
        radial-gradient(
            circle at 10% 55%,
            rgba(50,80,220,.08),
            transparent 35%
        ),
        #010208;
}


/* =========================================================
   STARS
========================================================= */

.stars,
.stars-small {

    position: fixed;

    inset: -25%;

    pointer-events: none;

    z-index: 0;
}

.stars {

    opacity: .4;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.9) 1px,
            transparent 1px
        );

    background-size: 75px 75px;

    transition:
        transform 1.5s ease;
}

.stars-small {

    opacity: .18;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.8) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    transition:
        transform 2s ease;
}


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

.header {

    position: relative;

    z-index: 5;

    max-width: 950px;

    margin: auto;

    text-align: center;
}


.return {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        12px 20px;

    margin-bottom: 40px;

    color:
        rgba(255,255,255,.7);

    border:
        1px solid
        rgba(255,255,255,.22);

    text-decoration: none;

    font-size: 9px;

    letter-spacing: 3px;

    transition: .35s ease;
}


.return:hover {

    color: #010208;

    background: white;

    border-color: white;

    transform:
        translateY(-4px);
}


.label {

    margin-bottom: 18px;

    color:
        rgba(170,190,255,.55);

    font-size: 10px;

    letter-spacing: 5px;
}


h1 {

    margin: 0;

    font-size:
        clamp(43px,8vw,82px);

    line-height: .9;

    letter-spacing: 6px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #aabfff
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.subtitle {

    max-width: 760px;

    margin:
        28px auto 0;

    color:
        rgba(255,255,255,.52);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   LIVE STATUS
========================================================= */

.live-status {

    margin:
        35px auto 0;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        9px 15px;

    border:
        1px solid
        rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.025);

    color:
        rgba(255,255,255,.55);

    font-size: 8px;

    letter-spacing: 2px;
}


.live-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #7cffb2;

    box-shadow:
        0 0 12px
        rgba(124,255,178,.8);

    animation:
        pulse 1.8s infinite;
}


@keyframes pulse {

    0%,100% {
        opacity: .5;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


/* =========================================================
   MAIN
========================================================= */

.news-container {

    position: relative;

    z-index: 5;

    width:
        min(1150px,100%);

    margin:
        70px auto 0;
}


/* =========================================================
   FEATURED NEWS
========================================================= */

.featured {

    position: relative;

    min-height: 470px;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.14);

    background:
        #080b16;

    margin-bottom: 65px;
}


.featured-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: .58;

    transition:
        transform 1s ease,
        opacity .6s ease;
}


.featured:hover .featured-image {

    transform: scale(1.045);

    opacity: .68;
}


.featured-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(1,2,8,.97) 0%,
            rgba(1,2,8,.82) 42%,
            rgba(1,2,8,.2) 100%
        );
}


.featured-content {

    position: relative;

    z-index: 2;

    max-width: 650px;

    padding:
        70px 55px;
}


.featured-label {

    display: inline-block;

    padding:
        7px 11px;

    margin-bottom: 20px;

    border:
        1px solid
        rgba(170,190,255,.35);

    color:
        rgba(190,205,255,.75);

    font-size: 8px;

    letter-spacing: 3px;
}


.featured h2 {

    margin:
        0 0 18px;

    font-size:
        clamp(30px,5vw,55px);

    line-height: 1.05;

    letter-spacing: 2px;
}


.featured p {

    max-width: 600px;

    margin:
        0 0 22px;

    color:
        rgba(255,255,255,.57);

    font-size: 13px;

    line-height: 1.8;
}


.meta {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    color:
        rgba(255,255,255,.38);

    font-size: 8px;

    letter-spacing: 2px;
}


.read-button {

    display: inline-flex;

    margin-top: 27px;

    padding:
        13px 22px;

    color:
        rgba(255,255,255,.75);

    border:
        1px solid
        rgba(255,255,255,.25);

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 3px;

    transition: .35s ease;
}


.read-button:hover {

    color: #010208;

    background: white;

    border-color: white;

    transform:
        translateY(-4px);
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {

    margin:
        60px 0 25px;

    text-align: center;

    color:
        rgba(255,255,255,.75);

    font-size: 10px;

    letter-spacing: 5px;
}


/* =========================================================
   FILTERS
========================================================= */

.filters {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 9px;

    margin-bottom: 40px;
}


.filter {

    padding:
        10px 15px;

    color:
        rgba(255,255,255,.5);

    border:
        1px solid
        rgba(255,255,255,.13);

    background:
        rgba(255,255,255,.025);

    cursor: pointer;

    font-size: 8px;

    letter-spacing: 2px;

    transition: .3s ease;
}


.filter:hover,
.filter.active {

    color: white;

    border-color:
        rgba(150,180,255,.5);

    background:
        rgba(100,130,255,.1);
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {

    width:
        min(550px,100%);

    margin:
        0 auto 40px;

    position: relative;
}


.search-box input {

    width: 100%;

    padding:
        15px 18px;

    outline: none;

    border:
        1px solid
        rgba(255,255,255,.15);

    background:
        rgba(255,255,255,.025);

    color: white;

    font-size: 11px;

    letter-spacing: 1px;

    transition: .3s ease;
}


.search-box input::placeholder {

    color:
        rgba(255,255,255,.3);
}


.search-box input:focus {

    border-color:
        rgba(150,180,255,.5);

    background:
        rgba(100,130,255,.04);
}


/* =========================================================
   NEWS GRID
========================================================= */

.news-grid {

    display: grid;

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

    gap: 16px;
}


/* =========================================================
   NEWS CARD
========================================================= */

.news-card {

    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        rgba(255,255,255,.025);

    transition:
        opacity .45s ease,
        transform .45s ease,
        border-color .45s ease,
        box-shadow .45s ease;

    opacity: 0;

    transform:
        translateY(25px);
}


.news-card.show {

    opacity: 1;

    transform:
        translateY(0);
}


.news-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(150,180,255,.4);

    box-shadow:
        0 25px 60px
        rgba(20,40,130,.16);
}


.news-image-wrapper {

    height: 205px;

    overflow: hidden;

    position: relative;
}


.news-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .7s ease;
}


.news-card:hover .news-image {

    transform:
        scale(1.08);
}


.news-category {

    position: absolute;

    left: 13px;

    top: 13px;

    padding:
        7px 9px;

    background:
        rgba(1,2,8,.75);

    border:
        1px solid
        rgba(255,255,255,.18);

    backdrop-filter:
        blur(8px);

    color:
        rgba(255,255,255,.72);

    font-size: 7px;

    letter-spacing: 2px;
}


.news-content {

    padding:
        22px 20px 24px;
}


.news-date {

    margin-bottom: 10px;

    color:
        rgba(170,190,255,.5);

    font-size: 8px;

    letter-spacing: 2px;
}


.news-title {

    margin:
        0 0 12px;

    font-size: 19px;

    line-height: 1.25;

    letter-spacing: 1px;
}


.news-description {

    margin:
        0 0 17px;

    min-height: 70px;

    color:
        rgba(255,255,255,.43);

    font-size: 10px;

    line-height: 1.75;
}


.news-source {

    color:
        rgba(255,255,255,.32);

    font-size: 7px;

    letter-spacing: 2px;
}


/* =========================================================
   LOAD MORE
========================================================= */

.load-more-wrapper {

    text-align: center;

    margin:
        45px 0 70px;
}


.load-more {

    padding:
        14px 28px;

    border:
        1px solid
        rgba(255,255,255,.22);

    background:
        transparent;

    color:
        rgba(255,255,255,.7);

    cursor: pointer;

    font-size: 8px;

    letter-spacing: 3px;

    transition: .35s ease;
}


.load-more:hover {

    color: #010208;

    background: white;

    border-color: white;

    transform:
        translateY(-4px);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.no-results {

    display: none;

    padding:
        60px 20px;

    text-align: center;

    border:
        1px solid
        rgba(255,255,255,.1);

    color:
        rgba(255,255,255,.35);

    font-size: 10px;

    letter-spacing: 3px;
}


/* =========================================================
   NEWS SOURCES
========================================================= */

.sources {

    margin-top: 70px;

    padding:
        45px 25px;

    text-align: center;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        radial-gradient(
            circle at center,
            rgba(90,120,255,.08),
            transparent 70%
        );
}


.sources h2 {

    margin:
        0 0 15px;

    font-size: 22px;

    letter-spacing: 4px;
}


.sources p {

    max-width: 650px;

    margin:
        0 auto 25px;

    color:
        rgba(255,255,255,.4);

    font-size: 11px;

    line-height: 1.8;
}


.source-buttons {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;
}


.source-button {

    padding:
        12px 18px;

    border:
        1px solid
        rgba(255,255,255,.17);

    color:
        rgba(255,255,255,.6);

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 2px;

    transition: .3s ease;
}


.source-button:hover {

    color: #010208;

    background: white;

    border-color: white;
}


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

.final-navigation {

    width:
        min(1000px,100%);

    margin:
        70px auto 0;

    display: grid;

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

    gap: 12px;
}


.final-button {

    min-height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px;

    color:
        rgba(255,255,255,.65);

    border:
        1px solid
        rgba(255,255,255,.17);

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 2px;

    text-align: center;

    cursor: pointer;

    transition: .35s ease;
}


.final-button:hover {

    color: #010208;

    background: white;

    border-color: white;

    transform:
        translateY(-4px);
}


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

.footer {

    margin-top: 45px;

    text-align: center;

    color:
        rgba(255,255,255,.25);

    font-size: 9px;

    letter-spacing: 4px;
}


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

@media(max-width:950px) {

    .news-grid {

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

    .final-navigation {

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


@media(max-width:600px) {

    .news-page {

        padding:
            50px 15px 80px;
    }

    .news-grid {

        grid-template-columns:
            1fr;
    }

    .featured {

        min-height: 540px;
    }

    .featured-content {

        padding:
            45px 25px;
    }

    .featured-overlay {

        background:
            linear-gradient(
                0deg,
                rgba(1,2,8,.98),
                rgba(1,2,8,.45)
            );
    }

    .final-navigation {

        grid-template-columns:
            1fr;
    }

    .news-image-wrapper {

        height: 230px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

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

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;
    }

}
