/* General Body Styles */
body {
    font-family: Arial, sans-serif; /* Ganti dengan font yang lebih modern seperti Montserrat atau Poppins */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header Styles */
.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 20px; /* Sesuaikan ukuran logo */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #007bff; /* Warna biru khas Hyundai */
}

/* Buttons */
.btn-primary {
    background: #007bff; /* Warna biru khas Hyundai */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #fff;
    color: #007bff;
    padding: 12px 25px;
    border: 2px solid #007bff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background: #007bff;
    color: #fff;
}

.btn-tertiary {
    background: #eee;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.9em;
}

.btn-tertiary:hover {
    background: #ddd;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.container2 {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Jarak antar kartu lebih besar */
    justify-content: center;
    max-width: 1200px; /* Sesuaikan sesuai kebutuhan */
}

.product-card {
    border-radius: 12px; /* Sudut lebih membulat */
    padding: 25px;
    text-align: center;
    width: 320px; /* Lebar kartu sedikit lebih besar */
    box-sizing: border-box;
    transition: transform 0.3s ease; /* Transisi untuk efek hover */
    cursor: pointer; /* Menunjukkan bahwa kartu interaktif */
}

.product-card:hover {
    transform: translateY(-30px); /* Bergerak sedikit ke atas saat di-hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* Bayangan lebih kuat saat di-hover */
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px; /* Margin lebih besar */
    border-radius: 8px; /* Sudut gambar sedikit membulat */
    transition: transform 0.3s ease; /* Transisi untuk gambar saat hover */
}

.product-card:hover img {
    transform: scale(1.03); /* Sedikit membesar saat hover */
}

.product-card h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.7em; /* Ukuran font judul sedikit lebih besar */
}

.product-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* Margin lebih besar */
    text-align: left;
    font-size: 1em; /* Ukuran font tabel sedikit lebih besar */
    border-top: 1px solid #eee; /* Garis atas tabel */
}

.product-card table th,
.product-card table td {
    padding: 10px 0; /* Padding lebih besar */
    border-bottom: 1px solid #eee;
}

.product-card table th {
    font-weight: 600; /* Tebal sedikit */
    color: #444;
}

.product-card table td:last-child {
    text-align: right;
    font-weight: bold;
    color: #007bff; /* Warna harga lebih menonjol */
}

.product-card .note {
    font-size: 0.85em; /* Ukuran font catatan sedikit lebih besar */
    color: #777;
    margin-top: 15px; /* Margin lebih besar */
    padding-top: 10px;
    border-top: 1px dashed #ddd; /* Garis putus-putus */
}

/* Penyesuaian responsif */
@media (max-width: 768px) {
    .product-card {
        width: 90%; /* Lebih responsif di layar kecil */
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }
    .header p {
        font-size: 0.9em;
    }
    .product-card {
        padding: 15px;
    }
    .product-card h3 {
        font-size: 1.4em;
    }



/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .model-grid, .promo-grid, .service-grid, .footer-columns {
        grid-template-columns: 1fr;
    }

    .promo-card, .model-card, .service-item {
        margin: 0 auto;
        max-width: 450px; /* Batasi lebar pada mobile */
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 2em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .model-grid, .promo-grid, .service-grid, .footer-columns {
        grid-template-columns: 1fr;
    }

    .promo-card, .model-card, .service-item {
        margin: 0 auto;
        max-width: 450px; /* Batasi lebar pada mobile */
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 2em;
}


            /* --- Styling Carousel --- */
        .carousel-wrapper {
            position: relative;
            width: 100%;
            max-width: 1200px;
            overflow: hidden;
            padding: 20px;
            border-radius: 10px;
            margin-top: 40px;
            margin-bottom: 40px;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            touch-action: pan-y;
        }

        .carousel-container {
            display: flex;
            /* Transisi akan dikelola secara dinamis di JS untuk seamless looping */
            cursor: grab;
        }

        .carousel-container.grabbing {
            cursor: grabbing;
            transition: none;
        }

        .car-item {
            flex: 0 0 calc(33.33% - 20px);
            box-sizing: border-box;
            margin: 0 10px;
            text-align: center;
            padding: 25px 15px;
            border-radius: 8px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .car-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
        }

        .car-item img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto 15px auto;
            border-radius: 5px;
            transition: transform 0.3s ease-in-out;
        }

        .car-item img:hover {
            transform: scale(1.05);
        }

        .car-item h3 {
            font-size: 1.1em;
            color: #333;
            margin-bottom: 5px;
            min-height: 2.2em;
            display: flex;
            align-items: center;
            justify-content: center;
            word-break: break-word;
        }

        .car-item p {
            font-size: 0.95em;
            color: #666;
            margin-top: auto;
            font-weight: bold;
        }

        /* --- Navigasi Carousel (disembunyikan) --- */
        .nav-button {
            display: none;
        }

        /* --- Indikator Slide (Dots) --- */
        .slide-dots {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 10px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #bbb;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        }

        .dot.active {
            background-color: #555;
            transform: scale(1.2);
            box-shadow: 0 0 0 2px #555, 0 0 5px rgba(0, 0, 0, 0.3);
        }

        /* --- Responsive adjustments --- */
        @media (max-width: 1024px) {
            .car-item {
                flex: 0 0 calc(50% - 20px);
            }
        }

        @media (max-width: 768px) {
            .car-item {
                flex: 0 0 calc(100% - 20px);
            }
            .carousel-wrapper {
                padding: 10px;
            }
        }

        body4 {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            justify-content: center;
            align-items: flex-start; /* Konten dari atas */
            min-height: 100vh;
            background-color: #f0f0f0;
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
        }

        .main-container {
            width: 100%;
            max-width: 1400px;
            text-align: center;
            display: flex; /* Menggunakan flexbox untuk menumpuk judul, grid, dan tombol */
            flex-direction: column;
            align-items: center; /* Menengahkan item secara horizontal */
        }

        .main-container h2 {
            font-size: 2.5em;
            color: #333;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            width: 100%; /* Memastikan grid mengambil lebar penuh dari main-container */
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px; /* Jarak antara grid dan tombol di bawahnya */
        }

        .grid-item {
            position: relative;
            width: 100%;
            padding-top: 75%; /* Untuk rasio 4:3 */
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        .grid-item img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease-in-out;
        }

        .grid-item:hover img {
            transform: scale(1.05);
        }

        /* --- CSS untuk Tombol "Delivery Order" Global --- */
        .global-delivery-button {
            padding: 15px 30px;
            background-color: #28a745; /* Warna hijau untuk tombol order */
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1.2em;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            text-decoration: none; /* Jika ini link, hilangkan garis bawah */
            display: inline-block; /* Agar padding dan margin berfungsi baik */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .global-delivery-button:hover {
            background-color: #218838;
            transform: translateY(-2px); /* Efek sedikit terangkat */
        }

        /* --- CSS untuk Popup Gambar (Modal) --- */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s forwards;
        }

        .modal-content {
            margin: auto;
            display: block;
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
            animation: zoomIn 0.3s forwards;
        }

        .close-button {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
            z-index: 1001;
        }

        .close-button:hover,
        .close-button:focus {
            color: #bbb;
            text-decoration: none;
        }

        /* Animasi */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes zoomIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .grid-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: 1fr;
            }
            .main-container h2 {
                font-size: 2em;
            }
            .global-delivery-button {
                font-size: 1em;
                padding: 12px 25px;
            }
            .close-button {
                top: 10px;
                right: 20px;
                font-size: 30px;
            }
        }
