/* ============================================================
   nav.css  —  extracted from the old Assets/Top_Nav.html <style> block.
   Behaviour & appearance unchanged. Two Safari-safe patches applied:
     1. -webkit-sticky fallback added for the sticky navbar.
     2. @font-face path made app-root-absolute so it resolves from /CustCss/.
   ============================================================ */

@font-face {
    font-family: 'opensans-regular';
    src: url('/fonts/opensans-regular.ttf') format('truetype');
}


.navbar1 {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    font-family: 'opensans-regular';
    /* Sticky Menu */
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0px;
    z-index: 99;
}

.container_new {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container_form1 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}

    .container_form1 h2 {
        text-align: left;
        color: deepskyblue;
    }


.nav-inner1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo_NeW a img {
    width: 160px;
    height: auto; /* Safari fix: was fit-content (stretched the logo) */
    margin-left: -26px;
}


.nav1 ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav1 a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    transition: color 0.3s;
}

    .nav1 a:hover {
        color: #0098e2;
        font-weight: 500;
    }

    .nav1 a.active {
        color: #0098e2;
        font-weight: 600;
    }

.mega1 {
    position: static;
}

.product-popup1 {
    gap: 20px;
    z-index: 100;
    position: absolute;
    top: 70px;
    left: 42%;
    right: 0px;
    width: 54%;
    background: #fff;
    padding: 15px 15px 24px 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    border-radius: 4px;
    display: none;
    height: 335px;
}

    .product-popup1::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 80px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-bottom: 12px solid #fff;
        filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.08));
    }

.menu-link1 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    text-decoration: none;
    color: #000;
}

    .menu-link1 .arrow1 {
        width: 7px;
        height: 7px;
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .menu-link1:hover .arrow1 {
        transform: rotate(225deg);
    }


.mega1:hover .product-popup1 {
    display: flex;
}

.left-item1 {
    font-size: 15px;
    cursor: pointer;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
}

    .left-item1.active,
    .left-item1:hover {
        color: #0098e2;
    }

.popup-left1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 160px;
}

    .popup-left1 ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 250px;
        align-items: flex-start;
    }

    .popup-left1 li {
        padding: 5px 0;
        font-size: 15px;
        cursor: pointer;
        color: #333;
        width: -webkit-fit-content;
        width: fit-content;
        font-weight: 600;
    }

        .popup-left1 li.active,
        .popup-left1 li:hover {
            color: #0098e2 !important;
        }

.popup-divider1 {
    width: 1px;
    background: #e5e5e5;
}

.popup-right1 {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.right-list1 {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 20px;
}

    .right-list1.active {
        display: flex;
    }

.col1 {
    width: 100%;
    height: auto; /* Safari fix: was fit-content (stretched the logo) */
}


.inline-list1 {
    display: none;
    position: absolute;
    left: 290px;
    top: 0px;
    padding: 0 20px 0 20px;
    min-width: 220px;
    z-index: 99;
}

    .inline-list1 a {
        font-size: 14px;
    }

.row-box1:hover .inline-list1 {
    display: block;
    top: -6px;
}

.inline-list2 {
    display: none;
    position: absolute;
    left: 290px;
    top: 0px;
    padding: 0 20px 0 20px;
    min-width: 220px;
    z-index: 99;
}

    .inline-list2 a {
        font-size: 14px;
    }

.row-box1:hover .inline-list2 {
    display: block;
    top: -40px;
}

.mega1:hover .product-popup1 {
    display: flex;
}

.toggle-head1 {
    width: 290px;
    margin: 10px 0px -15px 0px !important;
    padding: 0px 0px 6px 0px !important;
    font-size: 15px;
    font-weight: 600;
    padding-right: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

    .toggle-head1.active {
        color: #0098e2;
    }


/* SUB-ITEMS */
.A_tag1 {
    display: block;
    margin: 5px 0;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

    .A_tag1:hover {
        color: #0098e2;
    }

.row-box1 {
    position: relative;
    top: -4px;
}

/* Desktop-ku mobile menu & header hidden ALWAYS */
.mobile-header,
.mobile-menu {
    display: none !important;
}

.catalogue-btn {
    background: #009933;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'opensans-regular';
    font-size: 14.5px;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

/* Modal Box */
.modal-content {
    background: #fff;
    width: 60%;
    margin: 8% auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

/* Close Button */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.catalogue_head {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.catalogue_QRtext {
    margin-left: 100px;
    margin-top: 20px;
    font-weight: 600;
}

/* Modal Layout */
.modal-body1 {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0 20px 0;
}

.qr-img {
    width: 300px;
}

.download-btn {
    background: green;
    color: white;
    padding: 12px 50px;
    text-decoration: none;
    border-radius: 5px;
}

/*Mobile Responsive CSS*/
@media (max-width: 480px) {

    .nav1 {
        display: none;
    }

    .logo_NeW a img {
        width: 130px;
        height: auto; /* Safari fix: was fit-content (stretched the logo) */
        margin-left: -8px;
    }

    .mobile-header {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        background: #fff;
        padding: 14px 14px;
    }

    .menu-text {
        margin-right: 10px;
        font-size: 15px;
        font-weight: 600;
        color: #000;
    }

    .mobile-menu-icon {
        font-size: 22px;
        cursor: pointer;
        color: #000;
    }

    .mobile-menu {
        display: none;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 8px 0;
    }

        .mobile-menu.active {
            display: block !important;
        }

        .mobile-menu ul {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .mobile-menu li {
            padding: 14px 18px;
            border-bottom: 1px solid #eee;
            font-size: 16px;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            color: #000;
        }

            .mobile-menu li a {
                text-decoration: none;
                color: #000;
            }

    .mobile-arrow {
        font-size: 14px;
    }

    .mobile-submenu {
        display: none;
        background: #f9f9f9;
        padding-left: 18px;
    }

        .mobile-submenu.active {
            display: block;
        }

        .mobile-submenu a {
            padding: 10px 0;
            display: block;
            font-size: 14px;
            border-bottom: 1px solid #eee;
            color: #444;
        }

    /* LEVEL 2 SUBMENU (sub-sub menu) */
    .level2 {
        background: #f0f8ff;
        padding-left: 15px;
    }

    .sub-item {
        padding: 12px 10px;
        border-bottom: 1px solid #ddd;
        display: flex;
        justify-content: space-between;
        font-size: 15px;
        cursor: pointer;
        font-weight: 500;
    }

    .catalogue-btn {
        background: #009933;
        color: white;
        border: none;
        padding: 10px 6px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 10px;
        font-weight: 600;
        transition: 0.2s ease;
    }

    .catalogue_QRtext {
        width: 100%;
        margin-left: 0px;
        text-align: center;
        margin-top: 20px;
        font-weight: 600;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
    }

    .modal-content {
        width: 92%;
        margin: 20% auto;
        padding: 25px 20px;
    }

    .modal-body1 {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .qr-img {
        width: 220px;
    }

    .download-btn {
        width: 100%;
        padding: 14px 0;
        text-align: center;
        text-decoration: none;
    }
}
