/* Apply Inter font to the entire page */
body {
    font-family: 'Inter', sans-serif;
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    /* Pastikan navbar berada di atas elemen lainnya */
}

/* Navbar link styling */
.navbar-nav .nav-link {
    color: white !important;
    margin-left: 20px;
    /* Margin between menu items */
    transition: color 0.3s ease;
    /* Smooth transition for color change */
}

/* Navbar link hover state */
.navbar-nav .nav-link:hover {
    color: #FFD700 !important;
    /* Color for hover effect */
}

/* Navbar link active state */
.navbar-nav .nav-link.active {
    color: #FFD700 !important;
    font-weight: bold;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    /* Atur ukuran font jika perlu */
    color: white;
    /* Sesuaikan warna jika diperlukan */
}

.custom-navbar {
    background-color: transparent;
    transition: background-color 0.5s ease;
    padding: 0 20px;
    /* Padding on left and right sides of the navbar */
}

.custom-navbar.scrolled {
    background-color: #024BAD !important;
    /* Update to desired color */
}

/* Adjust carousel item */
.carousel-item img {
    height: 100vh;
    object-fit: cover;
}

/* Carousel caption styling */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 50px;
    padding-left: 300px;
    color: white;
    text-align: center;
    overflow: visible;
}

/* Style for heading */
.carousel-caption h1 {
    font-size: 6rem;
    /* Adjust font size */
    font-weight: bold;
    line-height: 1.2;
}

/* Style for button */
.carousel-caption .btn,
.carousel-caption .btn.i {
    font-size: 1rem;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    transition: all 0.3s ease;
    /* Animasi halus saat berubah */
    border-radius: 50px;
    /* Membuat tombol rounded */
}

/* Hover: Ubah menjadi hanya stroke */
.carousel-caption .btn:hover {
    background-color: #FFD700;
    color: #000;
    border: none;

}

/* Klik: Hanya stroke */
.carousel-caption .btn:active,
.carousel-caption .btn:focus {
    background-color: #FFD700;
    color: #000;
    border: none;
}

/* Tablet */
@media (max-width: 768px) {
    .carousel-item img {
        height: 30vh;
        /* Ukuran lebih kecil untuk tablet */
    }

    .carousel-caption h1 {
        font-size: 0.1rem;
        /* Teks lebih kecil untuk tablet */
    }

    .carousel-caption .btn {
        font-size: 0.1rem;
        padding: 0px;
        /* Tombol lebih kecil */
    }
}

/* Mobile */
@media (max-width: 576px) {
    .carousel-item img {
        height: 35vh;
        /* Ukuran lebih kecil untuk mobile */
    }

    .carousel-caption h1 {
        font-size: 0.1rem;
        /* Teks lebih kecil untuk mobile */
    }

    .carousel-caption .btn {
        font-size: 0.1rem;
        padding: 0px;
        /* Tombol lebih kecil */
    }

    /* Align text and button in center for smaller screens */
    .carousel-caption {
        padding: 0;
        padding-left: 0px;

    }
}

/* Section di bawah carousel */

/* Style tambahan untuk jarak antar elemen dan teks */
.container {
    max-width: 1200px;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    /* Warna hitam untuk teks */
}

p {
    font-size: 1rem;
    color: #6c757d;
    /* Warna abu-abu untuk paragraf */
}

/* Agar teks dan gambar tetap proporsional di mobile */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-md-start {
    text-align: left;
}

.text-center {
    text-align: center;
}


/*Section Mengapa Harus YS Car Rental */

.why-us h2 {
    color: white;
    font-size: 2rem;
}

/* Card styling */
.card {
    background-color: white;
    border: none;
}

.card-body {
    padding: 20px;
}

.card-title {
    color: #000;
}

.card-text {
    color: #6c757d;
    /* Teks deskripsi berwarna abu-abu */
}

/* Icon color */
.bi {
    color: #024BAD;
}

.swiper-container {
    width: 100%;
    padding: 0 10px;
    overflow: hidden;
}


.swiper-slide {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .swiper-container {
        width: 100%;
        overflow: hidden;
    }

    .swiper-slide {
        width: 100% !important;
        /* Memastikan slider hanya menampilkan satu slide */
    }
}

.card-img {
    width: 100%;
    height: auto;
}

.swiper-slide-next,
.swiper-slide-prev {
    transform: scale(0.95);
    /* Kecilkan sedikit slide yang berada di samping */
}

.swiper-wrapper-container {
    overflow: hidden;
    margin: 0 auto;
}

