:root{
  --teal-900:#12211E; --teal-700:#1F4A42; --teal-600:#2C6459; --teal-500:#3D8577; --teal-400:#5DAFA5;
  --teal-100:#E4F1EE; --teal-50:#F3F8F7;
  --amber-600:#C97A32; --amber-500:#E08E45; --amber-400:#EDA868; --amber-200:#F6D9B0;
  --cream:#FAF7F0; --ink:#1B2624; --ink-soft:#4A5A56; --line:rgba(31,74,66,0.14);
}
*{box-sizing:border-box; margin:0; padding:0;}
html, body{max-width:100%;}
body{font-family:'Hind Siliguri', sans-serif; background:var(--cream); color:var(--ink); line-height:1.7;}
h1,h2,h3{font-family:'Noto Serif Bengali', serif;}
a{text-decoration:none; color:inherit;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}
p, .book-desc, .bio-text, .post-body{overflow-wrap:break-word; word-break:break-word;}
.wrap{max-width:820px; margin:0 auto; padding:0 24px; width:100%;}

/* Header */
header{position:sticky; top:0; z-index:50; background:rgba(250,247,240,0.95); backdrop-filter:blur(8px); border-bottom:1px solid var(--line);}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 24px; gap:16px; max-width:980px; margin:0 auto;}
.brand{display:flex; align-items:center; gap:10px;}
.brand img{object-fit:contain;}
.brand-name{font-family:'Noto Serif Bengali',serif; font-weight:600; font-size:17px; color:var(--teal-700);}
.menu-btn{display:flex; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid var(--line); border-radius:8px; color:var(--teal-700); flex:none; background:none;}
.desktop-nav{display:none; align-items:center; justify-content:center; gap:28px; margin:0 28px; flex:1;}
.desktop-nav a{font-size:14.5px; font-weight:500; color:var(--ink-soft); white-space:nowrap;}
.desktop-nav a:hover{color:var(--teal-600);}
.desktop-nav a.active{color:var(--teal-700); font-weight:700;}
.menu-icon{width:20px; height:14px; position:relative;}
.menu-icon i{position:absolute; left:0; right:0; height:2px; background:var(--teal-700); border-radius:2px;}
.menu-icon i:nth-child(1){top:0;} .menu-icon i:nth-child(2){top:6px;} .menu-icon i:nth-child(3){top:12px;}

/* Slide-in nav drawer */
.backdrop{position:fixed; inset:0; background:rgba(18,33,30,0.5); z-index:60; opacity:0; pointer-events:none; transition:opacity .3s ease;}
.backdrop.open{opacity:1; pointer-events:auto;}
.drawer{position:fixed; top:0; right:0; height:100%; width:78%; max-width:320px; background:#fff; z-index:70; box-shadow:-8px 0 24px rgba(0,0,0,0.15); transform:translateX(100%); transition:transform .3s ease;}
.drawer.open{transform:translateX(0);}
.drawer-head{display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--line);}
.drawer-head .brand-mini{display:flex; align-items:center; gap:10px;}
.drawer-head .brand-mini img{height:44px; width:44px;}
.drawer-head .brand-mini span{font-family:'Noto Serif Bengali',serif; font-weight:600; font-size:15px; color:var(--teal-700);}
.close-btn{width:36px; height:36px; display:flex; align-items:center; justify-content:center; color:var(--teal-700); border-radius:8px; background:none; border:none;}
.drawer-nav{padding:8px 12px;}
.drawer-nav a{display:flex; align-items:center; justify-content:space-between; padding:14px; border-radius:8px; font-size:15px; font-weight:500; color:var(--ink-soft);}
.drawer-nav a.active{color:var(--teal-700); font-weight:600; border-left:3px solid var(--amber-500); background:var(--teal-50);}
.drawer-nav a .tag{font-size:12px; opacity:0.6;}

/* Generic sections */
.eyebrow{display:inline-block; font-size:13px; font-weight:600; letter-spacing:0.04em; color:var(--amber-600); background:var(--amber-200); padding:6px 14px; border-radius:999px; margin-bottom:20px;}
section{padding:44px 24px;}
.page-head{padding:48px 24px 20px;}
.page-head h1{font-size:26px; font-weight:600; color:var(--teal-700); margin-bottom:12px;}
.page-head p{font-size:15px; color:var(--ink-soft); max-width:560px;}
.head-row{display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:16px;}
.divider-line{border:none; border-top:1px solid var(--line); margin:0;}
.section-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:22px; flex-wrap:wrap; gap:10px;}
.section-head h2{font-size:21px; font-weight:600; color:var(--teal-700);}
.section-head .see-all{font-size:13px; font-weight:600; color:var(--teal-600);}
.section-head .see-all:hover{color:var(--amber-600);}

