/* =========================================================
   TOPBAR + NAVBAR (Desktop + Tablet + Mobile)
   Works with your existing HTML + JS (menuToggle/menuClose/topbarToggle)
========================================================= */

/* ========== GLOBAL ========== */
*{ box-sizing:border-box; margin:0; padding:0; font-family:"Poppins",sans-serif; }
a{ text-decoration:none; }
ul{ list-style:none; }
/* 

 /* :root{
  --topbar-h-desktop: 54px;
  --navbar-h-desktop: 160px; */

  /* tablet/mobile me topbar-toggle visible hota hai */
  /* --topbar-h-tablet: 44px;
  --navbar-h-tablet: 96px;

  --navbar-h-mobile: 86px; */



/* Content ko header ke neeche push karo */
body{
  padding-top: calc(var(--topbar-h-desktop) + var(--navbar-h-desktop));
}

/* ===== TABLET ===== */
/* @media (max-width: 1024px){
  .main-navbar{
    top: var(--topbar-h-tablet);
  }

  body{
    padding-top: calc(var(--topbar-h-tablet) + var(--navbar-h-tablet));
  } */

  /* (Optional but recommended)
     topbar expand ho to navbar ko cover na kare:
     topbar panel ko navbar ke neeche show karo */
  /* .topbar{
    position: fixed;
    left: 0; right: 0;
    top: calc(var(--topbar-h-tablet) + var(--navbar-h-tablet));
    z-index: 5900;
  }


/* ===== MOBILE ===== */
@media (max-width: 768px){
  body{
    padding-top: calc(var(--topbar-h-tablet) + var(--navbar-h-mobile));
  }

  .topbar{
    top: calc(var(--topbar-h-tablet) + var(--navbar-h-mobile));
  }
} */
/* =========================================================
   DESKTOP (>=1025px)
========================================================= */

/* ---------- TOPBAR (Desktop) ---------- */
.topbar-wrap{ 
  position:relative; 
  z-index:5000; 

 
  /* position: fixed; */
  top: 0; left: 0; right: 0;
  width: 100%;
  /* z-index: 6000; */
}
.topbar{
  background:#e74c3c;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:16px;
  height:65px;
  padding:0 2%;
  gap:14px;
 
}
.topbar-toggle{ display:none; }

.topbar-left ul{ display:flex; gap:10px; }
.topbar-left ul li a{
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  background:#3F104D; border-radius:6px; color:#fff;
}

