.navbar-custom {  
    padding-top: 15px;
}
.about-content p {
    font-size: 16px;
    padding-bottom: 15px;
}
.g6-herospec h2 {
    color: #FFFFFF !important;
}
.hero-cta-buttons a.cta-btn {
    color: #fff !important;
    padding: 0.5rem 2rem;
    border-radius: 0;
}
.hero-cta-buttons a {
    border-radius: 0;
}
.g6-herospec {
    z-index: 100;
    bottom: 2rem;
}
.car-image {
    padding: 4rem 0 1rem 0;
}
.swatch-img {
    width: 50px;
    height: 50px;
}
.color-swatch {
    display: block;
    padding: 0.3rem;
}
.color-swatch.active {
    background: rgba(0, 0, 0, .05);
}
.swatch-title {
    display: none;
}
#activeColorTitle, #activeInteriorTitle {
    font-size: 16px;
    margin-bottom: 15px;
}
.ext-color-gallery {
    background: none;
}
img#interiorImage {
    margin-top: 0;
    max-height: 580px;
}
section.car-features {
    padding: 3rem 0;
}
.card-img-overlay h5 {
    padding: 1.5rem 1rem;
    font-size: 18px;
    text-align: center;
}
.model-feature-carousel {
    position: relative;
    box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, .1);
    /* padding: 1rem; */
}
.model-feature-carousel img {
    border-radius: 0 !important;
}
.model-feature-carousel h3, .model-feature-carousel p {
    padding-left: 1rem;
    padding-top: 1rem;
}
.model-feature-carousel button.btn.btn-outline-secondary.btn-sm {
    border-radius: 0;
    font-size: 1rem;
    padding: 0.2rem 1rem;
}
.model-tech .feature-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Gap between columns */
}
.model-tech .feature-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Gap between rows in each column */
}
.model-tech .image-overlay-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    border-radius: 8px;
}
.model-tech .image-overlay-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.model-tech .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    transition: all 0.4s ease;
    max-height: 60px;
    overflow: hidden;
}
.overlay-text h5 {
    margin: 0;
    font-size: 1rem;
    color: #FFFFFF
}
.overlay-text p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #FFFFFF;
}
.image-overlay-container:hover .overlay-text {
    max-height: 200px;
}
.image-overlay-container:hover .overlay-text p {
    opacity: 1;
}
/* Ensure equal height columns */
.feature-section {
    align-items: stretch;
}
.feature-col > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}
h2.section-title {
    text-align: center;
    color: #0a0a1a;
    font-size: 32px;
}
.carspec-list {
    font-size: 16px;
    text-align: center;
}
.carspec-list div.col {
    padding: 0.5rem;
    background: #fff;
    border-left: 1px solid #cccccc33;
    border-right: 1px solid #cccccc33;
}
#carTab .nav-link.active {
    color: #000000 !important;
}
.nav-tabs .nav-link.active::after {
    background-color: #34414e;
}
.carspec-container table table.table tr th {
    font-weight: 200;
}
.carspec-container table.table tr td, table.table tr th {
    border: 1px solid #dee2e6;
    font-family: 'NotoSans-Light';
}
.carspec-container table.table tr.table-primary td {
    background-color: #34414e !important;
    color: #fff;
    padding: 0.6rem;
}
.carspec-container table.table tr th {
    background-color: #000000 !important;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 15px;
    padding: 0.7rem 0.5rem;
    text-align: center;
}
button.accordion-button {
    background: #efefef;
}
.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #34414e;
}
button.accordion-button {
    border-bottom: 1px solid #dee2e6;
    color: #ffffff;
    background-color: #34414e;
}
h2.accordion-header button.accordion-button {
    font-family: 'NotoSans-Medium';
}
h2.accordion-header .accordion-button {
    font-family: 'NotoSans-Medium';
}
.carspec-container {
    background-color: transparent;
}
.car-gallery {
    background: linear-gradient(152.02deg, #f6f5fae6 3.6%, rgba(150, 180, 20, 5e-06) 100.18%);
    padding: 5rem 0;
}
.gallery-container {
    min-height: 100vh;
}
.filter-tabs {
    border-bottom: 2px solid #34414e;
    margin-bottom: 2rem;
}
.filter-tabs .nav-link {
    color: #6c757d;
    font-weight: 100;
    padding: 1rem 2rem;
    border: none;
    background: none;
    transition: all 0.3s ease;
}
.filter-tabs .nav-link.active {
    color: #ffffff;
    background: rgb(52 65 78);
    border-radius: 10px 10px 0 0;
}
.filter-tabs .nav-link:hover {
    color: #020202 !important;
    background: rgba(0, 123, 255, 0.05);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0;
}
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
/* Modal Styles */
.image-modal .modal-dialog {
    max-width: 90vw;
}
.image-modal .modal-content {
    background: transparent;
    border: none;
}
.image-modal .modal-body {
    padding: 0;
    position: relative;
}
.image-modal img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1060;
}
.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}
.modal-nav-btn.prev {
    left: 20px;
}
.modal-nav-btn.next {
    right: 20px;
}
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1060;
}
.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}
.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}
.contact-box-2 p {
    font-size: 14px;
    line-height: 24px;
}
#carModelCarousel .nav-link:focus, .nav-link:hover, #carModelCarousel .navbar .nav-link.active{    
    color: #000000 !important;
}
/* Secondary Navigation */
.secondary-nav {
    top: -80px; /* Initially hidden above viewport */
    z-index: 1025;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid #dee2e6;
}