.btn-primary{display:inline-flex; align-items:center; gap:8px; background:var(--teal-600); color:#fff; padding:10px 20px; border-radius:8px; font-weight:600; font-size:14px; border:none;}
.btn-primary:hover{background:var(--teal-700);}
.btn-outline{display:inline-flex; align-items:center; gap:8px; border:1.5px solid var(--teal-400); color:var(--teal-700); padding:11px 22px; border-radius:8px; font-weight:600; font-size:14px;}
.btn-outline:hover{background:var(--teal-50); border-color:var(--teal-600);}

/* About intro (home) */
.about-section{padding:56px 24px 40px;}
.about-section h1{font-size:30px; font-weight:600; color:var(--teal-700); line-height:1.5; margin-bottom:16px;}
.about-section p{font-size:16px; color:var(--ink-soft); max-width:640px; margin-bottom:22px;}

/* Stacked list rows (programs / audio) */
.list{display:flex; flex-direction:column;}
.list-row{display:flex; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); align-items:flex-start;}
.list-row:last-child{border-bottom:none;}
.date-block{flex:none; width:60px; height:60px; border-radius:10px; background:var(--teal-700); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center;}
.date-block .day{font-size:19px; font-weight:700; line-height:1;}
.date-block .mon{font-size:11px; font-weight:500; margin-top:3px; color:var(--amber-400);}
.row-body{flex:1; min-width:0;}
.row-body h3{font-size:16px; font-weight:600; color:var(--ink); margin-bottom:5px;}
.row-meta{font-size:13px; color:var(--teal-600); font-weight:500; margin-bottom:5px;}
.row-body p{font-size:14px; color:var(--ink-soft);}

/* Audio icon + player */
.audio-icon{flex:none; width:52px; height:52px; border-radius:50%; background:var(--teal-100); color:var(--teal-600); display:flex; align-items:center; justify-content:center; border:none;}
.audio-icon svg{width:22px; height:22px;}
.audio-icon:disabled{cursor:not-allowed; background:rgba(228,241,238,0.6); color:var(--teal-400);}
.soon-note{margin-top:6px; font-size:12px; color:rgba(74,90,86,0.7);}
.cat-tag{background:var(--teal-50); padding:2px 8px; border-radius:4px;}
audio{width:100%; margin-top:10px;}

/* কাস্টম অডিও প্লেয়ার (নেটিভ কন্ট্রোল লুকিয়ে, download অপশন ছাড়া) */
.mini-player{margin-top:10px; padding:10px 12px; background:var(--teal-50); border-radius:10px;}
.player-buttons{display:flex; align-items:center; gap:10px; margin-bottom:6px;}
.seek-bar{flex:1; -webkit-appearance:none; appearance:none; height:5px; border-radius:999px; background:var(--teal-100); outline:none; cursor:pointer;}
.seek-bar::-webkit-slider-thumb{-webkit-appearance:none; appearance:none; width:14px; height:14px; border-radius:50%; background:var(--teal-600); cursor:pointer;}
.seek-bar::-moz-range-thumb{width:14px; height:14px; border-radius:50%; background:var(--teal-600); border:none; cursor:pointer;}
.time-row{display:flex; justify-content:space-between; font-size:12px; color:var(--ink-soft);}

/* শেয়ার বাটন (ছোট, ইনলাইন) */
.share-row-inline{display:flex; flex-wrap:wrap; gap:14px; margin-top:8px;}
.share-btn-sm{font-size:12px; font-weight:600; color:var(--teal-600); background:none; border:none; padding:0;}
.share-btn-sm:hover{color:var(--amber-600);}

