/* =========================================================
   Lighthouse Media News Page
   Homepage-style hero with News-specific content
========================================================= */


/* ---------------------------------------------------------
   News hero
--------------------------------------------------------- */

.news-page-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            100deg,
            rgba(2, 11, 24, 0.98) 0%,
            rgba(4, 19, 38, 0.93) 43%,
            rgba(4, 19, 38, 0.68) 100%
        ),
        url("assets/cover-photo.png")
            center / cover
            no-repeat;
    color: #ffffff;
}

.news-page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(
            circle at 78% 30%,
            rgba(242, 182, 50, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 18% 75%,
            rgba(167, 25, 31, 0.22),
            transparent 33%
        ),
        linear-gradient(
            to bottom,
            rgba(2, 11, 24, 0.05),
            rgba(2, 11, 24, 0.3)
        );
}

.news-page-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 92px;
    background: #f6f8fb;
    clip-path: polygon(
        0 100%,
        100% 0,
        100% 100%
    );
    pointer-events: none;
}

.news-page-hero .container {
    position: relative;
    z-index: 2;
}

.news-hero-grid {
    min-height: 545px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(350px, 0.95fr);
    align-items: center;
    gap: clamp(38px, 6vw, 76px);
    padding-top: 36px;
    padding-bottom: 88px;
}

.news-hero-copy {
    max-width: 690px;
}

.news-hero-copy .eyebrow {
    margin-bottom: 0;
    color: #ffd36a;
}

.news-hero-copy h1 {
    max-width: 720px;
    margin: 20px 0 18px;
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(3rem, 5.2vw, 4.9rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.news-hero-copy h1 span {
    display: block;
    color: #ffd36a;
}

.news-hero-copy > p {
    max-width: 630px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.7;
}

.news-hero-copy .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 25px;
}

.news-page-hero .btn.outline {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.news-page-hero .btn.outline:hover {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}


/* ---------------------------------------------------------
   Coverage card
--------------------------------------------------------- */

.news-coverage-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(9, 32, 60, 0.95),
            rgba(2, 13, 28, 0.97)
        );
    box-shadow:
        0 28px 70px
        rgba(2, 11, 24, 0.3);
    backdrop-filter: blur(18px);
}

.news-coverage-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(242, 182, 50, 0.08);
    filter: blur(8px);
}

.news-coverage-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(242, 182, 50, 0.2);
    border-radius: 999px;
    background: rgba(242, 182, 50, 0.11);
    color: #ffd36a;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.news-coverage-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.news-coverage-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-coverage-card li {
    position: relative;
    padding-left: 27px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}

.news-coverage-card li::before {
    content: "";
    position: absolute;
    top: 0.52em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e34950;
    box-shadow:
        0 0 0 5px
        rgba(227, 73, 80, 0.14);
}


/* ---------------------------------------------------------
   News feed
--------------------------------------------------------- */

.news-feed-section {
    background: #f6f8fb;
}

.news-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.news-section-heading h2 {
    margin: 10px 0;
}

.news-section-heading p {
    max-width: 680px;
    margin: 0;
}

