/* ==========================================================================
   333OK Bangladesh Design System CSS
   Prefix: avh8-
   Fonts: Playfair Display (Headings) + Lato (Body)
   Layout: single-column-longform (reading-first)
   Palette: Light Complementary (#F5F8F5 bg, #BB0DCF accent, #0F210D ink)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  --avh8-bg: #F5F8F5;
  --avh8-surface: #FFFFFF;
  --avh8-surface-subtle: #EDF3ED;
  --avh8-surface-card: #FFFFFF;
  --avh8-ink: #0F210D;
  --avh8-ink-muted: #3D4F3B;
  --avh8-ink-light: #657763;
  --avh8-border: #D7E3D6;
  --avh8-border-strong: #BDCDBD;
  --avh8-accent: #BB0DCF;
  --avh8-accent-hover: #9F0AA8;
  --avh8-accent2: #D514EB;
  --avh8-on-accent: #FFFFFF;
  --avh8-gold: #D97706;
  --avh8-emerald: #059669;
  
  --avh8-font-head: 'Playfair Display', Georgia, serif;
  --avh8-font-body: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --avh8-base: 18px;
  --avh8-scale: 1.25;
  --avh8-radius: 12px;
  --avh8-radius-pill: 9999px;
  
  /* Layered elevation shadow */
  --avh8-shadow-sm: 0 2px 4px rgba(15, 33, 13, 0.04), 0 4px 8px rgba(15, 33, 13, 0.04);
  --avh8-shadow-md: 0 4px 10px rgba(15, 33, 13, 0.06), 0 10px 24px rgba(15, 33, 13, 0.08);
  --avh8-shadow-lg: 0 12px 24px rgba(15, 33, 13, 0.08), 0 24px 48px rgba(15, 33, 13, 0.12);
  
  --avh8-max-w: 1160px;
  --avh8-content-w: 860px;
}

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

body {
  font-family: var(--avh8-font-body);
  font-size: var(--avh8-base);
  line-height: 1.7;
  color: var(--avh8-ink);
  background-color: var(--avh8-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--avh8-accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

/* ==========================================================================
   Typography (Playfair Display for headings, sentence-case)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--avh8-font-head);
  font-weight: 700;
  color: var(--avh8-ink);
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 2.44rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.95rem;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--avh8-border);
}

h3 {
  font-size: 1.45rem;
  margin-top: 1.4em;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.2em;
  color: var(--avh8-ink);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.avh8-header {
  background: var(--avh8-surface);
  border-bottom: 1px solid var(--avh8-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--avh8-shadow-sm);
}

.avh8-header-container {
  max-width: var(--avh8-max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avh8-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.avh8-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.avh8-logo-text {
  font-family: var(--avh8-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--avh8-ink);
}

.avh8-logo-badge {
  background: var(--avh8-accent);
  color: var(--avh8-on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--avh8-radius-pill);
  text-transform: uppercase;
}

.avh8-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.avh8-nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--avh8-ink-muted);
  text-decoration: none;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.avh8-nav-link:hover, .avh8-nav-link.active {
  color: var(--avh8-accent);
  border-bottom-color: var(--avh8-accent);
  text-decoration: none;
}

.avh8-header-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Buttons (Pill-button pattern from Design DNA)
   ========================================================================== */
.avh8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--avh8-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--avh8-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.avh8-btn-primary {
  background: var(--avh8-accent);
  color: var(--avh8-on-accent) !important;
  box-shadow: 0 4px 12px rgba(187, 13, 207, 0.28);
}

.avh8-btn-primary:hover {
  background: var(--avh8-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(187, 13, 207, 0.36);
}

.avh8-btn-outline {
  background: transparent;
  color: var(--avh8-accent) !important;
  border-color: var(--avh8-accent);
}

.avh8-btn-outline:hover {
  background: var(--avh8-accent);
  color: var(--avh8-on-accent) !important;
}

.avh8-btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.avh8-btn-gold:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  transform: translateY(-1px);
}

.avh8-btn-emerald {
  background: #059669;
  color: #FFFFFF !important;
}

.avh8-btn-emerald:hover {
  background: #047857;
}

.avh8-btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Hero Section (game-finder-search-first archetype)
   ========================================================================== */
.avh8-hero-wrap {
  background: linear-gradient(180deg, var(--avh8-surface) 0%, var(--avh8-surface-subtle) 100%);
  border-bottom: 1px solid var(--avh8-border);
  padding: 44px 20px 48px;
  text-align: center;
}

.avh8-hero-inner {
  max-width: var(--avh8-content-w);
  margin: 0 auto;
}

.avh8-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--avh8-surface);
  border: 1px solid var(--avh8-border-strong);
  padding: 4px 16px;
  border-radius: var(--avh8-radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--avh8-ink-muted);
  margin-bottom: 18px;
}

