/* =========================================================
   TIÊU ĐỀ SECTION CÓ THỂ NHẤN
   ========================================================= */

.home-section-heading {
    width: min(100%, 850px);
    margin: 0 auto 38px;
    text-align: center;
}

.home-section-heading__link {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
}

.home-section-heading__heading {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 11px;
    margin: 0;
}

/* Dòng nhãn nhỏ */

.home-section-heading__eyebrow {
    color: var(--home-blue, #2387b3);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Tiêu đề lớn */

.home-section-heading__title {
    max-width: 800px;
    color: var(--home-navy, #123d6b);
    font-size: clamp(34px, 3.5vw, 50px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

/* Liên kết nhỏ dưới tiêu đề */

.home-section-heading__action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    color: var(--home-blue, #2387b3);
    font-size: 13px;
    font-weight: 750;
}

.home-section-heading__action i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.home-section-heading__link:hover .home-section-heading__title {
    color: var(--home-blue, #2387b3);
}

.home-section-heading__link:hover .home-section-heading__action i {
    transform: translateX(5px);
}

.home-section-heading__link:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(35, 135, 179, 0.25);
    outline-offset: 7px;
}

/* Mô tả chỉ tối đa khoảng hai dòng */

.home-section-heading__teaser {
    max-width: 680px;
    margin: 17px auto 0;
    color: var(--home-muted, #60758a);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   GRID GIỚI THIỆU NGẮN
   ========================================================= */

.home-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/*
 * Toàn bộ card là một đường dẫn.
 * Không đặt thêm thẻ a bên trong card.
 */
.home-teaser-card {
    min-width: 0;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--home-border, #d4e5ee);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(18, 61, 107, 0.07);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.home-teaser-card:hover {
    transform: translateY(-5px);
    border-color: #96c9dc;
    box-shadow: 0 22px 50px rgba(18, 61, 107, 0.12);
}

.home-teaser-card:focus-visible {
    outline: 3px solid rgba(35, 135, 179, 0.25);
    outline-offset: 4px;
}

.home-teaser-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #dff2f8;
    color: var(--home-blue, #2387b3);
    font-size: 19px;
}

.home-teaser-card__category {
    align-self: flex-start;
    margin-top: 20px;
    color: var(--home-blue, #2387b3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-teaser-card h3 {
    margin: 10px 0 0;
    color: var(--home-navy, #123d6b);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

/*
 * Chỉ giữ một câu rất ngắn.
 * Nội dung chi tiết nằm ở trang con.
 */
.home-teaser-card__summary {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--home-muted, #60758a);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
}

.home-teaser-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--home-blue, #2387b3);
    font-size: 13px;
    font-weight: 750;
}

.home-teaser-card__action i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.home-teaser-card:hover .home-teaser-card__action i {
    transform: translateX(4px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 920px) {
    .home-teaser-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home-section-heading {
        margin-bottom: 29px;
    }

    .home-section-heading__title {
        font-size: 32px;
    }

    .home-section-heading__teaser {
        font-size: 13.5px;
    }

    .home-teaser-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-teaser-card {
        min-height: 0;
        padding: 21px;
    }
}