:root{
  --container-header:1120px;
  --container-footer:1120px;
  --pad-d:16px;
}

/* RESET */
html,body{
  margin:0;
  padding:0;
  box-sizing:border-box;
  overflow-x:hidden;
}
*,*:before,*:after{
  box-sizing:inherit;
}
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* SKIP LINK */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  position:fixed;
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:8px 12px;
  z-index:9999;
  background:#002b5c;
  color:#fff;
  border-radius:4px;
}

/* ===========================
   HEADER (CLS SAFE)
   =========================== */

.site-header{
  width:100%;
  background:#111;
  color:#fff;
  /* CLS: header space reserve */
  min-height:140px;          /* desktop approx height */
  display:block;
}
@media(max-width:768px){
  .site-header{
    min-height:120px;        /* mobile/tablet */
  }
}

/* MAIN HEADER CONTAINER */
.header-inner{
  max-width:var(--container-header);
  width:100%;
  margin:0 auto;
  padding:12px var(--pad-d);

  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:inherit;        /* follow header reserved height */
}

/* Row 1: LOGO CENTER */
.header-inner .site-brand{
  display:flex;
  justify-content:center;
  align-items:center;
}
.header-inner .site-brand .custom-logo{
  height:60px;
  width:auto;
  object-fit:contain;
}
@media(max-width:480px){
  .header-inner .site-brand .custom-logo{height:48px;}
}

/* Row 2: LEFT MENU + RIGHT SEARCH */
.header-inner .header-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* LEFT: hamburger + menu */
.header-inner .header-left{
  display:flex;
  align-items:center;
  gap:20px;
}

/* hamburger (mobile only) */
.header-inner .hamburger{
  background:none;
  border:none;
  color:#fff;
  font-size:22px;
  padding:6px;
  cursor:pointer;
}
@media(min-width:1024px){
  .header-inner .hamburger{display:none;}
}

/* desktop nav */
.header-inner .desktop-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:18px;
}
.header-inner .desktop-nav a{
  color:#fff;
  text-decoration:none;
  padding:6px 0;
  opacity:.9;
}
.header-inner .desktop-nav a:hover{
  opacity:1;
}
@media(max-width:1023px){
  .header-inner .desktop-nav{display:none;}
}

/* RIGHT: search icon */
.header-inner .search-btn{
  background:none;
  border:none;
  color:#fff;
  font-size:22px;
  padding:6px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===========================
   MOBILE SIDEBAR MENU
   =========================== */

.sidebar{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:300px;
  max-width:85vw;
  background:#111;
  color:#fff;
  padding:14px 16px 20px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;

  transform:translateX(-100%);
  opacity:0;
  pointer-events:none;

  transition:
    transform .35s cubic-bezier(.4,0,.2,1),
    opacity .25s ease;
  z-index:1100;
}
.sidebar.open{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
  box-shadow:3px 0 20px rgba(0,0,0,.35);
}

.sidebar-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom:1px solid #222;
}
.sidebar-title{
  font-size:17px;
  font-weight:700;
  margin:0;
}
.sidebar .close-btn{
  background:none;
  border:0;
  color:#fff;
  font-size:22px;
  padding:4px;
  cursor:pointer;
  line-height:1;
}
.sidebar-nav ul{
  list-style:none;
  margin:0;
  padding:6px 0 0;
}
.sidebar-nav li{
  border-bottom:1px solid #1c1c1c;
}
.sidebar-nav a{
  display:block;
  padding:12px 4px;
  color:#fff;
  text-decoration:none;
  font-size:15px;
  opacity:.9;
}
.sidebar-nav a:hover{
  opacity:1;
  background:#1a1a1a;
}

/* lock body when menu open */
body.menu-open{
  overflow:hidden;
}

/* ===========================
   SEARCH OVERLAY
   =========================== */

.search-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  opacity:0;
  pointer-events:none;
  z-index:1100;
  justify-content:center;
  align-items:center;
  transition:.25s ease;
}
.search-lightbox.show,
body.search-open .search-lightbox{
  display:flex;
  opacity:1;
  pointer-events:auto;
}
.search-shell{
  width:min(680px,92vw);
  background:#fff;
  color:#111;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.search-bar{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  padding:14px;
  border-bottom:1px solid #eee;
}
.search-bar .close-btn{
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
}
.search-form input[type=search]{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:16px;
}




/* ===========================
   FOOTER + footer-inner
   =========================== */

.site-footer{
  width:100%;
  background:#111;
  color:#fff;
  text-align:center;
  border-top:1px solid #222;
}

.footer-inner{
  max-width:var(--container-footer);
  width:100%;
  margin:0 auto;
  padding:40px var(--pad-d) 20px;
}

/* footer brand */
.footer-inner .footer-brand{
  margin-bottom:20px;
  display:flex;             
  flex-direction:column;     
  align-items:center;       
}

.footer-inner .footer-brand .custom-logo{
  height:60px;
  max-height:60px;
  width:auto;
  object-fit:contain;
}
@media(max-width:420px){
  .footer-inner .footer-brand .custom-logo{
    height:48px;
    max-height:48px;
  }
}

