/* =========================================
   VARIABLES & RESET
   ========================================= */
:root{
  --primary: #0f76b9;
  --primary-hover: #0c5e94;
  --green: #087b50;
  --green-hover: #06633f;
  --blue: #1767c7;
  --blue-hover: #1254a3;
  --ink: #1e293b;
  --muted: #64748b;
  --bg-light: #f8fafc;
  --bg-tint: #f0fdf4;
  --border: #e2e8f0;
  --border-tint: #dcfce7;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.05);
}

html{scroll-behavior:smooth;scroll-padding-top:80px;}
body{background:#f1f5f9;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans Bengali',sans-serif;font-size:14px;line-height:1.6;}
button{cursor:pointer;font-family:inherit;}
a{text-decoration:none;color:inherit;}

.wrap{width:min(1100px, 96%);margin:auto;padding-bottom:40px;}

/* =========================================
   BREADCRUMBS
   ========================================= */
.breadcrumb{margin:20px 0;font-size:13px;color:var(--muted);font-weight:500;}
.breadcrumb a{color:var(--primary);transition:0.2s;}
.breadcrumb a:hover{text-decoration:underline;}

/* =========================================
   ADS
   ========================================= */
.ad-banner{width:100%;min-height:90px;margin:0 auto 24px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;}
.ad-banner img{max-width:100%;height:auto;display:block;}
.ad-banner a{display:block;width:100%;text-align:center;}

/* =========================================
   HERO SECTION
   ========================================= */
.profile-hero{
  display:grid;
  grid-template-columns:140px minmax(0,1fr) auto;
  gap:24px;
  align-items:start;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  margin-bottom:20px;
  box-shadow:var(--shadow);
}

.hero-logo{
  width:140px;
  height:140px;
  border:1px solid var(--border);
  border-radius:8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#fff;
  padding:10px;
  text-align:center;
}
.hero-logo img{max-width:100%;max-height:80px;object-fit:contain;}
.hero-logo.noimg .logo-text-bn{display:block;font-size:24px;font-weight:800;color:#111;}
.hero-logo.noimg .logo-text-en{display:none;}
.logo-text-bn{display:none;}
.logo-text-en{font-size:11px;color:var(--muted);margin-top:8px;font-weight:600;text-transform:uppercase;}

.hero-center h1{font-size:32px;line-height:1.2;font-weight:800;color:#0f172a;margin:0 0 4px;word-break:break-word;}
.hero-center .bn-name{font-size:20px;font-weight:700;color:var(--muted);margin-bottom:12px;}

.meta-badges{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;}
.meta-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:var(--ink);
  font-weight:500;
}
.meta-badge svg{width:16px;height:16px;color:var(--muted);}

.hero-summary{font-size:14px;color:#334155;margin:0 0 16px;max-width:700px;line-height:1.6;}

.verified-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  color:var(--green);
  font-weight:600;
  background:var(--bg-tint);
  padding:4px 10px;
  border-radius:20px;
}
.verified-tag svg{width:14px;height:14px;}

.hero-right{display:flex;flex-direction:column;gap:10px;width:200px;}

.action-buttons-main{display:flex;flex-direction:column;gap:10px;}
.btn-visit,.btn-epaper{
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 16px;border-radius:8px;font-size:14px;font-weight:600;transition:0.2s;border:1px solid transparent;
}
.btn-visit{background:var(--green);color:#fff;}
.btn-visit:hover{background:var(--green-hover);}
.btn-epaper{background:var(--blue);color:#fff;}
.btn-epaper:hover{background:var(--blue-hover);}
.btn-visit svg,.btn-epaper svg{width:16px;height:16px;}

.action-buttons-sub{display:flex;justify-content:space-between;gap:6px;margin-top:4px;}
.btn-sub{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  padding:8px 4px;background:#fff;border:1px solid var(--border);border-radius:8px;
  font-size:11px;font-weight:600;color:var(--muted);transition:0.2s;text-decoration:none;
}
.btn-sub:hover{border-color:var(--primary);color:var(--primary);background:#f8fafc;}
.btn-sub svg{width:16px;height:16px;}

/* =========================================
   TOC BOX
   ========================================= */
.toc-box{background:#eff6ff;border:1px solid #bfdbfe;border-radius:var(--radius);padding:16px 20px;margin-bottom:20px;}
.toc-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;}
.toc-title{display:flex;align-items:center;gap:8px;font-weight:700;color:#1e40af;font-size:15px;}
.toc-title svg{width:18px;height:18px;}
.toc-toggle{display:flex;align-items:center;gap:4px;background:transparent;border:0;color:#2563eb;font-size:12px;font-weight:600;cursor:pointer;}
.toc-toggle svg{width:14px;height:14px;transition:transform 0.2s;}
.toc-toggle[aria-expanded="false"] svg{transform:rotate(180deg);}
.toc-links{display:flex;flex-wrap:wrap;gap:12px 20px;}
.toc-links a{font-size:13px;font-weight:500;color:#2563eb;}
.toc-links a:hover{text-decoration:underline;}

/* =========================================
   SECTIONS
   ========================================= */
.profile-section{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  margin-bottom:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
  scroll-margin-top:80px;
}
.section-header{
  display:flex;align-items:center;gap:10px;
  padding:14px 20px;
  background:#f8fafc;
  border-bottom:1px solid var(--border);
}
.section-header svg{width:20px;height:20px;color:var(--green);}
.section-header h2{font-size:16px;font-weight:700;margin:0;color:#0f172a;}
.section-body{padding:20px;color:#334155;font-size:14px;line-height:1.7;}

/* =========================================
   TABLES
   ========================================= */
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.meta-table{width:100%;border-collapse:collapse;min-width:300px;}
.meta-table th,.meta-table td{padding:12px 20px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top;font-size:13.5px;}
.meta-table tr:last-child th,.meta-table tr:last-child td{border-bottom:0;}
.meta-table th{width:35%;font-weight:600;color:#475569;background:#fff;}
.meta-table td{color:#1e293b;word-break:break-word;}
.meta-table a{display:inline-flex;align-items:center;gap:4px;color:var(--primary);font-weight:500;}
.meta-table a:hover{text-decoration:underline;}
.meta-table a svg{width:14px;height:14px;}

/* =========================================
   HISTORY GRID
   ========================================= */
.history-grid{display:grid;grid-template-columns:minmax(0, 1fr) 320px;gap:20px;padding:20px;}
.history-grid .table-wrap{border:1px solid var(--border);border-radius:8px;}
.history-ad{display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;min-height:250px;}
.history-ad img{max-width:100%;height:auto;}

.timeline-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;}
.timeline-list li{display:flex;align-items:flex-start;gap:8px;}
.timeline-list .dot{width:8px;height:8px;background:var(--green);border-radius:50%;margin-top:6px;flex-shrink:0;}
.timeline-list b{font-weight:600;color:#0f172a;min-width:45px;}

/* =========================================
   TWO COLUMN LAYOUT (The Gap Fix)
   ========================================= */
.profile-columns{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:20px; 
  align-items:start;
  margin-bottom:20px;
}
.profile-col{
  display:flex;
  flex-direction:column;
  gap:20px; 
}
.profile-col .profile-section{
  margin-bottom:0; 
}

/* =========================================
   TINT BOX (Coverage & Related)
   ========================================= */
.tint-box{background:var(--bg-tint);border-color:var(--border-tint);}
.tint-box .section-header{background:transparent;border-bottom-color:var(--border-tint);}
.tint-box .section-header svg{color:var(--green);}

.tag-cloud{display:flex;flex-wrap:wrap;gap:8px;}
.tag{padding:6px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;font-size:12.5px;color:#334155;font-weight:500;}

/* =========================================
   SOCIAL LIST
   ========================================= */
.social-list{display:flex;flex-direction:column;}
.social-row{display:flex;align-items:center;padding:10px 20px;border-bottom:1px solid var(--border);font-size:13.5px;}
.social-row:last-child{border-bottom:0;}
.social-icon{width:24px;display:flex;justify-content:center;font-size:16px;}
.social-label{width:100px;font-weight:600;color:#475569;}
.social-link{color:var(--primary);word-break:break-all;display:inline-flex;align-items:center;gap:4px;}
.social-link:hover{text-decoration:underline;}
.social-link::before{content:"↗";font-size:12px;}

/* =========================================
   RELATED GRID
   ========================================= */
.related-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));gap:12px;padding:20px;}
.related-card{
  background:#fff;border:1px solid var(--border);border-radius:8px;padding:16px 10px;
  text-align:center;transition:0.2s;display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-width: 0;
}
.related-card:hover{border-color:var(--green);box-shadow:0 4px 12px rgba(8,123,80,0.1);transform:translateY(-2px);}
.related-logo{height:50px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;width:100%;}
.related-logo img{max-width:100%;max-height:100%;object-fit:contain;}
.related-logo.noimg .related-bn{display:block;}
.related-bn{display:none;font-size:16px;font-weight:800;color:#111;}
.related-card strong{display:block;font-size:12px;font-weight:700;color:#0f172a;line-height:1.3;word-break:break-word;}
.related-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px;}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media(max-width:900px){
  .profile-hero{grid-template-columns:110px minmax(0, 1fr);}
  .hero-logo{width:110px;height:110px;}
  .hero-right{grid-column:1/-1;width:100%;flex-direction:row;justify-content:space-between;align-items:center;}
  .action-buttons-main{flex-direction:row;}
  .action-buttons-sub{width:220px;}
  .history-grid{grid-template-columns:minmax(0, 1fr);}
  
  /* Stack columns on tablet */
  .profile-columns{grid-template-columns:minmax(0, 1fr);}
}
@media(max-width:600px){
  .wrap{width:94%;}
  .profile-hero{grid-template-columns:80px minmax(0, 1fr);padding:16px;gap:16px;}
  .hero-logo{width:80px;height:80px;padding:6px;}
  .hero-logo img{max-height:50px;}
  .hero-logo.noimg .logo-text-bn{font-size:16px;}
  .hero-center h1{font-size:22px;}
  .hero-center .bn-name{font-size:16px;margin-bottom:8px;}
  .meta-badges{gap:8px;}
  .meta-badge{font-size:11.5px;}
  .hero-right{flex-direction:column;align-items:stretch;}
  .action-buttons-main{flex-direction:column;}
  .action-buttons-sub{width:100%;margin-top:8px;}
  
  .toc-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  
  .meta-table th,.meta-table td{padding:10px 14px;font-size:12.5px;}
  .meta-table th{width:40%;}
  .social-row{flex-wrap:wrap;padding:10px 14px;}
  .social-label{width:90px;}
}