/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 750px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    z-index: 10;
    max-width: 800px;
    width: 80%;
    pointer-events: none;
    /* Kembalikan ke none agar tidak menghalangi slider di area lain */
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Kembalikan gap asli */
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .hero-content {
        left: 161px;
        width: 100%;
    }
}

.Explore-the-World-with-Naraya-Tour-and-Event {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    text-align: left;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.Experienced-and-trusted {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 700px;
    text-align: left;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bold-text {
    font-weight: 800 !important;
}

.gradient-text {
    background: linear-gradient(135deg, #D7A6FF 0%, #B459FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800 !important;
}

.btn-book {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 50px;
    border-radius: 100px;
    background-color: #6b3c92;
    transition: var(--transition);
    z-index: 5;
    text-decoration: none;
    pointer-events: auto;
}

.Book-Sekarang {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    line-height: normal;
}

.slider-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 40px;
    border-radius: 20px;
}

/* --- Why Choose Us Section --- */
.why-choose-us-home {
    background-color: #f9fafb;
    padding: 60px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    color: #0f172a;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header p {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(107, 60, 146, 0.1);
    color: #6B3C92;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.feature-card h3 {
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* --- Curated Journeys --- */
.curated-journeys-home {
    padding: 60px 0;
    background: #ffffff;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.header-left .tagline-home {
    color: #3b82f6;
    /* Blue */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.header-left h2 {
    font-family: 'Montserrat';
    font-size: 32px;
    font-weight: 800;
    color: #000;
}

.header-left h2 .purple-text {
    color: #6B3C92;
    font-weight: 800;
}

.header-right .view-more {
    color: #3b82f6;
    font-weight: 600;
    font-size: 15px;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tour-card img {
    width: 100%;
    aspect-ratio: 3 / 4; /* Kembali ke ratio 3:4 asli */
    object-fit: cover;
    object-position: center;
}

.tour-info {
    padding: 20px;
}

.tour-location {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-title-home {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tour-duration {
    font-size: 14px;
    color: #94a3b8;
}

.event-banner {
    height: 480px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.event-banner .event-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.95) 0%, transparent 70%);
    z-index: 1;
}

.event-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    width: 100%;
    text-align: left;
}

.event-badge {
    background: #064e3b;
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.event-title {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.event-trail-color {
    color: #A3F69C;
}

.event-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    font-size: 16px;
    margin-bottom: 30px;
}

.event-footer {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* --- Home Buttons Animation --- */
.btn-home {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 35px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 50;
    /* Tetap tinggi agar bisa diklik di atas overlay */
    cursor: pointer;
    pointer-events: auto;
    /* AKTIFKAN POINTER EVENTS KHUSUS DI TOMBOLNYA SAJA */
}

.btn-home.btn-primary {
    background: #6b3c92;
    color: #fff;
}

.btn-home.btn-orange {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: none;
}

.btn-home:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-home:hover::after {
    animation: shine-home 0.8s ease-in-out;
}

@keyframes shine-home {
    100% {
        left: 200%;
    }
}

.btn-join {
    /* Gunakan btn-home class di blade */
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
}

.event-info-item i {
    color: #34d399;
}

/* --- Testimonial Section --- */
.testimonial-section-home {
    padding: 60px 0;
    background: #ffffff;
    /* Kembali ke putih default */
    overflow: hidden;
}

.testimonial-grid-home {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.testimonial-grid-home::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Jika kartu berjumlah 3 atau kurang, matikan scroll dan buat grid statis */
.testimonial-grid-home.static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
}

.testimonial-card-home {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: var(--transition);
    flex: 0 0 calc((100% / 3) - 16px);
    /* Per 3 kolom */
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.testimonial-location {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.testimonial-separator {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}

.rating {
    color: #f59e0b;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 3px;
}

/* --- Gallery Section --- */
.gallery-section-home {
    padding: 60px 0;
    background: #F3F4F5;
    /* Background sesuai permintaan */
}

.gallery-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.gallery-col-vert {
    height: 500px;
    width: 100%;
}

.gallery-col-stacked {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 500px;
}

.gallery-item-home {
    background: #F3F4F5;
    border-radius: 20px;
    /* padding: 15px; */
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-col-vert .gallery-item-home {
    height: 100%;
}

.gallery-col-stacked .gallery-item-home {
    height: calc(50% - 12px);
}

.gallery-item-home:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* --- Home Responsive --- */
@media (max-width: 1024px) {
    .hero-slider h1 {
        font-size: 3.5rem;
    }

    .tour-grid,
    .features-grid,
    .testimonial-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-right {
        margin-top: 10px;
    }

    .hero-slider-wrapper {
        min-height: 550px;
    }

    .hero-content {
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: calc(100% - 40px);
        align-items: flex-start;
    }

    .Explore-the-World-with-Naraya-Tour-and-Event {
        font-size: 38px;
    }

    .Experienced-and-trusted {
        font-size: 16px;
    }

    .hero-slider h1 {
        font-size: 2.5rem;
    }

    .hero-slider p {
        font-size: 1rem;
        max-width: 100%;
    }

    .event-banner {
        height: auto;
        min-height: 400px;
    }

    .event-title {
        font-size: 32px;
    }

    .gallery-grid-home {
        grid-template-columns: 1fr;
    }

    .gallery-col-vert,
    .gallery-col-stacked {
        height: auto;
    }

    .gallery-item-home {
        height: 300px !important;
    }

    /* Padding adjustment for mobile */
    .why-choose-us-home,
    .curated-journeys-home,
    .event-section-home,
    .gallery-section-home,
    .testimonial-section-home {
        background-color: #F3F4F5;
        padding: 40px 0 !important;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-us-home {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-slider-wrapper {
        min-height: 480px;
    }

    .hero-content {
        left: 15px !important;
        width: calc(100% - 30px);
    }

    .Explore-the-World-with-Naraya-Tour-and-Event {
        font-size: 32px;
    }

    .Experienced-and-trusted {
        font-size: 14px;
    }

    .hero-slider h1 {
        font-size: 2rem;
    }

    .tour-grid,
    .features-grid,
    .testimonial-grid-home {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .header-left h2 {
        font-size: 26px;
    }

    .btn-book {
        padding: 12px 25px;
        font-size: 14px;
    }

    .event-content {
        padding: 30px 20px;
    }

    .event-title {
        font-size: 28px;
    }

    .event-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .testimonial-card-home {
        padding: 24px 20px;
    }
}