﻿@media (max-width: 768px) {
    .carousel-caption {
        text-align: center;
        left: 5%;
        right: 5%;
    }

        .carousel-caption h1 {
            font-size: 1.8rem;
        }

    .carousel-item {
        height: 60vh;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        z-index: 999;
    }

    #navbar {
        background-color: whitesmoke;
        transition: top 0.3s;
    }

    .text-primary {
        color: #313b3e !important;
    }

    .bi-geo-alt::before {
        content: "\f3e8";
        color: white;
    }

    .bi-envelope-open::before {
        content: "\f32e";
        color: white;
    }

    .bi-telephone::before {
        content: "\f5c1";
        color: white;
    }

    .bi-arrow-right::before {
        content: "\f138";
        color: white;
    }

    /* .carousel-inner {
                                position: relative;
                                width: 100%;
                                overflow: hidden;
                                height: 415px;
                            } */

    .dropdown-menu {
        position: relative;
    }

    .general-insurance {
        position: relative;
    }

    .sub-menu {
        width: 300px;
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
        background: white;
        border: 1px solid #ccc;
        padding: 10px;
        z-index: 1000;
    }

    .sub-item {
        display: block;
        /* Ensure each link appears on a new line */
        padding: 8px 12px;
        /* Inner spacing for the links */
        font-size: 16px;
        /* Adjust font size */
        color: #333;
        /* Text color */
        text-decoration: none;
        /* Remove underline from links */
        border-bottom: 1px solid #ddd;
        /* Optional separator between items */
    }


    .general-insurance .dropdown-item:hover + .sub-menu {
        display: block;
    }

    .sub-menu:hover {
        display: block;
    }

    .sub-item:hover {
        display: block;
    }
}

@media (max-width:768px) {
    .row {
        margin-left: 0px;
    }
}