/* ==========================================================================
   Babu88 Official Bangladesh Portal - Modern UI/UX Design System
   Tailored to /gambling-website-ui-ux-designer & Editorial Integrity Guidelines
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette - Babu88 Elite Dark & Radiant Gold */
  --bg-darkest: #07090e;
  --bg-primary: #0c1017;
  --bg-surface: #121824;
  --bg-card: #172030;
  --bg-card-hover: #1c273a;
  --bg-glass: rgba(18, 24, 36, 0.85);

  --accent-gold: #ffb800;
  --accent-gold-light: #ffd043;
  --accent-gold-glow: rgba(255, 184, 0, 0.2);
  --accent-gold-subtle: rgba(255, 184, 0, 0.1);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-gold: #ffc107;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 184, 0, 0.4);
  --border-active: #ffb800;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 25px rgba(255, 184, 0, 0.25);

  /* Layout */
  --header-height: 72px;
  --bottom-nav-height: 64px;
  --max-content-width: 1240px;
  --article-width: 860px;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--bottom-nav-height);
  }
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.article-container {
  width: 100%;
  max-width: var(--article-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(12, 16, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none !important;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 184, 0, 0.3));
}

.brand-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 184, 0, 0.25);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-pill {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.nav-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-pill.active {
  color: var(--bg-darkest);
  background: var(--accent-gold);
  box-shadow: 0 2px 10px var(--accent-gold-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb800 0%, #ff9500 100%);
  color: #07090e;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
  color: #000;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--accent-gold);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Slide-out Drawer */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1100;
}

.mobile-drawer-overlay.active {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1200;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  overflow-y: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--bg-card);
  color: var(--accent-gold);
}

/* ==========================================================================
   Mobile Sticky Bottom Navigation Bar (Thumb Reach)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(14, 19, 28, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
  }

  .bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--accent-gold);
  }

  .bottom-nav-item.active svg {
    stroke: var(--accent-gold);
    filter: drop-shadow(0 0 6px var(--accent-gold-glow));
  }
}

/* ==========================================================================
   Hero Banners & Visual Presentation (Strictly NO Captions on Hero)
   ========================================================================== */
.hero-banner-container {
  width: 100%;
  margin: var(--space-md) 0 var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  position: relative;
}

.hero-banner-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Contextual Image Presentation (With informative figure captions) */
.context-image-figure {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.context-image-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.context-image-caption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(12, 16, 23, 0.8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-image-caption svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   Editorial Author & Fact-Checking Trust Badges
   ========================================================================== */
.editorial-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0 var(--space-lg) 0;
  font-size: 0.85rem;
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-green);
}

.editorial-meta-item {
  color: var(--text-secondary);
}

.editorial-meta-item strong {
  color: var(--text-primary);
}

/* Table of Contents / Key Takeaways Box */
.takeaways-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-sm);
}

.takeaways-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

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

.takeaways-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.takeaways-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 800;
}

/* ==========================================================================
   Article Content Styling (Tables, Lists, Headings)
   ========================================================================== */
.article-body {
  font-size: 1.05rem;
  color: #d1d5db;
  line-height: 1.8;
}

.article-body h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .article-body h1 {
    font-size: 1.75rem;
  }
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent-gold);
  border-radius: var(--radius-pill);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body ul, .article-body ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
}

.article-body li {
  margin-bottom: var(--space-xs);
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.article-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: #e5e7eb;
}

.article-table tr:hover td {
  background: rgba(255, 184, 0, 0.02);
}

/* Interactive FAQ Accordion */
.faq-section {
  margin: var(--space-2xl) 0;
}

.faq-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  stroke: var(--accent-gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 20px;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 18px;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Directory & Grid Cards (For Homepage and Category Hubs)
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-gold-glow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-count {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
}

/* Breadcrumb Navigation */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: var(--space-md) 0;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-gold);
}

.breadcrumbs .separator {
  color: var(--text-muted);
}

.breadcrumbs .current {
  color: var(--accent-gold-light);
  font-weight: 600;
}

/* Author Box Component */
.author-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-subtle);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.author-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Footer & Responsible Gaming Compliance (Strict 18+ Rules)
   ========================================================================== */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* Trust Badges & Payment Row */
.trust-badges-row {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.payment-methods-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.pay-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pay-badge.bkash { color: #e2136e; }
.pay-badge.nagad { color: #f7941d; }
.pay-badge.rocket { color: #8c3494; }
.pay-badge.usdt { color: #26a17b; }

/* Responsible Gaming 18+ Warning */
.rg-compliance-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.rg-icon-18 {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 2px solid #ef4444;
  color: #ef4444;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rg-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rg-text strong {
  color: #f87171;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Placard Cards (3x3 Grid & Featured Images)
   ========================================================================== */
.placard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: var(--space-xl) 0;
}

@media (max-width: 1024px) {
  .placard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .placard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-gold-glow);
}

.post-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090d14;
  overflow: hidden;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.post-card:hover .post-card-img {
  transform: scale(1.05);
}

.post-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 16, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

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

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-card-meta .post-card-dot {
  color: var(--text-muted);
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--accent-gold);
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card-link {
  transform: translateX(4px);
}

/* Pagination Controls */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-2xl) 0;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--bg-card-hover);
}

.page-btn.active {
  background: var(--accent-gold);
  color: #07090e;
  border-color: var(--accent-gold);
  box-shadow: 0 2px 10px var(--accent-gold-glow);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--text-muted);
  padding: 0 6px;
  font-weight: 700;
}

/* ==========================================================================
   Homepage Categorized 3x2 Sections & Quick Jump Bar
   ========================================================================== */
.category-jump-bar-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin: var(--space-xl) 0 var(--space-2xl) 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.jump-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.jump-pill-track {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.jump-pill {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jump-pill:hover {
  background: var(--bg-card-hover);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.homepage-category-section {
  margin-bottom: var(--space-3xl);
  scroll-margin-top: 90px;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.homepage-category-section:last-of-type {
  border-bottom: none;
}

.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: var(--space-md);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-subtle);
}

.category-header-info {
  max-width: 760px;
}

.category-section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 6px 0 8px 0;
  letter-spacing: -0.01em;
}

.category-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.category-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.category-count-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.category-hub-link {
  font-size: 0.85rem;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .category-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .category-header-actions {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 12px;
  }
}


