.hero {
    position: relative;
    min-height: 74vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 38px;
    overflow: hidden;
    background-color: #4ab8ea;
    box-shadow: var(--cloud-shadow);
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 5.2s ease;
}

.hero-bg-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 1;
}

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.22);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    padding: 2.2rem 2rem;
    border-radius: var(--radius-card);
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero .eyebrow,
.hero-content p,
.hero-copy {
    color: rgba(255, 255, 255, 0.95);
}

.hero-content h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.18;
    color: #fff;
    margin: 0.45rem 0 0.8rem;
}

.hero-panel {
    display: none;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-stats-premium {
    margin-top: 1.2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.72rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats-premium .stat-item {
    display: grid;
    gap: 0.12rem;
    justify-items: center;
}

.hero-stats-premium .stat-num {
    color: #7ed7ff;
    font-weight: 800;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1;
}

.hero-stats-premium .stat-label {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.8rem;
    font-weight: 600;
}

.premium-marquee {
    margin-top: 0.92rem;
    border-radius: 999px;
    background: var(--sky-blue);
    color: #fff;
    padding: 0.6rem 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 12px 22px rgba(0, 144, 210, 0.18);
}

.marquee-track {
    display: inline-block;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.marquee-track span {
    display: inline-block;
    margin-right: 2.2rem;
    font-size: 0.78rem;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.home-section {
    margin: 0.5rem 0;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-card);
}

.home-section-soft {
    background: var(--bg-soft);
}

.home-section-white {
    background: #fff;
    border: 1px solid #e2f0fb;
}

.home-section .section-head {
    margin-bottom: 1rem;
}

/* Home card title: avoid heavy bold from global heading font stack */
.page-home .home-section .travel-card h3 {
    font-family: 'Poppins', 'Segoe UI', sans-serif !important;
    font-weight: 500 !important;
    color: #333333 !important;
    line-height: 1.4 !important;
}

.home-section .card-carousel {
    padding-bottom: 0.4rem;
}

@media (min-width: 769px) {
    /* Hotel & Resort only: keep cards wider than other sections without overlap */
    .page-home .home-section-white .card-carousel {
        grid-auto-columns: minmax(340px, calc((100% - 2rem) / 2.65));
        gap: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: 62vh;
        border-radius: 30px;
        padding: 1rem;
    }

    .hero-content {
        padding: 1.5rem 1.2rem;
    }

    .home-section {
        padding: 0.5rem 0.9rem;
    }

    .hero-stats-premium {
        gap: 1.2rem;
        padding: 0.64rem 0.72rem;
    }
}

@media (max-width: 560px) {
    .hero-content {
        padding: 0.92rem;
    }

    .home-section {
        padding: 0.5rem 0.72rem;
    }

    .hero-stats-premium {
        gap: 0.9rem;
    }

    .hero-stats-premium .stat-label {
        font-size: 0.7rem;
    }

    .premium-marquee {
        border-radius: 18px;
    }

    .hero-slider-dots {
        bottom: 0.7rem;
    }
}

/* =========================================================
   Home V2: Full Panorama + Transparent Floating Header
========================================================= */
.page-home .site-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 0;
}

.page-home .main-content {
    margin-top: 0;
}

.page-home .site-header,
.page-home .nav-wrap {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.page-home .site-header,
.home-v2-header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

.page-home .nav-wrap {
    border-radius: 0;
    backdrop-filter: none;
    overflow: visible;
}

@media (min-width: 769px) {
    .page-home .site-header,
    .page-home .home-v2-header {
        width: min(1240px, calc(100% - 2rem)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .page-home .nav-wrap {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        transform: none !important;
    }
}

.page-home .header-main-row {
    border-top: none;
}

.page-home .dropdown {
    z-index: 1001;
}

.hero-v2 {
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 88vh !important;
    max-height: 1000px !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 190px !important;
    padding-bottom: 50px !important;
    border-radius: 0 !important;
    position: relative;
    z-index: 1;
    margin-top: -0.5rem !important;
    display: flex !important;
    align-items: center !important;
}

.hero-v2-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    object-position: center 30%;
}

/* Update the V2 Hero Glass Box */
.hero-glass-box,
.hero-content-wrapper {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(1px) !important;
    padding: 2.5rem 2rem 3rem !important;
    border: none !important;
    border-radius: 24px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    transform: translateY(20px) !important;
}

.hero-glass-box h1,
.hero-content-wrapper h1 {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
}

/* Client request: all text black */
.page-home .brand strong,
.page-home .brand small,
.page-home .main-nav > a,
.page-home .main-nav > .has-dropdown > a,
.page-home .main-nav > .admin-link,
.page-home .hero .eyebrow,
.page-home .hero-content p,
.page-home .hero-copy,
.page-home .hero-content h1,
.page-home .hero-stats-premium .stat-num,
.page-home .hero-stats-premium .stat-label,
.page-home .premium-marquee,
.page-home .premium-marquee span {
    color: #000 !important;
}

.page-home .main-nav > a:hover,
.page-home .main-nav > .has-dropdown > a:hover,
.page-home .main-nav > .admin-link:hover,
.page-home .main-nav > a.active,
.page-home .main-nav > .has-dropdown.active > a {
    color: #000 !important;
    background: rgba(255, 255, 255, 0.5);
}

@media (hover: none), (pointer: coarse) {
    .page-home .main-nav > a:hover,
    .page-home .main-nav > .has-dropdown > a:hover,
    .page-home .main-nav > .admin-link:hover {
        color: #000 !important;
        background: transparent !important;
    }
}

.page-home .hero::before {
    background: rgba(255, 255, 255, 0.24);
}

.page-home .hero-content {
    border: none !important;
}

.page-home .btn {
    color: #000 !important;
}

/* Keep gradient accent visible even under global black text overrides */
.page-home .hero-content h1 .text-gradient-ph,
.page-home .hero-glass-box h1 .text-gradient-ph,
.page-home .hero-content-wrapper h1 .text-gradient-ph {
    background: linear-gradient(to right, #FF512F, #F09819, #00A9EF, #00BFFF) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block;
}

@media (max-width: 768px) {
    .page-home .site-header,
    .home-v2-header {
        position: absolute !important;
        background: transparent !important;
    }

    .hero-v2 {
        min-height: 80vh !important;
        padding-top: 140px !important;
        padding-bottom: 40px !important;
        display: flex !important;
        align-items: flex-start !important;
    }

    .hero-v2 h1, .hero-content-wrapper h1 {
        font-size: 1.65rem !important;
        line-height: 1.1 !important;
        margin-top: 10px !important;
        margin-bottom: 0.6rem !important;
        letter-spacing: -0.03em !important;
    }

    .hero-v2 p, .hero-content-wrapper p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        opacity: 0.85;
    }

    .hero-glass-box, .hero-content-wrapper {
        margin: 0 15px !important;
        padding: 1.5rem 1rem !important;
        transform: translateY(0) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }
}
