:root{
  --brand:#900;
  --btn:#16a34a;
  --wa:#075E54;
  --text:#111;
  --muted:#666;
  --bg:#fff;
  --border:#ddd;
  --thead:rgb(255,246,243);
  --odd:rgb(239,239,239);
  --even:rgb(255,246,243);
  --danger:#d60000;
  --shadow-sm:0 4px 10px rgba(0,0,0,.05);
  --shadow-md:0 8px 20px rgba(0,0,0,.06);
}

/* Global reset + mobile-fixed layout (desktop-এও mobile width) */
*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Noto Sans Bengali",system-ui,Roboto,Arial,sans-serif;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  max-width:480px;           /* desktop সহ সব জায়গায় mobile width */
  margin-inline:auto;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}

a{
  color:inherit;
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

.page-wrap{
  max-width:480px;
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  box-shadow:0 0 25px rgba(0,0,0,.18);
}
html,body{overflow-x:hidden;}

/* ===== Header ===== */
header{
  background:#fff;
  padding:5px 3px;
  border-bottom:4px solid var(--brand);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  flex-wrap:wrap;
}
header a.logo img{
  max-height:40px;
}
header .cta{
  color:var(--brand);
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  border-bottom:2px solid var(--brand);
}

/* Sidebar (mobile drawer) */
#sidebarToggle{
  display:none;
}
#sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:250px;
  transform:translateX(-100%);
  transition:transform .3s ease;
  background:#111;
  color:#fff;
  z-index:1000;
  padding:12px;
}
#sidebar ul{
  list-style:none;
  margin:0;
  padding:0;
}
#sidebar li{
  margin:10px 0;
  padding:6px 0;
  border-bottom:1px dotted #444;
}
#sidebar a{
  color:#fff;
}
#sidebar .close-sidebar{
  font-weight:700;
  font-size:18px;
  cursor:pointer;
}
#sidebarToggle:checked ~ #sidebar{
  transform:translateX(0);
}
header label[for="sidebarToggle"]{
  font-weight:800;
  font-size:22px;
  cursor:pointer;
}


.velki-directory{
  font-family:"Roboto Slab", Cambria, Georgia, "Times New Roman", Times, serif;
  max-width:100%;
  margin:0 auto;
  padding-top:0;
  margin-top:0;
}

#tables,
.table-container{
  overflow:visible;
}

.table-container{
  width:100%;
  margin:0;
  padding:0;
}

.table-container table{
  width:100%;
  border-collapse:collapse;
  margin:0 auto;
}

.table-container th,
.table-container td{
  border:1px solid #ddd;
  padding:.4rem;
  text-align:center;
}

.table-container tr:nth-child(even){
  background-color:#EFEFEF;
}
.table-container tr:nth-child(odd){
  background-color:#FFF6F3;
}

/* Caption bold */
.table-container caption{
  font-weight:700;
  font-family:"Roboto Slab", Cambria, Georgia, serif;
  font-size:16px;
  text-align:center;
  color:#111;
}

#message{
  text-align:center;
  color:#cc0000;
  margin-top:.5rem;
  font-size:14px;
}

table a{
  color:#cc0000;
  text-decoration:none;
  font-weight:bold;
  font-size:14px;
}

table td{
  font-weight:bold;
}

.table-container th{
  font-size:14px;
  font-weight:bold;
}

.table-container td:first-child,
.table-container td:nth-child(2){
  font-size:14px;
  font-weight:bold;
}

/* ===== Search Card (form) ===== */
.search-card{
  background-color:#fff;
  padding:12px;
  border-radius:10px;
  box-shadow:var(--shadow-sm);
  text-align:center;
  width:100%;
  max-width:320px;
  margin:0 auto 16px;
}

.search-card h2{
  margin-bottom:10px;
  font-size:14px;
}

.search-card label{
  display:block;
  text-align:left;
  margin:10px 0 5px 0;
}

.search-card select,
.search-card input{
  width:100%;
  padding:6px;
  margin:3px 0 3px 0;
  border:1px solid #ccc;
  border-radius:5px;
  box-sizing:border-box;
}

.search-card button,
.submit-btn{
  background-color:var(--btn);
  color:#ffffff;
  padding:8px;
  border:none;
  border-radius:8px;
  margin-top:4px;
  cursor:pointer;
  width:100%;
  font-size:16px;
  font-weight:bold;
}

.search-card button:hover,
.submit-btn:hover{
  background-color:#138a3d;
}

.search-box{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0;
  flex-direction:column;
}

