@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');

* {
    font-family: "League Spartan", sans-serif;
    box-sizing: border-box;
}

/* Animasi Fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Atur ukuran font untuk nama mobil dan tipe di daftar mobil */
.car-list-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    animation: fadeIn 0.5s ease forwards;
}

/* Main Section */
.main-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10rem;
    background: linear-gradient(180deg, rgba(1, 65, 159, 1) 0%, rgba(13, 110, 253, 1) 100%);
    color: white;
    overflow: hidden;
}

.main-section .text-content {
    max-width: 50%;
}

.main-section .text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.main-section .text-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.main-section .text-content .btn {
    font-size: 1.1rem;
    background-color: #1b1bb3;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.main-section .text-content .btn:hover {
    transform: scale(1.05);
    background-color: #0f0f7a;
}

.main-section .image-content {
    max-width: 40%;
    transform: translateY(2rem);
    transition: transform 0.5s ease;
}

.main-section .image-content img {
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* About Section */
.about-section {
    padding: 1rem 1rem;
}

.car-list-section h2.text-primary {
    font-size: 1.1rem;
    /* Sesuaikan ukuran huruf */
    font-weight: 600;
    color: #007bff;




}

.about-section .item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section .item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-section .row .col p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

/* Flow Section */
.flow-section {
    padding: 2rem 10rem;
}

.flow-section .cont {
    background: linear-gradient(180deg, rgba(1, 65, 159, 1) 0%, rgba(13, 110, 253, 1) 100%);
    color: white;
    border-radius: 10px;
}

.flow-section .col-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-section .col-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#number {
    font-size: 1.2rem;
    color: white;
    height: 3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -1.5rem);
}

.title-number {
    padding-top: 2.5rem;
}

/* Car List Section */
.car-list-section {
    padding: 1rem 9rem;
}

.car-list .card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-list .card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#gambar_mobil {
    height: 15rem;
    object-fit: cover;
}

.car-btn {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.car-btn:hover {
    transform: scale(1.05);
    background-color: #0f0f7a;
}

#rating-stars {
    color: gold;
    font-size: 1.2rem;
}

.star {
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
}

.star.selected,
.star-rated {
    color: #f39c12;
}

.star:hover {
    color: #f39c12;
}

/* Owl Carousel */
.owl-carousel .owl-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Filter Section */
.search-form-container {
    margin-bottom: 20px;
}

.search-form-container .form-control {
    border-radius: 5px 0 0 5px;
}

.input-group-buttons {
    display: flex;
}

.filter-btn,
.cancel-btn {
    font-size: 0.9rem;
    padding: 0 15px;
    height: 38px;
    /* Sesuaikan dengan tinggi input Bootstrap */
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #0056b3;
}

