@charset "utf-8";

/*===============================================
* layout
===============================================*/
.modern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px 20px;
    margin: 0;
    padding: 0;
}

.modern-grid::before,
.modern-grid::after {
    display: none !important;
    content: none !important;
}

@media (min-width: 480px) {
    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .modern-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*===============================================
* card
===============================================*/
.modern-card {
    width: 100%;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.modern-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

/* thmbnail
-------------------------------*/
.modern-card__thumbnail {
    width: 100%;
    overflow: hidden;
}

.modern-card__thumbnail img,
.modern-card__no-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
    margin: 0;
}

.modern-card:hover .modern-card__thumbnail img {
    transform: scale(1.05);
}

.modern-card__no-image {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
    aspect-ratio: 16 / 9;
}

/* text-area
-------------------------------*/
.modern-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/*--- category ---*/
.modern-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.badge--category {
    background-color: #333333;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
}

/*--- title ---*/
.modern-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px 0;
    color: #1e293b;
}

/*--- date ---*/
.modern-card__meta {
    margin-top: auto;
}

.modern-date {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}