/* =========================================================
   PUBLIC NEWS — PARAFIA BOREK STARY
   ========================================================= */

.home-news,
.news-archive,
.news-article {
    --news-green: #173f30;
    --news-green-soft: #315f4c;
    --news-green-muted: #70857a;

    --news-gold: #b49d65;
    --news-gold-soft: rgba(180, 157, 101, .24);

    --news-ink: #12271e;
    --news-copy: #66766e;

    --news-line: #dfe7e2;
    --news-line-soft: #eaf0ec;

    --news-cream: #fbfbf7;
    --news-white: #ffffff;
}


/* =========================================================
   COMMON SHELL
   ========================================================= */

.home-news-shell,
.news-public-shell,
.news-article-shell {
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto;
}


/* =========================================================
   HOMEPAGE SECTION
   ========================================================= */

.home-news {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 92px 0 102px;

    background:
        radial-gradient(
            circle at 92% 0%,
            rgba(79, 113, 95, .08),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #fafbf8 0%,
            #ffffff 68%
        );

    border-top:
        1px solid
        rgba(48, 82, 65, .055);
}

.home-news::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: -350px;
    right: -270px;

    width: 720px;
    height: 720px;

    border:
        1px solid
        rgba(180, 157, 101, .16);

    border-radius: 50%;
}

.home-news::after {
    content: "";

    position: absolute;
    z-index: -1;

    left: -180px;
    bottom: -290px;

    width: 560px;
    height: 560px;

    border:
        1px solid
        rgba(61, 96, 79, .075);

    border-radius: 50%;
}


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

.home-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 36px;

    margin-bottom: 38px;
}

.home-news-eyebrow,
.news-archive-header > span {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 10px;

    color: #66806f;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: .23em;

    text-transform: uppercase;
}

.home-news-eyebrow::after,
.news-archive-header > span::after {
    content: "";

    width: 45px;
    height: 1px;

    background:
        rgba(180, 157, 101, .8);
}

.home-news-header h2,
.news-archive-header h1 {
    margin: 0;

    color: var(--news-ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 46px;
    font-weight: 600;
    line-height: 1.05;

    letter-spacing: -.045em;
}


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

.home-news-header-actions {
    display: flex;
    align-items: center;

    gap: 15px;
}

.home-news-all {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    min-height: 38px;

    color: var(--news-green-soft);

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;
}

.home-news-all span {
    transition:
        transform .15s ease;
}

.home-news-all:hover span {
    transform:
        translateX(3px);
}


/* =========================================================
   CAROUSEL CONTROLS
   ========================================================= */

.home-news-controls {
    display: flex;

    gap: 7px;
}

.home-news-controls button {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border:
        1px solid
        #d9e3dd;

    border-radius: 50%;

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

    color: #234938;

    font-size: 15px;

    cursor: pointer;

    box-shadow:
        0 4px 15px
        rgba(27, 58, 43, .035);

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

.home-news-controls button:hover:not(:disabled) {
    transform:
        translateY(-1px);

    border-color: #aac0b4;

    background: #ffffff;
}

.home-news-controls button:disabled {
    opacity: .28;

    cursor: default;
}


/* =========================================================
   CAROUSEL
   ========================================================= */

.home-news-carousel {
    position: relative;
}

.home-news-track {
    display: grid;
    grid-auto-flow: column;

    grid-auto-columns:
        calc((100% - 52px) / 3);

    gap: 26px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
        4px 2px 24px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    overscroll-behavior-inline: contain;

    scrollbar-width: none;
}

.home-news-track::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   HOMEPAGE CARD
   ========================================================= */

.home-news-card {
    position: relative;

    overflow: hidden;

    min-width: 0;

    border:
        1px solid
        var(--news-line);

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 30px
        rgba(18, 48, 35, .048);

    scroll-snap-align: start;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.home-news-card:hover {
    transform:
        translateY(-4px);

    border-color: #cbd9d1;

    box-shadow:
        0 18px 44px
        rgba(18, 48, 35, .085);
}


/* =========================================================
   CARD IMAGE
   ========================================================= */

.home-news-image,
.news-public-image {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio:
        16 / 9.7;

    background:
        linear-gradient(
            145deg,
            #e3ece7,
            #f6f8f5
        );
}

.home-news-image::after,
.news-public-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(9, 34, 23, 0) 55%,
            rgba(9, 34, 23, .09) 100%
        );

    pointer-events: none;
}

.home-news-image img,
.news-public-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .38s ease;
}

