/* ============================================================
   MASTERMIND — ডিজাইন সিস্টেম v2 (রেফারেন্স স্ক্রিনশট অনুযায়ী)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Playfair+Display:ital@1&family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --forest:      #123524;
  --forest-deep: #08190F;
  --forest-line: #1E4A34;
  --gold:        #F0A825;
  --gold-deep:   #C9860F;
  --page-bg:     #DCEAF6;
  --page-bg-alt: #EAF3FB;
  --white:       #FFFFFF;
  --ink:         #16201C;
  --ink-soft:    #55625C;
  --line:        #C9D9E6;
  --good:        #2E7D4F;
  --bad:         #B23A32;
  --bad-tint:    #F5E3E1;
  --radius:      14px;
  --shadow-card: 0 3px 16px rgba(8,25,15,0.12);
  --shadow-lift: 0 14px 34px rgba(8,25,15,0.20);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--page-bg); color:var(--ink);
  font-family:'Hind Siliguri','Inter',sans-serif; font-size:16px; line-height:1.65;
}
h1,h2,h3,.display{
  font-family:'Barlow Condensed','Hind Siliguri',sans-serif;
  font-weight:800; letter-spacing:0.3px; color:var(--forest); line-height:1.15; margin:0;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
::selection{ background:var(--gold); color:var(--forest-deep); }
:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

.container{ max-width:1180px; margin:0 auto; padding:0 24px; }
@media (max-width:640px){ .container{ padding:0 16px; } }

/* ---------- বাটন ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:9px; font-weight:700; font-size:14.5px;
  border:2px solid transparent; cursor:pointer; font-family:'Hind Siliguri';
  transition:transform .12s, background .15s, border-color .15s;
}
.btn:active{ transform:translateY(1px); }
.btn-gold{ background:var(--gold); color:var(--forest-deep); }
.btn-gold:hover{ background:var(--gold-deep); }
.btn-forest{ background:var(--forest); color:#fff; }
.btn-forest:hover{ background:var(--forest-deep); }
.btn-outline{ background:transparent; border-color:var(--forest); color:var(--forest); }
.btn-outline:hover{ background:var(--forest); color:#fff; }
.btn-outline-white{ background:transparent; border-color:rgba(255,255,255,0.6); color:#fff; }
.btn-outline-white:hover{ border-color:#fff; background:rgba(255,255,255,0.08); }
.btn-ghost{ background:transparent; color:var(--ink-soft); border:none; }
.btn-danger{ background:var(--bad); color:#fff; }
.btn-sm{ padding:8px 15px; font-size:13px; }
.btn-block{ width:100%; }

/* ============================================================
   হেডার / হিরো — সব পেজে সেম, দুই স্তর
   ============================================================ */
.site-hero{
  position:relative; color:#fff; overflow:hidden;
  background:linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
}
.site-hero .hero-bg-img{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0.28; z-index:0;
}
.site-hero .hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(160deg, rgba(18,53,36,0.92) 0%, rgba(8,25,15,0.96) 100%);
}
.site-hero > .container{ position:relative; z-index:2; }

.nav-row{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap:14px; flex-wrap:wrap; }
.brand-mini{ display:flex; align-items:center; gap:10px; }
.brand-mini img{ width:38px; height:38px; border-radius:50%; object-fit:cover; }
.brand-mini .name{ font-family:'Barlow Condensed'; font-weight:800; font-size:17px; letter-spacing:1px; color:#fff; text-transform:uppercase; }
.brand-mini .sub{ font-size:9px; letter-spacing:1.5px; color:var(--gold); text-transform:uppercase; margin-top:-2px; display:block; }

.pill-nav{ display:flex; gap:10px; flex-wrap:wrap; }
.pill-nav a{
  padding:9px 18px; border-radius:30px; font-size:13.5px; font-weight:600;
  border:1.5px solid rgba(255,255,255,0.35); color:#fff;
}
.pill-nav a:hover{ border-color:#fff; }
.pill-nav a.active{ background:var(--gold); color:var(--forest-deep); border-color:var(--gold); font-weight:700; }
.nav-toggle{ display:none; background:none; border:1.5px solid rgba(255,255,255,0.4); color:#fff; border-radius:8px; padding:8px 12px; }
@media (max-width:760px){
  .pill-nav{ display:none; width:100%; order:3; }
  .pill-nav.open{ display:flex; }
  .nav-toggle{ display:inline-flex; }
}

.hero-content{ padding:50px 0 60px; }
.hero-content h1{ font-size:clamp(28px,4.5vw,46px); color:#fff; max-width:640px; text-transform:none; }
.hero-content .subtext{ color:#C7D9CE; font-size:16px; max-width:480px; margin-top:14px; }
.hero-content .tagline{ font-family:'Playfair Display'; font-style:italic; color:var(--gold); font-size:15px; margin-top:12px; display:block; }
.hero-content .hero-actions{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; }

/* ---------- সেগমেন্ট হেডিং (হোম পেজে) ---------- */
.segment-block{ padding:44px 0; }
.segment-head-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; }
.segment-head-row h2{ font-size:clamp(20px,3vw,26px); text-transform:none; }
.segment-head-row a{ font-weight:700; color:var(--forest); font-size:14px; display:inline-flex; align-items:center; gap:6px; }
.segment-head-row a:hover{ color:var(--gold-deep); }
.section-alt{ background:var(--page-bg-alt); }

/* ---------- ২-কলাম গ্রিড (হোম প্রিভিউ + সাকসেস স্টোরি ফুল পেজ) ---------- */
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:520px){ .grid2{ gap:12px; } }

/* ---------- ব্যাচ প্রিভিউ কার্ড (হোম) ---------- */
.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-card); transition:transform .15s, box-shadow .15s;
  display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); }