.footer-inner .site-title{
  font-size:22px;
  font-weight:700;
  margin-bottom:6px;
}
.footer-inner .site-tagline{
  font-size:14px;
  opacity:.8;
}


.footer-inner .footer-icons{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;
  margin:18px 0;
}
.footer-inner .footer-icons .icon-btn{
  background:#222;
  color:#fff;
  width:38px;
  height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  transition:.25s;
}
.footer-inner .footer-icons .icon-btn:hover{
  background:#333;
  transform:translateY(-2px);
}


.footer-inner .footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:16px;
  font-size:14px;
  opacity:.9;
  margin-top:18px;
}
.footer-inner .footer-links a{
  color:#fff;
  text-decoration:none;
}
.footer-inner .footer-links a:hover{
  text-decoration:underline;
  opacity:1;
}


.footer-inner .copyright{
  font-size:13px;
  opacity:.7;
  margin-top:24px;
  padding-bottom:10px;
}

.ad-slot{
  width:100%;
  max-width:1120px;
  margin:16px auto;
  overflow:hidden;
}

/* typical in-content responsive ban  */
.ad-slot--inarticle{
  min-height:280px;        /* mobile placeholder */
}

/* ===== top ad slot under header ===== */

.ad-slot--top{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:8px 0 16px;
  /* CLS ke liye min-height, default 90px rakhenge */
  min-height:90px;
}

/* actual ad container – default: 320x50 (small mobile) */
.top-unit{
  display:inline-block;
  width:320px;
  height:50px;
}

/* thoda bada mobile / chhota tablet → 320x100 */
@media (min-width:480px){
  .top-unit{
    width:320px;
    height:100px;
  }
  .ad-slot--top{
    min-height:100px;
  }
}

/* desktop / bada tablet → 720x90 */
@media (min-width:1024px){
  .top-unit{
    width:720px;
    height:90px;
  }
  .ad-slot--top{
    min-height:90px;
  }
}

/* larger desktop → 720x100 */
@media (min-width:1280px){
  .top-unit{
    width:720px;
    height:100px;
  }
  .ad-slot--top{
    min-height:100px;
  }
}


/* ===== Sticky wrapper ===== */
.sticky-ad{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  background:#111;
  padding:4px 0;
  display:flex;
  justify-content:center;
}

/* inner box so close button ko relative ref mile */
.sticky-box{
  position:relative;
}

/* actual ad container */
.sticky-unit{
  display:inline-block;
  width:320px;
  height:50px;
}

/* thoda bada mobile / tablet => 320x100 */
@media (min-width:480px){
  .sticky-unit{
    width:320px;
    height:100px;
  }
}

/* desktop / large tablet => 728x90 */
@media (min-width:1024px){
  .sticky-unit{
    width:728px;
    height:90px;
  }
}

/* close button */
.sticky-close{
  position:absolute;
  top:-6px;
  right:-6px;
  width:22px;
  height:22px;
  border-radius:50%;
  border:0;
  background:#000;
  color:#fff;
  font-size:14px;
  line-height:22px;
  cursor:pointer;
  z-index:2;
}

/* content ko sticky ke neeche dabne se bachao */
body.has-sticky-ad{
  padding-bottom:110px; /* max height (100) + thoda gap */
}
@media (min-width:1024px){
  body.has-sticky-ad{
    padding-bottom:100px; /* desktop height 90 */
  }
}

/* agar desktop par sticky nahi chahiye to yeh use kar sakte ho
@media(min-width:1024px){
  #stickyAd{display:none;}
  body.has-sticky-ad{padding-bottom:0;}
}
*/

/* ===== POPUP OVERLAY (full screen dim) ===== */
.ad-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

/* show state */
.ad-overlay.show{
  display:flex;
}

/* inner white popup box */
.ad-overlay-box{
  position:relative;
  background:#fff;
  padding:8px;
  border-radius:6px;
  max-width:95vw;
  max-height:95vh;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}

/* close button */
.ad-overlay-box .ad-close{
  position:absolute;
  top:-8px;
  right:-8px;
  width:24px;
  height:24px;
  border-radius:50%;
  border:0;
  background:#000;
  color:#fff;
  font-size:14px;
  line-height:24px;
  cursor:pointer;
  z-index:2;
}

/* body scroll lock when popup open */
body.popup-open{
  overflow:hidden;
}

/* ===== POPUP AD multi-size ===== */

/* default: small mobile → 320x250 */
.popup-unit{
  display:inline-block;
  width:320px;
  height:250px;
}

/* thoda bada mobile / tablet portrait → 300x250 */
@media (min-width:480px){
  .popup-unit{
    width:300px;
    height:250px;
  }
}

/* tablet landscape / chhota laptop → 320x100 */
@media (min-width:768px){
  .popup-unit{
    width:320px;
    height:100px;
  }
}

/* full desktop → 720x100 */
@media (min-width:1200px){
  .popup-unit{
    width:720px;
    height:100px;
  }
}