body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #ffffff;
    color: black;
    /* padding: 10px 0; */
    border-bottom: 7px solid #46ba44;
    /* position: fixed; */
    /* margin-bottom: 3rem; */
    width: 100%;
}

header .logo {
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
    color: #000000;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: right;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
}

/* NOVO */
.navbar-nav .nav-link {
    color: #000; /* Default link color */
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #28a745; /* Green color on hover */
}

.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #28a745; /* Green underline */
    transition: width 0.3s ease-in-out;
    position: absolute;
    left: 0;
    bottom: 0;
}

.navbar-nav .nav-link:hover::after {
    width: 100%; /* Full underline on hover */
}
/* KRAJ */

.hero {
    background: url('path-to-hero-image.jpg') no-repeat center center/cover;
    color: rgb(0, 0, 0);
    text-align: center;
    /* padding: 100px 0; */
}

.hero h1 {
    font-size: 48px;
}

.hero p {
    font-size: 18px;
}

.btn-primary {
    background-color: #f05a28;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.models, .used-cars, .equipment {
    padding: 50px 0;
}

.models-grid, .used-cars-grid, .equipment-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.model-card, .used-car-card, .equipment-card {
    background: #ffffff;
    width: 30%;
    margin-bottom: 20px;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

footer {
    background: #46ba44;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer .social-media a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}
.carousel-caption {
    /* background: rgb(96, 239, 19); */
    padding: 20px;
    border-radius: 10px;
}
.carousel-caption h1 {
    color: #ffffff;
}
.btn-success {
    background-color: #46ba44;
    border-color: #46ba44;
}
/* Default styles for carousel images */
.carousel-image {
    object-fit: cover;
    height: 90vh;
}

/* Default styles for text and buttons */
.carousel-caption {
    bottom: 10%;
    left: 10%;
    text-align: left;
}

.carousel-title {
    font-size: 3rem;
    font-weight: bold;
}

.carousel-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Default size for the button */
.carousel-button {
    padding: 12px 20px;  /* Set default padding for desktop */
    font-size: 16px;      /* Default font size */
}

/* Mobile-specific styles */
@media (max-width: 991.98px) { /* Targets devices smaller than the Bootstrap 'lg' breakpoint */
    .navbar-nav .nav-link {
        font-weight: 500;
        font-size: large;
        text-align: center;
    }

    /* Optional: Center align the nav items vertically */
    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        margin: auto; /* Ensures nav links are centered in the collapsible menu */
    }
    .navbar-collapse{
        border-top:2px solid #46ba44;
    }
}


/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    /*.carousel-image {*/
    /*    height: 800px;*/
    /*}*/
    .carousel-image {
        height: 78vh;
    }
   #wImp{
       width:auto!important;
   }
    #log{
        top:0 !important;
        left: 16vh;
    }

    .carousel-caption {
        bottom: 51%!important;
        left: 1%!important;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-subtitle {
        font-size: 1.2rem;
    }

    .carousel-button {
        padding: 10px !important;
        font-size: 20px;      /* Larger font size for mobile */
        /* padding:50px; */
        width: 100%;
    }
    #brandsMenu{
        position: unset!important;
    }
    #brandsMenu1{
        position: unset!important;
    }
    #brandsMenu2{
        position: unset!important;
    }
    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 576px) {
    .carousel-title {
        font-size: 1.8rem;
    }

    .carousel-subtitle {
        font-size: 1rem;
    }


}


