
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Noto Sans Bengali",sans-serif;background:#fafbfd;color:#1a1f36;line-height:1.7}
img{max-width:100%;height:auto;display:block}
a{color:#0a3aa6;text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1180px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{position:sticky;top:0;z-index:1000;width:100%;background:#0a0f2c;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.header-inner{max-width:1180px;margin:0 auto;min-height:72px;padding:0 20px;display:grid;grid-template-columns:168px minmax(0,1fr) auto;align-items:center;gap:18px}
.brand-wrap{width:168px;min-width:168px;max-width:168px;height:56px;display:flex;align-items:center;gap:10px;overflow:hidden;flex-shrink:0}
.brand-mark{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center}
.brand-text{min-width:0;line-height:1.05;color:#fff}
.brand-text strong,.brand-text span{display:block;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand-text strong{font-size:16px;font-weight:800;letter-spacing:.3px}
.brand-text span{font-size:11px;opacity:.7;margin-top:2px}
.primary-nav{min-width:0;display:flex;align-items:center;justify-content:center;gap:clamp(8px,1.2vw,18px);overflow:hidden;flex-wrap:nowrap}
.primary-nav a{white-space:nowrap;flex:0 1 auto;max-width:140px;overflow:hidden;text-overflow:ellipsis;line-height:1;padding:10px 8px;color:#e9eefc;font-size:14px;border-radius:8px;transition:.2s}
.primary-nav a:hover{background:rgba(255,255,255,.08);text-decoration:none;color:#FFCC29}
.header-actions{flex-shrink:0;display:flex;align-items:center;gap:10px;white-space:nowrap}
.header-actions .btn{min-height:42px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:8px;font-weight:700;font-size:14px;transition:.2s}
.btn-register{background:#009C3B;color:#fff;border:1px solid #00b44a}
.btn-register:hover{background:#00b44a;text-decoration:none}
.btn-login{background:#FFCC29;color:#0a0f2c;border:1px solid #ffd54f}
.btn-login:hover{background:#ffd54f;text-decoration:none}
.nav-toggle{display:none;width:42px;height:42px;background:transparent;border:1px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:10px}
.nav-toggle span{display:block;width:20px;height:2px;background:#fff;border-radius:2px}

/* Hero */
.hero{background:linear-gradient(135deg,#0a0f2c 0%,#1a2456 100%);color:#fff;padding:60px 0}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.hero-text h1{font-size:clamp(28px,4vw,46px);margin:0 0 16px;line-height:1.2;font-weight:800}
.hero-text .lead{font-size:18px;line-height:1.7;opacity:.92;margin:0 0 24px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 24px;border-radius:8px;font-weight:700;cursor:pointer;border:none;font-size:15px;transition:.2s}
.btn-primary{background:#FFCC29;color:#0a0f2c}
.btn-primary:hover{background:#ffd54f;text-decoration:none}
.btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.4)}
.btn-ghost:hover{background:rgba(255,255,255,.1);text-decoration:none}
.btn-secondary{background:#0a3aa6;color:#fff}
.btn-secondary:hover{background:#0a4cc8;text-decoration:none}
.hero-media img{border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.3)}

/* Breadcrumb */
.breadcrumb{padding:18px 0 0;font-size:14px}
.breadcrumb ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.breadcrumb li+li::before{content:"›";margin-right:8px;color:#888}

/* Sections */
.content-section{padding:64px 0}
.section-alt{background:#f1f4fb}
.section-lead{font-size:17px;color:#555;max-width:780px;margin:0 0 28px}
.prose{max-width:820px;margin:0 auto}
.prose p{font-size:17px;line-height:1.9;margin:0 0 18px;color:#2a3142}
.prose h2{font-size:clamp(26px,3vw,38px);line-height:1.3;margin:0 0 20px;color:#0a0f2c;font-weight:800}
.prose h3{font-size:clamp(20px,2vw,26px);line-height:1.4;margin:28px 0 12px;color:#1a2456;font-weight:700}
.prose ul,.prose ol{padding-left:24px;margin:0 0 18px}
.prose li{margin-bottom:10px;line-height:1.8;font-size:17px}
.bullet-list li{list-style:disc}
.step-list{counter-reset:step}
.step-list li{margin-bottom:14px;padding-left:8px}
.step-list li strong{color:#0a3aa6}
.prose figure{margin:24px 0}
.prose figure img{border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.08)}

/* Cards */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin:24px 0}
.cat-card{background:#fff;border:1px solid #e6e9f2;border-radius:14px;overflow:hidden;transition:.25s;display:block;color:#1a1f36;text-decoration:none}
.cat-card:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(10,15,44,.12);text-decoration:none}
.cat-card img{aspect-ratio:16/10;object-fit:cover}
.cat-card>div{padding:18px}
.cat-card h3{margin:0 0 8px;font-size:18px;color:#0a0f2c}
.cat-card p{margin:0;font-size:14px;color:#555;line-height:1.6}

/* FAQ */
.faq-section .container{max-width:880px}
.faq-list{display:flex;flex-direction:column;gap:10px}
.faq-item{background:#fff;border:1px solid #e6e9f2;border-radius:12px;padding:16px 20px}
.faq-item summary{cursor:pointer;font-weight:700;font-size:17px;color:#0a0f2c;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";float:right;font-size:22px;color:#0a3aa6}
.faq-item[open] summary::after{content:"−"}
.faq-a{margin-top:12px;color:#444;line-height:1.8;font-size:16px}

/* Related */
.related-section .container{max-width:1180px}
.related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:20px}
.related-card{background:#fff;padding:22px;border-radius:12px;border:1px solid #e6e9f2;display:block;color:#1a1f36;transition:.2s;text-decoration:none}
.related-card:hover{border-color:#0a3aa6;text-decoration:none;transform:translateY(-2px)}
.related-card h3{margin:0 0 8px;font-size:17px;color:#0a3aa6}
.related-card p{margin:0;font-size:14px;color:#555}

/* CTA */
.cta-block{background:linear-gradient(135deg,#FFCC29 0%,#ffa500 100%);padding:56px 20px;text-align:center;color:#0a0f2c}
.cta-block h2{margin:0 0 12px;font-size:clamp(24px,3vw,34px)}
.cta-block p{margin:0 0 24px;font-size:17px}
.cta-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* Article list */
.article-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
.article-card{background:#fff;border:1px solid #e6e9f2;border-radius:14px;overflow:hidden;transition:.25s}
.article-card:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(10,15,44,.12)}
.article-card a{display:block;color:#1a1f36;padding:0 0 18px}
.article-card a:hover{text-decoration:none}
.article-card img{aspect-ratio:16/10;object-fit:cover}
.article-card h3{margin:16px 18px 8px;font-size:18px;color:#0a0f2c}
.article-card p{margin:0 18px 8px;font-size:14px;color:#555}
.article-card time{margin:0 18px;font-size:12px;color:#888}

/* Post */
.post-hero{padding:40px 0 30px;background:#f1f4fb}
.post-hero h1{font-size:clamp(28px,4vw,44px);margin:0 0 12px;color:#0a0f2c;line-height:1.25}
.post-hero .lead{font-size:18px;color:#444;margin:0 0 12px}
.post-meta{font-size:13px;color:#777;margin-bottom:20px}
.post-hero img{border-radius:14px;width:100%;aspect-ratio:16/9;object-fit:cover}
.post-section{padding:40px 0}
.post-section:nth-of-type(even){background:#f8faff}

/* Footer */
.site-footer{background:#0a0f2c;color:#cfd6ee;padding:60px 0 20px;margin-top:40px}
.foot-inner{max-width:1180px;margin:0 auto;padding:0 20px}
.foot-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr;gap:30px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.1)}
.foot-brand strong{color:#FFCC29;font-size:20px;display:block;margin-bottom:10px}
.foot-brand p{font-size:14px;line-height:1.8;opacity:.8}
.foot-col h3{font-size:14px;color:#fff;margin:0 0 14px;text-transform:uppercase;letter-spacing:.5px}
.foot-col ul{list-style:none;padding:0;margin:0}
.foot-col li{margin-bottom:8px}
.foot-col a{color:#cfd6ee;font-size:14px}
.foot-col a:hover{color:#FFCC29;text-decoration:none}
.foot-bottom{padding-top:20px;text-align:center;font-size:13px}
.foot-bottom p{margin:6px 0}
.foot-bottom a{color:#FFCC29}
.foot-bottom .age{opacity:.6;font-size:12px}

/* Responsive */
@media (max-width:1100px){
  .foot-top{grid-template-columns:1fr 1fr 1fr;gap:24px}
  .foot-brand{grid-column:1/-1}
}
@media (max-width:900px){
  .header-inner{min-height:68px;grid-template-columns:140px 1fr auto;gap:10px}
  .brand-wrap{width:140px;min-width:140px;max-width:140px;height:48px}
  .brand-mark{width:38px;height:38px;flex-basis:38px}
  .brand-text strong,.brand-text span{max-width:90px}
  .brand-text strong{font-size:14px}
  .primary-nav{position:fixed;left:12px;right:12px;top:76px;display:none;flex-direction:column;align-items:stretch;gap:0;padding:14px;border-radius:18px;max-height:calc(100vh - 96px);overflow-y:auto;background:#0a0f2c;border:1px solid rgba(255,255,255,.1)}
  .primary-nav.is-open{display:flex}
  .primary-nav a{max-width:none;width:100%;padding:14px 12px;text-overflow:initial;border-bottom:1px solid rgba(255,255,255,.06)}
  .header-actions{justify-content:flex-end;gap:6px}
  .header-actions .btn{min-height:38px;padding:0 12px;font-size:13px}
  .nav-toggle{display:inline-flex}
  .hero{padding:40px 0}
  .hero-grid{grid-template-columns:1fr;gap:24px}
  .content-section{padding:44px 0}
  .prose p,.prose li{font-size:16px;line-height:1.85}
  .foot-top{grid-template-columns:1fr 1fr;gap:20px}
  .foot-brand{grid-column:1/-1}
}
@media (max-width:560px){
  .header-actions .btn-login{display:none}
  .foot-top{grid-template-columns:1fr}
}
