* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
}

/* Global font settings */
body {
    font-family: 'SF Pro Display', sans-serif;
    line-height: 1.6;
}

/* Navbar and Footer use Poppins */
.navbar,
footer {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Hero section uses Montserrat */
.hero-section {
    font-family: 'Montserrat', sans-serif;
}

/* Typography for specific tags */
p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Colors */
:root {
    --bs-primary: #ff8c00;
    --bs-dark: #333;
    --bs-light: #f8f9fa;
}

/* Button Styling */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #e67e22;
}

/* Style untuk navbar */
.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease-in-out;
    padding-bottom: 8px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary);
    /* Warna oranye saat hover */
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary);
    /* Warna oranye untuk link aktif */
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--bs-primary);
    /* Garis bawah oranye */
    width: 100%;
    transition: width 0.3s ease-in-out;
}

/* Untuk efek hover dan active */
.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--bs-primary);
    width: 100%;
}

/* Responsive untuk tampilan mobile */
@media (max-width: 768px) {

    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-link:hover::after {
        display: none;
        /* Hilangkan garis bawah pada ukuran mobile */
    }

    .navbar-nav .nav-link.active {
        color: var(--bs-primary);
        /* Hanya teks berwarna oranye */
    }
}

/* Swiper Styling */
.swiper-container {
    width: 100%;
    height: 720px;
    position: relative;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.swiper-pagination {
    position: absolute;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-left: 10px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--bs-primary);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: white;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(128, 128, 128, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
}

/* Custom Styling for Hero Section Text */
.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section p {
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Assistance Section Custom Styling */
.assistance-section {
    background-image: url('../img/section_1.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
}

.assistance-section .caption {
    margin-left: 150px;
}

/* Footer Styling */
footer {
    background-color: var(--bs-dark);
    color: white;
    padding: 40px 0;
}

footer p,
footer a {
    color: white;
    text-decoration: none;
}

.icon-box i {
    color: var(--bs-primary);
}

/* Search Box */
.search-box {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin-top: -30px;
}

.search-box input {
    border-radius: 20px;
    padding: 15px;
    max-width: 600px;
    background-color: var(--bs-primary);
    color: white;
    border: 2px solid var(--bs-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    outline: none;
    box-shadow: none;
}

.search-box input::placeholder {
    color: white;
    opacity: 1;
}

.search-box input:focus,
.search-box input:active {
    background-color: var(--bs-primary);
    color: white;
    outline: none;
    border-color: white;
    box-shadow: none;
}

.search-box input:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Card Styling */
.card {
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card img {
    object-fit: cover;
    height: 200px;
}

.recommended-tour .row,
.latest-package .row {
    justify-content: center;
}

/* Styling for Recommended Tour */
.recommended-tour h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.recommended-tour .card {
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease-in-out;
    /* Smooth transition for zoom */
}

.recommended-tour .card-img-top {
    border-radius: 15px;
    object-fit: cover;
    height: 300px;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    /* Smooth transition for image */
}

.recommended-tour .card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    border-radius: 0 0 15px 15px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
    /* Smooth transition for overlay */
}

.recommended-tour .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-align: left;
    margin: 0;
}

/* Ensure the images don't overflow or break the layout */
.rounded-image {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    /* Smooth transition for zoom */
}

/* Hover effect for the entire card */
.recommended-tour .card:hover .rounded-image {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.recommended-tour .card:hover .card-img-overlay {
    transform: scale(1.05);
    /* Zoom effect on hover for the overlay */
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darken the background on hover */
}

/* General styling for buttons in the slider */
.hero-section .btn {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 15px;
    width: fit-content;
}

/* Styling for Latest Package */
.latest-package h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.latest-package .card {
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease-in-out;
    /* Smooth transition for zoom */
}

.latest-package .card-img-top {
    border-radius: 15px;
    object-fit: cover;
    height: 350px;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.latest-package .card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    border-radius: 0 0 15px 15px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.latest-package .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-align: left;
    margin: 0;
    margin-bottom: 15px;
    margin-left: 15px;
}

.rounded-image {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect for the entire card */
.latest-package .card:hover .rounded-image {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.latest-package .card:hover .card-img-overlay {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.6);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-align: left;
    margin: 0;
}

/* How it Works Section */
.how-it-works {
    padding: 50px 0;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.how-it-works p.text-lg {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 40px;
}

/* Icon box styling with flexbox */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: start;
    text-align: left;
}

/* Icon image styling */
.icon-image {
    width: 80px;
    height: 80px;
    background-color: #ff8c00;
    padding: 15px;
    border-radius: 50%;
}

/* Text box styling */
.text-box h5 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.text-box p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Add hover effect for icons */
.icon-box:hover .icon-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}



/* Responsive Design */
@media (max-width: 768px) {
    .swiper-container {
        height: 50vh;
    }

    .swiper-slide {
        height: 50vh;
    }

    .swiper-slide .content {
        margin-left: 35px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin: 0 10px;

    }

    .hero-section .btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        margin-top: 8px;
    }

    .hero-section p {
        font-size: 1rem;
        margin: 0 10px;
    }

    .search-box {
        margin-top: -15px;
    }

    .search-box input {
        width: 90%;
        max-width: 400px;
        padding: 10px;
    }

    .card img {
        height: 150px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 25px;
        height: 25px;
    }

    .assistance-section .caption {
        margin-left: 20px;
    }

    .icon-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .icon-image {
        margin-bottom: 15px;
    }
}

.car-card {
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    background-color: #f0f8ff;
    overflow: hidden;
    padding: 20px;
    height: 430px;
}

.car-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.car-card img {
    width: 100%;
    height: 180px;
    /* Adjust the height as per your preference */
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.2s ease;
}

.card-info {
    position: relative;
    padding: 10px;
    margin-bottom: 10px;
}

.car-card .car-price {
    margin-top: 5px;
    font-size: 1.1em;
    color: #000;
}

.car-features {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    font-size: 0.9em;
    transition: opacity 0.3s ease;
}

.car-card:hover .car-features {
    opacity: 0;
    visibility: hidden;
}

.book-now-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 1em;
    background-color: #ffa500;
    /* Custom orange color */
    color: white;
    border-radius: 8px;
    text-transform: uppercase;
    opacity: 0;
    width: 60%;
    /* Set a fixed width for the button */
    transition: all 0.3s ease;
    text-decoration: none;
}

.car-card:hover .book-now-btn {
    opacity: 1;
}

.car-card:hover img {
    opacity: 0.9;
}

/* Package Tour */
.hero-section-package {
    background-size: cover;
    background-position: center;
    height: 500px;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.hero-section-package h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    justify-content: center;
}

.tour-package-img {
    border-radius: 10px;
    width: 550px;
    max-height: 500px;
    object-fit: cover;
    text-align: center;
    justify-content: center;
}


.tour-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
}

/* Hover outline for Gold Tour */
.hover-outline-gold:hover {
    border: 3px solid #FFD700;
}

.tour-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tour-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #6c757d;
}

