/* Modern Mobile Header Styles */
html {
    overflow-y: scroll;
}

body {
    padding-right: 0 !important;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 991.98px) {

    /* Top Info Bar */
    .top-info-bar {
        background-color: #000000;
        color: #ffffff;
        padding: 10px 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .top-info-bar .contact-info {
        display: flex;
        align-items: center;
        padding: 0 15px;
    }

    .top-info-bar .contact-info i {
        margin-right: 8px;
        color: #ffffff;
    }

    .top-info-bar .social-icons {
        padding: 0 15px;
    }

    .top-info-bar .social-icons a {
        color: #ffffff;
        margin-left: 15px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .top-info-bar .social-icons a:hover {
        color: #fdbe33;
        transform: translateY(-2px);
    }

    /* Hide the white logo section on mobile */
    .top-bar {
        display: none;
    }

    /* Navigation Bar with Logo */
    .nav-bar {
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 99;
    }

    /* Add logo to navbar */
    .nav-bar .navbar {
        display: flex;
        align-items: center;
        background: #ffffff !important;
        padding: 0;
        border-radius: 0;
        min-height: 90px;
        justify-content: flex-start;
    }

    .nav-bar .navbar::before {
        content: '';
        background-image: url('../img/logod.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 120px;
        height: 120px;
        margin: 0;
        filter: none;
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        z-index: 10;
    }

    .nav-bar .navbar-brand {
        color: #030f27 !important;
        font-weight: 700;
        font-size: 18px;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 8px 18px;
        border: 2px solid #030f27;
        border-radius: 30px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin-right: 15px;
    }

    .nav-bar .navbar-brand:hover {
        background-color: #030f27;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-bar .navbar-toggler {
        border: 1px solid #e0e0e0;
        padding: 10px 14px;
        outline: none;
        box-shadow: none;
        background: #ffffff;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }

    .nav-bar .navbar-toggler:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-bar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(3, 15, 39, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Hidden navbar by default with no animations */
    .navbar-collapse {
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        transition: none !important;
        animation: none !important;
        background-color: #ffffff;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 10px;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        z-index: 100;
        transform: none !important;
        overflow: visible !important;
    }

    /* Show the collapse when expanded class is added */
    .navbar-collapse.expanded {
        display: block !important;
    }

    /* Prevent any animation on collapse */
    .collapsing {
        transition: none !important;
        height: auto !important;
        overflow: visible !important;
        position: fixed !important;
        top: 90px;
        left: 0;
        right: 0;
    }

    /* Navbar Items */
    .navbar-nav .nav-item.nav-link {
        padding: 14px 20px;
        margin: 4px 0;
        border-radius: 8px;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        text-align: center;
        color: #030f27 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-item.nav-link:hover,
    .navbar-nav .nav-item.nav-link.active {
        background: #f8f9fa;
        color: #030f27 !important;
        transform: translateX(5px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-item.nav-link.active {
        border-left: 4px solid #030f27;
    }

    /* Call to Action Button */
    .nav-bar .btn {
        display: block !important;
        width: 100%;
        margin: 25px 0 20px 0;
        padding: 18px 20px;
        font-weight: 700;
        font-size: 18px;
        text-transform: uppercase;
        border-radius: 30px;
        background: #030f27;
        color: #ffffff !important;
        border: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .nav-bar .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
        z-index: -1;
    }

    .nav-bar .btn::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 5px;
        background: #fdbe33;
        border-radius: 0 0 30px 30px;
    }

    .nav-bar .btn:hover::before {
        left: 100%;
    }

    .nav-bar .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        background: #051b3b;
    }

    /* Make sure the button is visible in the mobile menu */
    .navbar-collapse .ml-auto {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* No animation for menu items */
    .navbar-nav .nav-item.nav-link {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Contact Info in Menu */
    .mobile-contact-info {
        background: linear-gradient(to bottom, #f8f9fa, #f0f0f0);
        padding: 20px;
        margin: 20px 0;
        border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
        border-left: 4px solid #030f27;
    }

    .mobile-contact-info h5 {
        font-size: 18px;
        font-weight: 700;
        color: #030f27;
        margin-bottom: 15px;
        text-transform: uppercase;
        position: relative;
        padding-bottom: 10px;
    }

    .mobile-contact-info h5::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background: #030f27;
    }

    .mobile-contact-info p {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        font-size: 15px;
        color: #333;
    }

    .mobile-contact-info p i {
        margin-right: 12px;
        color: #030f27;
        width: 20px;
        text-align: center;
        font-size: 16px;
    }

    .mobile-contact-info .social-links {
        margin-top: 20px;
        display: flex;
        gap: 12px;
        justify-content: flex-start;
    }

    .mobile-contact-info .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #030f27;
        color: #ffffff;
        border-radius: 50%;
        transition: all 0.3s ease;
        font-size: 18px;
    }

    .mobile-contact-info .social-links a:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
}