.secondary-nav.show {
    /* Position will be set dynamically by JavaScript */
    animation: slideDown 0.4s ease-out;
}

.secondary-nav.hide {
    top: -80px;
    animation: slideUp 0.4s ease-in;
}

/* Secondary nav links */
.secondary-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    text-decoration: none;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.75rem;
}

.secondary-nav .nav-link:hover, .secondary-nav .nav-link.active, .secondary-nav .nav-link.focus {
    color: #000000;
}
.secondary-nav .nav-link:focus, .secondary-nav .nav-link:hover{
    color: #000000 !important;
}
.secondary-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #34414e;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.secondary-nav .nav-link:hover::after,
.secondary-nav .nav-link.active::after {
    width: 80%;
}
/* Model name section */
.model-name-section {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.model-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #34414e;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    font-family: 'ChangAnunitype-Bold';
}

.model-name::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #dee2e6;
}
.secondary-nav .nav {
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  scrollbar-width: thin;
}

.nav-link {
  white-space: nowrap; /* prevent wrapping to multiple lines */
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color:transparent;
}
.scrollable-nav {
  overflow-x: auto;           /* enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  scrollbar-width: none;      /* Firefox */
}

.scrollable-nav::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}
a.btn.btn-download {
    background: #34414e;
    color: #fff;
}
.card-img-top {
            object-fit: cover;
        }
        /*.card {
            transition: transform 0.3s;
        }
        .card:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }*/
        .btn-container {
            display: flex;
            flex-direction: row; /* Changed to row for side-by-side buttons */
            justify-content: center; /* Center buttons horizontally */
            align-items: center; /* Align buttons vertically */
            gap: 10px; /* Space between buttons */
            flex-wrap: wrap; /* Allow wrapping on small screens */
        }
        .btn-download, .btn-ebook {
            width: 200px; /* Fixed width for consistency */
        }
.footer-menu a.nav-link:hover{
    color: #b7b7b7 !important;
}
.static-header .navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.swiper-container-pointer-events {
    position: relative;
}
/* Animations */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}
@media (max-width: 1200px) {
    .model-name {
        font-size: 1rem;
    }
}
/* Responsive adjustments */
@media (max-width: 991px) {
    .secondary-nav .navbar-nav {
        overflow-x: auto;
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 0 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .secondary-nav .navbar-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .secondary-nav .nav-link {
        margin: 0 0.5rem;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        flex-shrink: 0;
    }
     .model-name-section {
        margin-right: 0;
        margin-bottom: 0.2rem;
    }
    
    .model-name {
        font-size: 1.2rem;
    }
    
    .model-name::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .secondary-nav .nav-link {
        font-size: 1.15rem;
        padding: 0.5rem 0.6rem;
        margin: 0 0.3rem;
    }    
}
@media (max-width: 768px) {
    section.footer {        
        padding-bottom: 5rem !important;
    }
    .footer-socialmenu > div:last-child {
        margin-bottom: 0 !important;
    }
}
/* Mobile layout */
@media (max-width: 991px) {
    .feature-section {
        flex-direction: column;
    }
    .feature-col {
        width: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    .filter-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;    
    }
    .g6-herospec {
        bottom: 2rem;
    }
    .model-feature-carousel button.btn.btn-outline-secondary.btn-sm {
        border-radius: 0;
        font-size: 2rem;
        padding: 0.5rem 1.5rem;
    }
    .img-text {
        line-height: 3rem !important;
    }
    .secondary-nav li.nav-item {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .carspec-container table.table tr th, .carspec-container table.table tr td{
        font-size: 10px;
    }
    .static-header {
        padding-bottom: 7rem;
    }
}