/* =========================================================
   নির্বাচনী ওয়েবসাইট — ফ্রন্ট থিম
   সব রং/ফন্ট/রেডিয়াস CSS ভেরিয়েবল থেকে আসে, যেগুলো
   অ্যাডমিন > থিম ও রং থেকে সেট হয় (front/partials/theme.blade.php)
   ========================================================= */

:root {
    --soft: color-mix(in srgb, var(--brand) 7%, var(--bg));
    --soft-2: color-mix(in srgb, var(--brand) 14%, var(--bg));
    --surface: color-mix(in srgb, var(--bg) 100%, white);
    --border: color-mix(in srgb, var(--text) 11%, transparent);
    --muted: color-mix(in srgb, var(--text) 62%, var(--bg));
    --brand-deep: color-mix(in srgb, var(--brand) 62%, var(--dark));
    --r-sm: calc(var(--r) * .6);
    --r-lg: calc(var(--r) * 1.6);
    --shadow: 0 1px 2px color-mix(in srgb, var(--dark) 8%, transparent), 0 12px 32px -12px color-mix(in srgb, var(--dark) 22%, transparent);
    /* পুরনো নামগুলোর সাথে সামঞ্জস্য */
    --brand-soft: var(--soft);
    --brand-dark: var(--brand-deep);
    --ink: var(--text);
}