.card .thumb{ aspect-ratio:16/10; background:linear-gradient(135deg,var(--forest),var(--forest-deep)); overflow:hidden; }
.card .thumb img{ width:100%; height:100%; object-fit:cover; }
.card .body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card .body h3{ font-size:clamp(15px,2vw,19px); text-transform:none; }
.card .desc{ font-size:13px; color:var(--ink-soft); }
.card .price-row{ display:flex; align-items:baseline; gap:8px; margin-top:2px; }
.card .price-row .old{ text-decoration:line-through; color:var(--ink-soft); font-size:12.5px; }
.card .price-row .new{ font-family:'Barlow Condensed'; font-weight:800; font-size:18px; color:var(--forest); }
.card .card-actions{ margin-top:auto; padding-top:8px; }

.desc.clamped{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.see-more-link{ font-size:12.5px; font-weight:700; color:var(--forest); cursor:pointer; border-bottom:1px solid var(--gold); display:inline-block; width:fit-content; }
.see-more-link:hover{ color:var(--gold-deep); }

/* ---------- BATCH FULL PAGE (single column, price + 2 buttons) ---------- */
.batch-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-card); margin-bottom:26px; max-width:760px; margin-left:auto; margin-right:auto;
}
.batch-card .poster{ width:100%; aspect-ratio:16/9; background:linear-gradient(135deg,var(--forest),var(--forest-deep)); overflow:hidden; }
.batch-card .poster img{ width:100%; height:100%; object-fit:cover; }
.batch-card .content{ padding:22px 24px 26px; }
.batch-card h3{ font-size:22px; margin-bottom:8px; text-transform:none; }
.batch-card .price-row{ display:flex; align-items:baseline; gap:10px; margin-bottom:12px; }
.batch-card .price-row .old{ text-decoration:line-through; color:var(--ink-soft); font-size:15px; }
.batch-card .price-row .new{ font-family:'Barlow Condensed'; font-weight:800; font-size:24px; color:var(--forest); }
.batch-card .desc{ font-size:14.5px; margin-bottom:8px; }
.batch-actions{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.batch-actions .btn{ flex:1; min-width:180px; }

/* ---------- BOOKS: কমপ্যাক্ট কার্ড, ২টা পাশাপাশি ---------- */
.book-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:520px){ .book-grid{ gap:12px; } }
.book-card{
  display:flex; gap:12px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px; box-shadow:var(--shadow-card);
}
.book-cover-img{ width:38%; flex-shrink:0; aspect-ratio:3/4; border-radius:8px; overflow:hidden; background:var(--forest); }
.book-cover-img img{ width:100%; height:100%; object-fit:cover; }
.book-info{ display:flex; flex-direction:column; gap:6px; flex:1; min-width:0; }
.book-info h3{ font-size:clamp(14px,2vw,17px); text-transform:none; line-height:1.25; }
.book-info .desc{ font-size:12px; color:var(--ink-soft); }
.book-info .price-row{ display:flex; align-items:baseline; gap:7px; margin-top:2px; }
.book-info .price-row .old{ text-decoration:line-through; color:var(--ink-soft); font-size:11.5px; }
.book-info .price-row .new{ font-family:'Barlow Condensed'; font-weight:800; font-size:17px; color:var(--forest); }
.avail-pill{ font-size:10.5px; font-weight:700; padding:2px 9px; border-radius:20px; width:fit-content; }
.avail-yes{ background:#E1F1E6; color:var(--good); }
.avail-no{ background:var(--bad-tint); color:var(--bad); }
.book-info .book-actions{ display:flex; flex-direction:column; gap:6px; margin-top:auto; padding-top:6px; }
.book-info .book-actions .btn{ padding:8px 10px; font-size:11.5px; }

/* ---------- SUCCESS STORY গ্রিড — পোস্টার (1:1) + ভিডিও রিলস (9:16) মিশ্র মেসনরি ---------- */
.story-grid{ display:grid; grid-template-columns:1fr 1fr; grid-auto-flow:row dense; gap:16px; }
@media (max-width:520px){ .story-grid{ gap:10px; } }
.story-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-card); transition:transform .15s, box-shadow .15s;
  display:flex; flex-direction:column;
}
.story-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); }
.story-media{ width:100%; background:var(--forest); }
.story-card.type-image .story-media{ aspect-ratio:1/1; }
.story-card.type-image .story-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.story-card.type-video{ grid-row: span 2; }
.story-card.type-video .story-media{ aspect-ratio:9/16; flex:1; }
.story-card.type-video .story-media iframe{ width:100%; height:100%; border:none; display:block; }
.story-card .extra-caption{ padding:10px 12px 12px; font-size:12.5px; color:var(--ink-soft); line-height:1.6; }
.story-card .extra-caption strong{ color:var(--ink); }