.home-news-card:hover
.home-news-image img,
.news-public-card:hover
.news-public-image img {
    transform:
        scale(1.035);
}


/* =========================================================
   EMPTY IMAGE
   ========================================================= */

.home-news-placeholder,
.news-public-placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at 72% 22%,
            rgba(180, 157, 101, .12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #e5ede8,
            #f6f8f5
        );

    color: #799185;

    font-size: 30px;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.home-news-content {
    padding:
        23px 24px 25px;
}

.home-news-content time,
.news-public-card time,
.news-article-header time {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #89968f;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .085em;
}

.home-news-content time::before,
.news-public-card time::before,
.news-article-header time::before {
    content: "";

    width: 17px;
    height: 1px;

    background:
        var(--news-gold);
}

.home-news-content h3 {
    margin:
        10px 0 11px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 23px;
    font-weight: 600;
    line-height: 1.22;

    letter-spacing: -.03em;
}

.home-news-content h3 a,
.news-public-card h2 a {
    color: #172d23;

    text-decoration: none;

    transition:
        color .15s ease;
}

.home-news-content h3 a:hover,
.news-public-card h2 a:hover {
    color:
        var(--news-green-soft);
}

.home-news-content p {
    margin:
        0 0 21px;

    color: var(--news-copy);

    font-size: 12px;
    line-height: 1.65;
}

.home-news-read,
.news-public-read {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color:
        var(--news-green-soft);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .015em;

    text-decoration: none;
}

.home-news-read span {
    transition:
        transform .15s ease;
}

.home-news-read:hover span {
    transform:
        translateX(3px);
}


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

