.aflg-section {
    width: 100%;
}

.aflg-section-title {
    margin: 0 0 28px;
    line-height: 1.15;
}

.aflg-grid {
    display: grid;
    grid-template-columns: repeat(var(--aflg-cols, 3), minmax(0, 1fr));
    gap: 24px;
}

.aflg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.aflg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
}

.aflg-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f2f2f2;
}

.aflg-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.aflg-card:hover .aflg-image {
    transform: scale(1.025);
}

.aflg-image-placeholder {
    min-height: 220px;
}

.aflg-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.aflg-category {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.aflg-card-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.aflg-card-title a {
    color: inherit;
    text-decoration: none;
}

.aflg-date {
    margin-bottom: 12px;
    font-size: 13px;
    opacity: .7;
}

.aflg-excerpt {
    margin: 0 0 18px;
    line-height: 1.65;
}

.aflg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 15px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.aflg-button:hover,
.aflg-button:focus {
    color: #fff;
    opacity: .88;
}

.aflg-empty {
    padding: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .aflg-grid {
        grid-template-columns: repeat(var(--aflg-cols-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .aflg-grid {
        grid-template-columns: repeat(var(--aflg-cols-mobile, 1), minmax(0, 1fr));
        gap: 18px;
    }

    .aflg-card-body {
        padding: 18px;
    }

    .aflg-card-title {
        font-size: 20px;
    }
}