.filter-btn i {
    margin-right: 5px;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

/* Media Queries untuk Responsivitas */
@media (max-width: 768px) {

    .main-section,
    .about-section,
    .flow-section,
    .car-list-section {
        padding: 1.5rem 2rem;
    }

    .main-section {
        flex-direction: column;
        text-align: center;
    }

    .main-section .text-content {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .main-section .text-content h1 {
        font-size: 2rem;
    }

    .main-section .text-content p {
        font-size: 1rem;
    }

    .main-section .image-content {
        max-width: 80%;
        transform: none;
    }

    .about-section .row,
    .flow-section .row {
        flex-direction: column;
    }

    .about-section .col,
    .flow-section .col {
        width: 100%;
        margin-bottom: 1rem;
    }

    .car-list-section .card {
        margin-bottom: 1rem;
    }

    #gambar_mobil {
        height: 12rem;
    }

    .filter-btn,
    .cancel-btn {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {

    .main-section,
    .about-section,
    .flow-section,
    .car-list-section {
        padding: 1rem 1rem;
    }

    .main-section .text-content h1 {
        font-size: 1.5rem;
    }

    .main-section .text-content p {
        font-size: 0.9rem;
    }

    .main-section .text-content .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .main-section .image-content {
        max-width: 100%;
    }

    .about-section .item img,
    .flow-section .col-item img {
        height: 3rem;
        width: 3rem;
    }

    #number {
        font-size: 1rem;
        height: 2rem;
        width: 2rem;
        transform: translate(-50%, -1rem);
    }

    .title-number {
        padding-top: 1.5rem;
    }

    #gambar_mobil {
        height: 10rem;
    }

    #rating-stars,
    .star {
        font-size: 1rem;
    }

    .car-list-section h2 {
        font-size: 1.5rem;
    }

    .filter-btn,
    .cancel-btn {
        font-size: 0.7rem;
        padding: 0 8px;
    }
}

/* Override gaya eicon-seat */
.eicon-seat,
.eicon-transmission,
.fa-solid.fa-gas-pump {
    font-size: 1.2rem !important;
    line-height: 1;
}

.eicon-seat,
.eicon-transmission,
.fa-gas-pump {
    background-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Tambahkan di akhir home_page.css atau ganti bagian Filter Section */

/* Filter Section */
.search-form-container {
    margin-bottom: 20px;
}

.search-form-container .form-control {
    border-radius: 5px 0 0 5px;
}

.input-group-buttons {
    display: flex;
}

.filter-btn,
.cancel-btn {
    font-size: 0.9rem;
    padding: 0 15px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #0056b3;
}

.filter-btn i {
    margin-right: 5px;
}
.fa-gas-pump {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0); /* atau defaultnya warna hitam */
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

/* Styling untuk modal filter */
.modal-body .form-group label {
    font-weight: 500;
    margin-bottom: 5px;
}

.modal-body .form-control,
.modal-body .form-select {
    font-size: 0.9rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    flex: 1;
}

.price-range span {
    font-size: 1rem;
    color: #333;
}

/* Media Queries untuk Responsivitas */
@media (max-width: 768px) {

    .main-section,
    .about-section,
    .flow-section,
    .car-list-section {
        padding: 1.5rem 2rem;
    }

    .filter-btn,
    .cancel-btn {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .price-range {
        flex-direction: column;
        gap: 5px;
    }

    .price-range input {
        width: 100%;
    }
}

@media (max-width: 576px) {

    .main-section,
    .about-section,
    .flow-section,
    .car-list-section {
        padding: 1rem 1rem;
    }

    .filter-btn,
    .cancel-btn {
        font-size: 0.7rem;
        padding: 0 8px;
    }

    .modal-body .form-group label,
    .modal-body .form-control,
    .modal-body .form-select {
        font-size: 0.8rem;
    }
}

/* Gaya untuk tombol navigasi Owl Carousel */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

/* Gaya default tombol navigasi */
.owl-nav button {
    background: #007bff !important;
    /* Warna latar tombol sesuai tema */
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    margin: 0 10px;
    transition: background 0.3s;
}

.owl-nav button:hover {
    background: #0056b3 !important;
    /* Warna saat hover */
}

.owl-nav button.owl-prev {
    margin-left: -50px;
    /* Posisikan di luar carousel pada layar besar */
}

.owl-nav button.owl-next {
    margin-right: -50px;
    /* Posisikan di luar carousel pada layar besar */
}

.owl-nav button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Media query untuk tablet (lebar layar 600px - 1000px) */
@media (max-width: 1000px) {
    .owl-nav button {
        width: 35px;
        height: 35px;
        font-size: 18px !important;
    }

    .owl-nav button.owl-prev {
        margin-left: -30px;
        /* Kurangi jarak pada tablet */
    }

    .owl-nav button.owl-next {
        margin-right: -30px;
    }
}

/* Media query untuk mobile (lebar layar <600px) */
@media (max-width: 600px) {
    .owl-nav button {
        width: 30px;
        height: 30px;
        font-size: 16px !important;
    }

    .owl-nav button.owl-prev {
        margin-left: -15px;
        /* Posisikan lebih dekat ke carousel */
    }

    .owl-nav button.owl-next {
        margin-right: -15px;
    }

    /* Sembunyikan tombol navigasi jika hanya 1 item ditampilkan */
    .owl-carousel .owl-nav.disabled {
        display: none;
    }
}

/* Gaya lain tetap sama */
.search-form-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group-buttons {
    display: flex;
    gap: 0;
}

.filter-btn,
.cancel-btn {
    border-radius: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 0.9rem;
}

.filter-btn {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.cancel-btn {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.filter-btn i {
    margin-right: 5px;
}

.modal-content {
    border-radius: 10px;
    /* detail */
    /* background-color: #3791ebda; */
}

.modal-body .form-group {
    margin-bottom: 15px;
    /* background-color: #007bff; */
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
}

.lihat-selengkapnya {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.lihat-selengkapnya:hover {
    text-decoration: underline;
}
