/* ---------------------------------------------------------------------------
   CSS Reset & Variables Setup
   --------------------------------------------------------------------------- */
:root {
  --font-sans: 'Inter', 'Noto Sans Bengali', 'Siyam Rupali', 'SolaimanLipi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --bg-dark: #050607;
  --bg-card: #0f1118;
  --bg-card-hover: #161a24;
  --border-color: #1e2230;
  
  --accent: #00c896;
  --accent-glow: rgba(0, 200, 150, 0.15);
  
  --text-main: #e8ecf5;
  --text-muted: #8a94ad;
  --text-inverse: #08090d;
  
  --red-accent: #f84f56;
  --gold-accent: #f0b429;
  
  /* Layout constraints */
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Skip Navigation link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: var(--accent);
  color: var(--text-inverse);
  padding: 16px 24px;
  clip: auto;
  width: auto;
  height: auto;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
}

/* Fluid Images & Media */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Touch target minimum size limit (buttons & links) */
button, a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   AdSense Responsive Container Styling
   --------------------------------------------------------------------------- */
.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30, 34, 48, 0.15);
  border: 1px dashed var(--border-color);
  padding: 12px;
  margin: 20px auto;
  max-width: var(--max-width);
  width: calc(100% - 32px);
  border-radius: 8px;
  overflow: hidden;
}

