/* ================================
   MENU TEXT VISIBILITY FIX
================================ */

/* Navbar link text - make visible on white background */
.navbar-nav .nav-link {
    color: #333 !important;
}

.navbar-nav .nav-link:hover {
    color: #c00 !important;
}

.navbar-nav .nav-link.active {
    color: #c00 !important;
}

/* Dropdown menu items */
.dropdown-menu .dropdown-item {
    color: #333 !important;
}

.dropdown-menu .dropdown-item:hover {
    color: #c00 !important;
    background-color: #f8f9fa !important;
}

/* Top navbar links */
.navbar-top .links a {
    color: #333 !important;
}

.navbar-top .links a:hover {
    color: #c00 !important;
}

/* Social icons in top navbar */
.social-icon-one li a {
    color: #333 !important;
}

.social-icon-one li a:hover {
    color: #c00 !important;
}

/* ================================
   LOGO ALIGNMENT FIX
================================ */

/* Prevent logo from extending into content */
.logo-wrapper {
    max-width: 200px;
    flex-shrink: 0;
}

.logo-wrapper .logo {
    display: block;
    max-width: 100%;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
}

/* Ensure navbar top section is properly contained */
.navbar-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-outer {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
}

/* ================================
   NAVBAR BACKGROUND FIX
================================ */

/* Add background to navbar if it's transparent */
.main-header .navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.navbar-top {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
================================ */

@media (max-width: 991px) {
    .logo-wrapper {
        max-width: 150px;
    }

    .logo-img {
        max-height: 60px;
    }

    .top-outer {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
}

@media (max-width: 767px) {
    .logo-wrapper {
        max-width: 120px;
    }

    .logo-img {
        max-height: 50px;
    }

    .top-left,
    .top-right {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* ================================
   OWL CAROUSEL ARROW BUTTONS
================================ */

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    font-size: 40px !important;
    font-weight: bold !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    border-radius: 50% !important;
    border: none !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

.owl-carousel .owl-nav button.owl-prev {
    left: 10px !important;
}

.owl-carousel .owl-nav button.owl-next {
    right: 10px !important;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: rgba(204, 0, 0, 0.8) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.owl-carousel .owl-nav button.owl-prev:active,
.owl-carousel .owl-nav button.owl-next:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* Specific styles for car gallery carousels */
.car-main-carousel .owl-nav button.owl-prev,
.car-main-carousel .owl-nav button.owl-next {
    font-size: 50px !important;
    width: 70px !important;
    height: 70px !important;
    line-height: 70px !important;
}

/* Ensure visibility on hover */
.owl-carousel:hover .owl-nav button {
    opacity: 1 !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        font-size: 30px !important;
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
    }

    .car-main-carousel .owl-nav button.owl-prev,
    .car-main-carousel .owl-nav button.owl-next {
        font-size: 35px !important;
        width: 50px !important;
        height: 50px !important;
        line-height: 50px !important;
    }
}