    /* Base Styles */
:root {
    --primary: #002d5b; /* Hyundai Blue */
    --secondary: #c60c30; /* Hyundai Red */
    --light: #f8f9fa;
    --dark: #212529;
}

.andalan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.andalan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-info-container {
  text-align: center;
}

.contact-info-container p, .contact-info-container h4 {
  text-align: center;
}

/* Custom modal width for desktop */
@media (min-width: 768px) {
    #allCarsModal .modal-dialog {
        max-width: 80vw;
        width: 80vw;
    }
}

/* Invert logo color for non-header sections */
#welcome img {
    filter: invert(1);
}

.judul-model {
    font-size:60px;
    font-weight:bold;
}

@media (max-width: 767.98px) {
    .judul-model {
        font-size: 40px;
    }
}

#welcome img.dealerfoto {
    filter: invert(0);
}

.logo-hyundai {
    margin-top:20px;
    width:200px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.3s ease;
    background: #002d5b;
}

/* Jump to top button */
.jump-to-top {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0 20px;
    font-size: 0.9rem;
    gap: 8px;
}

/* Mobile version shows text */

.navbar-brand img {
    max-height: 50px;
}

/* Smaller logo on mobile aligned with burger menu */
@media (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 25px;
        margin-top: 0;
        margin-bottom: 0;
        vertical-align: middle;
    }
}

/* Smaller logo on desktop */
@media (min-width: 992px) {
    .navbar-brand img {
        max-height: 30px;
    }
}

/* Removed inverted-logo class as per user request */
/*.inverted-logo {
    filter: invert(1);
}*/

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    margin-bottom: 2rem;
}
.hero-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, transparent, #000000);
    z-index: 2;
}
.carousel-item img {
    position: relative;
    z-index: 0;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    width: 80%;
    padding-bottom: 1rem;
    z-index: 3;
}

@media (min-width: 992px) {
  .hero-slider {
      height: 50vh;
  }
  .carousel-inner {
      height: 50vh;
  }
  .carousel-item {
      height: 50vh;
  }
}

.carousel-item {
    height: 100%;
    background-color: #000;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.7;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    width: 80%;
    padding-bottom: 1rem;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
}

/* Section Styling */
section {
    padding: 5rem 0;
    margin-bottom: 3rem;
}

/* Make max height for #welcome section on mobile to max-content */
@media (max-width: 768px) {
    #welcome {
        max-height: max-content;
    }
}

/* Sticky Contact Buttons */
.sticky-call,
.sticky-whatsapp {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sticky-call {
    bottom: 20px;
    background: #28a745; /* Bootstrap success green */
}

.sticky-whatsapp {
    bottom: 90px;
    background: #25D366; /* WhatsApp green */
}

/* Hide sticky buttons on desktop */
@media (min-width: 992px) {
    .sticky-call,
    .sticky-whatsapp {
        display: none;
    }
}

/* Begin merged content from style-responsive.css */

/* Mobile Hero Slider */
@media (max-width: 767.98px) {
  .hero-slider {
    height: auto;
    padding: 0 !important;
  }
  .hero-slider .carousel-inner {
    aspect-ratio: 1/1;
  }
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item,
  .hero-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
  }

  /* Mobile Carousel Captions */
  .hero-slider .carousel-caption {
    position: absolute;
    right: auto;
    left: 0;
    bottom: 5%;
    text-align: left;
    padding: 0.8rem;
    border-radius: 4px;
    width: 99%;
    margin: 0 auto;
    transform: translateX(0.5%);
  }

  .hero-slider .carousel-caption h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .hero-slider .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .hero-slider .carousel-caption .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Mobile Navigation */
@media (max-width: 767.98px) {
  .fixed-bottom {
    bottom: 0;
    position:fixed;
  }

  /* Dropdown menu styling */

  .navbar-collapse ul:last-child {
    display:none;
  }
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    border-left: 3px solid #005293;
    margin: 0;
    padding: 0.5rem 0;
    display: none; /* Hidden by default */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .navbar-nav .dropdown-menu.show {
    display: block; /* Show when toggled */
  }

  .navbar-nav .dropdown-item {
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-5px);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
  }

  @keyframes fadeIn {
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .navbar-nav .dropdown-menu.show .dropdown-item {
    animation-delay: calc(var(--item-order) * 0.05s);
  }

  .navbar-nav .dropdown-item:hover {
    color: white;
    background-color: rgba(0,82,147,0.3);
    padding-left: 2.2rem;
  }

  /* Dropdown toggle indicator */
  .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
  }

  .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
  }

  /* welcome tiar */

