/* ==========================================================================
   BANNER-CUSTOM.CSS - NHA KHOA 3D SÀI GÒN
   Hero Banner Section chuẩn Y tế Kỹ thuật số 3D Quốc Tế
   - Cột trái: Slogan, Thế mạnh công nghệ, Nút CTA khám miễn phí, Thống kê
   - Cột phải: Slider 3 ảnh tự chuyển sau 5s, Nền loading Shimmer chuyên nghiệp,
               Floating Badge an toàn không đau
   - Responsive hoàn hảo từ 1440px xuống 360px, không vỡ layout, không overflow-x
   ========================================================================== */

/* 1. SECTION WRAPPER */
.clinic-hero-banner {
    position: relative;
    width: 100%;
    background-color: #f8fafc;
    background: linear-gradient(135deg, #f0f7fd 0%, #ffffff 45%, #f4f9fd 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 44px 0 54px 0;
    overflow: hidden;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Subtle background accent mesh */
.clinic-hero-banner::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.clinic-hero-banner .hero-banner-container {
    width: 100% !important;
    max-width: 1330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 1;
}

.clinic-hero-banner .hero-banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* 2. CỘT TRÁI: NỘI DUNG & THẾ MẠNH */
.clinic-hero-banner .hero-content-col {
    flex: 0 0 56%;
    max-width: 56%;
    box-sizing: border-box;
}

/* Badge định vị đầu */
.clinic-hero-banner .hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.clinic-hero-banner .hero-pill-badge .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
}

.clinic-hero-banner .hero-pill-badge .badge-text {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #0369a1;
    text-transform: uppercase;
}

/* Headline H1 */
.clinic-hero-banner .hero-headline {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
}

.clinic-hero-banner .hero-headline .headline-blue {
    color: #0084c9;
    background: linear-gradient(135deg, #0084c9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Lead paragraph */
.clinic-hero-banner .hero-lead-text {
    font-size: 15.5px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 24px 0;
    max-width: 95%;
}

.clinic-hero-banner .hero-lead-text strong {
    color: #1e293b;
    font-weight: 700;
}

/* 3. LƯỚI 3 THẺ CÔNG NGHỆ (Tech Highlights) */
.clinic-hero-banner .hero-tech-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.clinic-hero-banner .tech-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.clinic-hero-banner .tech-card-item:hover {
    border-color: #0084c9;
    box-shadow: 0 6px 18px rgba(0, 132, 201, 0.12);
    transform: translateY(-2px);
}

.clinic-hero-banner .tech-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.clinic-hero-banner .tech-card-icon.icon-blue {
    background-color: #e0f2fe;
    color: #0284c7;
}

.clinic-hero-banner .tech-card-icon.icon-cyan {
    background-color: #ecfeff;
    color: #0891b2;
}

.clinic-hero-banner .tech-card-icon.icon-red {
    background-color: #fee2e2;
    color: #dc2626;
}

.clinic-hero-banner .tech-card-info {
    overflow: hidden;
}

.clinic-hero-banner .tech-title {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    margin: 0 0 2px 0;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clinic-hero-banner .tech-desc {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. CẶP NÚT HÀNH ĐỘNG (CTA Buttons) */
.clinic-hero-banner .hero-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.clinic-hero-banner .hero-btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    padding: 0 26px;
    background: #e11d48;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-radius: 10px;
    text-decoration: none !important;
    border: none;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.28);
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.clinic-hero-banner .hero-btn-book:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.38);
    color: #ffffff !important;
}

.clinic-hero-banner .hero-btn-book:active {
    transform: translateY(0);
}

.clinic-hero-banner .hero-btn-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    padding: 0 24px;
    background: #ffffff;
    border: 1.5px solid #0084c9;
    color: #0084c9 !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 132, 201, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.clinic-hero-banner .hero-btn-price:hover {
    background-color: #f0f9ff;
    border-color: #0072b2;
    color: #0072b2 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 132, 201, 0.16);
}

.clinic-hero-banner .hero-btn-price:active {
    transform: translateY(0);
}

/* 5. THỐNG KÊ NĂNG LỰC (Trust Figures) */
.clinic-hero-banner .hero-stats-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.clinic-hero-banner .stat-item {
    display: flex;
    flex-direction: column;
}

.clinic-hero-banner .stat-num {
    font-size: 22px;
    font-weight: 900;
    color: #0084c9;
    line-height: 1.1;
    margin-bottom: 3px;
}

.clinic-hero-banner .stat-txt {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.clinic-hero-banner .stat-sep {
    width: 1px;
    height: 32px;
    background-color: #cbd5e1;
}

/* 6. CỘT PHẢI: SLIDER 3 ẢNH BANNER HIỆN ĐẠI (5s Auto) */
.clinic-hero-banner .hero-visual-col {
    flex: 0 0 44%;
    max-width: 44%;
    box-sizing: border-box;
    position: relative;
}

.clinic-hero-banner .hero-slider-card {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.14), 0 8px 18px -6px rgba(0, 0, 0, 0.08);
    border: 4px solid #ffffff;
    user-select: none;
}

/* Nền Loading Shimmer chuyên nghiệp khi ảnh chưa tải xong */
.clinic-hero-banner .hero-skeleton-loader {
    position: absolute;
    inset: 0;
    background-color: #f1f5f9;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.clinic-hero-banner .hero-skeleton-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.clinic-hero-banner .skeleton-shimmer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: heroShimmerWave 1.8s infinite linear;
}

@keyframes heroShimmerWave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.clinic-hero-banner .skeleton-center-box {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.clinic-hero-banner .skeleton-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #0084c9;
    border-radius: 50%;
    animation: heroSpin 0.9s infinite linear;
}

@keyframes heroSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clinic-hero-banner .skeleton-status-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.2px;
}

