/* ==========================================================
   777bdsign.com - Original Design System
   ========================================================== */

/* ---- Reset & Base ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;font-size:16px}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Noto Sans Bengali",sans-serif;line-height:1.7;color:#1a1a2e;background:#f8f9fc;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:#1565c0;text-decoration:none;transition:color .2s}
a:hover{color:#0d47a1}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{line-height:1.25;font-weight:700;color:#0d1b3e}

/* ---- Utility ---- */
.container{max-width:1180px;margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header{position:sticky;top:0;z-index:1000;width:100%;background:linear-gradient(135deg,#0d1b3e 0%,#1a237e 100%);border-bottom:2px solid rgba(255,214,0,.25);backdrop-filter:blur(8px)}
.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;text-decoration:none}
.brand-mark{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;background:linear-gradient(135deg,#ffd600,#ff9100);border-radius:10px;font-weight:800;font-size:14px;color:#0d1b3e;line-height:1}
.brand-text{min-width:0;line-height:1.05;color:#fff}
.brand-text strong{display:block;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;letter-spacing:.5px;color:#ffd600}
.brand-text span{display:block;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:rgba(255,255,255,.7);margin-top:2px}

/* Primary Nav */
.primary-nav{min-width:0;display:flex;align-items:center;justify-content:center;gap:clamp(10px,1.2vw,22px);overflow:hidden;flex-wrap:nowrap}
.primary-nav a{white-space:nowrap;flex:0 1 auto;max-width:128px;overflow:hidden;text-overflow:ellipsis;line-height:1;padding:10px 8px;color:rgba(255,255,255,.88);font-size:14px;font-weight:500;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.primary-nav a:hover,.primary-nav a.is-active{color:#ffd600;border-bottom-color:#ffd600}

/* Header Actions */
.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:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:transform .15s,box-shadow .15s;text-decoration:none}
.btn-register{background:linear-gradient(135deg,#ffd600,#ff9100);color:#0d1b3e}
.btn-register:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(255,214,0,.4);color:#0d1b3e}
.btn-login{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.3) !important}
.btn-login:hover{background:rgba(255,255,255,.22);color:#fff;transform:translateY(-1px)}

/* Nav toggle (mobile) */
.nav-toggle{display:none;width:42px;height:42px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;align-items:center;justify-content:center;flex-shrink:0}
.nav-toggle svg{width:22px;height:22px;stroke:#fff;stroke-width:2;fill:none;stroke-linecap:round}

/* More menu */
.nav-more{position:relative;flex:0 0 auto}
.more-toggle{min-height:38px;padding:0 12px;border:0;border-radius:999px;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);color:rgba(255,255,255,.88);font-size:14px;font-weight:500;transition:background .2s}
.more-toggle:hover{background:rgba(255,255,255,.2)}
.more-menu{position:absolute;top:calc(100% + 12px);right:0;min-width:210px;padding:10px;border-radius:16px;z-index:1200;background:#1a237e;border:1px solid rgba(255,214,0,.2);box-shadow:0 12px 36px rgba(0,0,0,.4)}
.more-menu[hidden]{display:none !important}
.nav-more.is-open .more-menu{display:grid;gap:4px}
.more-menu a{display:block;width:100%;max-width:none;padding:11px 12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:rgba(255,255,255,.88);font-size:14px;border-radius:8px;transition:background .15s}
.more-menu a:hover{background:rgba(255,214,0,.12);color:#ffd600}

/* ==========================================================
   HERO / BANNER
   ========================================================== */
.hero{position:relative;overflow:hidden;background:linear-gradient(160deg,#0d1b3e 0%,#1a237e 40%,#283593 100%);padding:clamp(48px,6vw,96px) 0}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.hero-content{color:#fff}
.hero-content h1{font-size:clamp(28px,4vw,52px);line-height:1.15;margin-bottom:18px;color:#fff}
.hero-content h1 em{font-style:normal;color:#ffd600}
.hero-lead{font-size:clamp(16px,1.8vw,20px);line-height:1.7;color:rgba(255,255,255,.85);margin-bottom:28px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-cta .btn-primary{padding:14px 32px;background:linear-gradient(135deg,#ffd600,#ff9100);color:#0d1b3e;font-weight:700;border-radius:10px;font-size:16px;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:transform .2s,box-shadow .2s}
.hero-cta .btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(255,214,0,.35);color:#0d1b3e}
.hero-cta .btn-outline{padding:14px 32px;border:2px solid rgba(255,255,255,.3);color:#fff;border-radius:10px;font-size:16px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:border-color .2s,background .2s}
.hero-cta .btn-outline:hover{border-color:#ffd600;background:rgba(255,214,0,.08);color:#fff}
.hero-visual{text-align:center}
.hero-visual img{border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.3);max-height:420px;margin:0 auto}

/* ==========================================================
   CONTENT SECTIONS
   ========================================================== */
.content-section{padding:72px 0}
.content-section:nth-child(even){background:#f0f2f8}
.section-header{text-align:center;margin-bottom:48px}
.section-header h2{font-size:clamp(28px,3vw,42px);line-height:1.25;margin-bottom:12px}
.section-header p{font-size:17px;color:#555;max-width:680px;margin:0 auto;line-height:1.7}

/* Content grid */
.content-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);gap:36px;align-items:start}

/* Prose */
.prose{max-width:820px}
.prose p{font-size:17px;line-height:1.9;margin:0 0 18px;color:#333}
.prose h2{font-size:clamp(24px,3vw,36px);line-height:1.25;margin:48px 0 18px;color:#0d1b3e;border-left:4px solid #ffd600;padding-left:16px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:clamp(20px,2vw,26px);line-height:1.35;margin:28px 0 12px;color:#1a237e}
.prose ul,.prose ol{margin:0 0 18px 24px;list-style:disc}
.prose ol{list-style:decimal}
.prose li{margin-bottom:8px;line-height:1.7;font-size:16px;color:#444}
.prose img{border-radius:12px;margin:24px 0;box-shadow:0 4px 20px rgba(0,0,0,.08)}

/* ---- Cards ---- */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.06);transition:transform .2s,box-shadow .2s;border:1px solid rgba(0,0,0,.06)}
.card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,.1)}
.card-img{width:100%;aspect-ratio:16/10;object-fit:cover}
.card-body{padding:20px}
.card-body h3{font-size:18px;margin-bottom:8px;color:#0d1b3e}
.card-body p{font-size:15px;color:#555;line-height:1.65;margin-bottom:12px}
.card-link{color:#1565c0;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:4px}

/* ---- Shortcut Cards (homepage) ---- */
.shortcut-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;margin-bottom:48px}
.shortcut-card{background:linear-gradient(135deg,#fff,#f8f9fc);border-radius:14px;padding:24px 18px;text-align:center;border:1px solid rgba(0,0,0,.06);transition:transform .2s,box-shadow .2s;text-decoration:none;color:#0d1b3e}
.shortcut-card:hover{transform:translateY(-3px);box-shadow:0 6px 24px rgba(0,0,0,.08);color:#0d1b3e}
.shortcut-icon{width:52px;height:52px;margin:0 auto 12px;background:linear-gradient(135deg,#e8eaf6,#c5cae9);border-radius:14px;display:grid;place-items:center}
.shortcut-icon svg{width:28px;height:28px;stroke:#1a237e;stroke-width:1.5;fill:none}
.shortcut-card h3{font-size:15px;font-weight:600;margin-bottom:4px}
.shortcut-card p{font-size:13px;color:#777;line-height:1.5}

/* ---- Steps ---- */
.steps-list{counter-reset:step;max-width:760px}
.step-item{position:relative;padding:0 0 36px 72px;counter-increment:step}
.step-item::before{content:counter(step);position:absolute;left:0;top:0;width:48px;height:48px;background:linear-gradient(135deg,#1a237e,#283593);color:#ffd600;border-radius:14px;display:grid;place-items:center;font-weight:800;font-size:18px}
.step-item::after{content:'';position:absolute;left:23px;top:52px;width:2px;bottom:0;background:linear-gradient(180deg,#c5cae9,transparent)}
.step-item:last-child::after{display:none}
.step-item h3{font-size:18px;margin-bottom:6px;color:#0d1b3e}
.step-item p{font-size:16px;color:#555;line-height:1.7}

/* ---- Notice/Warning ---- */
.notice-box{background:linear-gradient(135deg,#fff3e0,#ffe0b2);border-left:4px solid #ff9100;border-radius:0 12px 12px 0;padding:20px 24px;margin:24px 0}
.notice-box h3{color:#e65100;margin-bottom:8px;font-size:17px}
.notice-box p,.notice-box li{font-size:15px;color:#6d4c00;line-height:1.7}

/* ---- Related Links ---- */
.related-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:24px 0}
.related-link{display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border-radius:12px;border:1px solid rgba(0,0,0,.06);transition:transform .15s,box-shadow .15s;text-decoration:none;color:#0d1b3e}
.related-link:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.08);color:#0d1b3e}
.related-link span{font-weight:600;font-size:15px}

/* ---- FAQ ---- */
.faq-section{padding:72px 0}
.faq-list{max-width:820px;margin:0 auto}
.faq-item{border:1px solid rgba(0,0,0,.08);border-radius:12px;margin-bottom:12px;overflow:hidden;background:#fff}
.faq-question{width:100%;padding:18px 24px;background:none;border:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:600;color:#0d1b3e;text-align:left;line-height:1.4}
.faq-question::after{content:'+';font-size:22px;font-weight:300;color:#999;transition:transform .2s;flex-shrink:0;margin-left:12px}
.faq-item.is-active .faq-question::after{transform:rotate(45deg);color:#1a237e}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-item.is-active .faq-answer{max-height:600px}
.faq-answer-inner{padding:0 24px 18px;font-size:15px;line-height:1.8;color:#555}

/* ---- CTA Banner ---- */
.cta-banner{background:linear-gradient(135deg,#1a237e,#0d47a1);padding:64px 0;text-align:center;color:#fff}
.cta-banner h2{font-size:clamp(24px,3vw,38px);margin-bottom:14px;color:#fff}
.cta-banner p{font-size:17px;color:rgba(255,255,255,.8);max-width:600px;margin:0 auto 28px;line-height:1.7}
.cta-banner .btn-primary{padding:16px 36px;background:linear-gradient(135deg,#ffd600,#ff9100);color:#0d1b3e;font-weight:700;border-radius:10px;font-size:16px;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:transform .2s}
.cta-banner .btn-primary:hover{transform:translateY(-2px);color:#0d1b3e}

/* ==========================================================
   INNER PAGE HERO
   ========================================================== */
.page-hero{background:linear-gradient(160deg,#0d1b3e 0%,#1a237e 60%,#283593 100%);padding:clamp(36px,4vw,64px) 0;color:#fff}
.page-hero h1{font-size:clamp(26px,3.5vw,44px);margin-bottom:12px;color:#fff}
.page-hero .breadcrumb{display:flex;gap:8px;font-size:14px;margin-bottom:16px;flex-wrap:wrap}
.page-hero .breadcrumb a{color:rgba(255,255,255,.7);text-decoration:none}
.page-hero .breadcrumb a:hover{color:#ffd600}
.page-hero .breadcrumb span{color:rgba(255,255,255,.5)}
.page-hero .lead{font-size:clamp(16px,1.6vw,19px);color:rgba(255,255,255,.8);line-height:1.7;max-width:720px}

/* ==========================================================
   ARTICLE
   ========================================================== */
.article-meta{display:flex;gap:16px;align-items:center;font-size:14px;color:rgba(255,255,255,.6);margin-bottom:16px;flex-wrap:wrap}
.article-meta time{display:flex;align-items:center;gap:4px}
.article-cover{width:100%;max-height:480px;object-fit:cover;border-radius:16px;margin:24px 0;box-shadow:0 8px 30px rgba(0,0,0,.12)}
.article-related{margin-top:48px;padding-top:36px;border-top:1px solid #e0e0e0}
.article-related h2{margin-bottom:24px;font-size:22px}

/* ==========================================================
   BLOG LIST
   ========================================================== */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:28px}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{background:#0a1128;color:rgba(255,255,255,.75);padding:64px 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:36px;margin-bottom:48px}
.footer-brand{margin-bottom:18px}
.footer-brand strong{font-size:20px;color:#ffd600;display:block;margin-bottom:6px}
.footer-brand p{font-size:14px;line-height:1.7;color:rgba(255,255,255,.6)}
.footer-col h4{color:#ffd600;font-size:14px;text-transform:uppercase;letter-spacing:1px;margin-bottom:16px}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:8px}
.footer-col a{color:rgba(255,255,255,.65);font-size:14px;transition:color .2s;text-decoration:none}
.footer-col a:hover{color:#ffd600}
.footer-contact li{display:flex;gap:8px;align-items:flex-start;font-size:14px;margin-bottom:10px}
.footer-contact li strong{color:rgba(255,255,255,.85);min-width:60px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:20px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;color:rgba(255,255,255,.4)}
.footer-bottom a{color:rgba(255,255,255,.5);text-decoration:none}
.footer-bottom a:hover{color:#ffd600}

/* ==========================================================
   404 PAGE
   ========================================================== */
.error-page{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:64px 20px}
.error-page h1{font-size:96px;color:#1a237e;line-height:1;margin-bottom:12px}
.error-page h2{font-size:28px;margin-bottom:16px}
.error-page p{font-size:17px;color:#555;margin-bottom:28px;max-width:480px}

/* ==========================================================
   FORM (register/login)
   ========================================================== */
.auth-section{padding:72px 0;max-width:560px;margin:0 auto}
.auth-section h2{margin-bottom:24px}
.auth-notice{background:#e8eaf6;border-radius:12px;padding:20px;margin:24px 0;font-size:15px;line-height:1.7;color:#333}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@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:86px}
  .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:#0d1b3e;border:1px solid rgba(255,214,0,.2);box-shadow:0 12px 40px rgba(0,0,0,.5);z-index:1100}
  .primary-nav.is-open{display:flex}
  .primary-nav a{max-width:none;width:100%;padding:14px 12px;text-overflow:initial;font-size:16px;border-bottom:1px solid rgba(255,255,255,.06);border-left:none}
  .primary-nav a:last-child{border-bottom:none}
  .header-actions{justify-content:flex-end;gap:6px}
  .header-actions .btn{min-height:38px;padding:0 12px;font-size:14px}
  .nav-toggle{display:inline-flex}
  .nav-more{display:none !important}
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-visual{order:-1}
  .hero-visual img{max-height:280px}
  .hero-cta{justify-content:center}
  .content-section{padding:48px 0}
  .content-grid{grid-template-columns:1fr}
  .prose p{font-size:16px;line-height:1.85}
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .card-grid{grid-template-columns:1fr}
  .blog-grid{grid-template-columns:1fr}
  .shortcut-grid{grid-template-columns:repeat(2,1fr)}
  .related-links{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
}

@media(max-width:480px){
  .header-inner{gap:6px;padding:0 12px}
  .brand-wrap{width:120px;min-width:120px;max-width:120px}
  .header-actions .btn{padding:0 10px;font-size:13px;min-height:36px}
  .shortcut-grid{grid-template-columns:1fr 1fr;gap:12px}
  .footer-grid{grid-template-columns:1fr}
}