#welcome {
    padding:0.8rem;
    width:99%;
    margin:auto;
    /* background: linear-gradient(to bottom, #272727, #ededed); */
}
}

/* Mobile version shows text */
@media (max-width: 991px) {
    .jump-to-top {
        min-width: 150px;
        bottom: 70px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        position: fixed;
        z-index: 1101;
    }
    .jump-to-top.visible {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .jump-to-top i {
        margin-right: 8px;
    }

/* Fixed bottom CTA buttons for mobile */
.fixed-bottom.d-flex.d-md-none {
    position: fixed !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2) !important;
    background: rgba(255,255,255,0.95) !important;
    z-index: 1100 !important;
    gap: 0.75rem;
}
.fixed-bottom.d-flex.d-md-none .btn {
    flex-grow: 1 !important;
    margin: 0 0.5rem !important;
    font-size: 1.1rem !important;
    padding: 0.75rem 0 !important;
}

    /* New .cta-hp fixed bottom styles */
    .cta-hp .btn {
        flex-grow: 1 !important;
        margin: 0 0.25rem !important;
    }
}

/* Make CTA section fixed on desktop */
@media (min-width: 992px) {
    #cta-section {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: auto;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        border-radius: 8px;
        z-index: 1200;
        display: block !important;
    }
    #cta-section .container {
        padding: 0;
    }
    #cta-section .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* Desktop version shows only icon in perfect circle */
@media (min-width: 992px) {
    .jump-to-top {
        right: 20px;
        left: auto;
        transform: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1 !important;
    }
    .jump-to-top span {
        display: none;
    }
    .jump-to-top i {
        margin: 0;
        font-size: 1.2rem;
    }
}

/* Make max height for #welcome section on mobile to max-content */
@media (max-width: 768px) {
    #welcome {
        max-height: max-content;
    }
}

/* Hide .lead and .kunjungi-kami-di in andalan-leuwipanjang section on mobile */
@media (max-width: 768px) {
    #andalan-leuwipanjang .lead,
    #andalan-leuwipanjang .kunjungi-kami-di {
        display: none;
    }

    #andalan-leuwipanjang .section-title + p {
        display: none;
    }

    .contact-info-container {
        display: none;
    }

    /* Add bottom padding to body to prevent content overlap */
    body {
        padding-bottom: 60px !important;
        min-height: 100vh !important;
        position: relative !important;
    }
    html {
        height: 100% !important;
    }
}

/* Mobile dropdown styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        border-left: 3px solid #005293;
        background-color: rgba(0,0,0,0.1);
    }
}

/* Dropdown visibility enhancements */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.3em;
    vertical-align: middle;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #005293;
    z-index: 1000;
    min-width: 200px;
}

/* Mobile dropdown styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        border-left: 3px solid #005293;
        background-color: rgba(0,0,0,0.1);
    }
}

.sticky-call:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* Nav contact button removed per request */

/* Desktop Only */
@media (min-width: 992px) {
    .sticky-call {
        display: none;
    }
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-caption .btn-primary {
    background:white;
    color:var(--primary);
    text-shadow: none;
}

.btn-primary:hover {
    background-color: var(--light); /* Inverted color */
    color: var(--primary); /* Change text color */
    border-color: var(--light); /* Inverted border color */
}

/* Add chevron right on hover */
.btn:hover:after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s ease;
}

/* Exception: Remove chevron right on hover for popup modal close button */
#closeModalBtn:hover:after {
    content: none !important;
}

/* Exception: Remove chevron right on hover for Lihat Model Kendaraan button */
.lihat-model:hover:after {
    content: none !important;
}

/* Position popup modal close button on left side on mobile and switch with title */
@media (max-width: 767.98px) {
    #allCarsModal .modal-header {
        justify-content: flex-start;
        position: relative;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    #allCarsModal .modal-title {
        order: 1;
        margin-left: auto;
    }
}

