/* News Archive Page Styles */

/* ===== Hero ===== */
.page-news-archive .news-archive-hero-wrapper {
    background: linear-gradient(180deg, #D7EEFF 0%, #FFF 100%);
}

.page-news-archive .news-archive-hero {
    padding: 100px 0;
}

.page-news-archive .news-archive-hero-title {
    text-align: center !important;
    font-size: 60px;
    line-height: 60px;
}

/* ===== Archive Section ===== */
.news-archive-section {
    padding-top: 0px;
    padding-bottom: 200px;
}

/* ===== Archive Layout ===== */
.news-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 20%) minmax(0, 1fr);
    column-gap: 38px;
    align-items: start;
}

/* ===== Year Buttons ===== */
.news-archive-years {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.news-archive-year {
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    color: var(--Gold, #966E32);
    font-family: Jost;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0.6px;
    cursor: pointer;
}

.news-archive-year.is-selected {
    font-weight: 600;
}

.news-archive-year:focus-visible {
    outline: 1px solid var(--Gold, #966E32);
    outline-offset: 4px;
}

/* ===== Archive List ===== */
.news-archive-list {
    min-width: 0;
}

.news-archive-item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 30px;
    align-items: center;
    padding: 30px 0;
    text-decoration: none;
    color: inherit;
}

.news-archive-item.first-item {
    padding-top: 0;
}

.news-archive-item.last-item {
    padding-bottom: 0;
}

.news-archive-item.has-divider {
    border-bottom: 0.5px solid var(--Gold, #966E32);
}

.news-archive-item,
.news-archive-item:hover,
.news-archive-item:focus,
.news-archive-item:visited {
    text-decoration: none;
}

.news-archive-item__media {
    display: block;
    width: 260px;
    max-width: 100%;
    aspect-ratio: 260 / 160;
    border-radius: 5px;
    overflow: hidden;
}

.news-archive-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-archive-item__meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    text-align: left;
}

.news-archive-item__meta-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}

.news-archive-item__date {
    color: var(--Navy, #19223D);
    font-family: Jost;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.news-archive-item__title {
    color: var(--Navy, #19223D);
    font-family: Jost;
    font-size: clamp(18px, calc(14.9px + 0.8vw), 26px);
    font-style: normal;
    font-weight: 500;
    line-height: clamp(22px, calc(16.6px + 1.4vw), 36px);
}

.news-archive-empty {
    color: var(--Navy, #19223D);
    font-family: Jost;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.news-archive-item__author {
    color: var(--Navy, #19223D);
    font-family: Jost;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 1.2px;
}

/* ===== News Archive Item Meta ===== */
.page-news-archive .news-archive-item__meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
}

.page-news-archive .news-archive-item__date {
    align-self: flex-start;
}

.page-news-archive .news-archive-item__title {
    align-self: flex-start;
}

/* ===== Responsive: 769px and above ===== */
@media screen and (min-width: 769px) {
    .page-news-archive .news-archive-hero-title {
        text-align: left !important;
    }
}

/* ===== Responsive: 1133px and below ===== */
@media screen and (max-width: 1133.5px) {
    .page-news-archive .news-archive-hero {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .news-archive-layout {
        column-gap: 32px
    }
}

/* ===== Responsive: 768px and below ===== */
@media screen and (max-width: 768px) {
    .news-archive-section {
        padding-top: 0px;
    }

    .news-archive-layout {
        grid-template-columns: 1fr;
        row-gap: 70px;
    }

    .news-archive-years {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 12px;
        justify-content: space-around;
        width: 80%;
        margin: 0 auto;
    }

    .news-archive-year {
        text-align: center;
    }

    .news-archive-item {
        grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
        row-gap: 20px;
        column-gap: 20px;
        justify-items: start;
        padding: 30px 0;
        align-items: center;
    }

    .news-archive-item__media {
        width: 100%;
        max-width: 260px;
    }

    .news-archive-item__date {
        font-size: 12px;
        line-height: 12px;
    }

    .page-news-archive .news-archive-item__meta {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .page-news-archive .news-archive-item__title {
        align-self: start;
    }
}

/* ===== Responsive: 626px and below ===== */
@media screen and (max-width: 626px) {
    .news-archive-section {
        padding-bottom: 100px;
    }

    .page-news-archive .news-archive-hero-title {
        font-size: 38px;
        line-height: 42px;
    }

    .news-archive-years {
        justify-content: space-around;
    }

    .news-archive-year {
        text-align: center;
    }

    /* single column, centered */
    .page-news-archive .news-archive-item {
        grid-template-columns: 1fr;
        row-gap: 20px;
        justify-items: center;
        width: 80%;
        margin: 0 auto;
    }

    .page-news-archive .news-archive-item__media {
        max-width: 260px;
    }

    .page-news-archive .news-archive-item__meta {
        align-items: center;
        text-align: center;
    }

    .page-news-archive .news-archive-item__date {
        align-self: center;
        text-align: center;
    }
}

/* ===== Responsive: 627px and above ===== */
@media screen and (min-width: 627px) {
    .page-news-archive .news-archive-item {
        align-items: flex-start;
    }
}
