/* ==========================
   Articles Page
========================== */

.article-page {
    padding: 60px 0;
    min-height: 70vh;
}

.page-title {
    text-align: center;
    font-size: var(--fs-h1);
    color: #0A4B6B;
    margin-bottom: 50px;
}

/* ==========================
   Grid
========================== */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* ==========================
   Card
========================== */

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #fff;

    border: 1px solid #eee;
    border-radius: 14px;

    text-decoration: none;

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

.article-card:hover {

    transform: translateY(-5px);

    border-color: #0d6efd;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

}

/* ==========================
   Image
========================== */

.article-image {

    aspect-ratio: 16 / 9;

    overflow: hidden;

}

.article-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .3s ease;

}

.article-card:hover .article-image img {

    transform: scale(1.05);

}

/* ==========================
   Content
========================== */

.article-content {

    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 22px;

}

.article-title {

    margin: 0;

    color: #222;

    font-size: var(--fs-h3);

    line-height: 1.8;

    transition: color .3s ease;

}

.article-card:hover .article-title {

    color: #0d6efd;

}

.article-footer {

    margin-top: auto;

    padding-top: 20px;

}

.read-more {

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #0d6efd;

    font-weight: 600;

}

/* ==========================
   Tablet
========================== */

@media (max-width: 992px) {

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ==========================
   Mobile
========================== */

@media (max-width: 768px) {

    .article-grid {
        grid-template-columns: 1fr;
    }

    .page-title {

        font-size: 1.8rem;

    }

    .article-content {

        padding: 18px;

    }

    .article-title {

        font-size: 1.2rem;

    }

    .article-image {

        height: 220px;

    }

}