/* Viewport & Slide Items */
.clinic-hero-banner .hero-slides-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.clinic-hero-banner .hero-slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.03);
    z-index: 1;
}

.clinic-hero-banner .hero-slide-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.clinic-hero-banner .hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.clinic-hero-banner .hero-slide-img.is-loaded {
    opacity: 1;
}

/* Lớp phủ tối dưới đáy ảnh & Thông tin chú thích slide */
.clinic-hero-banner .slide-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 50%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.clinic-hero-banner .slide-info-overlay {
    position: absolute;
    bottom: 22px;
    left: 22px;
    right: 22px;
    z-index: 4;
    color: #ffffff;
    pointer-events: none;
}

.clinic-hero-banner .slide-badge-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #e11d48;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.clinic-hero-banner .slide-caption-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Nút điều hướng Trước / Sau */
.clinic-hero-banner .hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    outline: none !important;
}

.clinic-hero-banner .hero-nav-arrow:hover {
    background-color: #0084c9;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.clinic-hero-banner .hero-nav-arrow.arrow-prev {
    left: 14px;
}

.clinic-hero-banner .hero-nav-arrow.arrow-next {
    right: 14px;
}

.clinic-hero-banner .hero-nav-arrow i {
    font-size: 18px;
    line-height: 1;
}


/* Thẻ nổi Floating Badge (An Toàn - Không Đau) */
.clinic-hero-banner .hero-floating-badge {
    position: absolute;
    bottom: -14px;
    left: -14px;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e0f2fe;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 320px;
    transition: transform 0.25s ease;
}

.clinic-hero-banner .hero-floating-badge:hover {
    transform: translateY(-2px);
}

.clinic-hero-banner .floating-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clinic-hero-banner .floating-copy {
    display: flex;
    flex-direction: column;
}

.clinic-hero-banner .floating-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1px;
}

.clinic-hero-banner .floating-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Desktop -> Laptop -> Tablet -> Mobile 360px)
   ========================================================================== */

/* Laptop màn hình trung bình (1200px - 1399px) */
@media (max-width: 1399.98px) and (min-width: 1200px) {
    .clinic-hero-banner .hero-headline {
        font-size: 38px;
    }
    .clinic-hero-banner .hero-slider-card {
        height: 450px;
    }
}

/* Laptop nhỏ (992px - 1199px) */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .clinic-hero-banner {
        padding: 36px 0 46px 0;
    }
    .clinic-hero-banner .hero-banner-row {
        gap: 30px;
    }
    .clinic-hero-banner .hero-content-col {
        flex: 0 0 54%;
        max-width: 54%;
    }
    .clinic-hero-banner .hero-visual-col {
        flex: 0 0 46%;
        max-width: 46%;
    }
    .clinic-hero-banner .hero-headline {
        font-size: 34px;
    }
    .clinic-hero-banner .hero-lead-text {
        font-size: 14.5px;
    }
    .clinic-hero-banner .hero-tech-cards {
        gap: 10px;
    }
    .clinic-hero-banner .tech-card-item {
        padding: 10px;
    }
    .clinic-hero-banner .hero-slider-card {
        height: 420px;
    }
    .clinic-hero-banner .hero-floating-badge {
        bottom: -8px;
        left: -8px;
        padding: 10px 14px;
        max-width: 290px;
    }
}

