
/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}


.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    color: var(--bs-white);
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

.btn.btn-light {
    color: var(--bs-primary);
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

/*** Icon Animation Start ***/
@keyframes icon-animat {
    0%  {border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;}

    25% {border-radius: 69% 31% 19% 81% / 43% 37% 63% 57%;}

    50% {border-radius: 67% 33% 16% 84% / 57% 37% 63% 43%;}

    75% {border-radius: 77% 23% 61% 39% / 36% 61% 39% 64%;}

    100% {border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;}
}
/*** Icon Animation End ***/


/*** Navbar Start ***/
.nav-bar {
    background: var(--bs-white);
}

.sticky-top {
    transition: 1s;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    letter-spacing: 1px;
    color: var(--bs-dark);
    font-size: 17px;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-dark);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-brand img {
    max-height: 50px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    margin-top: 8px !important;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}



@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    border-radius: 10px;
    margin-top: 8px !important;
    transition: .5s;
    opacity: 0;
    }
}

@media (max-width: 991px) {
    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 12px 0;
    }
}
/*** Navbar End ***/

/*** Carousel Header Start ***/
.carousel .carousel-item img {
    object-fit: cover;
}

.carousel .carousel-item,
.carousel .carousel-item img {
    height: 700px;
}

.carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
}

.carousel .carousel-indicators {
    left: 75%;
    top: 50%;
    margin-right: 25%;
    transform: translateY(-50%);
    flex-direction: column;
}

.carousel-indicators [data-bs-target] {
    display: flex;
    width: 15px;
    height: 15px;
    border: 6px solid var(--bs-white);
    border-radius: 15px;
    padding: 0;
    margin-top:10px;
    margin-bottom:10px;
    background-color: var(--bs-secondary);
    opacity: 1;
    transition: 0.5s;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--bs-primary);
}

@media (max-width: 992px) {
    .carousel-indicators [data-bs-target] {
        display: none;
    }
}
/*** Carousel Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(31, 46, 78, 1), rgba(0, 12, 33, 0.8)), url(../img/fact-bg.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
    transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}
/*** Single Page Hero Header End ***/

/*** About Start ***/
.about .about-item .about-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
}

.about .about-item .about-item-inner .about-icon {
    width: 90px; 
    height: 90px; 
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

.about .about-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    
}

.about .about-img .img-1 {
    height: 85%;
    margin-right: 50px;
}

.about .about-img .img-2 {
    position: absolute;
    width: 100%; 
    bottom: 0; 
    right: 0;
    padding-left: 50px;
    border-radius: 10px;
}

.about .about-img::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 98%;
    top: 0;
    right: 0;
    border-radius: 10px;
    background: var(--bs-primary);
    z-index: -1;
}

.about .about-item .text-item {
    position: relative;
    padding-left: 25px;
}

.about .about-item .text-item::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: var(--bs-secondary);
}
/*** About End ***/

/*** Cars Categories Start ***/
.categories .categories-item {
    position: relative;
    border: 1px solid var(--bs-secondary);
    border-radius: 10px;
    transition: 0.5s;
}

.categories .categories-item:hover {
    border: 1px solid var(--bs-primary);
}

.categories .categories-item .categories-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.5s;
}

.categories .categories-item .categories-item-inner:hover {
    box-shadow: 0 0 50px rgba(234, 0, 30, .3);
}

.categories .categories-item-inner .categories-img {
    background: var(--bs-light);
}

.categories .categories-item-inner .categories-content {
    border-top: 4px solid var(--bs-white);
    text-align: center;
    background: var(--bs-light);
}

.categories .categories-item-inner .categories-review {
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories-carousel .owl-stage-outer {
    margin-top: 65px;
    margin-right: -1px;
}

.categories-carousel .owl-nav .owl-prev,
.categories-carousel .owl-nav .owl-next {
    position: absolute;
    top: -65px;
    padding: 10px 35px;
    color: var(--bs-white);
    background: var(--bs-primary);
    border-radius: 50px;
    transition: 0.5s;
}

.categories-carousel .owl-nav .owl-prev {
    left: 0 !important;
}

.categories-carousel .owl-nav .owl-next {
    right: 0;
}

.categories-carousel .owl-nav .owl-prev:hover,
.categories-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** Cars Categories End ***/


/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    transition: 0.5s;
}

.blog .blog-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img::after {
    height: 100%;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}  

.blog .blog-item .blog-content {
    position: relative;
    background: var(--bs-light);
}

.blog .blog-item .blog-content .blog-date {
    position: absolute;
    top: 0; 
    left: 25px; 
    transform: translateY(-50%);
    padding: 12px 25px;
    border-radius: 10px;
    color: var(--bs-white);
    background: var(--bs-primary);
}

