/* ============================================
   89BD BET - Global Stylesheet
   Target: Bangladesh (bn-BD)
   Style DNA: Aggregation + Distribution + Heavy Footer
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-primary: #0b7a3d;
  --color-primary-dark: #065a2b;
  --color-primary-light: #12a854;
  --color-secondary: #d4a017;
  --color-secondary-light: #f0c040;
  --color-accent: #e8392a;
  --color-bg-dark: #0d1117;
  --color-bg-section: #f5f7fa;
  --color-bg-card: #ffffff;
  --color-bg-footer: #0a0f14;
  --color-text: #1a1a2e;
  --color-text-light: #555770;
  --color-text-muted: #8a8da0;
  --color-text-inverse: #ffffff;
  --color-border: #e0e4ea;
  --color-border-light: #f0f2f5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --container-max: 1240px;
  --header-height: 64px;
  --nav-height: 48px;
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  line-height: 1.6;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Info Bar --- */
.top-bar {
  background: var(--color-bg-dark);
  color: var(--color-text-muted);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--color-secondary-light); }
.top-bar a:hover { color: var(--color-secondary); }

/* --- Header --- */
.site-header {
  background: var(--color-bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo svg,
.header-logo img {
  max-height: 44px;
  width: auto;
  max-width: 180px;
  height: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-register {
  background: var(--color-secondary);
  color: #1a1a00;
}
.btn-register:hover {
  background: var(--color-secondary-light);
  color: #1a1a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,160,23,0.4);
}
.btn-login {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-login:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11,122,61,0.3);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}
.btn-accent:hover {
  background: #c52e21;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Main Navigation --- */
.nav-bar {
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-dark));
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: var(--nav-height);
  flex-wrap: nowrap;
  overflow-x: auto;
}
.nav-list li { flex-shrink: 0; }
.nav-list a {
  display: block;
  color: var(--color-text-inverse);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: var(--nav-height);
  position: relative;
  transition: all var(--transition);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-secondary);
  transition: width var(--transition);
  border-radius: 2px 2px 0 0;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--color-secondary-light);
}
.nav-list a:hover::after,
.nav-list a.active::after {
  width: 60%;
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-dark);
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Quick Links Row --- */
.quick-links {
  padding: 24px 0;
  background: var(--color-bg-section);
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--color-accent), #c52e21);
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255,255,255,0.15);
}
.quick-link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

/* --- Sections --- */
.section {
  padding: 48px 0;
}
.section-alt {
  background: var(--color-bg-section);
}
.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 26px;
  display: inline-block;
  padding: 8px 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--color-text-light);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}
.section-dark .section-title p {
  color: rgba(255,255,255,0.7);
}