/* Directory heading text */
.velki-directory h1{
  text-align:center;
  font-size:16px;
  font-weight:bold;
  margin-bottom:0.1rem;
}
.velki-directory h2{
  text-align:center;
  font-size:1rem;
  margin-bottom:.5rem;
}

.id-search-text{
  text-align:center;
  font-weight:bold;
  margin:5px 0;
}

/* Desktop extra (although layout fixed) */
@media (min-width:700px){
  .table-container{
    width:100%;
  }
}

/* ===== Floating Chat (optional) ===== */
#chat-button{
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:9999;
}
.chat-icon{
  width:50px;
  height:50px;
  border-radius:50%;
  background:purple;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.3);
  cursor:pointer;
}
.chat-icon::before{
  content:"💬";
  font-size:22px;
  background:green;
  color:white;
  border-radius:50%;
  padding:6px 10px;
}

/* Popup */
#chat-popup{
  position:fixed;
  bottom:100px;
  right:20px;
  width:320px;
  max-width:90%;
  background:#fff;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  display:none;
  flex-direction:column;
  font-family:"Noto Sans Bengali", sans-serif;
  z-index:10000;
  text-align:center;
  overflow:hidden;
}
.chat-header-banner{
  position:relative;
  width:100%;
  max-height:150px;
  overflow:hidden;
  border-radius:12px 12px 0 0;
}
.chat-header-banner img{
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
  display:block;
}
.chat-header-banner button{
  position:absolute;
  top:10px;
  right:10px;
  background:rgba(255,255,255,0.9);
  border:none;
  font-size:20px;
  color:#000;
  cursor:pointer;
  border-radius:50%;
  padding:2px 6px;
  box-shadow:0 2px 5px rgba(0,0,0,.2);
}
.chat-title{
  padding:12px;
  font-size:16px;
  font-weight:bold;
  color:#333;
}
.chat-body{
  padding:15px;
}
.chat-option{
  display:block;
  background:#f9f9f9;
  border:1px solid #eee;
  padding:10px;
  margin-bottom:10px;
  border-radius:6px;
  text-decoration:none;
  color:#333;
  font-size:14px;
  transition:background .2s;
}
.chat-option:hover{
  background:#f1f1f1;
}

/* ===== Footer ===== */
footer{
  background:#000;
  padding:12px 8px;
  margin-top:14px;
}
.footer-main{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.footer-col{
  flex:1 1 auto;
}
.footer-links a{
  color:#ffeb3b;
  font-size:.9rem;
}
.pay img{
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain;
  margin-top:8px;
}
.social ul{
  display:flex;
  justify-content:center;
  gap:10px;
  list-style:none;
  padding:0;
  margin:16px 0 0;
  flex-wrap:wrap;
}
.social img{
  width:30px;
  height:30px;
  transition:.25s;
}
.copyright{
  font-size:13px;
  color:#f6b501;
  margin-top:14px;
  text-align:center;
}

/* ===== Article layout ===== */
.main-article{
  max-width:100%;
  margin:0 auto 40px;
  padding:0 12px;
  line-height:1.6;
  font-size:16px;
}

.article-cta{
  text-align:center;
  margin-top:24px;
}

.btn-action,
.btn-connect{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  border:0;
  background:var(--btn,#f6b501);
  color:#111;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}
.btn-connect{
  font-size:14px;
  padding:6px 12px;
}

/* TOC */
.article-toc{
  margin:20px 0 24px;
  padding:12px 14px;
  border-radius:10px;
  background:#faf7e9;
  border:1px solid #f0e2b5;
}
.article-toc ol{
  margin:0;
  padding-left:18px;
}

/* Lists */
.key-points{
  padding-left:20px;
}
.key-points li{
  margin-bottom:6px;
}

/* Article tables */
.main-article table{
  width:100%;
  border-collapse:collapse;
  margin:14px 0 20px;
  font-size:14px;
}
.main-article th,
.main-article td{
  border:1px solid #e3e3e3;
  padding:6px 8px;
  text-align:left;
}
.main-article thead th{
  background:#fafafa;
  font-weight:600;
}

/* FAQ */
.faq-section{
  margin-top:24px;
}
.faq-item{
  margin-bottom:12px;
}
.faq-question{
  font-weight:600;
}
.faq-answer{
  margin:4px 0 0;
}

/* Titles smaller on very small screens */
@media (max-width:480px){
  .main-article h1{
    font-size:22px;
  }
  .main-article h2{
    font-size:19px;
  }
}