.blog .blog-item .blog-content .blog-comment {
    display: flex;
    justify-content: space-between;
}
/*** Blog End ***/

/*** Team Start ***/
.team .team-item {
    position: relative;
    text-align: center;
    border-radius: 10px;
    margin-top: 100px;
    background: var(--bs-light);
    transition: 0.5s;
    z-index: 1;
}

.team .team-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: var(--bs-secondary);
    z-index: 2;
    transition: 0.5s;
}

.team .team-item:hover::after {
    height: 100%;
}

.team .team-item .team-content {
    position: relative;
    z-index: 5;
}

.team .team-item .team-content h4,
.team .team-item .team-content p {
    transition: 0.5s;
}

.team .team-item:hover .team-content h4 {
    color: var(--bs-white);
}
.team .team-item:hover .team-content p {
    color: var(--bs-white);
}

.team .team-item .team-img {
    position: relative;
    overflow: hidden;
    top: -100px;
    margin-bottom: -100px;
    border-radius: 10px;
    z-index: 3;
}

.team .team-item .team-img img {
    transition: 0.5s;
}

.team .team-item:hover .team-img img {
    transform: scale(1.1);
}

.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .3);
    z-index: 4;
    transition: 0.5s;
}

.team .team-item:hover .team-img::after {
    height: 100%;
}
/*** Team End ***/

/*** Contact Start ***/
.contact .contact-add-item {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-light);
}

.contact .contact-add-item .contact-icon {
    width: 90px; 
    height: 90px; 
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}
/*** copyright end ***/
  

/* ============================================================
   5. PROMOTION SECTION (Used/New Car Cards)
   ============================================================ */
.promo-card {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    transition: 0.5s;
    border-color: #eee !important;
}

.promo-card:hover {
    border-color: var(--bs-primary) !important;
    transform: translateY(-5px);
}

.promo-text {
    z-index: 2;
}

.promo-img {
    position: relative;
    z-index: 1;
}

/* This creates the slight "pop-out" effect seen in your image */
.promo-img img {
    transform: scale(1.2);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .promo-card {
        flex-direction: column;
        text-align: center;
    }
    .promo-text, .promo-img {
        width: 100% !important;
    }
    .promo-img img {
        margin-top: 20px;
        transform: scale(1);
    }
}
/* ============================================================
   6. VEHICLE GRID SECTION
   ============================================================ */
.vehicle-card {
    transition: 0.3s;
    border: 1px solid #eee;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.vehicle-card img {
    height: 220px;
    object-fit: contain;
    padding: 10px;
}

.vehicle-specs-bar {
    background: rgba(0, 0, 0, 0.8) !important;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.compare-badge {
    background: rgba(0, 0, 0, 0.5) !important;
    font-size: 12px;
    z-index: 5;
}

.sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: rgba(255, 0, 0, 0.7);
    border: 4px solid rgba(255, 0, 0, 0.7);
    font-size: 30px;
    font-weight: 900;
    padding: 5px 20px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
}

