/* =========================================================
   eClassBD Khata — মূল স্টাইল
   রং বদলাতে: Appearance → Customize → eClassBD সেটিংস → রং
   ========================================================= */

/* ---------- টোকেন ---------- */
:root {
	--ec-primary: #0F7B57;
	--ec-accent: #F2B33D;
	--ec-ink: #14213D;
	--ec-live: #D63B3B;
	--ec-blue: #2F6FB5;
	--ec-clay: #C2552B;
	--ec-sand: #DDD5C6;
	--ec-wood: #8A5A35;

	--bg: #F6F2EA;
	--surface: #FCFAF6;
	--surface-2: #EFE9DD;
	--text: var(--ec-ink);
	--muted: #4B556E;
	--line: color-mix(in srgb, var(--ec-ink) 85%, transparent);
	--line-soft: color-mix(in srgb, var(--ec-ink) 14%, transparent);
	--on-primary: #FFFFFF;
	--on-accent: var(--ec-ink);
	--dark-band: var(--ec-ink);
	--on-dark: #F6F2EA;

	--font-disp: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
	--font-body: "Hind Siliguri", "Anek Bangla", system-ui, sans-serif;
	--font-hand: "Galada", "Anek Bangla", cursive;

	--radius: 6px;
	--radius-lg: 18px;
	--container: 1280px;
	--gutter: 16px;
	--header-h: 68px;
}

:root[data-theme="dark"] {
	--bg: #0E1628;
	--surface: #16213A;
	--surface-2: #121C32;
	--text: #F2EEE6;
	--muted: #AEB5C6;
	--line: rgba(242, 238, 230, .55);
	--line-soft: rgba(242, 238, 230, .14);
	--dark-band: #070D1C;
	--on-dark: #F2EEE6;
	--ec-sand: #3A4560;
}

/* ---------- বেস ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ec-primary); }
h1, h2, h3, h4 { font-family: var(--font-disp); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 2px; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--ec-accent); color: var(--ec-ink); padding: 8px 14px; border-radius: 99px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.hand { font-family: var(--font-hand); font-weight: 400; }
.hand--primary { color: var(--ec-primary); font-size: 1.4rem; margin: 0; }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--ec-primary); margin: 0 0 4px; letter-spacing: .02em; }

/* ---------- বাটন ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--font-disp); font-weight: 700; font-size: 16px; line-height: 1.3;
	text-decoration: none; white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 7px 16px; font-size: 15px; }
.btn--lg { padding: 13px 26px; font-size: 17px; }
.btn--primary { background: var(--ec-primary); color: var(--on-primary); }
.btn--primary:hover { color: var(--on-primary); box-shadow: 0 4px 0 color-mix(in srgb, var(--ec-primary) 55%, #000); }
.btn--accent { background: var(--ec-accent); color: var(--on-accent); }
.btn--accent:hover { color: var(--on-accent); }
.btn--ink { background: var(--text); color: var(--bg); }
.btn--ink:hover { color: var(--bg); background: var(--ec-primary); }
.btn--outline { border-color: var(--line); color: var(--text); border-radius: var(--radius); background: transparent; }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: inherit; position: relative; }
.icon-btn:hover { background: var(--line-soft); color: inherit; }
.round-btn {
	display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px;
	border: 1.5px solid var(--line); background: var(--surface); color: var(--text); transition: background .15s, color .15s;
}
.round-btn:hover { background: var(--text); color: var(--bg); }

/* ---------- পিল ও ব্যাজ ---------- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 4px; font-family: var(--font-disp); font-weight: 700; font-size: 14px; line-height: 1.4; }
.pill--primary { background: var(--ec-primary); color: var(--on-primary); }
.pill--accent { background: var(--ec-accent); color: var(--on-accent); }
.pill--ink { background: var(--ec-ink); color: #fff; border-radius: 99px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 4px; font-family: var(--font-disp); font-weight: 700; font-size: 13px; line-height: 1.5; }
.badge--live { background: var(--ec-live); color: #fff; }
.badge--live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; animation: blink 1.4s infinite; }
.badge--primary { background: var(--ec-primary); color: var(--on-primary); }
.badge--accent { background: var(--ec-accent); color: var(--on-accent); }
.badge--ink { background: var(--ec-ink); color: #fff; }
.badge--green { position: static; background: var(--ec-primary); color: var(--on-primary); }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- ঘোষণা বার ---------- */
.announce { background: var(--ec-accent); color: var(--ec-ink); }
.announce__inner { display: flex; align-items: center; gap: 12px; min-height: 46px; padding-block: 6px; }
.announce__text { margin: 0; flex: 1; font-size: 15px; line-height: 1.4; }
.announce__text a { font-weight: 700; margin-left: 6px; white-space: nowrap; }
.announce__text a:hover { color: inherit; }
.announce.is-hidden { display: none; }

