/* Module giới thiệu "kiểu 7" — lưới Lĩnh vực hoạt động (1 thẻ lớn + lưới 2x2) */

.lv7 {
    --lv7-green: #003b2b;
    --lv7-gold: #d4af5a;
    --lv7-ink: #1d2a24;
    --lv7-muted: #6b6b6b;
    --lv7-line: #e7e4dc;
    --lv7-ease: cubic-bezier(.22, .61, .36, 1);
    padding: 72px 0;
    background: #fff;
}

/* ---------- Heading ---------- */
/* Tiêu đề giống "Ban giám đốc": dùng .heading_4.type-1 (căn giữa, có gạch hai bên) */
.lv7__head {
    text-align: center;
    margin-bottom: 40px;
}

.lv7__heading {
    margin-bottom: 12px;
}

.lv7__desc {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.6;
    color: #3d4a44;
}

/* ---------- Grid ---------- */
.lv7__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 24px;
}

/* ---------- Card ---------- */
.lv7__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lv7-line);
    border-radius: 14px;
    color: var(--lv7-ink);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition:
        background-color .6s var(--lv7-ease),
        border-color .6s var(--lv7-ease),
        box-shadow .6s var(--lv7-ease),
        transform .6s var(--lv7-ease);
}

.lv7__card--feature {
    grid-row: span 2;
}

.lv7__card:focus-visible {
    outline: 3px solid var(--lv7-gold);
    outline-offset: 3px;
}

.lv7__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.lv7__card--feature .lv7__media {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 320px;
}

.lv7__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity .6s var(--lv7-ease),
        transform 1.1s var(--lv7-ease);
}

.lv7__index {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: rgba(20, 20, 20, .55);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity .4s var(--lv7-ease);
}

.lv7__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 24px;
}

.lv7__card--feature .lv7__body {
    padding: 24px 28px 24px;
}

.lv7__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0a1a4b;
    transition: color .6s var(--lv7-ease);
}

.lv7__card--feature .lv7__title {
    font-size: 26px;
}

/* Mô tả tối đa 2 dòng, quá thì hiện 3 chấm */
.lv7__meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lv7-muted);
    transition: color .6s var(--lv7-ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv7__meta p,
.lv7__meta div {
    display: inline;
    margin: 0;
}

.lv7__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0a1a4b;
    transition: color .6s var(--lv7-ease);
}

.lv7__cta::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
    transition: transform .5s var(--lv7-ease);
}

/* Hover (chuột): nền chuyển #0a1a4b, ảnh zoom nhẹ (vẫn hiển thị), chữ chuyển trắng */
@media (hover: hover) {
    .lv7__card:hover {
        background-color: #0a1a4b;
        border-color: #0a1a4b;
        box-shadow: 0 24px 44px -20px rgba(10, 26, 75, .6);
        transform: translateY(-6px);
    }

    .lv7__card:hover .lv7__media img {
        transform: scale(1.06);
    }

    .lv7__card:hover .lv7__title,
    .lv7__card:hover .lv7__meta,
    .lv7__card:hover .lv7__cta {
        color: #fff;
    }

    .lv7__card:hover .lv7__meta {
        color: rgba(255, 255, 255, .85);
    }

    .lv7__card:hover .lv7__cta::after {
        transform: translateX(4px);
    }
}

/* ---------- Tablet (≤1023px): thẻ lớn full width, lưới 2 cột ---------- */
@media (max-width: 1023px) {
    .lv7 {
        padding: 56px 0;
    }

    .lv7__head {
        margin-bottom: 32px;
    }

    .lv7__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .lv7__card--feature {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .lv7__card--feature .lv7__media {
        flex: none;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .lv7__card--feature .lv7__title {
        font-size: 24px;
    }

    .lv7__card:not(.lv7__card--feature) .lv7__title {
        font-size: 18px;
    }
}

/* ---------- Mobile (≤767px): thẻ nhỏ xếp dọc, ảnh bên trái ---------- */
@media (max-width: 767px) {
    .lv7 {
        padding: 40px 0;
    }

    .lv7__head {
        margin-bottom: 24px;
    }

    .lv7__heading {
        font-size: 22px;
    }

    .lv7__desc {
        font-size: 15px;
    }

    .lv7__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lv7__card--feature .lv7__media {
        aspect-ratio: 4 / 3;
    }

    .lv7__card--feature .lv7__title {
        font-size: 22px;
    }

    .lv7__card--feature .lv7__body {
        padding: 20px 20px 22px;
    }

    .lv7__card:not(.lv7__card--feature) {
        flex-direction: row;
        align-items: stretch;
    }

    .lv7__card:not(.lv7__card--feature) .lv7__media {
        flex: 0 0 38%;
        aspect-ratio: auto;
        min-height: 130px;
    }

    .lv7__card:not(.lv7__card--feature) .lv7__body {
        flex: 1 1 auto;
        justify-content: center;
        gap: 4px;
        padding: 14px 14px 14px 16px;
    }

    .lv7__card:not(.lv7__card--feature) .lv7__title {
        font-size: 16px;
    }

    .lv7__meta {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px;
    }

    .lv7__cta {
        margin-top: 2px;
        font-size: 13px;
    }

    .lv7__index {
        top: 8px;
        left: 8px;
        padding: 2px 9px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv7__card,
    .lv7__media img,
    .lv7__title,
    .lv7__meta,
    .lv7__cta,
    .lv7__cta::after,
    .lv7__index {
        transition: none !important;
    }
}
