/* =========================================================
   রেহলাতুল আরাবিয়া — বইঘর স্টাইলশিট
   রং বদলাতে চাইলে শুধু :root এর ভেরিয়েবলগুলো বদলান
   ========================================================= */
:root {
  --primary: #0b5d55;
  --primary-dark: #08453f;
  --primary-soft: #e3f0ee;
  --accent: #e3962b;
  --accent-dark: #c47c17;
  --ink: #1d2b2a;
  --muted: #66736f;
  --line: #e4dfd4;
  --bg: #f6f3ec;
  --card: #ffffff;
  --danger: #c0392b;
  --success: #1f8a4c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 36, .05), 0 6px 22px rgba(20, 40, 36, .06);
  --font: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
input, select, textarea, button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- বাটন ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 9px;
       border: 1.5px solid transparent; font-weight: 600; cursor: pointer; transition: .15s; line-height: 1.3; text-align: center; white-space: nowrap; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-lg { padding: 13px 22px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb457; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--primary); cursor: pointer; font-weight: 500; }
.link-btn.danger { color: var(--danger); }
form.inline { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }

/* ---------- ফর্ম ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; font-weight: 400; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[readonly] { background: #f3f1ec; }
.ferr { display: block; color: var(--danger); font-weight: 500; margin-top: 4px; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.gap-lg { gap: 20px; }

.alert { padding: 12px 16px; border-radius: 10px; margin: 14px 0; font-weight: 500; }
.alert-success { background: #e4f4ea; color: #145a33; }
.alert-error { background: #fdeaea; color: #8f1d1d; }
.alert-info { background: #e8f1f8; color: #1d4a6e; }

/* ---------- হেডার ---------- */
.notice-bar { background: var(--primary-dark); color: #d9ebe8; font-size: 13.5px; text-align: center; padding: 6px 0; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "search search"; gap: 10px 16px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 48px; height: 48px; border-radius: 12px; flex: none; object-fit: cover; box-shadow: 0 2px 8px rgba(1,46,49,.25); }
.brand-text b { display: block; font-size: 18px; line-height: 1.2; }
.brand-text small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.search { grid-area: search; position: relative; display: flex; }
.search input { margin: 0 !important; border-radius: 10px 0 0 10px !important; border-right: 0 !important; background: #faf8f4 !important; }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 16px; border-radius: 0 10px 10px 0; cursor: pointer; }
.live-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.14); overflow: hidden; z-index: 60; }
.live-results a { display: flex; gap: 12px; padding: 10px 14px; align-items: center; color: var(--ink); border-bottom: 1px solid #f0ece4; }
.live-results a:hover { background: #faf7f1; }
.live-results img { width: 38px; height: 54px; object-fit: cover; border-radius: 4px; }
.live-results small { color: var(--muted); display: block; }
.live-results .lr-price { margin-left: auto; font-weight: 700; color: var(--primary); }
.live-results .lr-all { justify-content: center; color: var(--primary); font-weight: 600; }
.header-actions { grid-area: actions; display: flex; gap: 4px; justify-content: flex-end; }
.ha { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--ink); font-size: 12px; padding: 4px 8px; border-radius: 8px; }
.ha:hover { background: var(--primary-soft); color: var(--primary); }
.ha svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -2px; right: 2px; background: var(--accent); color: #fff; font-style: normal; font-size: 11px; font-weight: 700;
              min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.cat-nav { border-top: 1px solid #f0ece4; background: #fff; }
.cat-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: 5px 12px; border-radius: 20px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.cat-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.cat-nav a.hot { color: var(--accent-dark); font-weight: 700; }
.cat-nav a.nav-course { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

@media (max-width: 767px) {
  .hide-sm { display: none !important; }
  .ha span { display: none; }
  .brand-text small { display: none; }
}
@media (min-width: 768px) {
  .header-main { grid-template-columns: auto 1fr auto; grid-template-areas: "brand search actions"; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
  .search { max-width: 620px; width: 100%; justify-self: center; }
}
@media (min-width: 1000px) { .hide-lg { display: none !important; } }

.site-main { min-height: 60vh; padding-bottom: 40px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 14px; padding-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); }
.page-title { font-size: 26px; margin: 18px 0 16px; }

/* ---------- হিরো ---------- */
.hero { background: radial-gradient(120% 140% at 85% 10%, #13776d 0%, var(--primary) 45%, var(--primary-dark) 100%); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0l8.8 21.2L60 30l-21.2 8.8L30 60l-8.8-21.2L0 30l21.2-8.8z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.hero-inner { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; position: relative; z-index: 1; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 20px; font-size: 13.5px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 6vw, 50px); margin-bottom: 12px; }
.hero .lead { font-size: 17.5px; color: #d6ebe7; max-width: 540px; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 28px; }
.hero-stats b { display: block; font-size: 24px; color: #ffd28f; }
.hero-stats span { font-size: 13.5px; color: #cfe5e1; }
.hero-books { position: relative; height: 260px; display: none; }
.hb { position: absolute; width: 170px; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.35); transition: transform .3s; }
.hb img { aspect-ratio: 3/4.2; object-fit: cover; width: 100%; }
.hb-0 { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; }
.hb-1 { left: calc(50% - 175px); top: 40px; transform: rotate(-8deg); z-index: 2; }
.hb-2 { left: calc(50% + 5px); top: 40px; transform: rotate(8deg); z-index: 1; }
.hb:hover { transform: translateY(-6px) rotate(0) translateX(0); z-index: 4; }
.hb-0:hover { transform: translateX(-50%) translateY(-6px); }
.hero-arabic { position: absolute; right: 0; bottom: -30px; font-family: 'Amiri', serif; font-size: 120px; color: rgba(255,255,255,.08); line-height: 1; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 64px; }
  .hero-books { display: block; height: 340px; }
  .hb { width: 200px; }
  .hb-1 { left: calc(50% - 210px); } .hb-2 { left: calc(50% + 10px); }
}

/* ---------- ক্যাটাগরি টাইল ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -22px; position: relative; z-index: 2; }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; color: var(--ink); transition: .15s; }
.cat-tile:hover { transform: translateY(-2px); color: var(--primary); }
.ct-icon { grid-row: span 2; font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 10px; }
.ct-name { font-weight: 600; font-size: 15px; line-height: 1.3; align-self: end; }
.cat-tile small { color: var(--muted); font-size: 12.5px; }
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); } }

/* ---------- বইয়ের তাক (হরাইজন্টাল সারি) ---------- */
.shelf { margin-top: 36px; }
.shelf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.shelf-head h2 { font-size: 21px; margin: 0; display: flex; align-items: center; gap: 8px; }
.shelf-head .tag { background: var(--accent); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 5px; }
.see-all { font-weight: 600; font-size: 14.5px; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.shelf-row > * { scroll-snap-align: start; }
@media (min-width: 640px) { .shelf-row { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .shelf-row { grid-auto-columns: calc((100% - 60px) / 6); gap: 12px; } }

/* ---------- বইয়ের কার্ড ---------- */
.book-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.book-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,40,36,.12); }
.bc-cover { position: relative; background: #efeae0; padding: 14px 14px 0; }
.bc-cover img { width: 100%; aspect-ratio: 3/4.2; object-fit: cover; border-radius: 4px 4px 0 0; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.badge-off { position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; z-index: 2; }
.badge-off.big { font-size: 14px; padding: 4px 10px; top: 12px; left: 12px; }
.bc-formats { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.fmt { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.fmt-e { background: #dceee9; color: var(--primary-dark); }
.fmt-p { background: #fbecd4; color: #8a5208; }
.peek { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 6px); opacity: 0; background: rgba(13, 32, 30, .88); color: #fff; border: 0;
        padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; gap: 5px; align-items: center; white-space: nowrap; transition: .2s; }
.book-card:hover .peek, .peek:focus { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .peek { opacity: 1; transform: translate(-50%, 0); font-size: 12px; padding: 5px 10px; } }
.bc-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bc-title { font-size: 15.5px; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-title a { color: var(--ink); }
.bc-author { margin: 0; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-price { display: flex; gap: 8px; align-items: baseline; margin: 2px 0 8px; flex-wrap: wrap; }
.bc-price b { color: var(--primary); font-size: 17px; }
.bc-price s { color: var(--muted); font-size: 13.5px; }
.bc-body .btn { margin-top: auto; }

.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .book-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- ধাপ ---------- */
.steps { display: grid; gap: 12px; margin-top: 36px; }
.step { background: #fff; border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.step > span { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.step p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.empty-state { text-align: center; padding: 50px 16px; background: #fff; border-radius: var(--radius); margin-top: 20px; }
.es-icon { font-size: 48px; }

/* ---------- লিস্টিং পেজ ---------- */
.listing { display: grid; gap: 20px; }
.filters { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); align-self: start; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 18px; }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0; }
.fgroup h4 { font-size: 15px; margin-bottom: 6px; }
.fopt { display: block; padding: 4px 8px; border-radius: 6px; color: var(--ink); font-size: 14.5px; }
.fopt small { color: var(--muted); }
.fopt.on, .fopt:hover { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.price-range { display: flex; gap: 8px; margin-bottom: 8px; }
.price-range input { margin: 0 !important; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h1 { font-size: 24px; margin: 0; }
.results-head p { margin: 0; }
.results-tools { display: flex; gap: 8px; align-items: center; }
.results-tools select { margin: 0; width: auto; padding: 7px 10px; }
@media (max-width: 999px) {
  .filters { position: fixed; inset: 0 20% 0 0; z-index: 100; overflow-y: auto; border-radius: 0; transform: translateX(-105%); transition: transform .25s; }
  .filters.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
}
@media (min-width: 1000px) { .listing { grid-template-columns: 250px 1fr; } .filters { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; } }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination .dots { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; }
.pagination a.active { background: var(--primary); color: #fff; }

.author-head { display: flex; gap: 18px; align-items: center; background: #fff; padding: 18px; border-radius: var(--radius); margin: 10px auto 20px; box-shadow: var(--shadow); }
.author-head img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.author-card { background: #fff; border-radius: var(--radius); padding: 18px 12px; text-align: center; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.author-card img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; }
.author-card small { color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.avatar.xl { width: 86px; height: 86px; font-size: 34px; }

/* ---------- বইয়ের বিস্তারিত পেজ ---------- */
.product { display: grid; gap: 22px; margin-top: 8px; }
.pd-media { max-width: 340px; width: 100%; margin: 0 auto; }
.pd-cover { position: relative; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pd-cover img { width: 100%; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.peek-btn { margin-top: 12px; font-size: 16px; padding: 12px; border-width: 2px; }
.pd-info h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 4px; }
.pd-sub { color: var(--muted); margin: 0 0 8px; font-size: 17px; }
.pd-meta { margin: 0 0 6px; font-size: 15px; }
.pd-rating { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.stars { color: #d6d0c2; letter-spacing: 1px; }
.star.on { color: #f0a92e; }
.owned-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #e4f4ea; padding: 12px 16px; border-radius: 10px; margin: 14px 0; flex-wrap: wrap; }
.buy-box { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-top: 16px; }
.label { font-weight: 600; font-size: 14.5px; margin: 0 0 8px; }
.format-options { display: grid; gap: 10px; }
@media (min-width: 560px) { .format-options { grid-template-columns: 1fr 1fr; } }
.format-opt { margin: 0; cursor: pointer; position: relative; }
.format-opt input { position: absolute; opacity: 0; }
.fo-body { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: .15s; height: 100%; }
.format-opt input:checked + .fo-body { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.format-opt.disabled { opacity: .55; cursor: not-allowed; }
.fo-name { font-weight: 700; font-size: 16px; }
.fo-price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fo-price b { font-size: 21px; color: var(--primary); }
.fo-price s { color: var(--muted); font-size: 14px; font-weight: 400; }
.fo-price em { font-style: normal; color: var(--danger); font-size: 13px; font-weight: 600; }
.fo-body small { color: var(--muted); font-weight: 400; font-size: 13px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.qty-row .label { margin: 0; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.qty button { width: 36px; border: 0; background: #f6f3ec; cursor: pointer; font-size: 18px; }
.qty input { width: 50px !important; text-align: center; border: 0 !important; margin: 0 !important; padding: 6px 0 !important; border-radius: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pd-side .side-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.side-card ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.side-card li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.side-card li:last-child { border: 0; }
@media (min-width: 900px) {
  .product { grid-template-columns: 300px 1fr; }
  .pd-media { margin: 0; }
}
@media (min-width: 1150px) { .product { grid-template-columns: 300px 1fr 260px; } }

.pd-tabs { margin-top: 34px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 16px; font-weight: 600; font-size: 16px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab.on { color: var(--primary); border-color: var(--primary); }
.tab-panel { display: none; background: #fff; padding: 20px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.tab-panel.on { display: block; }
.prose { font-size: 16.5px; line-height: 1.85; }
.spec { width: 100%; border-collapse: collapse; max-width: 640px; }
.spec th, .spec td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; color: var(--muted); font-weight: 500; background: #faf8f4; }
.reviews-summary { display: grid; gap: 20px; margin-bottom: 16px; }
@media (min-width: 700px) { .reviews-summary { grid-template-columns: 200px 1fr; } }
.big-rating { text-align: center; background: #faf8f4; border-radius: 10px; padding: 16px; }
.big-rating b { font-size: 40px; display: block; line-height: 1.1; }
.big-rating small { display: block; color: var(--muted); }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 8px; }
.rate-input input { display: none; }
.rate-input label { font-size: 28px; color: #d6d0c2; cursor: pointer; margin: 0; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: #f0a92e; }
.review-form textarea { margin-bottom: 10px; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review-head small { color: var(--muted); }
.review p { margin: 6px 0 0; }
.sticky-buy { display: none; }
@media (max-width: 767px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 60px; background: #fff; padding: 10px 16px; box-shadow: 0 -4px 20px rgba(0,0,0,.08); justify-content: space-between; align-items: center; z-index: 40; }
  .sticky-buy small { display: block; color: var(--muted); font-size: 12px; line-height: 1; }
  .sticky-buy b { color: var(--primary); font-size: 19px; }
}

/* ---------- কার্ট / চেকআউট ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr 360px; } .summary-card { position: sticky; top: 140px; } }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.cart-item img { width: 70px; aspect-ratio: 3/4.2; object-fit: cover; border-radius: 4px; }
.ci-info { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ci-title { font-weight: 600; color: var(--ink); }
.ci-info small { color: var(--muted); }
.ci-price { color: var(--primary); font-size: 17px; }
.ci-actions { grid-column: 2; display: flex; gap: 16px; align-items: center; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 70px 1fr auto; } .ci-actions { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: center; } }
.cart-list > .btn { align-self: flex-start; }
.summary-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.summary-card h3 { font-size: 19px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; gap: 10px; }
.sum-row.total { border: 0; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.sum-row.total b { color: var(--primary); }
.summary-card .btn { margin-top: 8px; }
.co-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.co-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.co-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 15px; }
.zone-opts, .pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.radio-card, .pay-opt { margin: 0; cursor: pointer; position: relative; }
.radio-card input, .pay-opt input { position: absolute; opacity: 0; }
.radio-card span, .pay-opt span { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 500; height: 100%; }
.radio-card b { display: block; color: var(--primary); }
.radio-card input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.pay-opt span { text-align: center; }
.pay-opt b { display: block; font-size: 18px; }
.pay-opt small { color: var(--muted); font-weight: 400; }
.pay-bkash input:checked + span { border-color: #e2136e; background: #fdeef5; color: #b40e58; }
.pay-nagad input:checked + span { border-color: #f6921e; background: #fff4e8; color: #b9600a; }
.pay-guide { background: #faf8f4; border-radius: 10px; padding: 12px 14px 12px 4px; margin-bottom: 14px; font-size: 15px; }
.pay-guide ol { margin: 0; padding-left: 28px; list-style: bengali; }
.pay-guide li { padding: 3px 0; }
.copy-num { display: inline-flex; gap: 8px; align-items: center; margin-left: 4px; }
.copy-num b { font-size: 19px; letter-spacing: .5px; }
.pay-amount { color: var(--danger); font-size: 18px; }
.mini-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0ece4; }
.mini-item img { width: 44px; aspect-ratio: 3/4.2; object-fit: cover; border-radius: 3px; }
.mini-item b { font-size: 14.5px; display: block; line-height: 1.3; }
.mini-item small { color: var(--muted); }
.mini-item .btn { grid-column: 2 / 4; justify-self: start; }

.success-card { background: #fff; border-radius: 16px; padding: 30px 20px; text-align: center; box-shadow: var(--shadow); margin-top: 30px; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--success); color: #fff; font-size: 38px; display: grid; place-items: center; margin: 0 auto 14px; }
.success-card h1 { font-size: 23px; }
.success-items { text-align: left; max-width: 460px; margin: 18px auto; border-top: 1px solid var(--line); }
.success-items div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.success-actions { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 20px auto 0; }
.success-actions .btn { white-space: normal; }

/* ---------- অ্যাকাউন্ট ---------- */
.auth-wrap { display: grid; place-items: center; padding-top: 30px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 28px 22px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .btn { margin-top: 6px; }
.auth-alt { text-align: center; margin: 14px 0 0; }
.account { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .account { grid-template-columns: 260px 1fr; } }
.acc-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; align-self: start; }
.acc-user { display: flex; gap: 10px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.acc-user small { display: block; color: var(--muted); font-size: 13px; word-break: break-all; }
.acc-side nav { display: flex; flex-direction: column; }
.acc-side nav a { padding: 9px 10px; border-radius: 8px; color: var(--ink); display: flex; justify-content: space-between; }
.acc-side nav a em { font-style: normal; color: var(--muted); font-size: 14px; }
.acc-side nav a.on, .acc-side nav a:hover { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 899px) { .acc-side nav { flex-direction: row; overflow-x: auto; gap: 4px; } .acc-side nav a { white-space: nowrap; gap: 6px; } }
.acc-main .page-title { margin-top: 0; }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; background: #fff; padding: 14px 16px; border-radius: 10px; box-shadow: var(--shadow); color: var(--ink); align-items: center; }
.order-row small { display: block; color: var(--muted); }
.order-row > b:last-child { grid-column: 2; text-align: right; }
@media (min-width: 640px) { .order-row { grid-template-columns: 1fr auto 110px; } .order-row > b:last-child { grid-column: auto; } }
.status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; background: #eee; white-space: nowrap; }
.s-pending { background: #fff3d9; color: #8a5a00; }
.s-paid, .s-processing { background: #e1eefb; color: #1d4e85; }
.s-shipped { background: #ece4fb; color: #5a2d99; }
.s-completed { background: #e1f3e7; color: #17643a; }
.s-cancelled { background: #fbe3e3; color: #8f1d1d; }
.order-detail { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.od-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.od-head h2 { margin: 0; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 600; }
.track { list-style: none; display: flex; padding: 0; margin: 18px 0; counter-reset: s; }
.track li { flex: 1; text-align: center; font-size: 13px; color: var(--muted); position: relative; padding-top: 30px; counter-increment: s; }
.track li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #e7e2d7; color: #fff; display: grid; place-items: center; font-size: 12px; z-index: 1; }
.track li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: #e7e2d7; }
.track li:first-child::after { display: none; }
.track li.done { color: var(--success); font-weight: 600; }
.track li.done::before, .track li.done::after { background: var(--success); }
.od-items { margin: 14px 0; }

/* ---------- লাইব্রেরি ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .lib-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .lib-grid { grid-template-columns: repeat(5, 1fr); } }
.lib-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.lib-cover { background: #efeae0; padding: 14px 14px 0; }
.lib-cover img { aspect-ratio: 3/4.2; object-fit: cover; width: 100%; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.lib-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lib-body h3 { font-size: 15px; margin: 0; }
.lib-body .btn { margin-top: auto; }
.progress { height: 6px; background: #ece7dc; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.progress span { display: block; height: 100%; background: var(--accent); }

/* ---------- ফুটার ---------- */
.site-footer { background: #10302d; color: #b9cfcb; padding-top: 40px; margin-top: 40px; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.site-footer h4 { color: #fff; font-size: 16px; }
.site-footer a { display: block; color: #b9cfcb; padding: 3px 0; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.brand-light { color: #fff !important; display: flex !important; }
.brand-light small { color: #9fbab5 !important; display: block !important; }
.muted-light { color: #9fbab5; font-size: 14.5px; }
.socials { display: flex; gap: 14px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; flex-wrap: wrap; gap: 10px; }
.pay-badges { display: flex; gap: 6px; }
.pay-badges b { padding: 2px 10px; border-radius: 4px; font-size: 13px; color: #fff; }
.pay-badges .bkash { background: #e2136e; } .pay-badges .nagad { background: #f6921e; }

.bottom-nav { display: none; }
.wa-float { position: fixed; right: 16px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 45; }
@media (max-width: 767px) {
  body { padding-bottom: 62px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 55; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; color: var(--ink); padding: 7px 0 6px; position: relative; }
  .bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .bottom-nav em { position: absolute; top: 2px; left: 55%; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; }
  .wa-float { bottom: 76px; width: 46px; height: 46px; }
  body:has(.sticky-buy) .wa-float { bottom: 132px; }
}

/* ---------- নমুনা রিডার মোডাল ---------- */
.reader-modal { position: fixed; inset: 0; background: rgba(10, 22, 21, .82); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 0; }
.reader-shell { background: #f4f1ea; width: 100%; max-width: 860px; height: 100%; display: flex; flex-direction: column; }
@media (min-width: 768px) { .reader-modal { padding: 24px; } .reader-shell { height: 100%; border-radius: 14px; overflow: hidden; } }
.reader-top, .reader-bottom { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; }
.reader-top { border-bottom: 1px solid var(--line); }
.reader-title { flex: 1; min-width: 0; }
.reader-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-title small { color: var(--accent-dark); font-weight: 600; }
.reader-tools { display: flex; gap: 6px; }
.reader-tools button, .reader-bottom button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; min-width: 38px; height: 38px; cursor: pointer; font-size: 17px; font-weight: 600; padding: 0 10px; }
.reader-close { background: var(--ink) !important; color: #fff; border-color: var(--ink) !important; }
.reader-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.reader-body canvas { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.15); max-width: none; }
.reader-loading { margin: auto; color: var(--muted); }
.reader-bottom { border-top: 1px solid var(--line); justify-content: space-between; flex-wrap: wrap; }
.reader-bottom span { font-weight: 600; font-size: 14px; }
.reader-end { text-align: center; background: #fff; padding: 22px; border-radius: 12px; max-width: 420px; }
.reader-end b { display: block; font-size: 18px; margin-bottom: 6px; }

@media print { body { display: none; } }

/* ---------- গুগল লগইন ও ফর্ম সহায়িকা ---------- */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1.5px solid #dadce0; border-radius: 10px;
              background: #fff; color: #1f1f1f; font-weight: 600; font-size: 16px; transition: .15s; text-align: center; }
.btn-google:hover { background: #f7f8fa; border-color: #c4c7cc; color: #1f1f1f; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn-google svg { flex: none; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 18px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 70px !important; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 2px; border: 0; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.hint { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; margin-top: 5px; line-height: 1.5; }
.hint-box { background: #fff8e9; border: 1px solid #f2dfb6; color: #6b4a0c; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; }
.auth-switch { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; text-align: center; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14.5px; }
.auth-card form .btn { margin-top: 4px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- চেকআউট সংযোজন ---------- */
.checkout-steps { list-style: none; display: flex; padding: 0; margin: 14px 0 20px; gap: 6px; counter-reset: cs; max-width: 520px; }
.checkout-steps li { flex: 1; text-align: center; font-size: 13.5px; color: var(--muted); padding-bottom: 8px; border-bottom: 3px solid var(--line); counter-increment: cs; }
.checkout-steps li::before { content: counter(cs, bengali) ". "; }
.checkout-steps li.done { color: var(--success); border-color: var(--success); }
.checkout-steps li.on { color: var(--primary); border-color: var(--primary); font-weight: 700; }
.autofill-note { background: #e9f6ef; color: #17643a; border-radius: 9px; padding: 9px 12px; font-size: 14px; margin-bottom: 14px; }
.ebook-note { background: #fff; border-left: 4px solid var(--primary); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); font-size: 15px; }
.coupon-box { display: flex; gap: 8px; margin: 12px 0 6px; }
.coupon-box input { margin: 0 !important; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; width: 100%; background: #fff6e4; border: 1px dashed var(--accent); border-radius: 9px; padding: 8px 12px; }
.sum-row.discount b { color: var(--success); }
.free-bar { background: #fff8e9; border-radius: 9px; padding: 8px 10px; margin: 8px 0; }
.free-bar .progress { margin-top: 6px; }

/* ---------- ব্যানার স্লাইডার ---------- */
.banner-slider { position: relative; margin-top: 16px; }
.banner-slider .slide { display: none; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.banner-slider .slide.on { display: block; animation: fadein .5s; }
.banner-slider img { width: 100%; aspect-ratio: 16/5; object-fit: cover; height: auto; }
@keyframes fadein { from { opacity: .3; } to { opacity: 1; } }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 24px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.slide-arrow.prev { left: 28px; } .slide-arrow.next { right: 28px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; transition: .2s; }
.slider-dots button.on { width: 24px; background: #fff; }
@media (max-width: 640px) { .slide-arrow { display: none; } .banner-slider .slide { border-radius: 10px; } }
.cat-tiles.no-overlap { margin-top: 18px; }

/* ---------- আস্থার স্ট্রিপ ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.trust > div { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.trust span { grid-row: span 2; font-size: 24px; }
.trust b { font-size: 15px; line-height: 1.3; }
.trust small { color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   কোর্স
   ========================================================= */
.fmt-c { background: #e6e2f7; color: #4a3a8a; }
.video-box { position: relative; aspect-ratio: 16/9; background: #0d1716; border-radius: 12px; overflow: hidden; width: 100%; }
.video-box img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video-box iframe, .video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box .play-btn { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0; transition: transform .15s; }
.video-box:hover .play-btn { transform: scale(1.1); }
.video-box[data-yt] { cursor: pointer; }

.course-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 34px 0 30px; }
.course-hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 6px 0; }
.course-hero .lead { color: #d6ebe7; max-width: 620px; margin: 0; }
.course-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.chip { padding: 6px 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 500; font-size: 14.5px; }
.chip.on, .chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.course-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,40,36,.12); }
.cc-thumb { position: relative; display: block; background: #e8e3d8; }
.cc-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.badge-free { position: absolute; top: 10px; left: 10px; background: var(--success); color: #fff; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 5px; }
.cc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cc-cat { color: var(--accent-dark); font-weight: 600; font-size: 13px; }
.cc-body h3 { font-size: 17px; margin: 0; line-height: 1.4; }
.cc-body h3 a { color: var(--ink); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.cc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.cc-price { color: var(--primary); font-size: 19px; }
.cc-foot s { color: var(--muted); font-size: 14px; }
.cc-foot .btn { margin-left: auto; }

.cd-hero { background: linear-gradient(120deg, #0d2c29, var(--primary-dark)); color: #fff; padding: 22px 0 30px; }
.crumbs.light, .crumbs.light a { color: #a9cbc5; padding: 0 0 10px; }
.cd-hero h1 { font-size: clamp(26px, 4.5vw, 38px); max-width: 760px; }
.cd-hero .lead { color: #cfe5e1; max-width: 700px; margin: 6px 0 0; font-size: 17px; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14.5px; color: #d8ebe8; }
.cd-meta b { color: #ffd28f; }
.cd-layout { display: grid; gap: 22px; margin-top: 20px; align-items: start; }
.cd-side { order: -1; }
@media (min-width: 960px) {
  .cd-layout { grid-template-columns: 1fr 360px; margin-top: -150px; }
  .cd-side { order: 2; position: sticky; top: 140px; }
  .cd-main { padding-top: 170px; }
}
.cd-card { background: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(10,40,36,.14); overflow: hidden; }
.cd-card .video-box { border-radius: 0; }
.cd-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cd-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cd-price b { font-size: 30px; color: var(--primary); }
.cd-price s { color: var(--muted); }
.cd-price em { font-style: normal; color: var(--danger); font-weight: 600; font-size: 14px; }
.cd-buy { display: flex; flex-direction: column; gap: 8px; }
.cd-includes { list-style: none; margin: 8px 0 4px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14.5px; }
.center { text-align: center; }
.progress.big { height: 10px; border-radius: 5px; }
.cd-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.cd-box h2 { font-size: 21px; }
.check-list, .dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list.two { grid-template-columns: 1fr; }
@media (min-width: 700px) { .check-list.two { grid-template-columns: 1fr 1fr; gap: 8px 24px; } }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.check-list li::before { content: "✓"; color: var(--success); font-weight: 700; }
.dot-list li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.dot-list li::before { content: "•"; color: var(--accent); font-weight: 700; }
.curr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.curr-head h2 { margin: 0; }
.curriculum { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.topic { border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; }
.topic summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #faf8f4; cursor: pointer; font-weight: 600; list-style: none; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary::before { content: "▸"; color: var(--primary); transition: transform .15s; }
.topic[open] summary::before { transform: rotate(90deg); }
.t-title { flex: 1; }
.t-meta { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; }
.topic ul { list-style: none; margin: 0; padding: 4px 0; }
.topic li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 16px; font-size: 15px; }
.topic li a { color: var(--ink); }
.topic li a:hover { color: var(--primary); }
.topic li.done .it-icon { color: var(--success); font-weight: 700; }
.it-icon { text-align: center; font-size: 13px; color: var(--muted); }
.it-time { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pv { background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px; }
.bonus-books { display: flex; gap: 14px; flex-wrap: wrap; }
.bonus-books a { display: flex; flex-direction: column; gap: 6px; width: 110px; color: var(--ink); font-size: 14px; }
.bonus-books img { width: 100%; aspect-ratio: 3/4.2; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.lib-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.lib-tabs a { padding: 8px 18px; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 600; border: 1.5px solid var(--line); }
.lib-tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.my-course { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; align-items: center; }
.my-course img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.my-course h3 { font-size: 16px; margin: 0 0 4px; }
.my-course .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (min-width: 700px) { .my-course { grid-template-columns: 200px 1fr; } .my-course img { width: 200px; } }
.my-courses { display: grid; gap: 12px; }

/* পাসওয়ার্ড ভুলে গেলে */
.forgot-link { text-align: right; margin: -4px 0 12px; font-size: 14px; }
.forgot-link a { color: var(--primary); font-weight: 600; }
.reset-steps { padding-left: 20px; margin: 10px 0 14px; line-height: 1.8; }
