/* ============================================
   2777bet - Global Design System
   Target: Bangladesh (bn-BD)
   Style DNA: Aggregator + Distribution + Heavy Footer
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1a5c2e;
  --color-primary-dark: #0d3318;
  --color-primary-light: #2a7a42;
  --color-accent: #f5c842;
  --color-accent-dark: #e8a817;
  --color-accent-light: #ffd966;
  --color-bg-dark: #0a1f12;
  --color-bg-section: #f4f6f5;
  --color-bg-card: #ffffff;
  --color-bg-alt: #eef2ef;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-text-white: #ffffff;
  --color-border: #dde3de;
  --color-border-light: #e8ece9;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --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;
  --max-width: 1280px;
  --header-height: 64px;
  --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%; }
body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg-card);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.section-gap { padding: 60px 0; }
.section-gap-sm { padding: 40px 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}
.btn-register {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}
.btn-register:hover {
  background: var(--color-accent-dark);
  color: var(--color-bg-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,200,66,0.3);
}
.btn-login {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-login:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-white);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,92,46,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--color-bg-dark);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: var(--color-text-muted); font-size: 0.8rem; }
.topbar a:hover { color: var(--color-accent); }
.topbar-lang { color: var(--color-accent); font-weight: 600; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}
.header-logo img,
.header-logo svg {
  height: 44px;
  width: auto;
  max-width: 160px;
}
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--color-text-white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  background: rgba(245,200,66,0.08);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { padding: 8px 20px; font-size: 0.85rem; }

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-dark);
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 540px;
  object-fit: cover;
}

/* Page hero for inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-bg-dark));
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-accent));
  opacity: 0.5;
}
.page-hero h1 {
  color: var(--color-text-white);
  font-size: 2rem;
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-section);
}
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb-list li::after { content: "/"; margin-left: 6px; color: var(--color-text-muted); }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--color-primary); }
.breadcrumb-list a:hover { color: var(--color-accent-dark); }
.breadcrumb-list .current { color: var(--color-text-muted); overflow-wrap: break-word; word-break: break-word; }

/* ============================================
   SHORTCUT CARDS (Quick Entry Grid)
   ============================================ */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 30px 0;
}
.shortcut-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.shortcut-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.shortcut-card .sc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.shortcut-card .sc-icon svg { width: 24px; height: 24px; }
.shortcut-card h3 { font-size: 0.95rem; color: var(--color-text); }
.shortcut-card p { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.4; }

/* ============================================
   CONTENT FEED / CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 600;
}
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card-body h3 a { color: var(--color-text); }
.card-body h3 a:hover { color: var(--color-primary); }
.card-body p { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 12px; }
.card-meta { font-size: 0.8rem; color: var(--color-text-muted); }
.card-link { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { color: var(--color-accent-dark); }

/* 2-column card grid variant */
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
/* 4-column card grid variant */
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   FEATURE BLOCKS / DISTRIBUTION SECTIONS
   ============================================ */
.feature-section { padding: 60px 0; }
.feature-section.alt-bg { background: var(--color-bg-section); }
.feature-section.dark-bg {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-bg-dark));
  color: var(--color-text-white);
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}
.dark-bg .section-header p { color: rgba(255,255,255,0.7); }

.feature-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-text p { color: var(--color-text-light); }
.feature-visual {
  flex: 1;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-lg);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   CATEGORY ENTRY BLOCKS
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-block {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  color: var(--color-text-white);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.category-block::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(245,200,66,0.08) 0%, transparent 70%);
}
.category-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-accent);
}
.category-block p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.category-block .btn { margin-top: 16px; }

/* ============================================
   LONG-FORM CONTENT AREA
   ============================================ */
.longform-section {
  padding: 60px 0;
  background: var(--color-bg-card);
}
.longform-content {
  max-width: 880px;
  margin: 0 auto;
}
.longform-content h2 {
  font-size: 1.6rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
}
.longform-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--color-text);
}
.longform-content p {
  color: var(--color-text-light);
  line-height: 1.85;
  margin-bottom: 16px;
}
.longform-content ul,
.longform-content ol {
  margin: 16px 0 16px 24px;
}
.longform-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--color-text-light);
  line-height: 1.7;
}
.longform-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}
.longform-content ol { list-style: decimal; }
.longform-content ol li::before { display: none; }
.longform-content a { color: var(--color-primary); font-weight: 500; border-bottom: 1px solid rgba(26,92,46,0.2); }
.longform-content a:hover { color: var(--color-accent-dark); border-bottom-color: var(--color-accent-dark); }