.card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-img-overlay {
    background: transparent;
    /* Overlay hitam transparan di atas gambar */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Hover effect untuk tombol Hubungi Kami */
.card-img-overlay .btn {
    padding: 5px 15px;
    font-size: 0.8rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50px;

    transition: background-color 0.3s ease;
}

.card-img-overlay .btn:hover {
    background-color: #024BAD;
    /* Saat di-hover, ganti warna menjadi lebih cerah */
    color: white;
    border: none;
}

/* Gaya untuk tombol Lihat Semua Armada */
.btn-armada {
    background-color: transparent;
    /* Warna tombol */
    color: #024BAD;
    /* Warna teks */
    font-size: 1rem;
    padding: 10px 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    border: 2px solid #024BAD;

    /* Membuat tombol rounded */
}

.btn-armada i {
    color: #024BAD;
    /* Warna ikon panah kanan */
}

/* Hover effect untuk tombol */
.btn-armada:hover {
    background-color: #024BAD;
    /* Warna tombol saat hover */
    color: #fff;
    /* Warna teks saat hover */
}

.btn-armada:hover i {
    color: #fff;
    border: none;
    /* Warna ikon panah berubah mengikuti warna teks */
}

/* Responsive Breakpoints */
@media (max-width: 576px) {
    .swiper-slide {
        max-width: 100%;
    }
}

/* Section Testimoni */
.testimoni-section h2 {
    color: #024BAD;
    font-size: 2rem;
}

.testimoni-section p {
    font-size: 1rem;
    color: #ffffff;
}

.testimoni-slider .testimoni-card {
    background-color: #024BAD;
}

.testimoni-slider .swiper-slide .testimoni-card .rounded-circle {
    width: 100px;
    height: 100px;
}



.testimoni-slider .stars i {
    color: #FFD700;
    text-align: left;
}

/* Footer Styling */
.footer {
    background-color: #024BAD;
}

.footer-logo {
    max-width: 150px;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: white;
    text-decoration: none;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer .d-flex {
    margin-bottom: 15px;
}

.footer .me-2 {
    margin-right: 10px;
}

/* Untuk memastikan elemen di dalam footer sejajar dengan baik */
.row.align-items-start {
    align-items: flex-start;
}

.footer .footer-bottom {
    background-color: #024BAD;
    padding: 10px 0;
}

.footer .footer-bottom p {
    margin: 0;
    color: white;
}


/* Menyelaraskan alamat dengan teks di atasnya */
.footer .d-flex.align-items-center {
    display: flex;
    align-items: center;
}

/* Styling untuk div sebagai garis pemisah */
/* Styling untuk garis pemisah */
.separator {
    text-align: center;
    border: none;
    border-top: 2px solid #D0D0D0;
    /* Warna dan ketebalan garis */
    margin: 30px auto;
    /* Jarak vertikal dari elemen di atas dan bawah */
    width: 80%;
    /* Lebar penuh */
}

/* Styling untuk section Google Maps */
.google-maps {
    background-color: #f8f9fa;
    padding: 10px 0;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* Aspect ratio 16:9 */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Heading styling */
.google-maps h2 {
    color: #024BAD;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Section Kontak Styling */
.contact-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

/* Heading Styling */
.contact-section h3 {
    font-size: 1.75rem;
    color: #024BAD;
    margin-bottom: 20px;
}

/* Sosial Media List Styling */
.contact-section ul {
    padding: 0;
    list-style: none;
}

.contact-section li {
    font-size: 1rem;
    color: #000;
}

.contact-section i {
    font-size: 1.5rem;
    color: #024BAD;
}

/* Alamat Styling */
.contact-section .bi-geo-alt {
    font-size: 1.5rem;
    color: #024BAD;
}

.contact-section p {
    font-size: 1rem;
    color: #6c757d;
}

/* Formulir Kontak Styling */
.form-control {
    border-radius: 5px;
}

.form-label {
    font-size: 1rem;
    color: #024BAD;
}

.contact-section button {
    background-color: #024BAD;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.contact-section button:hover {
    background-color: #023a88;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section h3 {
        text-align: center;
    }

    .contact-section .col-md-6 {
        text-align: center;
    }

    .contact-section .col-md-6 form {
        text-align: left;
    }
}

/* Additional CSS */
.table {
    border-collapse: collapse;
    width: 100%;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
}

.table th {
    background-color: #f8f9fa;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 0px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

/* Button dropdown styling */
.btn-primary {
    background-color: #024BAD;
    border-color: #024BAD;
}

.btn-primary:hover {
    background-color: #003f8c;
    border-color: #003f8c;
}

.dropdown-menu {
    min-width: 150px;
}

.dropdown-item {
    font-size: 14px;
}

/* Container for contact and WhatsApp button */
.contact-button,
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    /* Make the buttons circular */
    width: 50px;
    /* Width of the button */
    height: 50px;
    /* Height of the button */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Drop shadow effect */
}

/* Hide WhatsApp button initially */
.whatsapp-button {
    display: none;
    bottom: 80px;
    /* Position it just above the contact button */
    background-color: #25D366;
    /* WhatsApp color */
    font-size: 26px;

}

/* Contact button style */
.contact-button {
    background-color: #007bff;
    /* Primary color for the contact button */
    font-size: 20px;

}

/* Contact button when active */
.contact-button.active {
    background-color: #dc3545;
    /* Change to red when active */
}

/* Animation for WhatsApp button */
.show-whatsapp {
    display: flex !important;
    /* Use flex to align content */
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}