/* =========================================
   BLOG GRID
========================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}


/* =========================================
   BLOG CARD
========================================= */

.card {
    position: relative;
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    height: 100%;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-7px);

    border-color: rgba(37, 99, 235, 0.25);

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.10);
}


/* =========================================
   IMAGE
========================================= */

.card > img {
    display: block;

    width: 100%;
    height: 230px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.card:hover > img {
    transform: scale(1.04);
}


/* Image wrapper alternative
   If you later add a wrapper around image,
   these styles can be used.
*/

.card__image {
    position: relative;
    overflow: hidden;
    height: 230px;
}


/* =========================================
   CONTENT
========================================= */

.card__content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 24px 25px 22px;
}


/* =========================================
   CATEGORY
========================================= */

.card__category {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 13px;
    padding: 6px 11px;

    border-radius: 50px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================
   TITLE
========================================= */

.card__content h3 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;

    color: #111827;
}


/* =========================================
   DESCRIPTION
========================================= */

.card__content p {
    margin: 0;

    color: #6b7280;

    font-size: 14.5px;
    line-height: 1.7;

    /* Keeps cards visually equal */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================
   CARD FOOTER
========================================= */

.card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 20px;

    border-top: 1px solid #eef0f3;
}


/* =========================================
   DATE / META
========================================= */

.card__meta {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #9ca3af;

    font-size: 12px;
}

.card__meta::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #2563eb;
}


/* =========================================
   READ ARTICLE
========================================= */

.card__read {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #111827;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.25s ease;
}

.card__read span {
    transition: transform 0.25s ease;
}

.card__read:hover {
    color: #2563eb;
}

.card__read:hover span {
    transform: translateX(4px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .card > img {
        height: 220px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 640px) {

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card > img {
        height: 220px;
    }

    .card__content {
        padding: 21px;
    }

    .card__content h3 {
        font-size: 19px;
    }

}