/* =========================================
   ALANQA SOLUTIONS - COMMON HEADER
   ========================================= */

   .navbar-modern {

       position: fixed;

       top: 0;
       left: 0;

       width: 100%;

       display: flex;

       align-items: center;

       justify-content: flex-start;

      padding: 10px 45px !important;

       z-index: 1000;

       background: transparent;

       transition: all 0.4s ease;

       box-sizing: border-box;
   }


	  /* =========================================
	     DESKTOP LOGO FIX
	     ========================================= */

	  .logo-brand {

	      display: flex;
	      align-items: center;

	     width: 370px !important;
		 height: 75px !important;



		 flex: 0 0 370px !important;

		 margin: 0 10px 0 0 !important;

		 overflow: hidden !important;

	      text-decoration: none;

	      position: relative;

	      z-index: 2;
	  }


	  .logo-brand img {

	      width: 100% !important;

	      height: 75px !important;

	      object-fit: contain !important;

	      object-position: left center !important;

	      transform: scale(4.5) !important;

	      transform-origin: left center !important;

	      position: relative !important;

	      left: -8px !important;

	      margin: 0 !important;

	      pointer-events: none !important;
	  }


	  .logo-brand img:hover {

	      transform: scale(4.5);

	      opacity: 0.95;
	  }
  
/* =========================================
   NAVIGATION MENU
   ========================================= */

   .nav-menu {

       display: flex;

       align-items: center;

       gap: 28px;

       list-style: none;

       margin: 0 0 0 auto;

       padding: 0;

       flex-wrap: nowrap;
   }

   .nav-menu > li {

       flex-shrink: 0;
   }


   .nav-menu > li > a {

       display: inline-flex;

       align-items: center;

       justify-content: center;

       white-space: nowrap;
   }
   
.nav-menu a {
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1.5px;

    transition: color 0.3s ease;
}


.nav-menu a:hover,
.nav-menu a.active {
    color: #ffb400;
}


/* =========================================
   NAVBAR AFTER SCROLL
   ========================================= */

.navbar-modern.scrolled {
    background: #ffffff;

    padding: 15px 60px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(15px);
}


.navbar-modern.scrolled .nav-menu a {
    color: #000000;
}


.navbar-modern.scrolled .nav-menu a:hover,
.navbar-modern.scrolled .nav-menu a.active {
    color: #ffb400;
}




/* =========================================
   CONTACT BUTTON
   ========================================= */

   .nav-menu .btn-solid-nav {

       display: inline-flex;

       align-items: center;

       justify-content: center;

       background: #ffb400;

       color: #000000 !important;

       padding: 12px 24px;

       min-width: 125px;

       border-radius: 4px;

       font-size: 14px;

       font-weight: 700;

       white-space: nowrap;

       line-height: 1;

       transition: all 0.3s ease;
   }


.nav-menu .btn-solid-nav:hover {
    background: #ffffff;

    color: #000000 !important;
}


/* =========================================
   PRODUCTS DROPDOWN
   ========================================= */

.nav-dropdown {
    position: relative;
}


.dropdown-content {
    display: none;

    position: absolute;

    top: calc(100% + 20px);
    left: -200px;

    background: #ffffff;

    padding: 15px 20px;

    border-radius: 5px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    z-index: 2000;

    grid-template-columns: repeat(4, 1fr);

    gap: 2px 25px;

    width: max-content;

    max-height: 60vh;

    overflow-y: auto;
}



.dropdown-content::before {
    content: "";

    position: absolute;

    top: -20px;
    left: 0;

    width: 100%;
    height: 20px;

    background: transparent;
}


.nav-dropdown:hover .dropdown-content {
    display: grid;
}


.dropdown-content li {
    list-style: none;

    width: 100%;

    text-align: center;
}


.dropdown-content li a {
    display: inline-block !important;

    position: relative;

    color: #000000 !important;

    padding: 5px 0 !important;

    font-size: 11px !important;
    font-weight: 700;

    text-transform: uppercase;

    white-space: nowrap;
}


.dropdown-content li a::after {
    content: '';

    position: absolute;

    left: 50%;
    bottom: 2px;

    transform: translateX(-50%);

    width: 0;
    height: 2px;

    background: #ffb400;

    transition: width 0.3s ease;
}


