/* ============================================================
   666baji-live.com - Global Stylesheet
   Reference: rsed.gb.net (58WIN) - Mixed long-form + dispatch type
   Style DNA: dark-navy base, gold-red accent, card-grid dispatch
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #001e3f;
  --primary-light: #003366;
  --accent-gold: #f5a623;
  --accent-red: #e8001d;
  --accent-gold-light: #ffe066;
  --bg-page: #eff6ff;
  --bg-section-alt: #eafbff;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-body: #3d3d3d;
  --text-muted: #666;
  --text-light: #ffffff;
  --border-light: #dde8f5;
  --shadow-sm: 0 2px 8px rgba(0,30,63,0.08);
  --shadow-md: 0 4px 20px rgba(0,30,63,0.14);
  --shadow-lg: 0 8px 40px rgba(0,30,63,0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container-max: 1200px;
  --header-h: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-page);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-red); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-stack);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 16px;
}
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img,
.header-logo svg {
  height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
}
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.header-nav a {
  color: #cce0ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  background: rgba(245,166,35,0.15);
  color: var(--accent-gold);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-register {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  color: #fff;
}
.btn-login {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}
.btn-login:hover { background: var(--accent-gold); color: var(--primary); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}
.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}
.btn-outline:hover { background: var(--accent-gold); color: var(--primary); }

/* ---- Mobile Menu Toggle ---- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Mobile Nav ---- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--primary);
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
}
.mobile-nav-panel.open { left: 0; }
.mobile-nav-panel .mobile-nav-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-panel .mobile-nav-logo img { height: 36px; width: auto; }
.mobile-nav-panel ul { padding: 10px 0; }
.mobile-nav-panel ul li a {
  display: block;
  padding: 14px 20px;
  color: #cce0ff;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-panel ul li a:hover { background: rgba(245,166,35,0.1); color: var(--accent-gold); }
.mobile-nav-cta {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-cta .btn { width: 100%; justify-content: center; }

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--primary);
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* ============================================================
   SHORTCUT CARDS (Quick Entry Grid)
   ============================================================ */
.shortcut-section {
  background: var(--bg-white);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.shortcut-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}
.shortcut-card .sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.shortcut-card .sc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--bg-section-alt);
}
.section-white {
  background: var(--bg-white);
}
.section-dark {
  background: var(--primary);
  color: var(--text-light);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
  border-radius: 2px;
}
.section-title p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 15px;
}
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title p { color: rgba(255,255,255,0.7); }

/* ============================================================
   FEATURE CARDS (4-column game dispatch)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.feature-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}
.feature-card-body {
  padding: 16px;
}
.feature-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.feature-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.feature-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ============================================================
   PROMOTION CARDS (2-column)
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.promo-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.promo-card-header .promo-icon { font-size: 40px; margin-bottom: 8px; }
.promo-card-header h3 { color: var(--accent-gold); font-size: 18px; }
.promo-card-body { padding: 16px 20px; }
.promo-card-body p { font-size: 14px; color: var(--text-muted); }
.promo-amount {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin: 8px 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
}
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  color: #fff;
  font-weight: 700;
}
.testimonial-stars { color: var(--accent-gold); font-size: 16px; margin-bottom: 10px; }
.testimonial-text { font-size: 14px; color: var(--text-muted); font-style: italic; line-height: 1.6; }
.testimonial-name { font-weight: 700; color: var(--text-dark); margin-top: 12px; font-size: 14px; }

/* ============================================================
   NEWS / ARTICLE CARDS (3-column listing)
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}
.news-card-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.news-card-body { padding: 16px; }
.news-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.news-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-card-body p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   LONG-FORM CONTENT AREA
   ============================================================ */