#closeModalBtn {
    order: 0;
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    transform: none;
    z-index: 1050;
    background-color: #ededed;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #272727;
}

@media (min-width: 768px) {
    #closeModalBtn {
        right: 1rem;
        left: auto;
    }
}

#closeModalBtn:hover,
#closeModalBtn:focus {
    text-decoration: none;
    outline: none;
}

/* Desktop: Replace chevron-left icon with X icon */
@media (min-width: 768px) {
    #closeModalBtn i {
        display: none;
    }
    #closeModalBtn::before {
        content: "×";
        font-size: 1.5rem;
        color: var(--primary);
        font-weight: bold;
        display: inline-block;
        margin-right: 0;
    }
}

/* Desktop: Replace chevron-left icon with X icon */
@media (min-width: 768px) {
    #closeModalBtn i {
        display: none;
    }
    #closeModalBtn::before {
        content: "×";
        font-size: 1.5rem;
        color: var(--primary);
        font-weight: bold;
        display: inline-block;
        margin-right: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }

    /* CTA Section - Mobile Only */
    #cta-section {
        display: block !important;
        margin-bottom:0;
    }
}

a.btn.btn-primary.btn-lg.w-100.lihat-model {
    font-size: 16px;
    background: white;
    color: var(--primary);
    margin-bottom: 0;
    border: 1px solid var(--primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a.btn.btn-primary.btn-lg.w-100.lihat-model:hover {
    background: var(--primary);
    color: white;
}

/* Badge container styling applied to badges in all cards */
.badge-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#showAllCarsBtn {
    margin-bottom: 1.5rem;
}

/* Styles for Hyundai Andalan Leuwipanjang Section */
#andalan-leuwipanjang {
    background: #ededed !important;
    color: #002d5b;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

#andalan-leuwipanjang::after {
    content: none;
}

#andalan-leuwipanjang .section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    margin-bottom: 3rem;
}

#andalan-leuwipanjang .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--primary);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

#andalan-leuwipanjang .lead.text-center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

#andalan-leuwipanjang .service-card {
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 50px 1.5rem 1.5rem 1.5rem;
    transition: box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 45, 91, 0.2);
}

#andalan-leuwipanjang .service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 45, 91, 0.3);
}

#andalan-leuwipanjang .service-icon {
    margin-bottom: 1rem;
}

#andalan-leuwipanjang .service-icon i {
    font-size: 3rem;
}

#andalan-leuwipanjang .service-icon.text-primary {
    color: var(--primary);
}

#andalan-leuwipanjang .service-icon.text-success {
    color: #28a745;
}

#andalan-leuwipanjang .service-icon.text-danger {
    color: #dc3545;
}

#andalan-leuwipanjang .service-card h5 {
    margin-bottom: 1rem;
}

#andalan-leuwipanjang .service-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

#andalan-leuwipanjang .service-card ul li {
    padding-left: 0;
    position: static;
    margin-bottom: 0.5rem;
}

#andalan-leuwipanjang .service-card ul li::before {
    content: none;
}

/* Responsive for smaller screens */
@media (max-width: 991.98px) {
    #andalan-leuwipanjang .row {
        flex-direction: column;
    }
    #andalan-leuwipanjang .col-lg-6 {
        width: 100%;
        margin-bottom: 2rem;
    }
    #andalan-leuwipanjang .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Contact Cards Styling */
#kontak .contact-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 45, 91, 0.15);
    padding: 2rem;
    margin-bottom: 2rem;
    height: 100%;
}

/* Card cars gradient background and hover effect */
#models .card,
#allCarsContainer .card {
    background: linear-gradient(135deg, #e0f0ff, #ffffff);
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    transition:all 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
#models .card .card-body,
#allCarsContainer .card .card-body {
    margin-top: auto;
}

#models .card:hover,
#allCarsContainer .card:hover {
    background: linear-gradient(135deg, #005293, #002d5b);
    box-shadow: 0 8px 20px rgba(0, 45, 91, 0.4);
    color: white;
}

#models .card:hover .card-title,
#models .card:hover .card-text,
#models .card:hover .badge,
#models .card:hover a.btn,
#allCarsContainer .card:hover .card-title,
#allCarsContainer .card:hover .card-text,
#allCarsContainer .card:hover .badge,
#allCarsContainer .card:hover a.btn {
    color: white;
    transition: color 0.5s ease;
}