.ad-placeholder {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.ad-header-banner {
  margin-top: 24px;
  min-height: 90px;
}

.ad-in-content {
  margin: 36px auto;
  min-height: 250px;
}

.ad-sidebar {
  display: none; /* hidden on mobile view */
  width: 100%;
  min-height: 250px;
}

/* ---------------------------------------------------------------------------
   Header Navigation Styling
   --------------------------------------------------------------------------- */
.main-header {
  background: rgba(5, 6, 7, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.logo-accent {
  color: var(--accent);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
}

.menu-bar {
  width: 22px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 1px;
  transition: all 0.25s ease;
}

.main-nav {
  display: none; /* absolute overlay for mobile */
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(5, 6, 7, 0.98);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 16px;
}

.main-nav.open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.nav-list a {
  width: 100%;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  justify-content: flex-start;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-btn-secondary {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  justify-content: center !important;
}

.nav-btn-primary {
  background: var(--accent);
  color: var(--text-inverse) !important;
  border-radius: 8px;
  width: 100%;
  justify-content: center !important;
}

/* ---------------------------------------------------------------------------
   Hero Section Styling
   --------------------------------------------------------------------------- */
.hero-section {
  padding: 60px 16px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  height: 28px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: #1fd17e;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background: rgba(15, 17, 24, 0.4);
}
.btn-secondary:hover {
  background: rgba(15, 17, 24, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1 1 calc(50% - 8px);
  background: rgba(15, 17, 24, 0.4);
  border: 1px solid var(--border-color);
  padding: 12px 8px;
  border-radius: 8px;
  text-align: center;
}

.stat-item strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-item span {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   Live Market Overview Widget
   --------------------------------------------------------------------------- */
.live-prices-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.pulse-badge {
  background: rgba(248, 79, 86, 0.1);
  border: 1px solid rgba(248, 79, 86, 0.25);
  color: var(--red-accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.prices-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.price-row:last-child {
  border-bottom: none;
}

.pair-name {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.pair-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.price-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}

.sync-status {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------------------
   Main Layout Grid Setup
   --------------------------------------------------------------------------- */
.main-layout-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.info-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Core Card Styles */
.info-card, .link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.link-card {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  align-items: stretch;
}
.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.link-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.4;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.card-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(30, 34, 48, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* News Section Cards layout (Grid structure) */
.content-grid-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.link-card-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  align-items: stretch;
}
.link-card-row:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ---------------------------------------------------------------------------
   Aside Sidebar Component
   --------------------------------------------------------------------------- */
.sidebar-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-block h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links a {
  justify-content: flex-start;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 4px 0;
}
.sidebar-links a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------------------
   Footer Styling
   --------------------------------------------------------------------------- */
.main-footer {
  background: #030405;
  border-top: 1px solid var(--border-color);
  padding: 60px 16px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-block h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-block a {
  justify-content: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-block a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   Cookie Consent Banner Component
   --------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 17, 24, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--border-color);
  padding: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-actions .btn {
  width: auto;
  padding: 8px 18px;
}

/* ---------------------------------------------------------------------------
   Cornerstone & Cluster Content Elements Styling
   --------------------------------------------------------------------------- */
.pillar-article, .cluster-article {
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0;
  min-width: auto;
  min-height: auto;
  display: inline;
}
.breadcrumb a:hover {
  color: var(--accent);
}

.entry-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-main);
}

.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(30, 34, 48, 0.2);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.author-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.expert-badge {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.25);
  color: var(--accent);
  font-size: 11px;
}

.publish-dates {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.article-summary {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0;
}

/* Table of Contents (TOC) */
.table-of-contents {
  background: rgba(15, 17, 24, 0.6);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  margin: 32px 0;
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.toc-list a {
  justify-content: flex-start;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 2px 0;
  min-width: auto;
  min-height: auto;
  display: flex;
}
.toc-list a:hover {
  color: var(--accent);
}

/* Key Takeaways Box */
.key-takeaways {
  background: rgba(0, 200, 150, 0.03);
  border: 1.5px solid rgba(0, 200, 150, 0.2);
  padding: 24px;
  border-radius: 8px;
  margin: 32px 0;
}

.key-takeaways h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.key-takeaways ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.key-takeaways li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.6;
}

.key-takeaways li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Body Content Sections */
.article-section {
  margin-bottom: 32px;
}

.article-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 32px 0 16px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
  color: var(--text-main);
}

.article-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-main);
}

.article-section p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.article-section ul {
  list-style: none;
  margin-bottom: 24px;
}

.article-section li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Expert Tip & Upward Link Boxes */
.expert-tip-box {
  background: rgba(240, 180, 41, 0.03);
  border-left: 4px solid var(--gold-accent);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 36px 0;
}

.expert-tip-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.expert-tip-box p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.upward-link-box {
  background: rgba(30, 34, 48, 0.15);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 28px 0;
}

.upward-link-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.upward-link-box a {
  color: var(--accent);
  font-weight: 700;
  display: inline;
  padding: 0;
  min-width: auto;
  min-height: auto;
}
.upward-link-box a:hover {
  text-decoration: underline;
}

/* Accordions for FAQ Section */
.faq-details {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(15, 17, 24, 0.3);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-details summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  user-select: none;
  list-style: none;
  position: relative;
  transition: color 0.2s;
  display: block;
}
.faq-details summary::-webkit-details-marker {
  display: none;
}
.faq-details summary:hover {
  color: var(--accent);
}
.faq-details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-details[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-ans {
  padding: 0 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  background: rgba(15, 17, 24, 0.1);
}
.faq-ans p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Call To Action */
.cta-section {
  background: radial-gradient(circle at center, rgba(0, 200, 150, 0.08) 0%, transparent 100%), var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}

.cta-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cta-section .btn {
  width: auto;
  padding: 10px 24px;
}

/* Biography Footers */
.author-bio-full {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(15, 17, 24, 0.4);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 12px;
  margin-top: 48px;
}

.author-bio-img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  align-self: center;
}

.author-bio-content h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

.author-bio-content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: justify;
}

.author-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.author-socials a {
  font-size: 12px;
  color: var(--accent);
  padding: 0;
  min-width: auto;
  min-height: auto;
  display: flex;
}
.author-socials a:hover {
  text-decoration: underline;
}

/* Sidebar aside blocks */
.parent-link-block {
  border-left: 3px solid var(--accent);
}

.parent-link-btn {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent) !important;
  justify-content: flex-start !important;
  padding: 4px 0 !important;
  display: flex;
}