/* Button Styles */
.tour-btn-dark,
.tour-btn-highlight,
.tour-btn-light {
    border-radius: 50px;
    padding: 8px 18px;
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease;
}

.tour-btn-dark {
    background-color: #343a40;
    color: white;
}

.tour-btn-highlight {
    background-color: #fcd34d;
    color: white;
}

.tour-btn-light {
    background-color: white;
    color: #343a40;
    border: 1px solid #ddd;
}

/* Hover Effect */
.tour-btn-dark:hover,
.tour-btn-highlight:hover,
.tour-btn-light:hover {
    background-color: #ffa500;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tour-card h5 {
        font-size: 1.15rem;
    }

    .tour-card p {
        font-size: 0.95rem;
    }

    .tour-btn-dark,
    .tour-btn-highlight,
    .tour-btn-light {
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .hero-section-package h1 {
        font-size: 3rem;
        font-weight: bold;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
        font-family: 'Montserrat', sans-serif;
        text-align: center;
        justify-content: center;
    }

}

@media (max-width: 768px) {
    .testimonial-card {
        height: auto;
        /* Tinggi otomatis pada layar kecil */
        margin-bottom: 20px;
        /* Tambah margin antara card */
    }

    .testimonial-card p {
        font-size: 13px;
        /* Ukuran font lebih kecil untuk layar kecil */
    }
}

.company-logo img {
    width: 250px;
}

@media (max-width: 767px) {
    .hero-image-index {
        display: none;
    }
    .company-logo img {
        width: 75px;
    }
}

/* Tombol Explore More di tengah card */
.tour-card .explore-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tour-card:hover .explore-btn {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.tour-package-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.tour-package-section img.tour-package-img {
    max-width: 90%;
    /* Agar gambar tidak terlalu besar */
    height: auto;
    border-radius: 12px;
    /* Memberikan efek rounded */
}

.tour-package-section .tour-package-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.tour-package-section .tour-package-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

.tour-package-section .btn-primary {
    color: #ffe4e1;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.tour-package-section .btn-primary:hover {
    background-color: #ffa500;
    color: #ffffff;
}

@media (max-width: 768px) {
    .tour-package-section {
        padding: 40px 0;
    }

    .tour-package-section .tour-package-content h1 {
        font-size: 2rem;
        text-align: center;
        margin-top: 16px;
    }

    .tour-package-section img.tour-package-img {
        max-width: 100%;
        /* Gambar lebih fleksibel di layar kecil */
    }
}