#models .card:hover .card-text,
#allCarsContainer .card:hover .card-text {
    color: white !important;
}

#models .card-img-top,
#allCarsContainer .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.5s ease;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: scale-down;
}

#models .card:hover .card-img-top,
#allCarsContainer .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Modal popup for all cars */
#all-cars-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 999999999999;
    display: none;
    padding: 1rem;
}

/* Modal content scroll */
#all-cars-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Modal header */
#all-cars-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

/* Modal close button */
#all-cars-modal .btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Fullscreen modal on mobile */
@media (max-width: 767.98px) {
    #all-cars-modal {
        top: 0;
        left: 0;
        transform: none;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        padding: 0;
        overflow: hidden;
        z-index: 999999999999;
    }
    #all-cars-modal .modal-body {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        padding: 1rem;
    }
    #all-cars-modal .modal-header {
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }
}

#kontak .contact-card h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

#kontak .contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
}

#kontak .contact-info {
    text-align: center;
}

#kontak .contact-info p i {
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Removed styles for #contact-details section as it was deleted */

.welcome-intro-tiar {
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 992px) {
    .welcome-intro-tiar {
        background: linear-gradient(to bottom, #000000, #ededed);
    }
}

/* Hide .lead and .kunjungi-kami-di in andalan-leuwipanjang section on mobile */
@media (max-width: 768px) {
    #andalan-leuwipanjang .lead,
    #andalan-leuwipanjang .kunjungi-kami-di {
        display: none;
    }

    /* Fix sticky bottom CTA buttons on mobile */
    .fixed-bottom.d-flex.d-md-none {
        width: 100% !important;
        padding: 0.5rem 1rem !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2) !important;
        background: rgba(255,255,255,0.95) !important;
        position: fixed !important;
        bottom: 0 !important;
    }
    .fixed-bottom.d-flex.d-md-none .btn {
        flex-grow: 1 !important;
        margin: 0 0.25rem !important;
    }
}

@media (min-width: 768px) {
.persuade-judul {
    font-size:55px;
}
}

.persuade-judul {
    font-weight:bold;
    color:#272727;
}

#persuade-section {
    padding-bottom:200px !important;
}

#persuade-section {
  position: relative;
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0)), url('assets/images/interior-5N.jpg') no-repeat center center;
  background-size: cover;
}

/* Hide persuade cards on mobile outside popup */
@media (max-width: 767.98px) {
  #persuadeCardsContainer {
    display: none !important;
  }
  #lihatBenefitBtn {
    display: inline-block !important;
    margin-bottom:-50px;
    margin-top:50px;
  }

  #persuade-section {
    margin-top:-100px;
  }
}

/* Modal popup for persuade cards */
.modal-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  z-index: 999999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-popup-content {
  background: white;
  border-radius: 20px;
  max-width: 95vw;
  max-height: 90vh;
  padding: 1rem;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.modal-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ededed;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #272727;
  z-index: 10000;
}

.modal-popup-close:hover,
.modal-popup-close:focus {
  background: #ccc;
  outline: none;
}

/* Hide the popup by default */
.modal-popup[style*="display: none"] {
  display: none !important;
}

/* Hide the button on desktop */
@media (min-width: 768px) {
  #lihatBenefitBtn {
    display: none !important;
  }
}

#persuadeCardsContainer .card {
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease;
}

#persuadeCardsContainer .card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

#persuadeCardsContainer {
    margin-top:50px;
}

/* Partner Section Styles */
#partner-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

@media (max-width: 768px) {
    #partner-section {
        margin-bottom:0 !important;}
}

/* Slick slider testimoni styles */
.testimoni-slider {
    margin: 0 auto;
    max-width: 1200px;
}

.testimoni-slider .slick-slide {
    padding: 0 10px;
}

.testimoni-slider img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .testimoni-slider .slick-slide {
        padding: 0 5px;
    }
}

#partner-section .partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 90vw;
    margin: 0 auto;
}

#partner-section .partner-logos img {
    height: 100px;
    max-width: 100px;
    width: auto;
    margin: 0 10px;
    object-fit: contain;
}

#partner-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #005293; /* Hyundai blue */
}