/* ---------- হেডার ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line-soft);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-brand img { max-height: 44px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-disp); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.wordmark__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ec-primary); color: #fff; transform: rotate(-6deg); }
.wordmark--light .wordmark__mark { background: var(--ec-ink); }

.header-search { display: none; position: relative; flex: 0 1 260px; }
.header-search input {
	width: 100%; height: 42px; padding: 0 46px 0 18px; border-radius: 999px;
	border: 1px solid var(--line-soft); background: var(--surface);
}
.header-search input::placeholder { color: var(--muted); }
.header-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--ec-primary); color: #fff; display: grid; place-items: center; }

.main-nav { margin-left: auto; }
.nav-menu { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--surface); }
.nav-menu a { display: block; padding: 7px 15px; border-radius: 999px; text-decoration: none; font-family: var(--font-disp); font-weight: 600; font-size: 15.5px; }
.nav-menu a:hover { background: var(--line-soft); color: var(--text); }
.nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { background: var(--text); color: var(--bg); }
.nav-menu .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--ec-primary); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count.is-empty { display: none; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ec-ink); color: #fff; font-family: var(--font-disp); font-weight: 700; text-decoration: none; }
:root[data-theme="dark"] .avatar { background: var(--ec-primary); }
.avatar:hover { color: #fff; }

.theme-toggle { width: 54px; height: 30px; border-radius: 99px; border: 1px solid var(--line-soft); background: var(--surface-2); padding: 3px; }
.theme-toggle__knob { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ec-accent); color: var(--ec-ink); transition: transform .2s ease; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle__knob { transform: translateX(24px); background: var(--ec-primary); color: #fff; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 1023px) {
	.login-btn { display: none; }
	.header-actions { margin-left: auto; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 20px; display: none;
	}
	.nav-open .main-nav { display: block; }
	.nav-menu { flex-direction: column; border-radius: var(--radius-lg); }
	.nav-menu a { padding: 12px 16px; font-size: 17px; }
	.nav-menu .sub-menu { display: block; list-style: none; padding-left: 14px; margin: 0; }
}
@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.nav-menu li { position: relative; }
	.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu {
		display: block; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 6px 0 0; padding: 6px;
		background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.1);
	}
}
@media (min-width: 1200px) { .header-search { display: block; } }

/* ---------- সেকশন ---------- */
.section { padding-block: 56px; border-bottom: 1px solid var(--line); }
.section--tight { padding-block: 32px; }
.section--paper { background: var(--surface-2); }
@media (min-width: 1024px) { .section { padding-block: 80px; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section-head__text { max-width: 720px; }
.dash { display: block; width: 32px; height: 3px; background: var(--ec-primary); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.section-sub { color: var(--muted); margin: 0; font-size: 17px; }

/* ---------- হিরো ---------- */
.hero { padding-block: 48px 64px; position: relative; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.15fr 1fr; } .hero { padding-block: 72px 96px; } }
.hero__title { font-size: clamp(34px, 6vw, 62px); line-height: 1.18; margin: 18px 0 18px; }
.scribble { position: relative; display: inline-block; font-family: var(--font-hand); font-weight: 400; color: var(--ec-primary); padding-bottom: 6px; }
.scribble::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 12px;
	background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c30-6 60-6 90-3s70 4 106-3' fill='none' stroke='%23F2B33D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.hero__sub { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero__words { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 22px; color: var(--ec-primary); margin: 0 0 26px; }
.hero__stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 15px; color: var(--muted); }
.hero__stats li + li::before { content: "·"; margin: 0 10px; color: var(--line); }
.hero__stats strong { color: var(--text); }
.hero__art { position: relative; }
.hero__img { width: 100%; border-radius: var(--radius-lg); }
.hero__caption { text-align: center; color: var(--muted); font-size: 20px; margin: 18px 0 0; }

/* হিরোর খাতা-ইলাস্ট্রেশন */
.khata-art { position: relative; max-width: 520px; margin-inline: auto; padding: 24px 8px 40px; }
.khata-page {
	position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 18px;
	box-shadow: 8px 8px 0 var(--ec-primary); transform: rotate(-1.5deg);
	background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line-soft) 31px 32px);
}
.khata-page__head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.khata-page .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-soft); }
.khata-page .dot:first-child { background: var(--ec-live); }
.khata-page .dot:nth-child(2) { background: var(--ec-accent); }
.khata-page .dot:nth-child(3) { background: var(--ec-primary); }
.khata-page__label { margin-left: auto; font-family: var(--font-disp); font-weight: 700; font-size: 14px; color: var(--muted); }
.khata-page__video { position: relative; aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, var(--ec-ink), color-mix(in srgb, var(--ec-ink) 70%, var(--ec-primary))); display: grid; place-items: center; overflow: hidden; }
.khata-page__bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); }
.khata-page__bar span { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--ec-accent); }
.play-btn { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--ec-accent); color: var(--ec-ink); box-shadow: 0 0 0 8px rgba(242,179,61,.25); }
.khata-page__lessons { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-disp); font-weight: 600; font-size: 15px; }
.khata-page__lessons li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.khata-page__lessons li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-soft); flex: none; }
.khata-page__lessons .done > span { background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }
.khata-page__lessons .done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-soft); }
.khata-page__lessons .now { background: color-mix(in srgb, var(--ec-accent) 28%, var(--surface)); }
.khata-page__lessons .now > span { background: var(--ec-ink); color: #fff; border-color: var(--ec-ink); }
.khata-note {
	position: absolute; right: -6px; top: -4px; width: 150px; padding: 22px 14px 14px; background: var(--ec-accent); color: var(--ec-ink);
	transform: rotate(5deg); box-shadow: 0 8px 18px rgba(0,0,0,.12); font-size: 19px; line-height: 1.3; text-align: center;
}
.khata-cert {
	position: absolute; left: -4px; bottom: 6px; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
	background: var(--ec-ink); color: #fff; font-family: var(--font-disp); font-weight: 700; font-size: 14px; transform: rotate(-3deg);
}
:root[data-theme="dark"] .khata-cert { background: var(--ec-primary); }
.khata-cert svg { color: var(--ec-accent); }
@media (min-width: 640px) { .khata-note { right: -30px; } .khata-cert { left: -26px; } }

/* ---------- টিকার ---------- */
.marquee { background: var(--dark-band); color: var(--on-dark); overflow: hidden; border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; gap: 22px; padding-block: 14px; animation: marquee 38s linear infinite; font-family: var(--font-disp); font-weight: 700; font-size: 18px; white-space: nowrap; }
.marquee__sep { color: var(--ec-accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- রিজিউম কার্ড ---------- */
.resume-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.resume-card > div { flex: 1 1 320px; }
.resume-card__title { font-size: 22px; margin: 0 0 12px; }
.progress { height: 8px; border-radius: 9px; background: var(--line-soft); overflow: hidden; max-width: 460px; }
.progress span { display: block; height: 100%; background: var(--ec-primary); border-radius: inherit; }
.resume-card__pct { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* ---------- রিভিউ ---------- */
.review-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { margin: 0; display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: 0 2px 0 var(--line-soft); }
.review-card__quote { font-family: Georgia, serif; font-size: 60px; line-height: .6; color: var(--ec-primary); height: 26px; }
.review-card blockquote { margin: 10px 0 18px; flex: 1; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-soft); }
.review-card figcaption img { border-radius: 50%; }
.review-card figcaption span { display: grid; line-height: 1.35; }
.review-card small { color: var(--ec-primary); font-weight: 600; }

/* ---------- কোর্স কার্ড ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card__thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); background: repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--bg) 12px 24px); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card__title { font-size: 18px; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { text-decoration: none; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.card__meta span + span::before { content: "·"; margin-right: 12px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-disp); }
.price strong { font-size: 22px; font-weight: 800; }
.price del { color: var(--muted); font-size: 15px; margin-left: 6px; }

/* স্লাইডার */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
@media (min-width: 560px) { .slider__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 1024px) { .slider__track { grid-auto-columns: calc((100% - 60px) / 4); } }
.slider__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---------- ফিচার্ড ব্যানার ---------- */
.feature-banner {
	display: grid; gap: 32px; align-items: center; padding: 32px 24px; border-radius: 24px;
	background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--ec-primary) 35%, var(--ec-ink)) 0%, var(--ec-ink) 60%);
	color: var(--on-dark);
}
:root[data-theme="dark"] .feature-banner { border: 1px solid var(--line-soft); }
@media (min-width: 900px) { .feature-banner { grid-template-columns: 1.1fr 1fr; padding: 48px; } }
.feature-banner h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; color: #fff; }
.feature-banner p { color: rgba(242,238,230,.8); }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist svg { flex: none; color: var(--ec-accent); }
.feature-banner__price .price strong { color: #fff; }
.feature-banner__price .price del { color: rgba(242,238,230,.6); }
.feature-banner__media { position: relative; display: grid; place-items: center; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); }
.feature-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-banner__media .play-btn { position: relative; }

