/* =========================================
   ARTICLES PAGE
========================================= */

/* =========================================
   CONTAINER
========================================= */

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

/* =========================================
   HERO
========================================= */

.articles-hero {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;

    padding: 70px 0;
}

.hero-content {
    max-width: 720px;
}

.hero-label {
    display: inline-block;

    margin-bottom: 14px;

    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.articles-hero h1 {
    margin: 0 0 16px;

    color: #111827;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 800;
}

.articles-hero p {
    max-width: 650px;

    margin: 0;

    color: #6b7280;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================
   ARTICLES SECTION
========================================= */

.articles-section {
    padding: 60px 0 80px;
}

.articles-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================
   ARTICLE CARD
========================================= */

.article-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}


/* =========================================
   ARTICLE IMAGE
========================================= */

.article-image {
    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #f1f5f9;
}

.article-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.04);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}


/* =========================================
   ARTICLE CONTENT
========================================= */

.article-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 24px;
}

.article-meta {
    margin-bottom: 10px;
}

.article-meta time {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.article-title {
    margin: 0 0 12px;

    color: #111827;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 750;
}

.article-excerpt {
    margin: 0 0 22px;

    color: #6b7280;

    font-size: 15px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================
   READ MORE
========================================= */

.read-more {
    width: fit-content;

    margin-top: auto;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #2563eb;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 11px;
}


/* =========================================
   NO ARTICLES
========================================= */

.no-articles {
    max-width: 600px;

    margin: 20px auto;
    padding: 70px 30px;

    text-align: center;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;
}

.no-articles-icon {
    margin-bottom: 15px;

    font-size: 40px;
}

.no-articles h2 {
    margin: 0 0 10px;

    color: #111827;
    font-size: 24px;
}

.no-articles p {
    margin: 0;

    color: #6b7280;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.footer-inner {
    padding: 25px 0;

    text-align: center;
}

.footer-inner p {
    margin: 0;

    color: #6b7280;
    font-size: 14px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .articles-hero {
        padding: 55px 0;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: min(94%, 1180px);
    }

    .header-inner {
        min-height: 64px;

        flex-direction: column;
        justify-content: center;

        gap: 8px;

        padding: 12px 0;
    }

    .site-logo {
        font-size: 20px;
    }

    .main-nav {
        gap: 20px;
    }

    .articles-hero {
        padding: 45px 0;
    }

    .articles-hero h1 {
        font-size: 34px;
    }

    .articles-hero p {
        font-size: 16px;
    }

    .articles-section {
        padding: 40px 0 60px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .article-image {
        height: 210px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 20px;
    }

}