/* Search + filters */
.search-wrap{position:relative; margin-bottom:20px;}
.search-wrap svg{position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--ink-soft); pointer-events:none;}
.search-wrap input{width:100%; border:1px solid var(--line); border-radius:8px; background:#fff; padding:12px 16px 12px 44px; font-size:15px; color:var(--ink); font-family:inherit;}
.search-wrap input:focus{outline:none; border-color:var(--teal-500);}
.cat-filters{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px;}
.cat-btn{border-radius:999px; padding:6px 16px; font-size:13px; font-weight:600; border:1px solid var(--line); color:var(--ink-soft); background:#fff;}
.cat-btn.active{background:var(--teal-600); color:#fff; border-color:var(--teal-600);}
.result-count{font-size:14px; color:var(--ink-soft); margin-bottom:16px;}

/* Videos - YouTube style */
.video-stack{display:flex; flex-direction:column; gap:28px;}
.video-item{display:block;}
.video-thumb-big{position:relative; width:100%; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:linear-gradient(135deg,var(--teal-100),var(--teal-400));}
.video-thumb-big img{width:100%; height:100%; object-fit:cover; position:absolute; inset:0;}
.video-thumb-big .overlay{position:absolute; inset:0; background:rgba(18,33,30,0.08); display:flex; align-items:center; justify-content:center;}
.video-thumb-big .play-circle{width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,0.92); display:flex; align-items:center; justify-content:center;}
.video-thumb-big .play-circle svg{width:24px; height:24px;}
.video-item .vinfo{margin-top:12px;}
.video-item .video-title{font-size:16px; font-weight:600; color:var(--ink); margin-bottom:4px;}
.video-item .video-date{font-size:13px; color:var(--ink-soft);}
.video-actions{display:flex; align-items:center; gap:14px; margin-top:6px;}
.video-actions button, .video-actions a{font-size:12px; font-weight:600; color:var(--teal-600); background:none; border:none; padding:0;}
.video-actions a:hover, .video-actions button:hover{color:var(--amber-600);}

/* ভিডিও মডাল (সাইটেই দেখার জন্য) */
.video-modal-backdrop{position:fixed; inset:0; background:rgba(0,0,0,0.85); z-index:100; display:none; align-items:center; justify-content:center; padding:20px;}
.video-modal-backdrop.open{display:flex;}
.video-modal-box{width:100%; max-width:800px;}
.video-modal-close{display:flex; justify-content:flex-end; margin-bottom:10px;}
.video-modal-close button{background:none; border:none; color:#fff; font-size:14px; font-weight:600; display:flex; align-items:center; gap:6px;}
.video-modal-frame-wrap{position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:8px; overflow:hidden;}
.video-modal-frame-wrap iframe{position:absolute; inset:0; width:100%; height:100%; border:none;}

/* Books */
.books-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:20px;}
.price-row{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap;}
.print-price{font-size:13px; color:var(--ink-soft); text-decoration:line-through;}
.discount-price{font-size:15px; font-weight:700; color:var(--teal-700);}
.discount-badge{font-size:11px; font-weight:700; color:#fff; background:var(--amber-500); padding:2px 7px; border-radius:4px;}
.book-card{display:flex; gap:14px; border:1px solid var(--line); border-radius:12px; padding:16px; background:#fff;}
.book-cover{flex:none; width:90px; height:130px; border-radius:6px; background:var(--teal-100); color:var(--teal-600); display:flex; align-items:center; justify-content:center; text-align:center; font-size:11px; padding:6px;}
.demo-badge{display:inline-block; background:var(--amber-200); color:var(--amber-600); font-size:11px; font-weight:600; padding:2px 8px; border-radius:4px; margin-bottom:6px;}
.book-card h3{font-size:15px; font-weight:600; color:var(--ink); margin-bottom:4px; line-height:1.5;}
.book-author{font-size:13px; color:var(--ink-soft); margin-bottom:6px;}
.book-desc{font-size:13px; color:var(--ink-soft); margin-bottom:8px;}
.book-price{font-size:14px; font-weight:600; color:var(--teal-700); margin-bottom:10px;}
.order-btn{background:var(--teal-600); color:#fff; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; border:none;}
.order-btn:hover{background:var(--teal-700);}
.order-box{background:var(--teal-50); border:1px solid rgba(31,74,66,0.1); border-radius:8px; padding:14px;}
.qty-row{display:flex; align-items:center; gap:12px; margin-bottom:12px;}
.qty-label{font-size:13px; color:var(--ink-soft); font-weight:500;}
.qty-controls{display:flex; align-items:center; gap:10px;}
.qty-btn{width:28px; height:28px; border:1px solid rgba(31,74,66,0.2); border-radius:6px; background:#fff; color:var(--teal-700); display:flex; align-items:center; justify-content:center;}
.qty-val{width:20px; text-align:center; font-size:14px; font-weight:600;}
.wa-btn{display:inline-flex; align-items:center; gap:8px; background:var(--teal-600); color:#fff; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600;}
.wa-btn:hover{background:var(--teal-700);}

/* Blog */
.blog-list{display:flex; flex-direction:column; gap:20px;}
.blog-card{border:1px solid var(--line); border-radius:12px; padding:22px; background:#fff;}
.blog-card h3{font-size:17px; font-weight:600; color:var(--teal-700); margin-bottom:8px;}
.blog-card p{font-size:14px; color:var(--ink-soft); margin-bottom:12px;}
.blog-card .read-more{font-size:13px; font-weight:600; color:var(--teal-600);}
.blog-card .read-more:hover{color:var(--amber-600);}

/* Lineage chain (about page) */
.chain-item{display:flex; gap:16px;}
.chain-dot-col{flex:none; display:flex; flex-direction:column; align-items:center;}
.chain-dot{width:14px; height:14px; border-radius:50%; background:var(--teal-400); flex:none;}
.chain-dot.current{background:var(--amber-500);}
.chain-line{width:1px; flex:1; background:rgba(31,74,66,0.15);}
.chain-body{padding-bottom:28px;}
.chain-item:last-child .chain-body{padding-bottom:0;}
.chain-name{font-size:15px; font-weight:600; color:var(--teal-700);}
.chain-name.current{color:var(--amber-600);}
.chain-role{margin-top:4px; font-size:14px; color:var(--ink-soft);}
.hero-row{display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap;}
.photo-placeholder{flex:none; width:130px; height:160px; border-radius:12px; background:var(--teal-100); color:var(--teal-600); display:flex; align-items:center; justify-content:center; text-align:center; font-size:13px; padding:8px;}
.contact-card{border:1px solid var(--line); border-radius:12px; padding:24px; background:#fff;}
.contact-card ul{list-style:none; margin-bottom:20px;}
.contact-card li{font-size:15px; color:var(--ink-soft); margin-bottom:8px;}

/* Footer */
footer{background:var(--teal-900); color:#EDEAE0; padding:48px 24px 26px; margin-top:20px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:36px; margin-bottom:36px; max-width:980px; margin-left:auto; margin-right:auto;}
.footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.footer-brand img{height:36px; width:36px;}
.footer-brand span{font-family:'Noto Serif Bengali',serif; font-weight:600; font-size:16px; color:#fff;}
footer p{font-size:14px; color:#C9D3D0; max-width:320px;}
footer h5{font-size:14px; font-weight:600; color:#fff; margin-bottom:14px;}
footer ul{list-style:none;}
footer li{margin-bottom:9px; font-size:14px; color:#C9D3D0;}
footer li a:hover{color:var(--amber-400);}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.12); padding-top:20px; font-size:13px; color:#9FB3AE; text-align:center; max-width:980px; margin:0 auto;}

.empty-note{padding:40px 0; text-align:center; color:var(--ink-soft); font-size:14px;}

/* স্ক্রল করলে এলিমেন্ট আলতো করে ভেসে ওঠার অ্যানিমেশন */
.reveal-on-scroll{opacity:0; transform:translateY(22px); transition:opacity 0.6s ease, transform 0.6s ease;}
.reveal-on-scroll.is-visible{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  .reveal-on-scroll{opacity:1; transform:none; transition:none;}
}

@media (max-width:700px){
  .footer-grid{grid-template-columns:1fr;}
  .books-grid{grid-template-columns:1fr;}
  .about-section h1{font-size:24px;}
  .hero-row h1{font-size:22px;}
}

/* ===== ডেস্কটপ/বড় স্ক্রিন লেআউট ===== */
@media (min-width:860px){
  .wrap{max-width:1160px;}
  .header-inner{max-width:1160px;}
  .footer-grid, .footer-bottom{max-width:1160px;}

  /* হেডারে হরাইজন্টাল নেভিগেশন, হ্যামবার্গার লুকানো */
  .menu-btn{display:none;}
  .desktop-nav{display:flex;}

  /* বই — ৩ কলাম */
  .books-grid{grid-template-columns:repeat(3,1fr);}

  /* ভিডিও — ২ কলাম গ্রিড (স্ট্যাক না হয়ে) */
  .video-stack{display:grid; grid-template-columns:repeat(2,1fr); gap:28px 24px;}

  /* ব্লগ — ২ কলাম */
  .blog-list{display:grid; grid-template-columns:repeat(2,1fr); gap:20px;}

  /* about-section/hero বেশি চওড়া হেডলাইন জায়গা পাবে */
  .about-section h1, .hero-row h1{max-width:820px; font-size:34px;}
  .about-section p{font-size:17px; max-width:700px;}
}

@media (min-width:1240px){
  .wrap{max-width:1280px;}
  .header-inner{max-width:1280px;}
  .footer-grid, .footer-bottom{max-width:1280px;}
  .books-grid{grid-template-columns:repeat(4,1fr);}
}

/* বড় মনিটরে (ল্যাপটপ/ডেস্কটপ ফুল স্ক্রিন) আরও চওড়া কন্টেন্ট, বেশি কলাম */
@media (min-width:1600px){
  .wrap{max-width:1560px;}
  .header-inner{max-width:1560px;}
  .footer-grid, .footer-bottom{max-width:1560px;}
  .books-grid{grid-template-columns:repeat(5,1fr);}
  .video-stack{grid-template-columns:repeat(3,1fr);}
  .blog-list{grid-template-columns:repeat(3,1fr);}
}

/* ===== হোমপেজ হিরো সেকশন — সম্পূর্ণ CSS দিয়ে (কোনো SVG/ছবি ছাড়াই) ===== */
.hero-section{
  position:relative; overflow:hidden; text-align:center;
  padding:40px 24px 32px;
  background:
    radial-gradient(circle, rgba(93,175,165,0.16) 1.5px, transparent 1.5px),
    repeating-linear-gradient(45deg, rgba(93,175,165,0.09) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-45deg, rgba(93,175,165,0.09) 0 1px, transparent 1px 30px),
    linear-gradient(160deg, var(--teal-900) 0%, var(--teal-700) 100%);
  background-size: 30px 30px, 30px 30px, 30px 30px, cover;
}
/* খিলান/আর্চের সিলুয়েট — pseudo-element দিয়ে, কোনো ছবি/SVG ছাড়াই */
.hero-section::before{
  content:"";
  position:absolute;
  top:14%;
  left:50%;
  transform:translateX(-50%);
  width:200px;
  height:230px;
  border:2px solid rgba(237,168,104,0.32);
  border-bottom:none;
  border-radius:100px 100px 0 0;
  pointer-events:none;
}
.hero-section::after{
  content:"";
  position:absolute;
  top:14%;
  left:50%;
  transform:translateX(-50%);
  width:150px;
  height:190px;
  border:1.5px solid rgba(93,175,165,0.3);
  border-bottom:none;
  border-radius:75px 75px 0 0;
  pointer-events:none;
}
.hero-content{position:relative; z-index:1; max-width:640px; margin:0 auto;}
.hero-logo-icon{width:88px; height:auto; margin:0 auto 12px; display:block; filter:drop-shadow(0 6px 18px rgba(0,0,0,0.28));}
.hero-brand-name{font-family:'Noto Serif Bengali',serif; font-size:24px; font-weight:700; color:var(--amber-400); margin-bottom:10px; letter-spacing:0.02em;}
.hero-brand-name span{color:var(--teal-400);}
.hero-tagline{font-size:14px; color:#D8E8E4; line-height:1.7; margin-bottom:18px;}
.hero-cta{display:inline-flex; align-items:center; gap:8px; background:var(--amber-500); color:#12211E; padding:11px 26px; border-radius:8px; font-weight:700; font-size:14px;}
.hero-cta:hover{background:var(--amber-400);}

/* ===== নেভবারে লোগো আইকন — শুরুতে হাইড থাকে হোমপেজে, স্ক্রল করলে ভেসে ওঠে ===== */
.brand-icon{height:42px; width:42px; object-fit:contain; opacity:1; transform:scale(1); transition:opacity 0.35s ease, transform 0.35s ease, width 0.35s ease, margin 0.35s ease;}
.brand-icon.hero-mode{opacity:0; width:0; margin-right:-10px; transform:scale(0.6); pointer-events:none;}

@media (min-width:860px){
  .hero-section{padding:52px 24px 44px;}
  .hero-logo-icon{width:120px; margin-bottom:14px;}
  .hero-brand-name{font-size:32px;}
  .hero-tagline{font-size:16px; max-width:560px; margin-left:auto; margin-right:auto;}
  .hero-section::before{width:260px; height:290px; border-radius:130px 130px 0 0;}
  .hero-section::after{width:200px; height:240px; border-radius:100px 100px 0 0;}
}

@media (min-width:1600px){
  .hero-logo-icon{width:150px;}
  .hero-brand-name{font-size:38px;}
}