.avh8-hero-badge span {
  color: var(--avh8-accent);
}

.avh8-hero-title {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--avh8-ink);
}

.avh8-hero-lead {
  font-size: 1.18rem;
  color: var(--avh8-ink-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.avh8-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.avh8-quick-search-box {
  background: var(--avh8-surface);
  border: 2px solid var(--avh8-border);
  border-radius: var(--avh8-radius-pill);
  padding: 8px 12px 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--avh8-shadow-sm);
}

.avh8-search-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
  color: var(--avh8-ink);
  outline: none;
  font-family: var(--avh8-font-body);
}

.avh8-search-btn {
  background: var(--avh8-accent);
  color: #fff;
  border: none;
  border-radius: var(--avh8-radius-pill);
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Layout Containers (single-column-longform reading-first)
   ========================================================================== */
.avh8-page-layout {
  max-width: var(--avh8-max-w);
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.avh8-main-content {
  background: var(--avh8-surface);
  border: 1px solid var(--avh8-border);
  border-radius: var(--avh8-radius);
  padding: 40px;
  box-shadow: var(--avh8-shadow-sm);
}

.avh8-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Breadcrumbs */
.avh8-breadcrumbs {
  font-size: 0.88rem;
  color: var(--avh8-ink-light);
  margin-bottom: 24px;
}

.avh8-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.avh8-breadcrumbs li+li::before {
  content: "/";
  padding-right: 8px;
  color: var(--avh8-border-strong);
}

/* Answer Capsule for GEO/AEO discovery */
.avh8-answer-capsule {
  background: #FAF5FF;
  border-left: 4px solid var(--avh8-accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0 24px;
}

.avh8-capsule-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--avh8-accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.avh8-capsule-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--avh8-ink);
  line-height: 1.5;
  margin: 0;
}

/* E-E-A-T Author box */
.avh8-author-box {
  background: var(--avh8-surface-subtle);
  border: 1px solid var(--avh8-border);
  border-radius: var(--avh8-radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 28px 0;
}

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

.avh8-author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--avh8-ink);
  margin-bottom: 2px;
}

.avh8-author-title {
  font-size: 0.85rem;
  color: var(--avh8-accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.avh8-author-bio {
  font-size: 0.88rem;
  color: var(--avh8-ink-muted);
  line-height: 1.45;
  margin: 0;
}

/* Cards (layered-elevation from DNA) */
.avh8-card {
  background: var(--avh8-surface-card);
  border: 1px solid var(--avh8-border);
  border-radius: var(--avh8-radius);
  box-shadow: var(--avh8-shadow-sm);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avh8-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--avh8-shadow-md);
}

.avh8-card-title {
  font-size: 1.25rem;
  color: var(--avh8-ink);
  margin-bottom: 8px;
}

/* Tables */
.avh8-table-responsive {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--avh8-border);
  border-radius: var(--avh8-radius);
  background: var(--avh8-surface);
}

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

th {
  background: var(--avh8-surface-subtle);
  color: var(--avh8-ink);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--avh8-border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--avh8-border);
  color: var(--avh8-ink);
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background-color: #FAFCFA;
}

/* Steps list */
.avh8-step-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avh8-step-item {
  display: flex;
  gap: 16px;
  background: var(--avh8-surface-subtle);
  border: 1px solid var(--avh8-border);
  border-radius: var(--avh8-radius);
  padding: 16px 20px;
}

.avh8-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--avh8-accent);
  color: var(--avh8-on-accent);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.avh8-step-desc {
  font-size: 0.95rem;
  color: var(--avh8-ink);
  line-height: 1.5;
}

/* FAQs */
.avh8-faq-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--avh8-border);
}

.avh8-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.avh8-faq-item {
  background: var(--avh8-surface);
  border: 1px solid var(--avh8-border);
  border-radius: var(--avh8-radius);
  overflow: hidden;
}

.avh8-faq-summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--avh8-ink);
  padding: 16px 20px;
  cursor: pointer;
  background: var(--avh8-surface-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avh8-faq-answer {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--avh8-ink-muted);
  line-height: 1.6;
}

/* Footer (minimal-one-row from Design DNA) */
.avh8-footer {
  background: var(--avh8-surface);
  border-top: 1px solid var(--avh8-border);
  padding: 24px 20px;
  margin-top: 60px;
}

.avh8-footer-container {
  max-width: var(--avh8-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.avh8-footer-copy {
  font-size: 0.85rem;
  color: var(--avh8-ink-light);
}

.avh8-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 0.85rem;
}

.avh8-footer-links a {
  color: var(--avh8-ink-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .avh8-page-layout {
    grid-template-columns: 1fr;
  }
  
  .avh8-nav-links {
    display: none;
  }
  
  .avh8-hero-title {
    font-size: 2rem;
  }
  
  .avh8-main-content {
    padding: 24px 18px;
  }
}
