.counter-style-5 .dlab-tilte {
    font-size: 35px;
}

#banner-slider {
    max-width: 100%;
    margin: auto;
    position: relative;
}

.glide__slide {
    position: relative;
}

.glide__slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.7;
}

/* Add overlay for better contrast */
.glide__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black overlay */
    z-index: 1;
}

/* Centered Content */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.buttons .btn {
    text-decoration: none;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.buttons .btn:hover {
    background-color: var(--color-primary);
}

/* Add overlay for better readability */
.glide__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@media screen and (max-width: 1024px) {
    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .buttons .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Centered Navigation Dots */
.glide__bullets {
    position: absolute;
    bottom: 20px;
    /* Adjust this to move dots closer/farther from the slider */
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.glide__bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.glide__bullet:hover,
.glide__bullet--active {
    background-color: var(--color-primary);
}

@media screen and (max-width: 768px) {
    .slide-content {
        padding: 0px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 0.75rem;
        /* Increased for better readability */
    }

    .buttons {
        display: grid;
        /* Use grid layout */
        grid-template-columns: repeat(2, 1fr);
        /* Two buttons per row */
        gap: 10px;
        /* Add spacing between buttons */
        justify-items: center;
        /* Center buttons within their grid cells */
    }

    .buttons .btn {
        width: 100%;
        font-size: 0.85rem;
    }

    .glide__slide img {
        width: 100%;
        height: 600px;
        object-fit: cover;
        opacity: 0.7;
    }

    .glide__bullets {
        position: absolute;
        bottom: 20px;
        /* Adjust this to move dots closer/farther from the slider */
        left: 50%;
        bottom: 4%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 5;
    }

    .counter-style-5 .dlab-tilte {
        font-size: 30px;
    }

}

#banner_menu .row {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent columns from wrapping to the next line */
    gap: 0;
    /* No gap between columns */
}

#banner_menu .col-sm-6,
#banner_menu .col-md-3 {
    position: relative;
    padding: 0;
    /* Remove padding */
    border-right: 1px solid #ddd;
    /* Vertical divider */
    flex: 1 1 auto;
    /* Allow columns to grow or shrink based on available space */
}

#banner_menu .col-md-3:last-child {
    border-right: none;
    /* Remove the divider from the last column */
}

#banner_menu .media {
    position: relative;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    /* Initially position the overlay at the bottom */
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    /* Red color with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    text-align: center;
    transition: transform 0.5s ease-out;
    /* Smooth transition */
}

.media:hover .card-overlay {
    transform: translateY(0);
    /* Slide the overlay up on hover */
    height: 100%;
    transition: flex 0.3s ease;
}

.card-overlay a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    /* Smooth transition for text */
}

.media:hover .card-overlay a {
    opacity: 1;
    /* Text stays visible even on hover */
}

@media (max-width: 1200px) {
    .extra-nav {
        display: inline-block !important;
    }
}

@media (min-width: 1023px) and (max-width: 1199px) {
    .extra-nav {
        margin-top: 15px;
        display: inline-block !important;
    }
}

@media (min-width: 765px) and (max-width: 1022px) {
    .extra-nav {
        margin-top: 15px;
        display: inline-block !important;
    }
}