/* =========================================================
   PUBLIC ARTICLES
   ========================================================= */

.articles-page {
    padding: 85px 0 110px;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.articles-header {
    max-width: 760px;
    margin-bottom: 55px;
}

.articles-eyebrow {
    display: block;

    margin-bottom: 12px;

    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    opacity: 0.6;
}

.articles-header h1 {
    margin: 0 0 18px;

    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.articles-header p {
    max-width: 680px;

    margin: 0;

    font-size: 1rem;
    line-height: 1.8;

    opacity: 0.68;
}


/* ---------------------------------------------------------
   ARTICLES LIST
   --------------------------------------------------------- */

.articles-grid {
    display: flex;
    flex-direction: column;

    gap: 24px;
}


/* ---------------------------------------------------------
   ARTICLE CARD
   --------------------------------------------------------- */

.article-card {
    display: grid;

    grid-template-columns: 300px minmax(0, 1fr);

    min-height: 230px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.55);

    border: 1px solid rgba(40, 40, 40, 0.08);

    border-radius: 14px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.article-card:hover {
    transform: translateY(-3px);

    border-color: rgba(40, 40, 40, 0.14);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.07);
}


/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */

.article-image {
    display: block;

    height: 100%;
    min-height: 230px;

    overflow: hidden;

    background: rgba(40, 40, 40, 0.04);
}

.article-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.035);
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.article-card-content {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 28px 32px;
}


/* ---------------------------------------------------------
   CATEGORY
   --------------------------------------------------------- */

.article-category {
    display: block;

    margin-bottom: 10px;

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.09em;
    text-transform: uppercase;

    opacity: 0.55;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.article-card h2 {
    margin: 0 0 12px;

    font-size: 1.45rem;
    line-height: 1.3;
}

.article-card h2 a {
    color: inherit;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.article-card h2 a:hover {
    opacity: 0.65;
}


/* ---------------------------------------------------------
   EXCERPT
   --------------------------------------------------------- */

.article-card-content p {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    font-size: 0.94rem;
    line-height: 1.7;

    opacity: 0.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


/* ---------------------------------------------------------
   READ MORE
   --------------------------------------------------------- */

.article-read-more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: auto;
    padding-top: 20px;

    color: inherit;

    font-size: 0.84rem;
    font-weight: 600;

    text-decoration: none;

    opacity: 0.72;

    transition:
        gap 0.2s ease,
        opacity 0.2s ease;
}

.article-read-more:hover {
    gap: 12px;

    opacity: 1;
}

.article-read-more span {
    transition: transform 0.2s ease;
}

.article-read-more:hover span {
    transform: translateX(2px);
}


/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.articles-empty {
    padding: 70px 30px;

    text-align: center;

    border: 1px dashed rgba(40, 40, 40, 0.16);

    border-radius: 14px;
}

.articles-empty h2 {
    margin: 0 0 12px;
}

.articles-empty p {
    margin: 0;

    opacity: 0.6;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .article-card {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .article-card-content {
        padding: 24px;
    }

}


@media (max-width: 650px) {

    .articles-page {
        padding: 60px 0 80px;
    }

    .articles-header {
        margin-bottom: 40px;
    }

    .articles-grid {
        gap: 20px;
    }

    .article-card {
        display: flex;
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: auto;
        min-height: 0;

        aspect-ratio: 16 / 9;
    }

    .article-card-content {
        padding: 23px;
    }

}