/* Base: font, tokens, layout, header, footer, content pages */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/google-sans/GoogleSans-bengali.woff2) format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/google-sans/GoogleSans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/google-sans/GoogleSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --maroon: #7a1414; --gold: #b8860b; --cream: #fdf1d6; --cream2: #fff8e6;
  --red: #d10f0f; --blue: #1428c8; --purple: #6a1b9a; --text: #4a1010; --page-bg: #F5EBE0;
  --green: #2e7d32; --orange: #e65100; --muted: #6d4c41; --line: #e2cf9f;
  --radius: 8px; --shadow: 0 2px 10px rgba(74, 16, 16, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, button, input, select, textarea, dialog, table, code, pre, kbd, samp, h1, h2, h3, h4, h5, h6 {
  font-family: 'Google Sans', sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--text); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--maroon); text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; color: var(--maroon); }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--maroon); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }

/* Buttons & tags */
.btn { display: inline-flex; align-items: center; gap: .4em; background: var(--maroon); color: #fff; border: 1px solid var(--maroon);
  border-radius: 999px; padding: .45em 1em; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { background: #5c0e0e; color: #fff; }
.btn-ghost { background: var(--cream2); color: var(--maroon); border-color: var(--gold); }
.btn-ghost:hover { background: var(--cream); color: var(--red); }
.btn-small { font-size: .85rem; padding: .3em .8em; }
.tag { display: inline-block; font-size: .8rem; padding: .05em .55em; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.tag-warn { background: #fff3e0; border-color: #ffb74d; color: #8a3b00; }
.tag-hol { background: #ffebee; border-color: #ef9a9a; color: var(--red); }

/* Top bar */
.topbar { background: var(--maroon); color: #fff; border-bottom: 3px solid var(--gold); }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: #ffe9a8; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; display: block; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.mainnav { margin-left: auto; position: relative; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.mainnav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; display: inline-flex; gap: 6px; align-items: center; font-size: .95rem; }
.mainnav a:hover { background: rgba(255,255,255,.12); color: #ffe9a8; }
.nav-toggle, .nav-burger { display: none; }
.ed-switch { display: inline-flex; align-items: center; background: #5c0e0e; border: 1px solid var(--gold); border-radius: 999px; padding: 2px; gap: 2px; }
.ed-switch .ed-icon { margin: 0 4px 0 6px; color: #ffe9a8; }
.ed-switch a { color: #fff; text-decoration: none; padding: 3px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.ed-switch a.on { background: var(--gold); color: #fff; }
.ed-switch a:not(.on):hover { background: rgba(255,255,255,.12); }

.tz-banner { background: #fff3cd; border-bottom: 1px solid var(--gold); padding: 8px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tz-banner p { margin: 0; }

.page { max-width: 1280px; margin: 0 auto; padding: 16px; }

/* Content pages */
.content-page { background: var(--cream2); border: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 960px; margin: 0 auto; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.lead { font-size: 1.1rem; }
.card { background: var(--cream2); border: 2px solid var(--gold); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.chip { border: 1px solid var(--gold); border-radius: 999px; padding: 2px 12px; text-decoration: none; background: #fff; font-size: .9rem; }
.chip.on { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.fest-list { list-style: none; padding: 0; margin: 0 0 1em; }
.fest-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fl-date { color: var(--muted); font-size: .9rem; min-width: 11em; }
.hd-date b { color: var(--maroon); font-weight: 700; }
.hd-date small, .hd-cell small { font-size: .75rem; color: var(--muted); }
.hd-cell small { display: block; }
.year-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 1em; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.data-table th { background: var(--cream); color: var(--maroon); }
.fest-hero { margin: 0 0 1em; }
.fest-hero img, .dd-fest img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); }
figcaption { font-size: .8rem; color: var(--muted); }
.fest-note { color: var(--muted); font-size: .95rem; }
.fest-desc { background: #fff; border-left: 4px solid var(--gold); padding: 10px 14px; margin: 1em 0; }
.search-form { display: flex; gap: 8px; margin-bottom: 1em; }
.search-form input { flex: 1; min-width: 0; }
input, select, textarea { font-size: 1rem; padding: .45em .6em; border: 1px solid var(--gold); border-radius: 6px; background: #fff; color: var(--text); max-width: 100%; }
label { font-weight: 600; }
.conv-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.conv-form { display: grid; gap: 6px; align-content: start; }
.conv-form .btn { justify-self: start; margin-top: 6px; }
.conv-result .cr-main { font-size: 1.6rem; font-weight: 700; color: var(--maroon); }
.err { color: var(--red); font-weight: 600; }
.notfound { text-align: center; }

/* Day page */
.day-head h1 { font-size: 2rem; }
.day-sub { color: var(--muted); }
.day-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin: 1em 0; }
.other-ed { font-size: .95rem; }
.pt { width: 100%; border-collapse: collapse; background: #fff; margin: .5em 0 1em; }
.pt caption { text-align: left; font-weight: 700; color: var(--maroon); padding: 4px 0; }
.pt th, .pt td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.pt th { width: 38%; color: var(--maroon); font-weight: 600; white-space: nowrap; }
.pt .icon { color: var(--gold); margin-right: 4px; }
.dd-fests { display: grid; gap: 14px; margin-bottom: 1em; }
.dd-fest h3 { margin: .4em 0 .2em; color: var(--red); }
.dd-fest h3 a { color: inherit; }
.admin-note { background: #fffde7; border: 1px solid #f0d77a; padding: 10px; border-radius: 6px; }
.hol-line { color: var(--red); }

/* Home cards */
.home-cards { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-top: 16px; }
.tc-date { font-size: 1.4rem; font-weight: 700; color: var(--maroon); margin: 0; }
.tc-sub { color: var(--muted); }
.upcoming { list-style: none; padding: 0; margin: 0 0 1em; }
.upcoming li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.upcoming a { font-weight: 700; }
.up-date { color: var(--muted); font-size: .9rem; }
.up-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: var(--green); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 700; }

/* Footer */
.site-foot { background: var(--maroon); color: #fbe9c6; border-top: 3px solid var(--gold); margin-top: 24px; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 16px; font-size: .9rem; }
.site-foot a { color: #ffe9a8; }
.foot-brand { font-weight: 700; }
.attrib { opacity: .9; font-size: .82rem; }

@media (max-width: 900px) {
  .home-cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar-in { gap: 8px; }
  .nav-burger { display: inline-flex; color: #fff; padding: 6px; cursor: pointer; font-size: 1.3rem; }
  .mainnav { order: 3; margin-left: 0; }
  .mainnav ul { display: none; position: absolute; top: 100%; left: 0; background: var(--maroon); border: 1px solid var(--gold); border-radius: 6px; padding: 6px; z-index: 20; flex-direction: column; min-width: 200px; }
  .nav-toggle:checked ~ ul { display: flex; }
  .ed-switch { margin-left: auto; }
  .brand { font-size: 1rem; }
  .content-page { padding: 14px; }
  .pt th { white-space: normal; }
  h1 { font-size: 1.4rem; }
  .day-head h1 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Holiday page grouped by Bengali month */
.hd-cell b, .hd-cell small { white-space: nowrap; }
.tag-now { background: var(--green); color: #fff; border-color: var(--green); }
.hol-empty { color: var(--muted); }
@media (max-width: 700px) {
  .mcar-panel .data-table th:nth-child(2), .mcar-panel .data-table td:nth-child(2) { display: none; }
  .mcar-panel .data-table th, .mcar-panel .data-table td { padding: 9px 8px; font-size: 12.5px; }
  .mcar-panel .data-table td:last-child { font-size: 11px; color: var(--muted); }
}

/* Auspicious days (শুভ দিন) - classic theme: day block in pop-up / day page */
.shubh-day { margin: 14px 0; }
.shubh-h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 1.05rem; line-height: 1.5; color: var(--maroon); }
.shubh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shubh-list > li { padding: 8px 12px; border-radius: var(--radius); background: #f7f1e6; border: 1px solid var(--line); }
.shubh-list > li.sh-ok { background: #eaf6ea; border-color: #a5d6a7; }
.sh-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.6; }
.sh-mark { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: #bcaaa4; color: #fff; }
.sh-ok .sh-mark { background: var(--green); }
.sh-mark svg { width: 11px; height: 11px; }
.sh-no b { color: var(--muted); font-weight: 500; }
.tag-ok { background: var(--green); border-color: var(--green); color: #fff; }
.tag-no { background: #efebe9; color: var(--muted); }
.sh-times { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .9rem; font-weight: 600; line-height: 1.5; }
.sh-muted { font-weight: 400; color: var(--muted); }
.sh-win { margin: 4px 0 0; padding-left: 24px; font-size: .9rem; line-height: 1.7; }
.sh-note { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.sh-src { margin: 10px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.sh-none { margin: 0; color: var(--muted); }


/* Month carousel (holiday / festival pages) - classic theme */
.mcar-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin: 0 0 14px; background: var(--cream); border: 1px solid var(--gold); border-radius: var(--radius); scrollbar-width: thin; }
.mcar-tab { flex: none; position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 6px; font-size: .92rem; line-height: 1.5; color: var(--maroon); text-decoration: none; }
.mcar-tab:hover { background: #fff; }
.mcar-tab small { font-size: .7rem; padding: 0 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.mcar-tab.on { background: var(--maroon); color: #fff; }
.mcar-tab.on small { color: var(--maroon); }
.mcar-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; }
.mcar-title { text-align: center; }
.mcar-title h2 { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin: 0; line-height: 1.5; }
.mcar-title small { display: block; font-size: .85rem; color: var(--muted); }
.mcar-nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: #fff; color: var(--maroon); text-decoration: none; }
.mcar-nav:hover { background: var(--cream); }
.mcar-nav[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.mcar-panel { margin-bottom: 22px; }
.mcar-panel.is-current .data-table, .mcar-panel.is-current .fest-list { outline: 2px solid var(--green); }
.mcar-panel .fest-list { background: #fff; border-radius: var(--radius); padding: 2px 12px; }
.mcar-panel .fest-list li:last-child { border-bottom: 0; }
.mcar.is-js .mcar-panel { display: none; margin-bottom: 0; }
.mcar.is-js .mcar-panel.on { display: block; }
.mcar-panel.from-next { animation: mcar-in-r .3s ease; }
.mcar-panel.from-prev { animation: mcar-in-l .3s ease; }
@keyframes mcar-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes mcar-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mcar-panel.from-next, .mcar-panel.from-prev { animation: none; } }

/* Bank holidays page + "ব্যাংক খোলা/বন্ধ" line - classic theme */
.bank-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.bank-card { background: #fff; border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 14px; }
.bank-k { margin: 0 0 4px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.bank-big { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--maroon); }
.bank-big svg { width: 20px; height: 20px; }
.bank-sub { margin: 4px 0 0; font-size: .9rem; line-height: 1.65; }
.bank-today.is-open { background: #eaf6ea; border-color: #a5d6a7; }
.bank-today.is-open .bank-big { color: var(--green); }
.bank-today.is-closed { background: #ffebee; border-color: #ef9a9a; }
.bank-today.is-closed .bank-big { color: var(--red); }
.bank-rules { grid-column: 1 / -1; }
.bank-table tr.bk-saturday td { color: var(--muted); background: #fbf7ee; }
.bk-note { color: var(--muted); font-size: .75rem; }
.bk-tag-holiday { background: #ffebee; border-color: #ef9a9a; color: var(--red); }
.bk-tag-bank { background: #e8eaf6; border-color: #9fa8da; color: var(--blue); }
.bk-tag-local { background: #fff3e0; border-color: #ffb74d; color: #8a3b00; }
.bank-foot { margin: 14px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.7; }
.hol-bank-link { margin: 4px 0 14px; }
.hol-bank-link .chip { display: inline-flex; align-items: center; gap: 6px; }
.bank-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 10px 0 0; padding: 6px 10px; border-radius: var(--radius); font-size: .92rem; line-height: 1.6; border: 1px solid var(--line); }
.bank-line svg { width: 15px; height: 15px; }
.bank-line.is-open { background: #eaf6ea; }
.bank-line.is-open b { color: var(--green); }
.bank-line.is-closed { background: #ffebee; }
.bank-line.is-closed b { color: var(--red); }
.bk-tag-special { background: #ffebee; border-color: #e57373; color: var(--red); }
.bk-tag-open { background: #eaf6ea; border-color: #81c784; color: var(--green); }
.bank-table tr.bk-open td { background: #f3faf3; }

/* Android app banner (partials/app-promo.php) */
.app-promo { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 16px 20px; border-radius: 20px; background: #2a2a2a; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.app-promo-icon { width: 64px; height: 64px; border-radius: 14px; flex: none; display: block; }
.app-promo-text { flex: 1; min-width: 0; }
.app-promo-title { margin: 0 0 4px; font-weight: 600; font-size: 1.1rem; color: #ffd95e; line-height: 1.4; }
.app-promo-sub { margin: 0; font-size: .92rem; line-height: 1.6; color: #e9e9e9; }
.app-promo-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 10px 18px; border-radius: 999px; background: #ffd95e; color: #2a2a2a !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.app-promo-btn:hover { background: #ffe792; }
.app-promo-btn svg { width: 16px; height: 16px; }
.foot-links svg { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 640px) {
  .app-promo { flex-wrap: wrap; padding: 14px 16px; }
  .app-promo-icon { width: 52px; height: 52px; }
  .app-promo-btn { width: 100%; justify-content: center; }
}
@media print { .app-promo { display: none; } }

/* App button in the header + app card inside blog posts */
.app-head { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; padding: 6px 14px; border-radius: 999px; background: #ffd95e; color: #4a1010 !important; text-decoration: none; font-size: .9rem; font-weight: 600; line-height: 1.3; white-space: nowrap; border: 1px solid var(--gold); flex: none; }
.app-head:hover { background: #ffe792; }
.app-head svg { width: 12px; height: 16px; }
.app-head-short { display: none; }
@media (max-width: 1100px) {
  .app-head-long { display: none; }
  .app-head-short { display: inline; }
  .topbar-in .ed-switch { margin-left: auto; } /* stays on the right when it wraps */
}
@media (max-width: 700px) {
  .topbar-in .app-head { order: 4; width: 100%; justify-content: center; margin: 2px 0 4px; padding: 8px 12px; }
  .topbar-in .app-head-long { display: inline; }
  .topbar-in .app-head-short { display: none; }
}
.app-promo-inline { margin: 26px 0; padding: 14px 18px; }
.app-promo-inline .app-promo-icon { width: 56px; height: 56px; }
.app-promo-inline .app-promo-title { font-size: 1.02rem; }

.gp-icon { width: 15px; height: 16px; display: inline-block; vertical-align: -3px; flex: none; }
.app-head .gp-icon { width: 16px; height: 17px; }

/* Install buttons: black with yellow text, everywhere. */
.app-head { background: #111 !important; color: #ffd95e !important; border-color: #111 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.app-head:hover { background: #2a2a2a !important; }
.app-promo-btn { background: #111; color: #ffd95e !important; border: 1.5px solid #ffd95e; }
.app-promo-btn:hover { background: #000; color: #ffe792 !important; }