.home-news-empty {
    padding:
        38px 30px;

    border:
        1px dashed
        #d1ddd6;

    border-radius: 16px;

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

    color: #78877f;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   ARCHIVE
   ========================================================= */

.news-archive {
    position: relative;

    overflow: hidden;

    padding:
        78px 0 110px;

    background:
        radial-gradient(
            circle at 95% 0%,
            rgba(71, 106, 88, .08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8faf8 0%,
            #ffffff 390px
        );
}

.news-archive-header {
    position: relative;

    max-width: 720px;

    margin-bottom: 44px;
}

.news-archive-header h1 {
    font-size: 54px;
}

.news-archive-header p {
    max-width: 640px;

    margin:
        16px 0 0;

    color: var(--news-copy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    line-height: 1.65;
}


/* =========================================================
   ARCHIVE GRID
   ========================================================= */

.news-archive-grid {
    display: grid;

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

    gap: 27px;
}

.news-public-card {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        var(--news-line);

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 30px
        rgba(18, 48, 35, .045);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.news-public-card:hover {
    transform:
        translateY(-4px);

    border-color:
        #cbd9d1;

    box-shadow:
        0 18px 44px
        rgba(18, 48, 35, .085);
}

.news-public-card-body {
    padding:
        23px 24px 25px;
}

.news-public-card h2 {
    margin:
        10px 0 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 23px;
    font-weight: 600;

    line-height: 1.26;

    letter-spacing: -.03em;
}

.news-public-card p {
    margin:
        0 0 20px;

    color:
        var(--news-copy);

    font-size: 12px;
    line-height: 1.68;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-top: 52px;
}

.news-pagination a,
.news-pagination span {
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0 13px;

    border-radius: 999px;

    font-size: 10px;
}

.news-pagination a {
    border:
        1px solid
        #d5e0da;

    background: #ffffff;

    color: #315e4b;

    font-weight: 750;

    text-decoration: none;
}

.news-pagination a:hover {
    border-color:
        #aabfb4;
}

.news-pagination span {
    color: #89958e;
}


/* =========================================================
   SINGLE ARTICLE
   ========================================================= */

.news-article {
    position: relative;

    padding:
        66px 0 120px;

    background:
        linear-gradient(
            180deg,
            #fafbf8 0,
            #ffffff 330px
        );
}

.news-article-shell {
    max-width: 960px;
}

.news-article-back {
    display: inline-flex;
    align-items: center;

    margin-bottom: 38px;

    color: #60766a;

    font-size: 10px;
    font-weight: 750;

    text-decoration: none;
}

.news-article-back:hover {
    color:
        var(--news-green);
}


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

.news-article-header {
    max-width: 830px;
}

.news-article-header h1 {
    margin:
        12px 0 18px;

    color:
        var(--news-ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            44px,
            5vw,
            66px
        );

    font-weight: 600;
    line-height: 1.07;

    letter-spacing: -.048em;
}

.news-article-header p {
    max-width: 760px;

    margin: 0;

    color: #65756d;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
    line-height: 1.65;
}


/* =========================================================
   ARTICLE HERO IMAGE
   ========================================================= */

.news-article-hero {
    position: relative;

    overflow: hidden;

    margin:
        42px 0 46px;

    border:
        1px solid
        #dae3de;

    border-radius: 20px;

    box-shadow:
        0 18px 50px
        rgba(22, 48, 36, .07);
}

.news-article-hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 72%,
            rgba(12, 34, 24, .04)
        );

    pointer-events: none;
}

.news-article-hero img {
    display: block;

    width: 100%;
    max-height: 610px;

    object-fit: cover;
}


/* =========================================================
   ARTICLE BODY
   ========================================================= */

.news-article-content {
    width: min(
        100%,
        760px
    );

    color: #2b3932;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    line-height: 1.82;
}

.news-article-content p {
    margin:
        0 0 1.35em;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    color: #173126;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 600;

    letter-spacing: -.02em;
}

.news-article-content h2 {
    margin:
        1.8em 0 .7em;

    font-size: 31px;
}

.news-article-content h3 {
    margin:
        1.7em 0 .65em;

    font-size: 25px;
}

.news-article-content h4 {
    margin:
        1.6em 0 .6em;

    font-size: 20px;
}

.news-article-content a {
    color: #315e4b;
}

.news-article-content blockquote {
    margin:
        2em 0;

    padding:
        6px 0 6px 25px;

    border-left:
        2px solid
        var(--news-gold);

    color: #506359;

    font-style: italic;
}

.news-article-content ul,
.news-article-content ol {
    padding-left: 1.4em;
}

.news-article-content li {
    margin-bottom: .42em;
}

.news-article-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin:
        2em auto;

    border-radius: 12px;
}


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

.news-public-empty {
    padding:
        46px 30px;

    border:
        1px dashed
        #d3ddd7;

    border-radius: 16px;

    background: #ffffff;

    color: #78867f;

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {

    .home-news-track {
        grid-auto-columns:
            calc((100% - 20px) / 2);

        gap: 20px;
    }

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

}


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

@media (max-width: 640px) {

    .home-news {
        padding:
            62px 0 70px;
    }

    .home-news-shell,
    .news-public-shell,
    .news-article-shell {
        width:
            calc(100% - 28px);
    }

    .home-news-header {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 17px;

        margin-bottom: 26px;
    }

    .home-news-header h2,
    .news-archive-header h1 {
        font-size: 39px;
    }

    .home-news-header-actions {
        width: 100%;

        justify-content:
            space-between;
    }

    .home-news-track {
        grid-auto-columns:
            88%;

        gap: 15px;
    }

    .home-news-content {
        padding:
            19px 19px 21px;
    }

    .home-news-content h3 {
        font-size: 21px;
    }

    .news-archive {
        padding:
            60px 0 82px;
    }

    .news-archive-grid {
        grid-template-columns:
            1fr;

        gap: 18px;
    }

    .news-article {
        padding:
            42px 0 80px;
    }

    .news-article-back {
        margin-bottom: 26px;
    }

    .news-article-header h1 {
        font-size: 39px;
    }

    .news-article-header p {
        font-size: 17px;
    }

    .news-article-hero {
        margin:
            30px 0 34px;

        border-radius: 14px;
    }

    .news-article-content {
        font-size: 16px;
    }

}