/* --- Category Shortcut Grid (follows competitor pattern) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.category-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.category-card .cat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card .cat-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.category-card h3 {
  font-size: 14px;
  font-weight: 600;
}

/* --- Content Feed / Article Cards --- */
.content-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.article-card .card-image {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--color-bg-section);
}
.article-card .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-image img {
  transform: scale(1.05);
}
.article-card .card-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}
.article-card .card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .card-title {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-title a {
  color: var(--color-text);
}
.article-card .card-title a:hover {
  color: var(--color-primary);
}
.article-card .card-excerpt {
  font-size: 14px;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card .card-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Feature Blocks --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-block {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.feature-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-block .feat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(11,122,61,0.1), rgba(11,122,61,0.05));
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-block .feat-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
}
.feature-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.feature-block p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- Long Content Area --- */
.long-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 16px;
}
.long-content h2 {
  font-size: 22px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  margin: 32px 0 16px;
}
.long-content h3 {
  font-size: 19px;
  color: var(--color-primary-dark);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--color-secondary);
}
.long-content p {
  margin-bottom: 16px;
  color: var(--color-text);
}
.long-content ul, .long-content ol {
  margin: 12px 0 20px 24px;
}
.long-content ul { list-style: disc; }
.long-content ol { list-style: decimal; }
.long-content li {
  margin-bottom: 8px;
  color: var(--color-text);
  line-height: 1.7;
}
.long-content a {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(11,122,61,0.2);
}
.long-content a:hover {
  border-bottom-color: var(--color-primary);
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-stack);
  transition: color var(--transition);
}
.faq-question:hover {
  color: var(--color-primary);
}
.faq-question .faq-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 48px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn {
  margin: 0 6px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-footer);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.footer-main {
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.footer-col p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 14px;
}
.footer-col ul a:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}
.footer-contact li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,0.7);
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--color-secondary);
  fill: none;
}
.footer-policy-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer-policy-row a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.footer-policy-row a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-text-light);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}
.breadcrumb span.sep {
  margin: 0 6px;
  color: var(--color-text-muted);
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-bg-dark), #162030);
  padding: 40px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 30px;
  color: #fff;
  margin-bottom: 8px;
}
.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Inner Page Content --- */
.page-content {
  padding: 40px 0 60px;
}
.page-content .content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* --- Archive / Listing Page --- */
.archive-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 36px 0;
  text-align: center;
  color: #fff;
}
.archive-header h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 8px;
}
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.archive-item {
  display: flex;
  gap: 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.archive-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.archive-item .item-image {
  width: 280px;
  min-height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-section);
}
.archive-item .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archive-item .item-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.archive-item .item-date {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.archive-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.archive-item h3 a {
  color: var(--color-text);
}
.archive-item h3 a:hover {
  color: var(--color-primary);
}
.archive-item .item-excerpt {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-item .item-link {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Game / Distribution Cards --- */
.dist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dist-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.dist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.dist-card .dc-visual {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.dist-card .dc-visual svg {
  width: 100%;
  height: 100%;
}
.dist-card .dc-body {
  padding: 20px;
}
.dist-card .dc-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.dist-card .dc-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* --- Steps / Process --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  counter-increment: step;
}
.step-item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.step-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.step-item p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* --- Related Links Module --- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.related-links a {
  padding: 8px 18px;
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.related-links a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* --- Table Style --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
}
.info-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.info-table tr:nth-child(even) {
  background: var(--color-bg-section);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --nav-height: 44px;
  }
  .mobile-menu-toggle { display: block; }
  .header-logo svg, .header-logo img { max-height: 36px; }
  .nav-bar { display: none; }
  .nav-bar.active { display: block; }
  .nav-list {
    flex-direction: column;
    height: auto;
    padding: 8px 0;
  }
  .nav-list a {
    padding: 10px 20px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-list a::after { display: none; }
  .content-feed { grid-template-columns: 1fr; }
  .dist-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .quick-links-grid { grid-template-columns: 1fr; }
  .archive-item { flex-direction: column; }
  .archive-item .item-image { width: 100%; min-height: 160px; }
  .section-title h2 { font-size: 20px; padding: 8px 18px; }
  .page-header h1 { font-size: 24px; }
  .cta-banner h2 { font-size: 22px; }
  .long-content h2 { font-size: 18px; }
  .hero-banner { margin-top: 0; }
  .top-bar { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn { padding: 7px 14px; font-size: 12px; }
  .footer-policy-row { gap: 8px; }
  .footer-policy-row a { font-size: 12px; padding: 4px 10px; }
}

/* --- Article Detail Page --- */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
}
.article-detail .article-header {
  margin-bottom: 28px;
}
.article-detail .article-header h1 {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.article-detail .article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.article-detail .article-lead {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.7;
  padding: 16px 20px;
  background: var(--color-bg-section);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
}
.article-detail .article-body {
  line-height: 1.8;
  font-size: 16px;
}
.article-detail .article-body h2 {
  font-size: 22px;
  color: var(--color-primary-dark);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.article-detail .article-body h3 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: var(--color-text);
}
.article-detail .article-body p {
  margin-bottom: 16px;
}
.article-detail .article-body ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}
.article-detail .article-body li {
  margin-bottom: 8px;
}

/* --- Sidebar Related --- */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
}
.related-articles h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* --- 404 Page --- */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 h1 {
  font-size: 96px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.page-404 p {
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 16px;
}
.page-404 .error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Text Overflow Fix --- */
.archive-item .item-body,
.article-detail .article-body,
.article-detail .article-lead,
.article-detail .article-header h1,
.archive-item h3,
.archive-item .item-excerpt,
.breadcrumb,
.long-content {
  word-break: break-word;
  overflow-wrap: break-word;
}
.archive-item .item-body {
  min-width: 0;
}
.article-detail {
  overflow: hidden;
}
