/* News - flex layout `news`
   Live .block-recentnews: 48px/80px vertical padding, header row with h2 + sky
   button, 3-up card grid (min-height 700px) of full-bleed images under a navy
   gradient, sky tag pill top-left, white uppercase Teko title bottom-left.
   1500px club icon watermark at 3% behind. */
.news {
    position: relative;
    max-width: 100%;
    padding: 48px 0 80px;
    overflow: hidden;
    background: var(--background);

    & > .container {
        position: relative;
    }

    & .news_inner {
        position: relative;
        z-index: 10;
    }

    & .news_head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 32px;

        @media (max-width: 372px) {
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
        }
    }

    & .news_heading {
        margin: 16px 0 0;
        font-size: 32px;
        font-weight: 500;
        text-transform: uppercase;
        color: var(--headings);
    }

    & .news_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        min-height: 700px;

        @media (max-width: 1024px) {
            grid-template-columns: 1fr;
            min-height: 0;
        }
    }

    & .news_card {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 450px;
        overflow: hidden;
        border-radius: var(--radius);
        text-decoration: none;

        @media (max-width: 1024px) {
            min-height: 450px;
        }
    }

    & .news_card_image {
        position: absolute;
        inset: 0;

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(8, 35, 60, 0) 0%, rgba(8, 35, 60, .85) 100%);
            z-index: 1;
        }

        & img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s var(--ease);
        }
    }

    & .news_card:hover .news_card_image img,
    & .news_card:focus-visible .news_card_image img {
        transform: scale(1.04);
    }

    & .news_card_content {
        position: relative;
        z-index: 10;
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 32px;

        @media (max-width: 768px) {
            height: 450px;
            padding: 22.4px;
        }
    }

    & .news_card_tag {
        position: relative;
        align-self: flex-start;
        margin-bottom: auto;
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        background: var(--secondary-alt);
        color: var(--white);
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        text-transform: uppercase;

        @media (max-width: 1024px) {
            font-size: 13px;
        }
    }

    & .news_card_title {
        position: relative;
        margin: auto 0 0;
        color: var(--white);
        font-size: 24px;
        font-weight: 700;
        line-height: 1.15;
        text-transform: uppercase;

        @media (max-width: 1024px) {
            font-size: 19px;
        }
    }

    & .news_watermark {
        position: absolute;
        bottom: 50%;
        left: 50%;
        width: 1500px;
        height: 1500px;
        transform: translate(-50%, 50%);
        opacity: .03;
        z-index: 0;
        pointer-events: none;

        & img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }
}