/* Content highlight box */
.content-highlight {
  background: var(--color-bg-section);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.content-highlight p { margin-bottom: 0; }

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section { padding: 60px 0; background: var(--color-bg-section); }
.faq-list { max-width: 840px; 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;
}
.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--color-bg-section); }
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--color-text-light);
  line-height: 1.7;
}
.faq-answer-inner a { color: var(--color-primary); font-weight: 500; }
.faq-item.open .faq-answer {
  max-height: 600px;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  text-align: center;
  color: var(--color-text-white);
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Alt CTA style */
.cta-banner {
  background: var(--color-accent);
  padding: 40px 0;
  text-align: center;
}
.cta-banner h3 { color: var(--color-bg-dark); font-size: 1.4rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(10,31,18,0.7); margin-bottom: 20px; }
.cta-banner .btn-primary { background: var(--color-bg-dark); color: var(--color-accent); }
.cta-banner .btn-primary:hover { background: var(--color-primary-dark); }

/* ============================================
   NEWS / ARTICLE LIST
   ============================================ */
.news-list { display: flex; flex-direction: column; gap: 20px; max-width: 100%; overflow: hidden; }
.news-item {
  display: flex;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  max-width: 100%;
}
.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-item-thumb {
  width: 280px;
  min-height: 180px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-weight: 600;
}
.news-item-body { padding: 20px; flex: 1; min-width: 0; overflow: hidden; }
.news-item-body h3 { margin-bottom: 8px; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item-body h3 a { color: var(--color-text); }
.news-item-body h3 a:hover { color: var(--color-primary); }
.news-item-body .news-excerpt { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-item-body .news-meta { font-size: 0.8rem; color: var(--color-text-muted); }

/* Article detail */
.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 2rem; margin-bottom: 12px; overflow-wrap: break-word; word-break: break-word; }
.article-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 16px; }
.article-body { line-height: 1.85; }
.article-body h2 { font-size: 1.5rem; margin: 28px 0 14px; color: var(--color-primary-dark); }
.article-body h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--color-text-light); }
.article-body a { color: var(--color-primary); border-bottom: 1px solid rgba(26,92,46,0.2); }

/* Related articles */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
}
.related-articles h3 { margin-bottom: 20px; }

/* ============================================
   STEPS / PROCESS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  counter-increment: step;
}
.step-card::before {
  content: counter(step);
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text-white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.step-card h4 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--color-text-light); }

/* ============================================
   LISTING / ARCHIVE PAGE
   ============================================ */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.listing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}
.listing-card-visual {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 600;
}
.listing-card-body { padding: 18px; }
.listing-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.listing-card-body p { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 10px; }

/* ============================================
   TABLE
   ============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.info-table th {
  background: var(--color-bg-section);
  font-weight: 600;
  color: var(--color-primary-dark);
}
.info-table tr:hover td { background: var(--color-bg-alt); }

/* ============================================
   BONUS CARDS
   ============================================ */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.bonus-card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.bonus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}
.bonus-card h3 { color: var(--color-primary); margin-bottom: 10px; }
.bonus-card p { color: var(--color-text-light); font-size: 0.9rem; }
.bonus-card .bonus-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent-dark);
  margin: 12px 0;
}
.bonus-card .bonus-terms {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
  margin-top: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 0;
}
.footer-main {
  padding: 50px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.footer-col h4 {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-brand-text { font-size: 0.85rem; line-height: 1.7; margin-top: 12px; color: rgba(255,255,255,0.5); }
.footer-contact p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--color-accent); }

/* ============================================
   INTERNAL PAGE LAYOUTS
   ============================================ */
.page-content {
  padding: 40px 0 60px;
}
.page-content-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.two-col-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.two-col-layout > * { min-width: 0; }
.sidebar { position: sticky; top: 80px; }
.sidebar-block {
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-block h4 { font-size: 1rem; margin-bottom: 12px; color: var(--color-primary-dark); }
.sidebar-block ul li { margin-bottom: 8px; }
.sidebar-block ul li a { color: var(--color-text-light); font-size: 0.9rem; }
.sidebar-block ul li a:hover { color: var(--color-primary); }

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page .error-code {
  font-size: 7rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h1 { font-size: 1.8rem; margin-bottom: 12px; }
.error-page p { color: var(--color-text-light); margin-bottom: 30px; max-width: 460px; }
.error-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .bonus-grid { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .feature-row { flex-direction: column; }
  .feature-row.reverse { flex-direction: column; }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  .topbar { display: none; }
  .mobile-toggle { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 16px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); }
  .header-logo img,
  .header-logo svg { height: 36px; max-width: 130px; }
  .header-actions .btn { padding: 6px 14px; font-size: 0.8rem; }

  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .listing-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .news-item { flex-direction: column; }
  .news-item-thumb { width: 100%; min-height: 140px; }

  .hero-banner img,
  .hero-banner svg { max-height: 300px; }

  .section-gap { padding: 40px 0; }
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: 1.5rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shortcut-card { padding: 16px 10px; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .header-actions .btn-login { display: none; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .error-page .error-code { font-size: 5rem; }
}