.longform-section {
  background: var(--bg-white);
  padding: 56px 0;
}
.longform-content {
  max-width: 860px;
  margin: 0 auto;
}
.longform-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--accent-gold);
}
.longform-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 12px;
}
.longform-content p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}
.longform-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.longform-content ul li {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.7;
}
.longform-content blockquote {
  background: var(--bg-section-alt);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 56px 0; background: var(--bg-page); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  transition: background 0.2s;
  gap: 12px;
}
.faq-question:hover { background: var(--bg-section-alt); }
.faq-question.active { background: var(--bg-section-alt); color: var(--primary); }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer.open { display: block; }
.faq-answer a { color: var(--accent-gold); }

/* ============================================================
   YOUTUBE VIDEO MODULE
   ============================================================ */
.video-section { padding: 56px 0; background: var(--primary); }
.video-section .section-title h2 { color: #fff; }
.video-section .section-title p { color: rgba(255,255,255,0.7); }
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a0a2e 100%);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(245,166,35,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--primary-light);
  padding: 24px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-item .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
}
.footer-main {
  padding: 56px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand .footer-logo { margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 44px; width: auto; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent-gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item .contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-gold);
}
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--accent-gold); }
.footer-partners {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-partners-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.partner-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--accent-gold); }
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent-gold); }
.breadcrumb .sep { color: var(--border-light); }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245,166,35,0.12) 0%, transparent 60%);
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ============================================================
   ARCHIVE / LISTING PAGE (Casino, Slots, Sports)
   ============================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0;
}
.archive-main {}
.archive-sidebar {}
.archive-header {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.archive-header h2 { font-size: 20px; color: var(--primary); margin-bottom: 12px; }
.archive-header p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.article-card-img {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  min-height: 140px;
}
.article-card-body { padding: 20px; }
.article-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.article-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.article-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  gap: 12px;
}
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links li a {
  font-size: 13px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}
.sidebar-links li a:hover { color: var(--accent-gold); }
.sidebar-cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.sidebar-cta-banner h4 { color: var(--accent-gold); font-size: 16px; margin-bottom: 8px; }
.sidebar-cta-banner p { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 16px; }
.sidebar-cta-banner .btn { width: 100%; justify-content: center; }

/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */
.article-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0;
}
.article-detail-main {}
.article-detail-header {
  margin-bottom: 24px;
}
.article-detail-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-detail-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-detail-body {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.article-detail-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent-gold);
}
.article-detail-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 20px 0 10px;
}
.article-detail-body p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-detail-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-detail-body ul li {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-detail-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-detail-body ol li {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.7;
}
.related-posts {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.related-posts h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border-light);
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--accent-gold); }
.related-card h4 { font-size: 13px; color: var(--text-dark); line-height: 1.4; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}
.contact-info h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #fff;
}
.contact-detail-text h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.contact-detail-text p { font-size: 14px; color: var(--text-muted); }
.contact-detail-text a { color: var(--accent-gold); }
.contact-form-box {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.contact-form-box h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-stack);
  color: var(--text-body);
  background: var(--bg-page);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent-gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; }

/* ============================================================
   POLICY PAGES (Privacy, Terms)
   ============================================================ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0;
}
.policy-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent-gold);
}
.policy-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 20px 0 10px;
}
.policy-content p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}
.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.policy-content ul li {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.7;
}
.policy-last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 10px 16px;
  background: var(--bg-section-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-page-inner h1 {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-page-inner h2 { font-size: 28px; color: var(--text-dark); margin-bottom: 12px; }
.error-page-inner p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
.error-nav-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.highlight-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tag-badge {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245,166,35,0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 32px 0;
}
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
  border: none;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }
  .article-detail-layout { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-logo img, .header-logo svg { height: 36px; max-width: 140px; }
  .header-cta .btn-login { display: none; }
  .header-cta .btn-register { padding: 8px 14px; font-size: 13px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-card { grid-template-columns: 1fr; }
  .article-card-img { min-height: 180px; }
  .related-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 26px; }
  .section { padding: 40px 0; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .error-page-inner h1 { font-size: 80px; }
  .longform-content h2 { font-size: 20px; }
  .article-detail-body { padding: 20px; }
  .contact-form-box { padding: 20px; }
}