.topbar-slider-box{
  flex:1;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; white-space:nowrap; gap:15px;
}
.topbar-slider{
  display:inline-block;
  padding-left:100%;
  animation: scrollText 15s linear infinite;
}
.v-line{ width:3px; height:22px; background:#ffc400; border-radius:5px; margin:0 10px; }

@keyframes scrollText{
  0%{ transform: translateX(100%); }
  100%{ transform: translateX(-100%); }
}

.contact-info{ display:flex; gap:16px; font-size:16px; align-items:center; }
.contact-info i{ color:#fff; font-size:22px; }

/* ---------- MAIN NAVBAR (Desktop) ---------- */
.main-navbar{
  position:relative;
  display:flex;
  align-items:center;
  height:160px;
  width:100%;
  background:#fff;
  z-index:100;

  /* position: fixed;
  left: 0; right: 0;
  top: var(--topbar-h-desktop);
  z-index: 5500; */
}

.navbar-logo{
  width:15%;
  height:100%;
  background:#0b134f;
  display:flex;
  align-items:center;
  justify-content:center;
 
}
.navbar-logo img{ height:90px; }

.navbar-menu{
  width:55%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.navbar-menu ul{ display:flex; gap:16px; }
.navbar-menu ul li{ position:relative; }
.navbar-menu ul li a{ color:gray; font-size:15px; font-weight:600; padding:6px 0; }
.navbar-menu ul li a:hover{ color:#E74C3C;
}
.dropdown:hover ul li a{ color:#0B134F;

  }  
.dropdown:hover ul li a:hover{ color:#E74C3C;
  
  } 
.navbar-right{
  width:30%;
  height:100%;
  background:#0b134f;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  position:relative;
}

.navbar-right::before{
  content:"";
  position:absolute;
  left:-35px; top:0;
  width:160px; height:100%;
  background:#0b134f;
  transform:skewX(-25deg);
}

.main-navbar .navbar-right .icon{
  width:45px; height:45px;
  border-radius:50%;

  display:flex; align-items:center; justify-content:center;
  color:#fff;
  background-color: #0B134F;
  border:1px solid rgba(255,255,255,.85);
  font-size:20px;
}
.main-navbar .navbar-right .icon:hover{
  color:#E74C3C;
  border-color: #E74C3C;
  cursor: pointer;
}

.whatsapp-btn{
  margin-left: 10px;
  background:#0057ff;
  padding:15px 28px;
  color:#fff;
  font-weight:600;
  
}
.whatsapp-btn:hover{

  background:#E74C3C;
  color:#fff;
  cursor: pointer;
}

.mobile-toggle{ display:none; }
.menu-close{ display:none; }

/* Desktop dropdown */
.dropdown{ position: relative; }
.dropdown-menu{
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: 280px;
  background: #fff;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  border-bottom: 7px solid #0B134F;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .25s ease;
  z-index: 9999;
}
.dropdown::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:100%;
  height:12px;
}
.dropdown:hover .dropdown-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown-menu li a{
  display:block;
  padding:18px 22px;
  text-align:center;
  font-weight:600;
  font-size:15px;
  color:#11104d;
  border-bottom:1px solid #eee;
}
.dropdown-menu li:last-child a{ border-bottom:none; }
.dropdown-menu li a:hover{ background:#f7f7f7; }

/* =========================================================
   TABLET (<=1024px)  ✅ Surface Pro 7 etc.
   - Topbar collapsible (toggle visible)
   - Navbar becomes blue bar + hamburger + offcanvas
========================================================= */

@media (max-width: 1024px){

  /* ===== TOPBAR (Tablet like screenshot) ===== */
  .topbar{
    display:none;                 /* default hide */
    height:auto;
    background:#fff;
    color:#0b134f;
    padding:10px 14px;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 16px;
    border-bottom:1px solid #eee;
  }
  .topbar-wrap.active .topbar{ display:flex; }

  .topbar-toggle{
    display:flex;                 /* red strip always visible */
    justify-content:center;
    align-items:center;
    background:#e74c3c;
    height:44px;
    cursor:pointer;
  }
  .topbar-toggle span{
    background:#fff;
    width:28px;
    height:28px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    font-weight:bold;
    transition:transform .2s ease;
  }
  .topbar-wrap.active .topbar-toggle span{ transform: rotate(180deg); }

  /* tablet me slider hide (space बचाने के लिए) */
  .topbar-slider-box{ display:none; }

  .topbar-left ul li a{
    background:#e74c3c;
    border-radius:6px;
    width:38px; height:38px;
    color:#fff;
  }
  .contact-info{
    display:flex;
    gap:12px;
    font-size:14px;
    justify-content:center;
    flex-wrap:wrap;
    color:#0b134f;
  }

  /* ===== NAVBAR (Tablet) ===== */
  .main-navbar{
    background:#0b134f !important;
    height:96px;
    justify-content:space-between;
    padding:0 10px;
    z-index:1000;
  }

  .navbar-logo{
    background:transparent !important;
    width:auto;
    height:96px;
    padding:0 10px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
  }
  .navbar-logo img{
    height:62px;
    background:#fff;
    padding:6px;
    border-radius:4px;
  }

  .navbar-right{
    background:transparent !important;
    width:auto;
    height:96px;
    padding:0 10px;
    display:flex;
    align-items:center;
    gap:12px;
    position:relative;
  }
  .navbar-right::before{ display:none !important; }

  /* Tablet में search icon + whatsapp दिखाओ */
  .main-navbar .navbar-right .icon{
    display:flex;
    width:40px; height:40px;
    border:1px solid rgba(255,255,255,.85);
    color:#fff;
  }
  .whatsapp-btn{
    display:flex;
    background:#0057ff;
    padding:10px 14px;
    border-radius:4px;
    font-size:14px;
    font-weight:700;
  }

  /* Hamburger show */
  .mobile-toggle{
    display:flex !important;
    width:44px;
    height:44px;
    border:1.5px solid #dcdcdc;
    background:#fff;
    color:#0b134f;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:20px;
    border-radius:2px;
  }

  /* Desktop horizontal menu बंद */
  .navbar-menu{
    position:fixed;
    top:0;
    left:0;
    width:min(420px, 75vw);     /* ✅ tablet drawer width */
    height:100vh;
    background:#fff;
    z-index:10001;
    transform:translateX(-110%);
    transition:transform .35s ease;
    overflow-y:auto;
    display:block !important;
    padding:10px 0 0 0 !important;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
  }
  .navbar-menu.active{ transform:translateX(0); }

  /* close btn (sticky) */
  .menu-close{
    display:flex !important;
    align-items:center;
    justify-content:center;
    position:sticky;
    top:10px;
    margin:10px 14px 10px auto;
    width:46px;
    height:46px;
    border:1px solid #dcdcdc;
    background:#fff;
    font-size:22px;
    cursor:pointer;
    line-height:1;
    z-index:100000;
  }

  /* UL vertical */
  .navbar-menu ul{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    width:100%;
  }
  .navbar-menu ul li{ border-bottom:1px solid #eee; }
  .navbar-menu ul li a{
    display:block;
    padding:16px 18px !important;
    color:#0b134f;
    font-size:15px;
    font-weight:600;
  }

  /* dropdown accordion */
  .navbar-menu .dropdown > a{
    position:relative;
    padding-right:46px !important;
  }
  .navbar-menu .dropdown > a::after{
    content:"›";
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    font-size:22px;
    color:#0b134f;
    transition:.25s ease;
  }
  .navbar-menu .dropdown.open > a::after{
    transform:translateY(-50%) rotate(90deg);
  }

  .navbar-menu .dropdown-menu{
    position:static !important;
    width:100% !important;
    box-shadow:none !important;
    border:none !important;
    border-radius:0 !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:none !important;
    display:block !important;

    max-height:0;
    overflow:hidden;
    transition:max-height .30s ease;
    margin:0 !important;
    padding:0 !important;
  }
  .navbar-menu .dropdown.open .dropdown-menu{ max-height:900px; }

  .navbar-menu .dropdown-menu li a{
    padding:12px 26px !important;
    font-size:14px;
    font-weight:500;
    color:#111;
    border-bottom:1px solid #eee;
  }

  /* overlay */
  #menuOverlay{
    position:fixed;
    top:0; right:0; bottom:0; left:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    pointer-events:none;
    transition:.25s ease;
    z-index:9999 !important;
  }
  #menuOverlay.active{
    opacity:1;
    pointer-events:auto;
    left: min(420px, 75vw);      /* ✅ overlay starts after drawer */
  }

  /* when menu open => topbar hide (same like your mobile behavior) */
  body.menu-open .topbar-wrap,
  body.menu-open .topbar,
  body.menu-open .topbar-toggle{
    display:none !important;
  }

  /* menu open => hamburger hide */
  body.menu-open #menuToggle{ display:none !important; }
}

/* =========================================================
   MOBILE (<=768px)
   - Your existing mobile behavior (icons/whatsapp hide)
========================================================= */
@media (max-width: 768px){

  /* topbar already handled above; keep mobile look */
  .contact-info{ flex-direction:column; gap:8px; }

  .main-navbar{ height:86px; }
  .navbar-logo{ height:86px; }
  .navbar-right{ height:86px; }

  /* mobile: hide icons + whatsapp */
  .icon, .whatsapp-btn{ display:none !important; }

  /* drawer width smaller */
  .navbar-menu{
    width:85%;
    max-width:360px;
  }
  #menuOverlay.active{
    left: min(85vw, 360px);
  }

}