.news-story-count {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid rgba(16, 34, 54, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #34465a;
    font-size: 0.88rem;
    font-weight: 800;
}


/* ---------------------------------------------------------
   News search and filters
--------------------------------------------------------- */

.news-controls {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(210px, 280px);
    gap: 18px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(16, 34, 54, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 12px 32px
        rgba(16, 34, 54, 0.05);
}

.news-controls label {
    display: block;
    margin-bottom: 7px;
    color: #23374d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.news-controls input,
.news-controls select {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(16, 34, 54, 0.18);
    border-radius: 11px;
    background: #ffffff;
    color: #14283d;
    font: inherit;
}

.news-controls input:focus,
.news-controls select:focus {
    border-color: #bd202f;
    outline: 3px solid rgba(189, 32, 47, 0.13);
}


/* ---------------------------------------------------------
   News story cards
--------------------------------------------------------- */

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

.news-story-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(16, 34, 54, 0.11);
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 16px 40px
        rgba(16, 34, 54, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.news-story-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 23px 52px
        rgba(16, 34, 54, 0.12);
}

.news-story-card.is-featured {
    grid-column: span 2;
}

.news-story-image {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(
            145deg,
            #122c47,
            #214d70
        );
}

.news-story-card.is-featured
.news-story-image {
    aspect-ratio: 2 / 1;
}

.news-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-story-image.has-source-logo {
    background: #ffffff;
}

.news-story-image img.is-source-logo {
    width: 52%;
    height: 78%;
    padding: 0;
    object-fit: contain;
    box-sizing: border-box;
    background: #ffffff;
}

.news-story-card.is-featured
.news-story-image img.is-source-logo {
    width: 40%;
    height: 82%;
    padding: 0;
}

.news-story-image-fallback {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.news-story-image-fallback svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.news-breaking-label {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #c61f2e;
    color: #ffffff;
    box-shadow:
        0 8px 20px
        rgba(147, 14, 27, 0.3);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.news-story-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 23px;
}

.news-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 11px;
    margin-bottom: 13px;
    color: #68778a;
    font-size: 0.82rem;
    font-weight: 650;
}

.news-category-label {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(190, 31, 46, 0.09);
    color: #a51e2b;
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.news-story-content h3 {
    margin: 0 0 13px;
    color: #102b45;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.42rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.news-story-card.is-featured
.news-story-content h3 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.news-story-summary {
    margin: 0;
    color: #4d5d70;
    line-height: 1.68;
}

.news-story-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 18px;
    color: #6e7b8b;
    font-size: 0.82rem;
}


/* ---------------------------------------------------------
   Feed loading and error states
--------------------------------------------------------- */

.news-feed-state {
    grid-column: 1 / -1;
    padding: 48px 24px;
    border: 1px dashed rgba(16, 34, 54, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    color: #59687a;
    text-align: center;
}

.news-feed-state h3 {
    margin: 0 0 8px;
    color: #17314c;
}

.news-feed-state p {
    max-width: 580px;
    margin: 0 auto;
}

.news-feed-state.is-error {
    border-color: rgba(190, 31, 46, 0.34);
    color: #941c28;
}


/* ---------------------------------------------------------
   News tip section
--------------------------------------------------------- */

.news-tip-section {
    background: #ffffff;
}

.news-tip-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    overflow: hidden;
    padding: 44px;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 95% 0%,
            rgba(213, 43, 56, 0.32),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #091d32,
            #173c5c
        );
    color: #ffffff;
    box-shadow:
        0 26px 60px
        rgba(9, 29, 50, 0.18);
}

.news-tip-card .eyebrow {
    color: #ffcf62;
}

.news-tip-card h2 {
    max-width: 750px;
    margin: 11px 0 12px;
    color: #ffffff;
}

.news-tip-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.news-tip-card .btn.light {
    flex: 0 0 auto;
    border-color: #ffffff;
    background: #ffffff;
    color: #102b45;
}


/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 1080px) {
    .news-hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(350px, 0.9fr);
        gap: 38px;
    }
}

@media (max-width: 920px) {
    .news-page-hero {
        min-height: auto;
    }

    .news-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 38px;
        padding-top: 58px;
        padding-bottom: 140px;
    }

    .news-hero-copy {
        max-width: 750px;
    }

    .news-hero-copy h1 {
        max-width: 760px;
    }

    .news-coverage-card {
        width: min(650px, 100%);
    }

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

    .news-story-card.is-featured {
        grid-column: span 2;
    }
}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 720px) {
    .news-page-hero::after {
        height: 62px;
    }

    .news-hero-grid {
        padding-top: 48px;
        padding-bottom: 110px;
    }

    .news-hero-copy h1 {
        margin-top: 18px;
        font-size: clamp(2.8rem, 13vw, 4.2rem);
    }

    .news-hero-copy > p {
        font-size: 1rem;
    }

    .news-hero-copy .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-hero-copy .actions .btn {
        width: 100%;
    }

    .news-coverage-card {
        padding: 24px 22px;
        border-radius: 22px;
    }

    .news-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .news-controls {
        grid-template-columns: 1fr;
    }

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

    .news-story-card.is-featured {
        grid-column: auto;
    }

    .news-story-card.is-featured
    .news-story-image {
        aspect-ratio: 16 / 9;
    }

    .news-tip-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px 24px;
    }
}

@media (max-width: 430px) {
    .news-hero-copy h1 {
        font-size: clamp(2.75rem, 15vw, 3.8rem);
    }

    .news-coverage-card h2 {
        font-size: 1.65rem;
    }
}


/* ---------------------------------------------------------
   Reduced motion
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .news-story-card,
    .news-page-hero .btn {
        transition-duration: 0.01ms !important;
    }
}

/* Lighthouse article sharing */

.story-share {
    margin: 1.5rem 0 1.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.story-share-heading {
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.story-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.story-share-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0.55rem 0.85rem;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.045);
    color: inherit;

    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.story-share-button:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
    text-decoration: none;
}

.story-share-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.story-share-button-reddit {
    font-weight: 750;
}

@media (max-width: 640px) {
    .story-share-buttons {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .story-share-button {
        width: 100%;
    }
}