html[data-bs-theme="dark"] {
    --bg: color-mix(in srgb, var(--dark) 78%, #050505);
    --text: #e6ece9;
    --surface: color-mix(in srgb, var(--dark) 55%, #1c1c1c);
    --soft: color-mix(in srgb, var(--brand) 14%, var(--bg));
    --soft-2: color-mix(in srgb, var(--brand) 24%, var(--bg));
    --border: rgba(255, 255, 255, .09);
    --muted: #a9b5af;
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body), system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-link-color-rgb: initial;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .display-font { font-family: var(--font-head), var(--font-body), serif; font-weight: 700; line-height: 1.25; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
html[data-bs-theme="dark"] a:not(.btn) { color: color-mix(in srgb, var(--brand) 55%, white); }
.text-muted { color: var(--muted) !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- বাটন ও ফর্ম ---------- */
.btn { border-radius: var(--r); font-weight: 600; padding: .62rem 1.3rem; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.05rem; }
.btn-brand { background: var(--brand); color: var(--on-brand); border: 0; }
.btn-brand:hover { background: var(--brand-deep); color: var(--on-brand); }
.btn-accent { background: var(--accent); color: var(--on-accent); border: 0; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, black); color: var(--on-accent); }
.btn-ghost { border: 1.5px solid currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.btn-outline-secondary { border-color: var(--border); color: var(--text); }
.btn-outline-secondary:hover { background: var(--soft-2); color: var(--text); border-color: var(--border); }
.form-control, .form-select { border-radius: var(--r-sm); background-color: var(--surface); border-color: var(--border); color: var(--text); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 20%, transparent); background-color: var(--surface); color: var(--text); }
.badge-soft { background: var(--soft-2); color: var(--brand); font-weight: 600; border-radius: 999px; padding: .3em .8em; }
html[data-bs-theme="dark"] .badge-soft { color: color-mix(in srgb, var(--brand) 50%, white); }

/* ---------- কার্ড (স্টাইল অ্যাডমিন থেকে) ---------- */
.card { --bs-card-bg: var(--surface); --bs-card-border-color: var(--border); --bs-card-color: var(--text); border-radius: var(--r); overflow: hidden; }
.cards-shadow .card { border-color: transparent; box-shadow: var(--shadow); }
.cards-border .card { border: 1.5px solid var(--border); box-shadow: none; }
.cards-glass .card { background: color-mix(in srgb, var(--surface) 65%, transparent); backdrop-filter: blur(12px); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.cards-flat .card { background: var(--soft); border: 0; box-shadow: none; }
.card-lift { transition: transform .2s ease; }
a.card-lift:hover, .card-lift:has(a.stretched-link):hover { transform: translateY(-3px); }
.card-img-cover { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--soft); }
.img-placeholder { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-size: 2.4rem; }
.rich-text { line-height: 1.9; max-width: 72ch; }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--r); }
.rich-text h3, .rich-text h4 { margin-top: 1.6em; color: var(--brand); }
html[data-bs-theme="dark"] .rich-text h3, html[data-bs-theme="dark"] .rich-text h4 { color: inherit; }

/* ---------- টপবার / নোটিশ ---------- */
.topbar { background: var(--dark); color: color-mix(in srgb, white 78%, var(--dark)); font-size: .88rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.notice { background: var(--accent); color: var(--on-accent); font-weight: 600; overflow: hidden; white-space: nowrap; font-size: .95rem; }
.notice .track { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- নেভবার ---------- */
.site-nav { position: sticky; top: 0; z-index: 1030; transition: box-shadow .2s, background .2s; }
.nav-glass { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--border); }
.nav-solid { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav-brand { background: var(--brand); --text: var(--on-brand); color: var(--on-brand); }
.site-nav.scrolled { box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--dark) 50%, transparent); }
.site-nav .brand-mark { height: 46px; width: 46px; object-fit: cover; border-radius: 50%; outline: 2px solid var(--accent); outline-offset: 2px; }
.site-nav .brand-name { font-family: var(--font-head); font-weight: 700; line-height: 1.1; font-size: 1.1rem; color: var(--text); }
.site-nav .brand-sub { font-size: .76rem; color: var(--muted); }
.nav-brand .brand-sub { color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.site-nav .nav-link { color: var(--text); font-weight: 500; padding: .45rem .8rem !important; border-radius: var(--r-sm); position: relative; }
.site-nav .nav-link:hover { color: var(--brand); }
.site-nav .nav-link.active { color: var(--brand); }
.site-nav .nav-link.active::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-brand .nav-link, .nav-brand .nav-link:hover, .nav-brand .nav-link.active { color: var(--on-brand); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); display: inline-grid; place-items: center; }
.theme-toggle:hover { background: var(--soft-2); }
.navbar-toggler { color: var(--text); border: 0; font-size: 1.6rem; }

/* ---------- সেকশন ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.sec-soft { background: var(--soft); }
.sec-brand { background: linear-gradient(140deg, var(--brand-deep), var(--brand)); color: var(--on-brand); --text: var(--on-brand); --muted: color-mix(in srgb, var(--on-brand) 75%, transparent); --border: color-mix(in srgb, var(--on-brand) 18%, transparent); --surface: color-mix(in srgb, var(--on-brand) 8%, transparent); --soft: color-mix(in srgb, var(--on-brand) 8%, transparent); }
.sec-accent { background: var(--accent); color: var(--on-accent); --text: var(--on-accent); --muted: color-mix(in srgb, var(--on-accent) 72%, transparent); --border: color-mix(in srgb, var(--on-accent) 18%, transparent); --surface: color-mix(in srgb, var(--on-accent) 7%, transparent); --brand: var(--on-accent); }
.sec-dark { background: var(--dark); color: #eef3f0; --text: #eef3f0; --muted: #a8b6af; --border: rgba(255,255,255,.1); --surface: rgba(255,255,255,.05); --soft: rgba(255,255,255,.05); }
.sec-brand a:not(.btn), .sec-dark a:not(.btn) { color: inherit; }
.sec-head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .label { display: inline-block; font-weight: 600; color: var(--brand); margin-bottom: .4rem; font-size: .98rem; }
.sec-brand .sec-head .label, .sec-dark .sec-head .label { color: var(--accent); }
.sec-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0; }
.sec-head p { color: var(--muted); margin: .7rem 0 0; font-size: 1.06rem; }
.sec-head .rule { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--accent); margin-top: 14px; }
.sec-head.center .rule { margin-inline: auto; }

/* ---------- হিরো ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero.is-dark { color: #fff; --text: #fff; --muted: rgba(255,255,255,.8); }
.hero.is-light { color: var(--text); background: var(--soft); }
.hero--full { min-height: calc(100svh - 80px); display: flex; align-items: center; }
.hero--full > .container { width: 100%; }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(32px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 110px); }

/* পটভূমির স্তর */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg video, .hero-bg .bg-img { object-fit: cover; }
.hero-bg .bg-img { background-size: cover; background-position: center; }
.hero-grad { background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    linear-gradient(125deg, var(--dark) 0%, var(--brand-deep) 45%, var(--brand) 100%); }
.hero-stripes { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); }
.hero.is-light .hero-stripes { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--brand) 6%, transparent) 0 2px, transparent 2px 14px); }
.hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,calc(var(--overlay) + .15)) 0%, rgba(0,0,0,var(--overlay)) 55%, rgba(0,0,0,calc(var(--overlay) - .2)) 100%); }
.hero--center .hero-overlay { background: rgba(0,0,0,var(--overlay)); }
.hero-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--dark) 55%, transparent)); }
canvas.hero-particles { pointer-events: none; }