/* Tablet (768px - 991px): Bắt đầu chuyển sang xếp tầng 1 cột */
@media (max-width: 991.98px) {
    .clinic-hero-banner {
        padding: 36px 0 44px 0;
    }
    .clinic-hero-banner .hero-banner-row {
        flex-direction: column;
        gap: 36px;
    }
    .clinic-hero-banner .hero-content-col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
    }
    .clinic-hero-banner .hero-visual-col {
        flex: 0 0 100%;
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }
    .clinic-hero-banner .hero-headline {
        font-size: 34px;
    }
    .clinic-hero-banner .hero-slider-card {
        height: 380px;
    }
    .clinic-hero-banner .hero-floating-badge {
        bottom: -10px;
        left: 10px;
    }
}

/* Mobile tiêu chuẩn (481px - 767px) */
@media (max-width: 767.98px) {
    .clinic-hero-banner {
        padding: 28px 0 36px 0;
    }
    .clinic-hero-banner .hero-banner-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .clinic-hero-banner .hero-headline {
        font-size: 28px;
        letter-spacing: -0.3px;
        margin-bottom: 12px;
    }
    .clinic-hero-banner .hero-lead-text {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 20px;
        max-width: 100%;
    }
    .clinic-hero-banner .hero-tech-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 22px;
    }
    .clinic-hero-banner .tech-card-item {
        padding: 12px 14px;
    }
    .clinic-hero-banner .hero-cta-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-bottom: 24px;
    }
    .clinic-hero-banner .hero-btn-book,
    .clinic-hero-banner .hero-btn-price {
        width: 100%;
        height: 46px;
        font-size: 13.5px;
    }
    .clinic-hero-banner .hero-stats-bar {
        gap: 14px;
        justify-content: space-between;
    }
    .clinic-hero-banner .stat-num {
        font-size: 19px;
    }
    .clinic-hero-banner .stat-txt {
        font-size: 11px;
    }
    .clinic-hero-banner .hero-visual-col {
        max-width: 100%;
    }
    .clinic-hero-banner .hero-slider-card {
        height: 300px;
        border-radius: 16px;
        border-width: 3px;
    }
    .clinic-hero-banner .slide-caption-title {
        font-size: 13px;
    }
    .clinic-hero-banner .hero-floating-badge {
        position: static;
        max-width: 100%;
        margin-top: 12px;
        border-radius: 12px;
        padding: 10px 14px;
    }
}

/* Extra small mobile (<= 480px, vd 360px) */
@media (max-width: 480px) {
    .clinic-hero-banner {
        padding: 22px 0 30px 0;
    }
    .clinic-hero-banner .hero-pill-badge {
        padding: 5px 10px;
        margin-bottom: 12px;
    }
    .clinic-hero-banner .hero-pill-badge .badge-text {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    .clinic-hero-banner .hero-headline {
        font-size: 24px;
        line-height: 1.22;
    }
    .clinic-hero-banner .hero-lead-text {
        font-size: 13px;
        line-height: 1.5;
    }
    .clinic-hero-banner .hero-btn-book,
    .clinic-hero-banner .hero-btn-price {
        height: 44px;
        font-size: 12.5px;
    }
    .clinic-hero-banner .hero-stats-bar {
        gap: 6px;
        padding-top: 14px;
    }
    .clinic-hero-banner .stat-num {
        font-size: 16px;
    }
    .clinic-hero-banner .stat-txt {
        font-size: 10px;
    }
    .clinic-hero-banner .stat-sep {
        height: 24px;
    }
    .clinic-hero-banner .hero-slider-card {
        height: 250px;
    }
    .clinic-hero-banner .hero-nav-arrow {
        width: 34px;
        height: 34px;
    }
    .clinic-hero-banner .hero-nav-arrow i {
        font-size: 15px;
    }
    .clinic-hero-banner .slide-info-overlay {
        bottom: 14px;
        left: 14px;
        right: 14px;
    }
    .clinic-hero-banner .slide-badge-tag {
        font-size: 9.5px;
        padding: 2px 7px;
    }
    .clinic-hero-banner .slide-caption-title {
        font-size: 12px;
    }
}