#partner-section p {
    font-size: 1.125rem;
    color: #333333;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Testimoni Section Title and Description */
.testimoni-title {
    font-size: 60px;
    text-align: left;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.testimoni-description {
    font-size: 18px;
    text-align: left;
    color: #555;
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Position slick arrows top right above the slides */
.testimoni-slider {
    position: relative;
}

/* Container for arrows to position them inline with gap */
.testimoni-slider .slick-arrow {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 10;
    background-color: #ededed;
    border: none;
    color: var(--primary);
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.3s ease;
    box-shadow: none;
}

/* Position left arrow with 20px gap from right */
.testimoni-slider .slick-prev {
    right: 50px; /* Adjusted gap */
    left:unset !important;
}

/* Position right arrow at right 0 */
.testimoni-slider .slick-next {
    right: 0;
    
}

.testimoni-slider .slick-arrow:hover {
    color: var(--secondary);
}

.slick-arrow:before {
    display: none;
}
.testimoni-slider.slick-initialized.slick-slider {
    margin-top:50px;
}

@media (max-width: 768px) {
    .testimoni-title {
        font-size:40px;
    }
}

/* Footer styles */
footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Animation for carousel caption fade-up */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-caption {
  opacity: 0;
  transform: translateY(100%);
  left: 50% !important;
  transform: translateX(-50%) translateY(100%) !important;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-caption.fade-up-animate {
  opacity: 1;
  transform: translateX(-50%) translateY(0) !important;
  animation: none;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    text-decoration: underline;
    color: white;
}

footer a:hover {
    color: #0d6efd;
    text-decoration: none;
}

footer .ratio {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.logo-footer {
    margin-bottom:50px;
}

#testimoni {
    background: #000000;
background: linear-gradient(5deg, rgba(0, 0, 0, 1) 34%, rgba(255, 255, 255, 1) 34%);
margin-bottom:0;
}

#navbarDropdown-Hubungi-dekstop {
    background-color: transparent !important;
    border: 2px solid var(--bs-nav-link-color) !important;
    color: var(--bs-nav-link-color) !important;
    padding: 0.375rem 0.75rem;
    border-radius: 15px !important;
}

#navbarDropdown-Hubungi-dekstop::after {
    content: none !important;
}

#navbarDropdown-Hubungi-dekstop:hover,
#navbarDropdown-Hubungi-dekstop:focus,
#navbarDropdown-Hubungi-dekstop:active {
    background-color: transparent !important;
    color: white !important;
    box-shadow: none !important;
    border-color: white !important;
    text-decoration: none !important;
    cursor: default !important;
}

/* Promotion Section Styles */
#promo {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

#promo .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
}

#promo .container .col-md-6 {
    flex: 1 1 50%;
}



.persuade-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.persuade-modal .modal-content {
  max-width: 600px;
  width: 100%;
  background: white;
  padding: 1rem 1rem 2rem 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.persuade-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.persuade-modal .modal-header .btn {
  background-color: #ededed;
  border-radius: 0.375rem;
  padding: 0.375rem 1rem;
  font-weight: 600;
}

.persuade-modal .modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  overflow-y: auto;
  flex-grow: 1;
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Animation for modal show/hide */
.persuade-modal.show {
  display: flex !important;
  animation: popupOpen 0.3s ease forwards;
}

.persuade-modal.hide {
  animation: popupClose 0.3s ease forwards;
}

/* Modal animations for allCarsModal desktop */
@keyframes modalScaleOpen {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalScaleClose {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* Modal animations for allCarsModal mobile */
@keyframes modalTranslateOpen {
  0% {
    opacity: 1;
    transform: translateX(-100%)
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalTranslateClose {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(-100%);
  }
}

/* Animation classes for modal open/close */
.modal-animate-open-desktop {
  animation: modalScaleOpen 0.3s ease forwards;
}

.modal-animate-close-desktop {
  animation: modalScaleClose 0.3s ease forwards;
}

.modal-animate-open-mobile {
  animation: modalTranslateOpen 0.3s ease forwards;
}

.modal-animate-close-mobile {
  animation: modalTranslateClose 0.3s ease forwards;
}

.slick-list.draggable {
    border-radius: 10px;
}

@media (max-width:764px) {
    .btn-primary {
        padding:8px 15px;
    }
}