/* ---------- ABOUT PAGE ---------- */
.about-body{ padding:44px 0; }
.video-frame{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lift); aspect-ratio:16/9; background:#000; max-width:820px; margin:0 auto; }
.video-frame iframe{ width:100%; height:100%; border:none; }
.social-embed-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:34px; max-width:820px; margin-left:auto; margin-right:auto; }
@media (max-width:700px){ .social-embed-row{ grid-template-columns:1fr; } }
.embed-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-card); text-align:center; }
.embed-card h3{ font-size:16px; margin-bottom:16px; text-transform:none; }
.yt-visit-card{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:20px 10px; }
.yt-visit-card .yt-icon{ width:64px; height:64px; border-radius:50%; background:#FF0000; color:#fff; display:flex; align-items:center; justify-content:center; }
.yt-visit-card .yt-icon svg{ width:28px; height:28px; }

.contact-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:20px; max-width:820px; margin-left:auto; margin-right:auto; }
@media (max-width:700px){ .contact-row{ grid-template-columns:1fr; } }
.contact-btn{
  display:flex; align-items:center; justify-content:center; gap:12px; padding:18px; border-radius:var(--radius);
  font-weight:700; font-size:15px; color:#fff; box-shadow:var(--shadow-card); transition:transform .12s;
}
.contact-btn:hover{ transform:translateY(-3px); }
.contact-btn .icon{ width:28px; height:28px; flex-shrink:0; }
.contact-messenger{ background:linear-gradient(135deg,#00B2FF,#006AFF); }
.contact-whatsapp{ background:#25D366; }
.contact-telegram{ background:#29A9EA; }

/* ============================================================
   ফুটার
   ============================================================ */
footer.site-footer{ background:var(--forest-deep); color:#C7D9CE; padding:50px 0 22px; margin-top:0; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:30px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:#fff; font-size:14px; margin-bottom:14px; font-family:'Hind Siliguri'; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; font-size:13.5px; }
.footer-grid ul li a:hover{ color:var(--gold); }
.footer-brand{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.footer-brand img{ width:32px; height:32px; border-radius:50%; object-fit:cover; }
.footer-brand span{ font-family:'Barlow Condensed'; font-weight:800; font-size:17px; color:#fff; letter-spacing:1px; }
.footer-desc{ font-size:13px; max-width:270px; line-height:1.7; }
.footer-desc em{ color:var(--gold); font-style:italic; }
.social-icons-row{ display:flex; gap:10px; margin-top:16px; }
.social-icons-row a{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; }
.social-icons-row a:hover{ background:var(--gold); color:var(--forest-deep); }
.social-icons-row svg{ width:16px; height:16px; }
.footer-follow .social-icons-row{ gap:12px; }
.footer-follow .social-icons-row a{ width:44px; height:44px; }
.footer-follow .social-icons-row svg{ width:20px; height:20px; }
.footer-contact-item{ display:flex; align-items:flex-start; gap:8px; font-size:13.5px; margin-bottom:10px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.12); margin-top:36px; padding-top:20px; font-size:12.5px; color:#8FA098; text-align:center; }

/* ---------- FORMS / ADMIN (shared) ---------- */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; font-weight:700; margin-bottom:6px; color:var(--ink); }
.field input, .field select, .field textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:8px;
  font-family:'Hind Siliguri'; font-size:14.5px; background:#fff; color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--gold-deep); box-shadow:0 0 0 3px rgba(240,168,37,0.25); }
.field .hint{ font-size:12px; color:var(--ink-soft); margin-top:5px; }
.form-msg{ font-size:13.5px; padding:10px 13px; border-radius:8px; margin-bottom:16px; display:none; }
.form-msg.show{ display:block; }
.form-msg.err{ background:var(--bad-tint); color:var(--bad); }
.form-msg.ok{ background:#E1F1E6; color:var(--good); }

.auth-shell{ min-height:100vh; display:grid; grid-template-columns:1fr 1fr; background:var(--white); }
@media (max-width:820px){ .auth-shell{ grid-template-columns:1fr; } }
.auth-side{ background:linear-gradient(160deg,var(--forest),var(--forest-deep)); color:#fff; padding:50px; display:flex; flex-direction:column; justify-content:center; }
.auth-side h2{ color:#fff; font-size:26px; max-width:360px; text-transform:none; }
.auth-side p{ color:#C7D6CC; margin-top:14px; max-width:320px; font-size:14px; }
.auth-form-wrap{ display:flex; align-items:center; justify-content:center; padding:40px; }
.auth-form{ width:100%; max-width:380px; }
.auth-form h1{ font-size:24px; margin-bottom:6px; text-transform:none; }
.auth-form .sub{ color:var(--ink-soft); font-size:14px; margin-bottom:26px; }

/* ---------- ADMIN DASHBOARD ---------- */
.dash-shell{ display:grid; grid-template-columns:230px 1fr; min-height:100vh; background:var(--white); }
@media (max-width:820px){ .dash-shell{ grid-template-columns:1fr; } }
.dash-side{ background:var(--forest); color:#fff; padding:26px 16px; }
.dash-side .brand{ font-family:'Barlow Condensed'; font-weight:800; font-size:18px; color:var(--gold); margin-bottom:22px; padding:0 10px; }
.dash-nav{ display:flex; flex-direction:column; gap:3px; }
.dash-nav a{ padding:11px 12px; border-radius:7px; font-size:14px; color:#D9E3DC; font-weight:500; }
.dash-nav a:hover{ background:rgba(255,255,255,0.06); color:#fff; }
.dash-nav a.active{ background:var(--gold); color:var(--forest-deep); font-weight:700; }
.dash-main{ padding:34px 36px 60px; background:var(--white); }
@media (max-width:600px){ .dash-main{ padding:22px 18px 60px; } }
.dash-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; flex-wrap:wrap; gap:12px; }
.dash-head h1{ font-size:22px; text-transform:none; }
.top-bar{ display:flex; justify-content:flex-end; gap:10px; padding:14px 24px; border-bottom:1px solid var(--line); background:#fff; }

.admin-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.admin-table th{ text-align:left; background:var(--page-bg-alt); font-family:'Inter'; font-size:11px; text-transform:uppercase; letter-spacing:0.8px; color:var(--ink-soft); padding:11px 14px; }
.admin-table td{ padding:11px 14px; border-top:1px solid var(--line); font-size:14px; vertical-align:middle; }
.admin-table tr:hover td{ background:#F5FAFD; }
.pill{ font-family:'Inter'; font-size:11px; padding:3px 10px; border-radius:20px; display:inline-block; font-weight:600; }
.pill-good{ background:#E1F1E6; color:var(--good); }
.pill-bad{ background:var(--bad-tint); color:var(--bad); }
.pill-lamp{ background:var(--gold-tint,#FEF3D6); color:var(--gold-deep); }
.thumb-mini{ width:52px; height:52px; border-radius:6px; object-fit:cover; background:var(--forest); }

.modal-veil{ position:fixed; inset:0; background:rgba(8,25,15,0.55); display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; overflow:auto; z-index:60; }
.modal-veil.hidden{ display:none; }
.modal-box{ background:#fff; border-radius:var(--radius); padding:26px 28px; max-width:600px; width:100%; box-shadow:var(--shadow-lift); }
.modal-box h2{ font-size:19px; margin-bottom:18px; text-transform:none; }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .two-col{ grid-template-columns:1fr; } }
.empty-state{ text-align:center; padding:50px 20px; color:var(--ink-soft); }
.empty-state .big{ font-size:36px; margin-bottom:10px; }
.loading-dots{ font-family:'Inter'; color:var(--ink-soft); font-size:13.5px; }
.toast{ position:fixed; bottom:24px; right:24px; background:var(--forest); color:#fff; padding:13px 20px; border-radius:8px; font-size:13.5px; box-shadow:var(--shadow-lift); z-index:80; opacity:0; transform:translateY(10px); transition:opacity .2s, transform .2s; }
.toast.show{ opacity:1; transform:translateY(0); }
.img-preview{ width:100%; max-width:200px; border-radius:8px; margin-top:8px; border:1px solid var(--line); }