/* ---------- ক্যাটাগরি কার্ড ---------- */
.cat-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.cat-grid > * { scroll-snap-align: start; }
@media (min-width: 640px) { .cat-grid { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .cat-grid { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.cat-card {
	position: relative; display: flex; flex-direction: column; min-height: 340px; padding: 22px; border-radius: var(--radius-lg);
	text-decoration: none; overflow: hidden; transition: transform .18s ease;
}
.cat-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.cat-card--1 { background: var(--ec-primary); color: #fff; }
.cat-card--2 { background: var(--ec-blue); color: #fff; }
.cat-card--3 { background: var(--ec-clay); color: #fff; }
.cat-card--4 { background: var(--ec-accent); color: var(--ec-ink); }
.cat-card--5 { background: var(--ec-sand); color: var(--text); }
.cat-card:hover { color: inherit; }
.cat-card--1:hover, .cat-card--2:hover, .cat-card--3:hover { color: #fff; }
.cat-card__letter { font-family: var(--font-disp); font-weight: 800; font-size: 96px; line-height: 1; opacity: .9; margin-bottom: 18px; }
.cat-card__title { font-family: var(--font-disp); font-weight: 800; font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.cat-card__desc { font-size: 15px; opacity: .88; line-height: 1.5; }
.cat-card__go { margin-top: auto; align-self: flex-end; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 20px; }

/* ---------- অ্যাপ প্রোমো ---------- */
.app-promo { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .app-promo { grid-template-columns: 300px 1fr; } }
.sticky-note { position: relative; max-width: 300px; padding: 30px 24px 22px; background: var(--ec-accent); color: var(--ec-ink); transform: rotate(-3deg); box-shadow: 0 14px 28px rgba(0,0,0,.14); }
.sticky-note__tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%) rotate(-4deg); background: color-mix(in srgb, var(--ec-primary) 55%, transparent); }
.sticky-note .hand { font-size: 26px; margin: 0 0 10px; }
.sticky-note ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-hand); font-size: 20px; line-height: 1.8; }
.sticky-note li::before { content: "☐ "; }
.sticky-note li.done::before { content: "☑ "; }
.app-promo__text .section-title { margin-top: 14px; }
.app-promo__text .btn { margin-top: 22px; }

/* ---------- ই-বুক তাক ---------- */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
@media (min-width: 640px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .shelf { grid-template-columns: repeat(6, 1fr); } }
.book { display: flex; flex-direction: column; gap: 6px; }
.book__cover {
	position: relative; display: block; aspect-ratio: 36/52; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--ec-ink);
	box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 10px 0 -2px var(--ec-wood), 0 12px 0 -2px color-mix(in srgb, var(--ec-wood) 70%, #000);
	margin-bottom: 14px; transition: transform .18s ease;
}
.book__cover:hover { transform: translateY(-4px); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover .badge { left: auto; right: 8px; top: 8px; }
.book__placeholder { display: grid; place-items: center; height: 100%; padding: 14px; color: #fff; text-align: center; font-family: var(--font-disp); font-weight: 700; }
.book__title { font-size: 16px; line-height: 1.35; margin: 0; }
.book__title a { text-decoration: none; }
.book__access { font-size: 13px; color: var(--ec-primary); font-weight: 600; margin: 0; }
.book .price strong { font-size: 18px; }
.book .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- বান্ডেল ---------- */
.bundle-row { display: grid; gap: 18px; align-items: center; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 760px) { .bundle-row { grid-template-columns: 220px 1fr auto; } }
.bundle-row__thumb img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.bundle-row h3 { font-size: 22px; margin: 8px 0 4px; }
.bundle-row h3 a { text-decoration: none; }

/* ---------- শেষ CTA ---------- */
.cta-khata {
	background-color: var(--bg);
	background-image:
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 28px 28px;
}
.cta-khata__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .cta-khata__inner { grid-template-columns: 1fr 1.4fr; } }
.cta-khata__doodle { position: relative; height: 220px; max-width: 360px; width: 100%; margin-inline: auto; }
.doodle { position: absolute; display: grid; place-items: center; border-radius: 14px; }
.doodle--slate { left: 0; top: 20px; width: 210px; height: 140px; background: #22313F; color: #F2EEE6; font-family: var(--font-hand); font-size: 30px; border: 10px solid var(--ec-wood); transform: rotate(-5deg); }
.doodle--book { right: 20px; top: 0; width: 96px; height: 96px; background: var(--ec-primary); color: #fff; transform: rotate(8deg); }
.doodle--check { right: 50px; bottom: 6px; width: 76px; height: 76px; border-radius: 50%; background: var(--ec-accent); color: var(--ec-ink); }
.cta-khata__text h2 { font-size: clamp(30px, 4.4vw, 50px); }
.cta-khata__text p { font-size: 19px; color: var(--muted); max-width: 560px; }

/* ---------- ফুটার ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr; padding-inline: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.footer-cell { padding: 28px var(--gutter); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) {
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-cell:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (min-width: 1100px) {
	.footer-grid { display: flex; }
	.footer-cell { flex: 1 1 0; min-width: 0; border-right: 1px solid var(--line); border-bottom: 0; }
	.footer-cell:nth-child(odd) { border-right: 1px solid var(--line); }
	.footer-cell--slogan, .footer-cell--brand { flex-grow: 1.4; }
	.footer-cell:last-child { border-right: 0; }
}
.footer-cell--slogan .footer-slogan { font-family: var(--font-disp); font-weight: 800; font-size: 26px; line-height: 1.25; margin: 6px 0 0; }
.footer-cell--brand { background: var(--ec-primary); color: #fff; }
.footer-cell--brand a { color: #fff; }
.footer-cell--brand p { opacity: .9; font-size: 15px; margin: 14px 0; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); }
.socials a:hover { background: #fff; color: var(--ec-primary); }
.footer-cell--brand .btn--ink { background: var(--ec-ink); color: #fff; }
.footer-title { font-size: 17px; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ec-primary); }
.footer-phone { display: block; font-family: var(--font-disp); font-weight: 800; font-size: 24px; color: var(--ec-primary); text-decoration: none; margin-bottom: 8px; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-meta p { margin: 0; }
.payments { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pay-chip { padding: 3px 10px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--surface); font-weight: 600; color: var(--text); }
.footer-bar { background: var(--dark-band); color: var(--on-dark); font-size: 14px; }
.footer-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 14px; }
.footer-bar p { margin: 0; }
.footer-bar .hand { color: var(--ec-accent); font-size: 18px; }

/* ---------- ভাসমান বাটন ---------- */
.to-top, .float-wa { position: fixed; right: 18px; z-index: 60; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.to-top { bottom: 18px; background: var(--ec-ink); color: #fff; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
:root[data-theme="dark"] .to-top { background: var(--ec-primary); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.float-wa { bottom: 76px; background: #25D366; color: #fff; }
.float-wa:hover { color: #fff; }

/* ---------- সাধারণ পেজ ও ব্লগ ---------- */
.page-pad { padding-block: 48px 72px; }
.page-hero { padding-block: 44px 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 12px 0 6px; }
.page-hero p { color: var(--muted); margin: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.entry-content { max-width: 760px; }
.entry-content--wide { max-width: none; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ec-primary); font-size: 19px; }
.entry-content a { color: var(--ec-primary); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line-soft); padding: 10px; text-align: left; }
.post-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card .card__body p { color: var(--muted); font-size: 15.5px; }
.post-card time { font-size: 13px; color: var(--muted); }
.single-thumb { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: 99px; text-decoration: none; background: var(--surface); }
.page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty-state { text-align: center; padding: 60px 0; }
.empty-state .big { font-family: var(--font-disp); font-weight: 800; font-size: clamp(80px, 16vw, 160px); line-height: 1; color: var(--ec-primary); margin: 0; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-soft); background: var(--surface); }
.search-form .search-submit { height: 46px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--ec-primary); color: #fff; font-family: var(--font-disp); font-weight: 700; }

/* মন্তব্য */
.comments-area { max-width: 760px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.comment-form .submit { padding: 11px 22px; border: 0; border-radius: 99px; background: var(--ec-primary); color: #fff; font-family: var(--font-disp); font-weight: 700; }

/* উইজেট */
.widget { margin-bottom: 28px; }
.widget-title { font-size: 18px; }

/* WordPress অ্যালাইনমেন্ট */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }

/* ---------- কম নড়াচড়া ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