/* Adjusting Template Primary Color to match buttons if needed */
.text-primary { color: #ff3c3c !important; }
.btn-primary { background-color: #ff3c3c !important; border-color: #ff3c3c !important; }

/* Featured Cars Custom Styles */
.featured-card {
    border: 1px solid #eee;
    transition: 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: #ff3c3c;
}

.featured-card img {
    height: 200px;
    object-fit: contain;
    padding: 10px;
}

.badge-status {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.featured-card .row div {
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.featured-card i {
    width: 20px;
    color: #01162b; /* Matches your navbar dark blue */
}
/* ============================================================
   7. BRANDS WE DEAL IN - COMPLETE STYLES
   ============================================================ */


.brand-item {
    transition: 0.4s all ease;
    background: #ffffff !important;
    padding: 20px;
    height: 180px; /* Forces all boxes to be the exact same height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #eeeeee !important;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden; /* Prevents giant logos from leaking out */
}

/* The Container for the Logo Image */
.logo-box {
    width: 100%;
    height: 80px; /* Limits the logo area height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-logo {
    max-height: 100% !important; /* Image will never exceed 80px */
    max-width: 90% !important;  /* Image will never exceed box width */
    width: auto;
    height: auto;
    object-fit: contain; /* Keeps logo proportions perfect */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.4s ease;
}

/* Hover Effects */
.brand-item:hover {
    border-color: #ff3c3c !important;
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.brand-item p {
    color: #01162b;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 900;
    margin: 0 !important;
}

/* Header Styling */
.brand-section-subtitle { color: #ff3c3c !important; font-weight: 800; }
.brand-section-title { font-weight: 900 !important; color: #01162b; }
.heading-line {
    width: 60px; height: 4px; background: #ff3c3c; 
    margin: 15px auto 25px; border-radius: 10px;
}
/* ============================================================
   WHY CHOOSE US SECTION CUSTOM STYLES
   ============================================================ */

/* Force Extra Bold Heading */
.fw-black {
    font-weight: 900 !important;
}

/* Checkmark Square Icons */
.btn-sm-square.bg-primary {
    width: 25px;
    height: 25px;
    background-color: #ff3c3c !important; /* Theme Red */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Red Button Styling */
.btn-primary {
    background-color: #ff3c3c !important;
    border: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #01162b !important; /* Deep Blue on Hover */
    transform: translateY(-3px);
}

/* Background light grey to make the car pop */
.bg-light-grey {
    background-color: #f8f9fa;
}

/* Responsive fix for car image */
@media (max-width: 991px) {
    .why-choose-us-section img {
        margin-bottom: 30px;
    }
}
/* ============================================================
   COPYRIGHT SECTION CUSTOM STYLES
   ============================================================ */
.bright-heart {
    color: #FF0000 !important; /* Pure Bright Red */
    font-size: 1.1rem;
    /* This adds a subtle red glow so it stands out on the dark blue background */
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5)); 
    animation: pulse-red 2s infinite;
    display: inline-block;
}

/* Smooth pulse animation */
@keyframes pulse-red {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.4));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.4));
    }
}
/* ============================================================
   WHY CHOOSE US - FINAL INTEGRATED STYLES
   ============================================================ */

/* Extra Bold Heading for Title */
.fw-black {
    font-weight: 900 !important;
}

/* Green Checkmark Square Icons */
.btn-check-square {
    width: 25px;
    height: 25px;
    background-color: #28a745 !important; /* Standard success green */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
}

/* Gray background shape for the car image */
.why-choose-bg-shape {
    opacity: 0.05; /* Very subtle */
    transform: scale(1.1) translateY(10%);
    transition: 0.5s;
}

.why-choose-image-group:hover .why-choose-bg-shape {
    opacity: 0.1;
    transform: scale(1.15) translateY(5%);
}

/* Ensures text under icons aligns properly on smaller screens */
@media (max-width: 575px) {
    .feature-list h5 {
        font-size: 14px;
    }
    .feature-list p.ms-5 {
        margin-left: 0 !important;
        margin-top: 10px;
        padding-left: 20px;
        border-left: 2px solid #eeeeee;
    }
}
/* ============================================================
   FACTS SECTION CUSTOM STYLING
   ============================================================ */

.facts-counter {
    background: linear-gradient(rgba(1, 22, 43, 0.85), rgba(1, 22, 43, 0.85)), 
                url('../img/facts-bg.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
}

.fact-circle {
    width: 230px;
    height: 230px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ff3c3c; /* Your Brand Red */
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: 0.5s;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.fact-circle:hover {
    background: #ffffff; /* Turns white on hover */
    border-color: #ff3c3c;
    transform: scale(1.05);
}

/* Changes text colors on hover */
.fact-circle:hover h1, 
.fact-circle:hover i {
    color: #ff3c3c !important;
}

.fact-circle:hover small {
    color: #01162b !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .fact-circle {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
    .fact-circle h1 {
        font-size: 28px !important;
    }
}
/* --- Car Detail Layout Styles --- */

/* 1. Gallery & Sidebar Height Matching */
.vehicle-detail-carousel .item img {
    height: 480px; /* Adjust height for your images */
    object-fit: cover;
    width: 100%;
}

/* 2. Sidebar Action Boxes */
.sidebar-action-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 15px 5px;
    text-decoration: none;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s ease;
    border-radius: 4px;
}

.sidebar-action-box i {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fa2837; /* Theme Red */
}

.sidebar-action-box:hover {
    background: #fa2837;
    color: #ffffff !important;
    border-color: #fa2837;
}

.sidebar-action-box:hover i {
    color: #ffffff;
}

/* 3. Detail Headers with Red Accent */
.detail-title {
    position: relative;
    border-bottom: 2px solid #f1f1f1;
}

.detail-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background: #fa2837;
}

/* 4. Specification Table Styling */
.detail-table td {
    padding: 15px !important;
    font-size: 14px;
    vertical-align: middle;
}

.detail-table td.bg-light {
    color: #555;
    width: 25%;
}

/* 5. Mobile Adjustments */
@media (max-width: 991px) {
    .vehicle-detail-carousel .item img {
        height: 350px;
    }
    .col-lg-4 .border {
        height: auto !important;
    }
}