﻿/* ===========================================================
    P2 Mansoft Pvt Ltd - Complete UI Styling
    Desktop = Mega Menu
    Mobile = Left Offcanvas Accordion Sidebar
 =========================================================== */

/* GENERAL RESET */
a {
    text-decoration: none !important;
    color: inherit;
}

/* ===========================================================
    NAVBAR (Desktop + Mobile)
=========================================================== */
.professional-nav {
    background: #ffffff;
    border-bottom: 1px solid #dfe6ee;
    z-index: 9999;
}

.pro-link {
    font-weight: 500;
    color: #333 !important;
    padding: 10px 20px !important;
    font-size: 16px;
    position: relative;
    transition: .25s;
}

    .pro-link:hover {
        color: #0056a1 !important;
    }

    .pro-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background: #0056a1;
        transition: .25s;
    }

    .pro-link:hover::after,
    .pro-active::after {
        width: 100%;
    }

.pro-active {
    color: #0056a1 !important;
    font-weight: 600 !important;
}

/* Burger Icon */
.navbar-toggler,
.btn-light {
    border: none !important;
    background: #f1f1f1 !important;
}

/* ===========================================================
    DESKTOP MEGA MENU
=========================================================== */
.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

.navbar .dropdown:hover .dropdown-menu {
    display: block;
}

.mega-title {
    font-size: 17px;
    font-weight: 700;
    color: #0056a1;
    margin-bottom: 12px;
}

.mega-item {
    display: block;
    padding: 7px 0;
    color: #333;
    font-size: 15px;
    transition: .25s;
}

    .mega-item:hover {
        padding-left: 8px;
        color: #0056a1;
    }

.mega-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-right: 8px;
}

.mega-icon {
    font-size: 20px;
    margin-right: 8px;
    color: #0056a1;
}

/* ===========================================================
    MOBILE SIDEBAR MENU (Offcanvas)
=========================================================== */
.mobile-sidebar-menu {
    width: 320px;
}

    .mobile-sidebar-menu .offcanvas-body {
        overflow-y: auto;
        max-height: 100vh;
        padding: 0;
    }

    /* Accordion */
    .mobile-sidebar-menu .accordion-button {
        padding: 14px 20px;
        font-size: 17px;
        font-weight: 600;
    }

        .mobile-sidebar-menu .accordion-button:not(.collapsed) {
            background: #e9f4ff;
            color: #0056a1;
        }

    .mobile-sidebar-menu .list-group-item {
        padding: 12px 20px;
        font-size: 16px;
        border: none;
        border-bottom: 1px solid #eee;
    }

    /* Ensure mobile sidebar is always above navbar */
    .mobile-sidebar-menu.offcanvas {
        z-index: 999999 !important;
    }

/* Ensure backdrop is above everything */
.offcanvas-backdrop {
    z-index: 999998 !important;
}

/* Ensure mobile hamburger button is clickable */
.navbar .btn[data-bs-toggle="offcanvas"] {
    z-index: 1000000 !important;
    position: relative;
}


        .mobile-sidebar-menu .list-group-item:hover {
            background: #f8f8f8;
            color: #0056a1;
        }

/* Remove desktop mega menu on mobile */
@media (max-width: 991px) {
    .mega-menu,
    .d-none.d-lg-block {
        display: none !important;
    }
}

/* ===========================================================
    MARQUEE
=========================================================== */
.marquee-box {
    background: #000;
    color: #fff;
    padding: 6px 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
}

    .marquee-box span {
        display: inline-block;
        padding-left: 100%;
        animation: marquee 35s linear infinite;
    }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===========================================================
    FOOTER
=========================================================== */
.footer-section {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    border-left: 3px solid #00eaff;
    padding-left: 8px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

    .footer-list li {
        margin-bottom: 10px;
    }

    .footer-list a {
        color: #d9d9d9;
        transition: .25s;
    }

        .footer-list a:hover {
            color: #00eaff;
            padding-left: 5px;
        }

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 20px 0;
}

/* ===========================================================
    BACK TO TOP BUTTON
=========================================================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #0077cc;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: .3s;
}

    .back-to-top:hover {
        background: #005fa3;
        transform: scale(1.1);
    }

/* ===========================================================
    WHATSAPP FLOATING BUTTON
=========================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: .3s;
}

    .whatsapp-float:hover {
        background-color: #1eb75b;
    }

/* WhatsApp Inquiry Box */
.whatsapp-box {
    position: fixed;
    bottom: 150px;
    right: 25px;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 99999;
    display: none;
    border-top: 4px solid #25D366;
}

.whatsapp-box-header {
    color: #25D366;
    font-weight: 700;
    font-size: 18px;
}

.whatsapp-btn-send {
    background: #25D366;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-top: 10px;
}

    .whatsapp-btn-send:hover {
        background: #1eb75b;
    }

/* ===========================================================
    MOBILE RESPONSIVE FIXES
=========================================================== */
@media (max-width: 991px) {
    .navbar-nav {
        margin-left: 0 !important;
    }
}

/* End of File */