.dropdown-content li a:hover {
    color: #ffb400 !important;
}


.dropdown-content li a:hover::after {
    width: 100%;
}


/* Dropdown Scrollbar */

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}


.dropdown-content::-webkit-scrollbar-thumb {
    background: #ffb400;
    border-radius: 10px;
}


.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}


/* =========================================
   MOBILE HAMBURGER
   ========================================= */

.menu-toggle {
    display: none;

    flex-direction: column;

    gap: 6px;

    cursor: pointer;

    margin-left: auto;
}


.menu-toggle .bar {
    width: 30px;
    height: 3px;

    background: #ffffff;

    border-radius: 5px;

    transition: all 0.3s ease;
}


.navbar-modern.scrolled .menu-toggle .bar {
    background: #000000;
}


/* =========================================
   MOBILE
   ========================================= */

@media screen and (max-width: 990px) {

    .navbar-modern {
        padding: 18px 25px;
    }


    .navbar-modern.scrolled {
        padding: 15px 25px;
    }


    .logo-brand {
        margin-left: 0;
        margin-right: 0;
    }


    .logo-brand img {
        transform: scale(2.8);

        margin-right: 10px;
    }


    .menu-toggle {
        display: flex;
    }


    .nav-menu {
        display: none;

        flex-direction: column;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        background: #ffffff;

        padding: 20px 0;

        box-shadow: 0 10px 20px rgba(0,0,0,0.2);

        text-align: center;

        gap: 10px;
    }


    .nav-menu.active {
        display: flex;
    }


    .nav-menu li {
        width: 100%;

        list-style: none;
    }


    .nav-menu li a {
        color: #000000 !important;

        display: block;

        padding: 10px 0;

        font-size: 16px;
    }


    .nav-dropdown:hover .dropdown-content {
        display: grid;

        position: static;

        width: 95%;

        margin: 10px auto;

        grid-template-columns: repeat(2, 1fr);

        max-height: 250px;
    }


    .nav-menu li a.btn-solid-nav {
        display: inline-block;

        width: auto;

        padding: 10px 30px;

        margin-top: 10px;

        background: #ffb400 !important;

        color: #000000 !important;
    }

}


/* =====================================================
   PREMIUM PRODUCTS MEGA DROPDOWN
   ===================================================== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: "";

    position: absolute;

    top: 100%;
    left: -25px;

    width: calc(100% + 50px);
    height: 22px;

    background: transparent;
}


/* =====================================================
   DROPDOWN BOX
   ===================================================== */

.dropdown-content {

    /* Animation ke liye display none use nahi karenge */
    display: grid;

    grid-template-columns: repeat(4, minmax(140px, 1fr));

    gap: 4px 30px;


    position: absolute;

    top: calc(100% + 18px);
    left: 50%;


    
    transform: translate(-50%, 12px) scale(0.98);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;


    width: min(900px, calc(100vw - 40px));

    max-height: 65vh;

    overflow-y: auto;
    overflow-x: hidden;


    padding: 22px 25px;


    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 8px;


    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22);


    z-index: 3000;


  
    transition:
        opacity 0.25s ease,
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.25s ease;
}


/* =====================================================
   SHOW DROPDOWN
   ===================================================== */

.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translate(-50%, 0) scale(1);
}


/* =====================================================
   BRAND LIST ITEM
   ===================================================== */

.dropdown-content li {

    list-style: none;

    text-align: center;

    padding: 0;

    margin: 0;
}


/* =====================================================
   BRAND TEXT
   ===================================================== */

.dropdown-content li a {

    position: relative;

    display: inline-block !important;


    padding: 7px 2px !important;


    color: #111111 !important;


    text-decoration: none;


    font-size: 11px !important;

    font-weight: 700;


    letter-spacing: 0.3px;

    text-transform: uppercase;


    white-space: nowrap;


    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.dropdown-content li a::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;


    width: 0;

    height: 2px;


    background-color: #ffb400;


    transform: translateX(-50%);


    border-radius: 10px;


    transition:
        width 0.30s cubic-bezier(0.22, 1, 0.36, 1);
}



.dropdown-content li a:hover {

    color: #ffb400 !important;

    background: transparent !important;
}


/* Orange underline center se open hogi */