/* স্লাইডশো (পটভূমি ও ফ্রেম দুটোতেই) */
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides img.active { opacity: 1; }

/* এফেক্ট */
.fx-gradient_shift .hero-grad { background: linear-gradient(120deg, var(--dark), var(--brand-deep), var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent)), var(--brand-deep), var(--dark)); background-size: 400% 400%; animation: gradShift 16s ease infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.fx-stripes .hero-stripes { animation: stripes 2.4s linear infinite; background-size: 200% 200%; }
@keyframes stripes { to { background-position: 28px 0; } }
.fx-kenburns .bg-img, .fx-kenburns .hero-slides img.active { animation: kenburns 16s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }

/* লেখা */
.hero .where { display: inline-flex; gap: .45rem; align-items: center; font-size: .95rem; padding: .35rem .9rem; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.hero .name { font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: 1.05; margin: 1rem 0 .5rem; letter-spacing: -.01em; }
.hero.is-dark .name { text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .post { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; opacity: .95; }
.hero .tagline { font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .88; max-width: 34em; margin: .6rem 0 1.6rem; min-height: 1.7em; }
.hero--center .hero-copy { text-align: center; margin-inline: auto; max-width: 860px; }
.hero--center .tagline { margin-inline: auto; }
.hero--center .hero-actions, .hero--center .hero-meta { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tw-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 3px; vertical-align: -.15em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* প্রবেশ এনিমেশন — একবারই, পাতা লোড হলে */
.anim-fade .ha { opacity: 0; transform: translateY(18px); animation: heroIn .75s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.anim-fade .frame-wrap.ha { transform: scale(.94); animation-name: heroFrameIn; animation-duration: 1s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroFrameIn { to { opacity: 1; transform: none; } }

/* ফ্রেম */
.frame-wrap { position: relative; width: min(100%, 420px); margin-inline: auto; }
.frame { position: relative; overflow: hidden; aspect-ratio: 4/5; background: color-mix(in srgb, var(--accent) 25%, var(--brand)); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.hero.is-light .frame { background: var(--brand); }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame--arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.frame--circle { border-radius: 50%; aspect-ratio: 1; }
.frame--rounded { border-radius: var(--r-lg); }
.frame--blob { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; aspect-ratio: 1; }
.anim-blob .frame--blob { animation: blob 14s ease-in-out infinite; }
@keyframes blob { 50% { border-radius: 58% 42% 38% 62% / 55% 61% 39% 45%; } }
.frame-wrap.shape-arch::before { content: ''; position: absolute; inset: -14px -14px auto auto; width: 70%; height: 70%; border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 999px 999px 0 0; z-index: -1; }
.frame-wrap.shape-circle::before, .frame-wrap.shape-blob::before { content: ''; position: absolute; inset: -16px; border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 50%; z-index: -1; }
.hero--center .frame-wrap { width: 210px; }
.hero--center .frame { aspect-ratio: 1; }
.hero--center .frame--arch { border-radius: 50%; }
.hero--center .frame-wrap::before { display: none; }

/* ভোটের সিল */
.seal { position: absolute; left: -26px; bottom: 34px; width: 148px; height: 148px; z-index: 3; }
.seal .ring { position: absolute; inset: 0; }
.seal.spin .ring { animation: spin 26s linear infinite; }
.seal .ring text { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; fill: var(--on-accent); font-family: var(--font-body); }
.seal .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 16px 34px -10px rgba(0,0,0,.45); }
.seal .core { position: absolute; inset: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 2px dashed color-mix(in srgb, var(--on-accent) 35%, transparent); }
.seal .core img { width: 70%; height: 70%; object-fit: contain; }
.seal .core span { font-weight: 700; color: #1b1b1b; font-size: .95rem; text-align: center; line-height: 1.1; }
.seal--static { position: relative; left: auto; bottom: auto; }
.seal--lg { width: 220px; height: 220px; }
.seal--lg .core { inset: 44px; }
.seal--lg .ring text { font-size: 11px; }
.hero--center .seal { position: relative; left: auto; bottom: auto; width: 120px; height: 120px; }
.hero--center .seal .core { inset: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ভিডিও চালু/বন্ধ বাটন */
.hero-play { position: absolute; z-index: 5; left: 18px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero-play:hover { background: rgba(0,0,0,.55); }
.frame .hero-play { bottom: 14px; left: auto; right: 14px; }

/* কাউন্টডাউন — ব্যালট স্ট্রিপ */
.ballot { display: inline-flex; border-radius: var(--r); overflow: hidden; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }
.ballot .cap { padding: .55rem .9rem; font-size: .82rem; line-height: 1.3; max-width: 7.5em; display: flex; align-items: center; background: color-mix(in srgb, currentColor 10%, transparent); }
.ballot .u { padding: .45rem .85rem; text-align: center; min-width: 64px; border-left: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.ballot b { display: block; font-size: 1.65rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ballot small { font-size: .78rem; opacity: .8; }
.symbol-chip { display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1rem .45rem .45rem; border-radius: var(--r); background: #fff; color: #1b1b1b; }
.symbol-chip img { height: 46px; width: 46px; object-fit: contain; }
.symbol-chip small { display: block; color: #666; font-size: .78rem; line-height: 1.2; }
.symbol-chip strong { font-size: 1.15rem; }

/* ---------- পরিসংখ্যান ---------- */
.stats-band { position: relative; z-index: 4; margin-top: calc(-1 * clamp(36px, 5vw, 56px)); }
.stats-band .inner { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat { padding: clamp(18px, 3vw, 30px) 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .n { font-family: var(--font-head); font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
html[data-bs-theme="dark"] .stat .n { color: color-mix(in srgb, var(--brand) 50%, white); }
.stat .l { color: var(--muted); margin-top: .35rem; }
@media (max-width: 767px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }
.stats-plain { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); }

/* ---------- ইশতেহার গ্রিড (কার্ড নয়, রেখা দিয়ে ভাগ) ---------- */
.pledges { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.pledge { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; }
.pledge .ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--soft-2); color: var(--brand); font-size: 1.5rem; margin-bottom: 1rem; }
.sec-brand .pledge .ic, .sec-dark .pledge .ic { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.pledge h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.pledge p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- কর্মসূচি তালিকা ---------- */
.agenda { list-style: none; padding: 0; margin: 0; }
.agenda li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.agenda li:first-child { padding-top: 0; }
.agenda .date { flex: 0 0 64px; text-align: center; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand); padding: 8px 4px; align-self: flex-start; }
.agenda .date b { display: block; font-size: 1.5rem; line-height: 1; font-family: var(--font-head); }
.agenda .date small { font-size: .78rem; }
.agenda h4 { font-size: 1.06rem; margin: 0 0 .2rem; }
.agenda .meta { font-size: .9rem; color: var(--muted); }

/* ---------- সংবাদ: ফিচার + তালিকা ---------- */
.feature-post { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; background: var(--dark); }
.feature-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-post::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.82)); }
.feature-post .body { position: relative; z-index: 2; padding: clamp(20px, 3vw, 32px); }
.feature-post h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: .5rem 0 0; }
.feature-post a { color: #fff !important; text-decoration: none; }
.post-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.post-row:hover h4 { color: var(--brand); }
.post-row img, .post-row .ph { width: 110px; height: 80px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; background: var(--soft); }
.post-row h4 { font-size: 1.02rem; margin: 0 0 .25rem; transition: color .15s; }

/* ---------- গ্যালারি মোজাইক ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 220px); grid-auto-flow: dense; gap: 10px; }
.mosaic a { display: block; border-radius: var(--r-sm); overflow: hidden; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(6) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic a:hover img { transform: scale(1.05); }
@media (max-width: 767px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; } .mosaic a:nth-child(6) { grid-column: auto; } }

/* ---------- মতামত: আনুভূমিক স্ক্রল ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.quote { scroll-snap-align: start; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.quote p { font-size: 1.06rem; flex: 1; }
.quote .mark { font-family: Georgia, serif; font-size: 3.2rem; line-height: .6; color: var(--accent); height: 26px; }
.quote .who { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.quote .who img, .quote .who .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--soft-2); display: grid; place-items: center; color: var(--brand); }

/* ---------- ইউনিয়ন বার ---------- */
.union-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) 3fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.union-row .bar { height: 10px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.union-row .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; }
.union-row .v { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 575px) { .union-row { grid-template-columns: 1fr auto; } .union-row .bar { grid-column: 1 / -1; order: 3; } }

/* ---------- CTA ---------- */
.cta-band { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center; }
.cta-band .seal { position: relative; left: auto; bottom: auto; }
@media (max-width: 991px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band .seal { margin: 0 auto; } }

/* ---------- ভেতরের পাতার হেডার ---------- */
.page-hero { background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    linear-gradient(125deg, var(--dark), var(--brand)); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .4rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8) !important; text-decoration: none; }
.page-hero .breadcrumb-item.active { color: #fff; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-soft { background: var(--soft); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--accent); border-radius: 4px; margin: 12px auto 0; }

/* ---------- ফুটার ---------- */
.site-footer { background: var(--dark); color: color-mix(in srgb, white 70%, var(--dark)); }
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: color-mix(in srgb, white 88%, var(--dark)); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .bigname { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,.12); opacity: 1; }
.socials a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.socials a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.float-btn { position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff !important; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); }
.float-btn:hover { transform: scale(1.06); }

.pagination { --bs-pagination-color: var(--brand); --bs-pagination-bg: var(--surface); --bs-pagination-border-color: var(--border); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-active-color: var(--on-brand); --bs-pagination-hover-bg: var(--soft-2); --bs-pagination-hover-color: var(--brand); }
.accordion { --bs-accordion-bg: var(--surface); --bs-accordion-color: var(--text); --bs-accordion-border-color: var(--border); --bs-accordion-btn-color: var(--text); --bs-accordion-active-bg: var(--soft); --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: none; }
.alert-success { border-radius: var(--r); }
.progress { background: var(--soft-2); }

@media (max-width: 991px) {
    .hero .frame-wrap { width: min(64%, 260px); margin-bottom: 8px; }
    .seal { width: 112px; height: 112px; left: -12px; bottom: 18px; }
    .seal--lg { width: 150px; height: 150px; left: auto; bottom: auto; }
    .seal--lg .core { inset: 30px; }
    .hero-play { bottom: 20px; }
    .seal .core { inset: 22px; }
    .seal .ring text { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .anim-fade .ha { opacity: 1 !important; transform: none !important; }
}

/* মেনু এক লাইনে রাখা */
.site-nav .nav-link, .site-nav .btn { white-space: nowrap; }
@media (max-width: 1199px) { .site-nav .nav-link.active::after { display: none; } .site-nav .navbar-collapse { max-height: 75vh; overflow-y: auto; } }
@media (min-width: 1200px) and (max-width: 1439px) {
    .site-nav .nav-link { padding: .45rem .5rem !important; font-size: .95rem; }
    .site-nav .brand-sub { display: none; }
}
