.hero {
    background: var(--navy);
    color: #fff;
}

.hero__inner {
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    align-items: center;
    padding-top: 96px;
    padding-bottom: 96px;
    min-height: 380px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero__title {
    margin: 0;
    font-size: 45px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .01em;
}

.hero__lead {
    margin: 0;
    font-size: 21px;
    line-height: 1.5;
    color: var(--on-navy-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.hero__btn-main {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.hero__btn-main:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

/* Nút Liên hệ/Hỗ trợ: vòng sáng lan ra liên tục, hover thì đổ nền trắng */
.hero__btn-support {
    position: relative;
    transition: background-color .25s, color .25s, transform .25s;
}

.hero__btn-support::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid #fff;
    opacity: 0;
    pointer-events: none;
    animation: hero-support-pulse 2.4s ease-out infinite;
}

.hero__btn-support:hover,
.hero__btn-support:focus-visible {
    background: #fff;
    color: var(--navy);
    transform: translateY(-2px);
}

.hero__btn-support:hover::after {
    animation-play-state: paused;
}

@keyframes hero-support-pulse {
    0% { opacity: .7; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.12, 1.3); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__btn-support::after { animation: none; }
    .hero__btn-support:hover { transform: none; }
}

/* Khung ảnh tỉ lệ 4:3 cố định, các ảnh xếp chồng và chuyển bằng hiệu ứng mờ dần */
.hero__media {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hero__slides {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 420px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy-light);
}

.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Kéo chuột / vuốt để chuyển ảnh; vẫn cho cuộn dọc trang trên cảm ứng */
.hero__slides {
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.hero__slides.is-dragging {
    cursor: grabbing;
}

/* Nút trước/sau: ẩn, hiện khi rê chuột vào ảnh hoặc focus bằng bàn phím */
.hero__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--navy) 60%, transparent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .25s, background-color .25s;
}

.hero__nav--prev { left: 12px; }
.hero__nav--next { right: 12px; }

.hero__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__slides:hover .hero__nav,
.hero__nav:focus-visible {
    opacity: 1;
}

.hero__nav:hover {
    background: var(--orange);
}

.hero__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Thiết bị cảm ứng không có hover: luôn hiện nút nhưng mờ hơn */
@media (hover: none) {
    .hero__nav { opacity: .8; }
}

.hero__placeholder {
    color: var(--on-navy-muted);
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

.hero__dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

/* Vùng bấm 24px, chấm hiển thị vẽ bằng ::before */
.hero__dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--on-navy-muted);
    opacity: .5;
    transition: width .3s, background-color .3s, opacity .3s;
}

.hero__dot:hover::before {
    opacity: .9;
}

.hero__dot.is-active::before {
    width: 24px;
    background: var(--orange);
    opacity: 1;
}

.hero__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide,
    .hero__nav,
    .hero__dot::before { transition: none; }
}

@media (max-width: 1100px) {
    .hero__inner {
        padding-top: 64px;
        padding-bottom: 64px;
        gap: 40px;
    }

    .hero__title {
        font-size: 44px;
    }

    .hero__slides {
        max-height: 340px;
    }
}

@media (max-width: 666px) {
    .hero__inner {
        padding-top: 44px;
        padding-bottom: 44px;
        gap: 32px;
    }

    .hero__content {
        gap: 18px;
    }

    .hero__title {
        font-size: 34px;
    }

    .hero__lead {
        font-size: 18px;
    }

    .hero__actions {
        margin-top: 8px;
    }

    .hero__actions .btn {
        flex: 1 1 140px;
    }

    .hero__media {
        gap: 10px;
    }

    .hero__nav {
        width: 36px;
        height: 36px;
    }

    .hero__nav--prev { left: 8px; }
    .hero__nav--next { right: 8px; }
}

@media (max-width: 380px) {
    .hero__title {
        font-size: 29px;
    }
}
