/* Book4Ad blog chrome — header / sub-menu / footer / mobile bottom bar.
   Header, footer and bottom-bar rules are copied from the Yii app
   (app/views/shared/b4-styles.php, bottom-nav.php) so the blog matches www.book4ad.com.
   Blog-only additions: search button + panel, Eenadu-style phone header, sub-menu bar, Popular dropdown. */
:root{--b4-navy:#0B1F33;--b4-navy-soft:#13314e;--b4-orange:#F58220;--b4-orange-dark:#d96f10;--b4-bg:#FAFAF8;--b4-text:#222;--b4-muted:#5b6470;--b4-border:#E8E8E8;--b4-max:1180px;--b4-serif:'Source Serif 4',Georgia,serif;--b4bn-h:64px;--b4bn-safe:env(safe-area-inset-bottom,0px)}
html{overscroll-behavior:none}
.b4-wrap{max-width:var(--b4-max);margin:0 auto;padding:0 20px}
h1,h2,.bhero h1,.phero h1{font-family:var(--b4-serif);font-weight:600}
.progress{z-index:1002}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* Topbar */
.b4-topbar{background:var(--b4-navy);color:rgba(255,255,255,.85);font-size:13px;padding:7px 0;font-family:'Inter',system-ui,sans-serif}
.b4-topbar .b4-wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.b4-topbar a{color:#fff;font-weight:600;text-decoration:none}

/* Header */
.b4-site{position:sticky;top:0;z-index:1000;background:rgba(250,250,248,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:box-shadow .2s;font-family:'Inter',system-ui,sans-serif}
.b4-site.scrolled{box-shadow:0 2px 10px rgba(11,31,51,.14)}
.b4-nav{display:flex;align-items:center;gap:20px;height:68px;position:relative}
.b4-logo{display:flex;align-items:center;text-decoration:none;flex-shrink:0}
.b4-logo img{height:44px;width:auto;display:block}
.b4-nav-links{display:flex;gap:22px;margin:0 auto}
.b4-nav-links a{font-size:14px;font-weight:500;color:var(--b4-text);padding:6px 0;border-bottom:2px solid transparent;transition:color .15s,border-color .15s;text-decoration:none;white-space:nowrap}
.b4-nav-links a:hover,.b4-nav-links a.active{color:var(--b4-navy);border-color:var(--b4-orange)}
.b4-nav-right{display:flex;align-items:center;gap:12px;margin-left:auto}
.b4-call-link{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--b4-navy);text-decoration:none}
.b4-call-ico{width:32px;height:32px;border-radius:50%;background:rgba(46,125,50,.1);color:#2E7D32;display:grid;place-items:center;font-size:14px;flex-shrink:0}
.b4-call-txt small{display:block;font-weight:400;color:var(--b4-muted);font-size:11px}
.b4-signin{font-size:14px;font-weight:600;color:var(--b4-navy);text-decoration:none;white-space:nowrap}
.b4-signin:hover{color:var(--b4-orange)}
.b4-btn-book{background:var(--b4-orange);color:#fff!important;font-size:14px;font-weight:600;padding:10px 18px;border-radius:10px;text-decoration:none!important;white-space:nowrap;transition:background .15s,box-shadow .15s;box-shadow:0 3px 10px rgba(245,130,32,.3);display:inline-block}
.b4-btn-book:hover{background:var(--b4-orange-dark)!important;box-shadow:0 5px 16px rgba(245,130,32,.4)}
.b4-cart{position:relative;color:var(--b4-navy);text-decoration:none;display:flex;align-items:center;line-height:1}
.b4-hamburger{display:none;background:none;border:none;width:40px;height:40px;border-radius:10px;cursor:pointer;flex-shrink:0;padding:0}
.b4-hamburger span{display:block;width:22px;height:2.5px;background:var(--b4-navy);margin:4.5px auto;border-radius:2px;transition:.2s}
.b4-hamburger span:nth-child(2){width:16px;margin-right:9px}
.b4-search-btn{order:3;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:none;border:none;color:var(--b4-navy);cursor:pointer;flex-shrink:0;padding:0}
.b4-search-btn:hover,.b4-search-btn[aria-expanded="true"]{background:rgba(11,31,51,.06);color:var(--b4-orange)}
.b4-nav-right{order:4}
.b4-search-btn svg,.b4-cart svg,.b4-subnav svg,.b4bn-item svg,.b4bn-cta svg{position:static!important;top:auto!important}

/* Search panel */
.b4-search-panel{border-top:1px solid var(--b4-border);background:#fff;padding:12px 0}
.b4-search-form{display:flex;gap:8px}
.b4-search-form input{flex:1;min-width:0;height:44px;border:1.5px solid var(--b4-border);border-radius:10px;padding:0 14px;font:500 15px 'Inter',system-ui,sans-serif;color:var(--b4-text);background:var(--b4-bg)}
.b4-search-form input:focus{outline:none;border-color:var(--b4-orange);background:#fff}
.b4-search-form button{height:44px;padding:0 18px;border:none;border-radius:10px;background:var(--b4-orange);color:#fff;font:600 14px 'Inter',system-ui,sans-serif;cursor:pointer}

/* Mobile drawer */
.b4-mobile-menu{display:none;border-top:1px solid var(--b4-border);background:var(--b4-bg);padding:14px 20px 22px}
.b4-mobile-menu a{display:block;padding:11px 4px;font-weight:500;font-size:15px;border-bottom:1px solid var(--b4-border);color:var(--b4-text);text-decoration:none}
.b4-mobile-menu a:hover,.b4-mobile-menu a.active{color:var(--b4-orange)}
.b4-mobile-menu .b4-btn-book{width:100%;margin-top:14px;text-align:center;padding:13px;border-bottom:none}
.b4-mobile-menu.open{display:block}

/* Blog sub-menu bar (Eenadu-style) */
.b4-subnav{background:var(--b4-navy);border-top:3px solid var(--b4-orange)}
.b4-subnav-in{display:flex;align-items:stretch;height:44px}
.b4-subnav-home{display:grid;place-items:center;width:48px;flex-shrink:0;color:var(--b4-orange);background:rgba(255,255,255,.06);text-decoration:none}
.b4-subnav-home.on,.b4-subnav-home:hover{background:var(--b4-orange);color:#fff}
.b4-subnav-scroll{position:relative;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.b4-subnav-scroll::-webkit-scrollbar{display:none}
.b4-subnav-list{display:flex;list-style:none;margin:0;padding:0;height:100%}
.b4-subnav-list li{flex-shrink:0;scroll-snap-align:start;border-left:1px solid rgba(255,255,255,.16)}
.b4-subnav-list a{display:flex;align-items:center;height:100%;padding:0 16px;color:#fff;font:600 14px 'Inter',system-ui,sans-serif;text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent}
.b4-subnav-list a:hover{background:var(--b4-navy-soft)}
.b4-subnav-list .current-menu-item>a,.b4-subnav-list .current-post-parent>a,.b4-subnav-list .current-category-ancestor>a{border-bottom-color:var(--b4-orange);background:var(--b4-navy-soft)}
.b4-popular{position:relative;flex-shrink:0;border-left:1px solid rgba(255,255,255,.16)}
.b4-popular-btn{height:100%;display:flex;align-items:center;gap:4px;padding:0 14px;background:var(--b4-orange);color:#fff;border:none;font:700 13.5px 'Inter',system-ui,sans-serif;cursor:pointer}
.b4-popular-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.b4-popular-menu{position:absolute;right:0;top:100%;width:min(340px,92vw);background:#fff;border-radius:0 0 12px 12px;box-shadow:0 12px 32px rgba(11,31,51,.22);padding:6px 0;z-index:1001}
.b4-popular-list{list-style:none;margin:0;padding:0}
.b4-popular-list a{display:block;padding:11px 16px;font:500 14px/1.4 'Inter',system-ui,sans-serif;color:var(--b4-text);text-decoration:none;border-bottom:1px solid var(--b4-border)}
.b4-popular-list li:last-child a{border-bottom:none}
.b4-popular-list a:hover{color:var(--b4-orange);background:var(--b4-bg)}

/* Footer */
.b4-footer{background:var(--b4-navy);color:rgba(255,255,255,.75);padding:64px 0 28px;font-size:14px;font-family:'Inter',system-ui,sans-serif;margin-top:48px}
.b4-foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1fr 1.1fr;gap:28px;margin-bottom:44px}
.b4-foot-grid h4{color:#fff;font:700 12px 'Inter',system-ui,sans-serif;margin:0 0 16px;letter-spacing:.08em;text-transform:uppercase}
.b4-foot-grid ul{list-style:none;margin:0;padding:0}
.b4-foot-grid li{margin-bottom:10px}
.b4-foot-grid a{color:rgba(255,255,255,.75);text-decoration:none;transition:color .15s;font-size:13.5px;overflow-wrap:anywhere}
.b4-foot-grid a:hover{color:var(--b4-orange)}
.b4-foot-brand p{font-size:13px;color:rgba(255,255,255,.6);max-width:260px;line-height:1.65;margin:0 0 18px}
.b4-socials{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.b4-socials a{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:opacity .15s,transform .15s}
.b4-socials a svg{display:block!important;position:static!important}
.b4-socials a:hover{opacity:.85;transform:scale(1.1)}
.b4-soc-yt{background:#FF0000}.b4-soc-fb{background:#1877F2}.b4-soc-x{background:#000}.b4-soc-li{background:#0A66C2}.b4-soc-pi{background:#E60023}
.b4-contact-li{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;color:rgba(255,255,255,.75);font-size:13.5px;line-height:1.5}
.b4-contact-li b{color:#fff;font-weight:600}
.b4-pay-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.b4-pay{background:#fff;color:var(--b4-navy);font-size:10px;font-weight:700;border-radius:6px;padding:5px 10px;letter-spacing:.03em}
.b4-foot-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:22px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13px;color:rgba(255,255,255,.5)}

/* Mobile bottom bar (same as main site) */
#b4BottomNav{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:none;align-items:flex-end;justify-content:space-between;height:calc(var(--b4bn-h) + var(--b4bn-safe));padding:0 6px calc(6px + var(--b4bn-safe));background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid rgba(11,31,51,.08);border-radius:18px 18px 0 0;box-shadow:0 -6px 24px rgba(11,31,51,.1);transition:transform .3s}
#b4BottomNav.b4bn-hide-init{transform:translateY(100%)}
.b4bn-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:48px;min-height:48px;padding:6px 2px;color:#8a93a0;text-decoration:none;font:600 11px 'Inter',system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
.b4bn-item:hover{color:var(--b4-orange)}
.b4bn-wa svg{color:#25D366}
.b4bn-cta-slot{flex:1;display:flex;justify-content:center;position:relative}
.b4bn-cta{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#F58220,#d96f10);color:#fff!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;text-decoration:none;box-shadow:0 8px 20px rgba(245,130,32,.45),0 0 0 5px #fff}
.b4bn-cta span{font:700 9.5px 'Inter',system-ui,sans-serif}

/* Responsive */
@media(min-width:1021px) and (max-width:1199px){.b4-call-txt{display:none}.b4-nav-links{gap:16px}}
@media(max-width:1020px){
  .b4-nav{height:60px;gap:8px}
  .b4-nav-links,.b4-call-link,.b4-signin{display:none}
  .b4-hamburger{display:block}
  .b4-search-btn{order:0}
  .b4-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
  .b4-logo img{height:38px}
  .b4-foot-grid{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:991px){
  #b4BottomNav{display:flex}
  body{padding-bottom:calc(var(--b4bn-h) + var(--b4bn-safe))}
  #b4a-contact-fab{display:none!important}
}
@media(max-width:720px){.b4-foot-grid{grid-template-columns:1fr 1fr}.b4-foot-brand{grid-column:span 2}}
@media(max-width:640px){
  .b4-wrap{padding:0 14px}
  .b4-nav-right .b4-btn-book,.b4-cart{display:none}
  .b4-logo img{height:34px}
  .b4-subnav-in{padding:0}
  .b4-subnav-list a{padding:0 13px;font-size:13.5px}
  .b4-popular-btn{padding:0 10px}
  .b4-foot-grid{grid-template-columns:1fr}
  .b4-foot-brand{grid-column:span 1}
  .b4-foot-grid ul{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
  .b4-foot-gstin{display:block}
  .b4-foot-gstin-sep{display:none}
  .b4-topbar .b4-wrap{font-size:12px;justify-content:center;flex-wrap:nowrap}
  .b4-topbar .b4-wrap>div:first-child{display:none}
  .b4-topbar .b4-wrap>div{white-space:nowrap}
}

/* Footer on phones: call/WhatsApp strip first, link sections tap-to-open, short trust line.
   Desktop keeps the full grid (headings are not clickable there). */
.b4-foot-quick{display:none}
.b4-fsec-btn{all:unset;display:block;pointer-events:none;cursor:default}
.b4-fsec-btn svg{display:none}
@media (max-width:640px){
  .b4-footer{padding:22px 0 18px;margin-top:32px}
  .b4-foot-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}
  .b4-foot-quick a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:10px;font:700 13.5px 'Inter',system-ui,sans-serif;text-decoration:none;color:#fff;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
  .b4-foot-quick a+a{background:#1f9e50;box-shadow:none}
  .b4-foot-grid{gap:0;margin-bottom:16px}
  .b4-foot-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.12)}
  .b4-foot-brand>a{margin-bottom:0!important}
  .b4-foot-brand>a img{height:34px!important}
  .b4-foot-brand p{display:none}
  .b4-socials{gap:7px}
  .b4-socials a{width:30px;height:30px}
  .b4-socials a svg{width:15px;height:15px}
  .b4-foot-sec{border-bottom:1px solid rgba(255,255,255,.12)}
  .b4-foot-sec h4{margin:0}
  .b4-fsec-btn{pointer-events:auto;cursor:pointer;display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
  .b4-fsec-btn svg{display:block;transition:transform .2s;position:static!important}
  .b4-fsec-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
  html.b4js .b4-foot-sec ul{display:none}
  html.b4js .b4-foot-sec.open ul{display:grid;padding-bottom:12px}
  .b4-foot-contact h4,.b4-foot-contact .b4-contact-li{display:none}
  .b4-foot-contact .b4-pay-row{margin-top:14px;justify-content:center}
  .b4-foot-bottom{padding-top:12px;font-size:12px;justify-content:center;text-align:center;gap:4px}
}

/* ---------- Phones: short topic labels, "More" → All-topics sheet, tighter header ---------- */
.b4-sub-short{display:none}
.b4-more-btn{display:none}
.b4-sheet[hidden]{display:none}
@media (max-width:640px){
  /* Header budget: call strip 36px, logo row 60px, topic bar 53px. */
  .b4-topbar{padding:0;height:36px;display:flex;align-items:center}
  .b4-topbar .b4-wrap{width:100%}
  .b4-subnav-in{height:50px}
  .b4-sub-full{display:none}
  .b4-sub-short{display:inline}
  .b4-subnav-list a{padding:0 15px;font-size:14px}
  .b4-popular{display:none}
  .b4-more-btn{flex-shrink:0;display:flex;align-items:center;gap:4px;padding:0 14px;background:var(--b4-orange);color:#fff;border:none;font:700 14px 'Inter',system-ui,sans-serif;cursor:pointer;border-left:1px solid rgba(255,255,255,.16)}
  .b4-more-btn svg{position:static!important}
}
/* All-topics bottom sheet */
.b4-sheet{position:fixed;inset:0;z-index:10050}
.b4-sheet-backdrop{position:absolute;inset:0;background:rgba(11,31,51,.5);animation:b4Fade .2s ease}
.b4-sheet-panel{position:absolute;left:0;right:0;bottom:0;max-height:82vh;display:flex;flex-direction:column;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -12px 40px rgba(11,31,51,.3);padding-bottom:env(safe-area-inset-bottom,0px);animation:b4Up .25s cubic-bezier(.2,.8,.2,1);font-family:'Inter',system-ui,sans-serif}
.b4-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;border-bottom:1px solid var(--b4-border)}
.b4-sheet-head h2{margin:0;font:800 18px 'Inter',system-ui,sans-serif;color:var(--b4-navy)}
.b4-sheet-close{width:40px;height:40px;border:none;background:var(--b4-bg);border-radius:50%;font-size:24px;line-height:1;color:var(--b4-navy);cursor:pointer}
.b4-sheet-body{overflow-y:auto;padding:14px 18px 22px;-webkit-overflow-scrolling:touch}
.b4-sheet-topics{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.b4-sheet-topics a{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:46px;padding:8px 12px;border:1px solid var(--b4-border);border-radius:10px;background:var(--b4-bg);font-weight:600;font-size:14px;line-height:1.25;color:var(--b4-navy);text-decoration:none}
.b4-sheet-topics a span{font-size:12px;font-weight:700;color:var(--b4-muted)}
.b4-sheet-topics a[aria-current="page"]{background:var(--b4-navy);border-color:var(--b4-navy);color:#fff}
.b4-sheet-topics a[aria-current="page"] span{color:rgba(255,255,255,.7)}
.b4-sheet-body h3{margin:20px 0 6px;font:700 12px 'Inter',system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--b4-muted)}
.b4-sheet-body .b4-popular-list a{padding:12px 0}
html.b4-sheet-open{overflow:hidden}
@keyframes b4Up{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes b4Fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.b4-sheet-panel,.b4-sheet-backdrop{animation:none}}

/* Fixed bottom bars never cover the last links: page ends above them (+ breathing room). */
@media (max-width:991px){body{padding-bottom:calc(var(--b4bn-h) + var(--b4bn-safe) + 16px)}}
/* Sheet refinements: label, drag handle, 48px cards, max 6 popular, only one fixed layer. */
.b4-more-short{display:none}
@media (max-width:359px){.b4-more-long{display:none}.b4-more-short{display:inline}}
.b4-sheet-grab{display:flex;justify-content:center;padding:8px 0 0;touch-action:none;cursor:grab}
.b4-sheet-grab span{width:40px;height:5px;border-radius:3px;background:#D5D8DD}
.b4-sheet-head{touch-action:none}
.b4-sheet-panel{transition:transform .2s ease}
.b4-sheet-panel.dragging{transition:none}
.b4-sheet-body{overscroll-behavior:contain}
.b4-sheet-topics a{min-height:48px}
.b4-sheet-body .b4-popular-list li:nth-child(n+7){display:none}
.b4-sheet-all{display:inline-flex;align-items:center;margin-top:12px;min-height:44px;font-weight:700;font-size:14.5px;color:var(--b4-orange-dark);text-decoration:none}
html.b4-sheet-open .b4bb,html.b4-sheet-open #b4BottomNav{visibility:hidden}
html.b4-sheet-open body{position:fixed;left:0;right:0;width:100%;overflow:hidden}