.dropdown-content li a:hover::after {

    width: 100%;
}


/* =====================================================
   CUSTOM SMOOTH SCROLLBAR
   ===================================================== */

.dropdown-content::-webkit-scrollbar {

    width: 6px;
}


.dropdown-content::-webkit-scrollbar-track {

    background: #f1f1f1;

    border-radius: 10px;
}


.dropdown-content::-webkit-scrollbar-thumb {

    background: #ffb400;

    border-radius: 10px;
}


.dropdown-content::-webkit-scrollbar-thumb:hover {

    background: #e6a200;
}


/* =====================================================
   TABLET
   ===================================================== */

@media screen and (max-width: 990px) {

    .dropdown-content {

        width: 94vw;

        left: 50%;

        grid-template-columns: repeat(3, 1fr);

        max-height: 55vh;

        gap: 5px 15px;

        padding: 20px;
    }


    .dropdown-content li a {

        font-size: 10px !important;
    }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media screen and (max-width: 600px) {

    .dropdown-content {

        grid-template-columns: repeat(2, 1fr);

        width: 94vw;

        max-height: 50vh;

        padding: 15px;

        gap: 4px 10px;
    }


    .dropdown-content li a {

        font-size: 10px !important;

        white-space: normal;

        line-height: 1.3;
    }
}


/* =====================================================
   PRODUCTS PAGE - NAVBAR ALWAYS WHITE
   ===================================================== */

body.products-page-body .navbar-modern,
body.products-page-body .navbar-modern:not(.scrolled),
body.products-page-body .navbar-modern.scrolled {

    background: #ffffff !important;

    border-bottom: 1px solid #eeeeee;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}


/* Products page menu text always black */

body.products-page-body .navbar-modern .nav-menu a {

    color: #000000 !important;
}


/* Products active + hover orange */

body.products-page-body .navbar-modern .nav-menu a:hover,
body.products-page-body .navbar-modern .nav-menu a.active {

    color: #ffb400 !important;
}


/* PRODUCTS text orange */

body.products-page-body .navbar-modern .nav-dropdown > a {

    color: #ffb400 !important;
}


/* Mobile hamburger black */

body.products-page-body .navbar-modern .menu-toggle .bar {

    background-color: #000000 !important;
}


/* Contact button */

body.products-page-body .navbar-modern .btn-solid-nav {

    background: #ffb400 !important;

    color: #000000 !important;
}


/* =====================================================
   ALL PAGES - NAVBAR ALWAYS WHITE
   ===================================================== */

.navbar-modern,
.navbar-modern:not(.scrolled),
.navbar-modern.scrolled {

    background: #ffffff !important;

    border-bottom: 1px solid #eeeeee !important;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06) !important;
}


/* =====================================================
   NAVIGATION TEXT ALWAYS BLACK
   ===================================================== */

.navbar-modern .nav-menu > li > a {

    color: #000000 !important;

    white-space: nowrap;
}


/* =====================================================
   ACTIVE PAGE + HOVER = ORANGE
   ===================================================== */

.navbar-modern .nav-menu > li > a:hover,
.navbar-modern .nav-menu > li > a.active {

    color: #ffb400 !important;
}


/* =====================================================
   CONTACT BUTTON
   ===================================================== */

.navbar-modern .nav-menu .btn-solid-nav {

    background: #ffb400 !important;

    color: #000000 !important;

    border: none !important;
}


.navbar-modern .nav-menu .btn-solid-nav:hover {

    background: #000000 !important;

    color: #ffffff !important;
}


/* =====================================================
   MOBILE HAMBURGER BLACK
   ===================================================== */

.navbar-modern .menu-toggle .bar {

    background: #000000 !important;
}


/* =====================================================
   FINAL COMPACT DESKTOP NAVBAR
   ===================================================== */

@media screen and (min-width: 991px) {

    /* NAVBAR HEIGHT */

    .navbar-modern,
    .navbar-modern.scrolled {

        height: 88px !important;
        min-height: 88px !important;

        padding: 0 45px !important;

        display: flex !important;
        align-items: center !important;

        box-sizing: border-box !important;

        background: #ffffff !important;
    }


    /* LOGO */

    .logo-brand {

        width: 370px !important;
        flex: 0 0 370px !important;

        height: 75px !important;

        margin: 0 10px 0 0 !important;

        display: flex !important;
        align-items: center !important;

        overflow: hidden !important;

        /* halka upar */
        transform: translateY(-3px);
    }


    .logo-brand img {

        width: 100% !important;
        height: 75px !important;

        object-fit: contain !important;
        object-position: left center !important;

        transform: scale(4.5) !important;
        transform-origin: left center !important;

        position: relative !important;
        left: -8px !important;

        margin: 0 !important;

        pointer-events: none !important;
    }


    /* NAVIGATION */

    .nav-menu {

        margin-left: auto !important;

        display: flex !important;
        align-items: center !important;

        gap: 28px !important;

        /* bas halka upar */
        transform: translateY(-3px);

        flex-wrap: nowrap !important;
    }


    .nav-menu > li > a {

        white-space: nowrap !important;

        color: #000000 !important;
    }


    .nav-menu > li > a.active,
    .nav-menu > li > a:hover {

        color: #ffb400 !important;
    }


    /* CONTACT BUTTON */

    .nav-menu .btn-solid-nav {

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        padding: 12px 24px !important;

        background: #ffb400 !important;
        color: #000000 !important;

        white-space: nowrap !important;
    }
}

/* =====================================================
   FINAL RESPONSIVE LOGO - KEEP THIS AT VERY BOTTOM
   ===================================================== */

@media screen and (max-width: 768px) {

    .navbar-modern {
        height: clamp(78px, 14vw, 92px) !important;
        padding: 6px clamp(14px, 4vw, 24px) !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        box-sizing: border-box !important;
        background: #ffffff !important;
    }

    /* Logo ka responsive container */
    .navbar-modern .logo-brand {
        width: clamp(230px, 58vw, 320px) !important;
        max-width: calc(100% - 65px) !important;

        height: clamp(60px, 11vw, 76px) !important;

        flex: 0 1 auto !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    /* Actual Alanqa logo */
    .navbar-modern .logo-brand img {
        width: 100% !important;
        height: 100% !important;

        max-width: none !important;
        max-height: none !important;

        object-fit: contain !important;
        object-position: left center !important;

        /* PNG ke blank area ko compensate karega */
        transform: scale(3.2) !important;
        transform-origin: left center !important;

        position: relative !important;
        left: -4px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hamburger */
    .menu-toggle {
        display: flex !important;

        width: 32px !important;
        min-width: 32px !important;

        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .menu-toggle .bar {
        width: 27px !important;
        height: 3px !important;
    }
}


/* =====================================================
   FINAL MOBILE NAVIGATION FIX
   KEEP THIS AT THE VERY END OF header.css
   ===================================================== */

@media screen and (max-width: 990px) {

    /* ==============================
       MAIN MOBILE MENU
       ============================== */

    .nav-menu {
        display: none !important;

        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        max-height: calc(100dvh - 80px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;

        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        gap: 0 !important;

        margin: 0 !important;
        padding: 8px 14px 16px !important;

        background: #ffffff !important;

        box-sizing: border-box !important;

        box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;

        z-index: 9999 !important;
    }


    .nav-menu.active {
        display: flex !important;
    }


    /* ==============================
       REMOVE HUGE WHITE SPACES
       ============================== */

    .nav-menu > li {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }


    .nav-menu > li > a {
        width: 100% !important;

        display: block !important;

        margin: 0 !important;
        padding: 12px 10px !important;

        text-align: center !important;

        font-size: 17px !important;
        line-height: 1.2 !important;

        box-sizing: border-box !important;
    }


    /* ==============================
       PRODUCTS AREA
       ============================== */

    .nav-dropdown {
        width: 100% !important;

        position: relative !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* PRODUCTS dropdown FULL WIDTH */
    .nav-dropdown .dropdown-content {
        position: static !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: none !important;

        overflow: visible !important;

        margin: 0 !important;
        padding: 12px 8px 16px !important;

        box-sizing: border-box !important;

        background: #f8f8f8 !important;

        box-shadow: none !important;
        border-radius: 6px !important;

        /* Mobile me 2 horizontal columns */
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        column-gap: 14px !important;
        row-gap: 4px !important;
    }


    /* Products tap/hover ke baad show */
    .nav-dropdown:hover .dropdown-content {
        display: grid !important;
    }


    /* Brand items */
    .dropdown-content li {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        text-align: center !important;

        min-width: 0 !important;
    }


    .dropdown-content li a {
        width: 100% !important;

        display: block !important;

        padding: 8px 4px !important;
        margin: 0 !important;

        font-size: 12px !important;
        line-height: 1.25 !important;

        white-space: normal !important;

        text-align: center !important;

        box-sizing: border-box !important;
    }


    /* Invisible desktop hover bridge mobile me nahi chahiye */
    .dropdown-content::before {
        display: none !important;
    }


    /* ==============================
       CONTACT BUTTON
       ============================== */

    .nav-menu li a.btn-solid-nav {
        width: min(240px, 80%) !important;

        display: block !important;

        margin: 8px auto 0 !important;
        padding: 11px 20px !important;

        background: #ffb400 !important;
        color: #000000 !important;

        border-radius: 6px !important;

        text-align: center !important;
    }
}


/* =====================================================
   SLIGHTLY BIGGER MOBILE / TABLET
   ===================================================== */

@media screen and (min-width: 600px) and (max-width: 990px) {

    .nav-dropdown .dropdown-content {
        /* Bigger mobile me 3 columns */
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

/* =====================================================
   FINAL MOBILE HEADER / MENU / PRODUCTS DROPDOWN
   KEEP THIS AT VERY END OF header.css
   ===================================================== */

@media screen and (max-width: 990px) {

    /* MAIN MOBILE MENU */
    .nav-menu {
        display: none !important;

        position: fixed !important;
        top: 82px !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        max-height: calc(100dvh - 82px) !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        gap: 0 !important;

        margin: 0 !important;
        padding: 10px 14px 20px !important;

        background: #ffffff !important;

        box-sizing: border-box !important;

        transform: none !important;

        z-index: 9999 !important;
    }


    .nav-menu.active {
        display: flex !important;
    }


    /* HOME / PRODUCTS / CERTIFICATION ETC */
    .nav-menu > li {
        width: 100% !important;

        flex: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    .nav-menu > li > a {
        width: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-height: 52px !important;

        margin: 0 !important;
        padding: 12px 8px !important;

        box-sizing: border-box !important;

        font-size: 17px !important;

        text-align: center !important;
    }


    /* PRODUCTS PARENT */
    .nav-dropdown {
        width: 100% !important;

        position: static !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* DESKTOP HOVER BRIDGE REMOVE */
    .nav-dropdown::after,
    .dropdown-content::before {
        display: none !important;
    }


    /* PRODUCTS DROPDOWN CLOSED */
    .nav-dropdown .dropdown-content {
        display: none !important;

        position: static !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: none !important;

        overflow: visible !important;

        margin: 0 !important;
        padding: 12px 8px 16px !important;

        background: #f8f8f8 !important;

        border: 1px solid #eeeeee !important;
        border-radius: 8px !important;

        box-shadow: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        column-gap: 10px !important;
        row-gap: 2px !important;
    }


    /* SIRF OPEN CLASS PAR SHOW */
    .nav-dropdown.open .dropdown-content {
        display: grid !important;
    }


    /* HOVER/FOCUS MOBILE PAR DROPDOWN OPEN NA KARE */
    .nav-dropdown:hover .dropdown-content,
    .nav-dropdown:focus-within .dropdown-content {
        display: none !important;
    }


    .nav-dropdown.open:hover .dropdown-content,
    .nav-dropdown.open:focus-within .dropdown-content {
        display: grid !important;
    }


    /* BRAND ITEMS */
    .dropdown-content li {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        min-width: 0 !important;

        text-align: center !important;
    }


    .dropdown-content li a {
        width: 100% !important;

        display: block !important;

        margin: 0 !important;
        padding: 9px 4px !important;

        box-sizing: border-box !important;

        font-size: 12px !important;
        line-height: 1.25 !important;

        white-space: normal !important;

        text-align: center !important;
    }


    /* CONTACT */
    .nav-menu .btn-solid-nav {
        width: min(250px, 80%) !important;

        display: flex !important;

        margin: 8px auto 0 !important;

        justify-content: center !important;
    }
}