/* =========================================================
   Betway bet-way.com.pa — Bespoke design
   Palette: #110020 (deep black), #00a826 (BW green),
            #ffaf27 (amber), #f6f6f6 (light surface)
   ========================================================= */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0015;
  color: #e8e8e8;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #00a826; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Typography ---- */
.wordmark {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: lowercase;
}
.wordmark .bw-b { color: #00a826; }
.wordmark .bw-w { color: #fff; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #110020;
  border-bottom: 2px solid #00a826;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo { flex-shrink: 0; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.header-nav a {
  color: #ccc;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
  color: #fff;
  background: rgba(0,168,38,0.15);
  text-decoration: none;
}
.header-nav a.active { color: #00a826; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 3px;
}
.lang-switch a {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  color: #aaa;
  transition: background 0.2s, color 0.2s;
}
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.lang-active {
  background: #00a826;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn:active { transform: scale(0.97); }

.btn-outline {
  border: 2px solid #00a826;
  color: #00a826;
  background: transparent;
}
.btn-outline:hover { background: rgba(0,168,38,0.1); }

.btn-primary {
  background: #00a826;
  color: #fff;
  border: 2px solid #00a826;
}
.btn-primary:hover { opacity: 0.88; }

.btn-amber {
  background: #ffaf27;
  color: #110020;
  border: 2px solid #ffaf27;
}
.btn-amber:hover { opacity: 0.88; }

/* Burger */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #1a0030;
  border-top: 1px solid rgba(0,168,38,0.3);
  padding: 16px 20px 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: #ccc;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
}
.mobile-nav a:hover { color: #fff; background: rgba(0,168,38,0.1); text-decoration: none; }
.mobile-nav a.active { color: #00a826; }

.mobile-nav .mobile-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0;
}

.mobile-nav .mobile-lang {
  display: flex;
  gap: 8px;
  padding: 6px 12px;
}
.mobile-nav .mobile-lang a {
  font-size: 0.875rem;
  padding: 4px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
}
.mobile-nav .mobile-lang a.lang-active {
  background: #00a826;
  color: #fff;
}

.mobile-nav .mobile-cta {
  display: flex;
  gap: 10px;
  padding: 8px 12px 0;
}
.mobile-nav .mobile-cta .btn { flex: 1; text-align: center; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero {
  position: relative;
  background: #110020;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 900/300;
  max-height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active {
  background: #00a826;
  transform: scale(1.3);
}

/* Hero CTA bar */
.hero-cta-bar {
  background: linear-gradient(135deg, #110020 0%, #1e003a 100%);
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,168,38,0.3);
}
.hero-cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-cta-text { flex: 1; min-width: 200px; }
.hero-cta-text .cta-headline {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.hero-cta-text .cta-headline em {
  color: #00a826;
  font-style: normal;
}
.hero-cta-text .cta-sub {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 4px;
}
.hero-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* =========================================================
   SECTION STYLES
   ========================================================= */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,0.06); }

.section-alt {
  background: #0e001c;
}

.section-header {
  margin-bottom: 32px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: #00a826;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-subtitle {
  color: #999;
  font-size: 0.95rem;
  margin-top: 6px;
  padding-left: 14px;
}

/* =========================================================
   GAME GRID + CATEGORY CHIPS
   ========================================================= */
.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #ccc;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: #00a826; color: #fff; }
.chip.chip-active {
  background: #00a826;
  border-color: #00a826;
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.game-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1a0030;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 270/210;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,168,38,0.25);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,0,32,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00a826;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 4px;
  text-decoration: none !important;
}

/* Show more */
.grid-footer {
  text-align: center;
  margin-top: 28px;
}

/* =========================================================
   SPORT PARTNERS
   ========================================================= */
.partners-section {
  background: #110020;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.partners-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partners-row img {
  height: 48px;
  width: auto;
  filter: grayscale(1) brightness(0.6);
  transition: filter 0.2s;
}
.partners-row img:hover { filter: grayscale(0) brightness(1); }

/* =========================================================
   FEATURES / USPs
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #160027;
  border: 1px solid rgba(0,168,38,0.15);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: #00a826;
  background: rgba(0,168,38,0.04);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.feature-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.5;
}

/* =========================================================
   SPORT ODDS BOARD (sports section teaser)
   ========================================================= */
.odds-board {
  background: #160027;
  border: 1px solid rgba(0,168,38,0.2);
  border-radius: 12px;
  overflow: hidden;
}
.odds-board-header {
  background: rgba(0,168,38,0.12);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,168,38,0.2);
}
.odds-board-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.odds-board-link {
  font-size: 0.8rem;
  color: #00a826;
  font-weight: 700;
}
.odds-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-variant-numeric: tabular-nums;
}
.odds-row:last-child { border-bottom: none; }
.odds-match { font-size: 0.9rem; font-weight: 600; color: #e0e0e0; }
.odds-league { font-size: 0.75rem; color: #666; }
.odds-match-info { min-width: 0; }
.odds-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 14px;
  min-width: 60px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.odds-btn:hover {
  background: rgba(0,168,38,0.15);
  border-color: #00a826;
}
.odds-label { font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.odds-value { font-size: 1rem; font-weight: 800; color: #ffaf27; font-variant-numeric: tabular-nums; }

/* =========================================================
   BONUS BANNER
   ========================================================= */
.bonus-band {
  background: linear-gradient(135deg, #00a826 0%, #007a1c 100%);
  padding: 40px 0;
}
.bonus-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.bonus-text { flex: 1; min-width: 200px; }
.bonus-headline {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.bonus-headline span { color: #ffaf27; }
.bonus-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}
.bonus-toc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}
.bonus-cta { flex-shrink: 0; }
.btn-white {
  background: #fff;
  color: #00a826;
  border: 2px solid #fff;
  font-size: 1rem;
  padding: 12px 32px;
}
.btn-white:hover { opacity: 0.88; }

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  background: #0a0015;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #888;
}
.trust-item img {
  height: 28px;
  width: auto;
  filter: grayscale(1) brightness(0.5);
}
.trust-icon { font-size: 1.2rem; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.8rem;
  color: #666;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #00a826; text-decoration: none; }
.breadcrumb span { color: #999; }
.breadcrumb-sep { margin: 0 6px; color: #444; }

/* =========================================================
   SEO ARTICLE BLOCK
   ========================================================= */
.seo-block {
  background: #0e001c;
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.seo-content {
  max-width: 860px;
}

.seo-content h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
}
.seo-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,168,38,0.25);
}
.seo-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e0e0;
  margin: 24px 0 10px;
}
.seo-content p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.seo-content p:last-child { margin-bottom: 0; }
.seo-content a { color: #00a826; font-weight: 600; }
.seo-content a:hover { text-decoration: underline; }
.seo-content strong { color: #e0e0e0; }

.seo-content ul,
.seo-content ol {
  margin: 12px 0 18px 20px;
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.75;
}
.seo-content li { margin-bottom: 6px; }

/* Tables */
.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.875rem;
  table-layout: fixed;
}
.seo-content th {
  background: rgba(0,168,38,0.12);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid rgba(0,168,38,0.3);
  overflow-wrap: anywhere;
}
.seo-content td {
  color: #ccc;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-wrap: anywhere;
}
.seo-content tr:hover td { background: rgba(255,255,255,0.02); }

/* FAQ inside article */
.seo-content h3 + p { margin-top: 0; }

/* FAQ accordion widget (wraps article FAQs on index pages) */
.faq-widget { margin-top: 36px; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #e0e0e0;
  transition: color 0.2s;
}
.faq-question:hover { color: #00a826; }
.faq-question .faq-icon {
  font-size: 1.2rem;
  color: #00a826;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 16px;
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* =========================================================
   INNER PAGE HERO (non-index pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, #110020 0%, #1e003a 100%);
  padding: 48px 0 40px;
  border-bottom: 2px solid rgba(0,168,38,0.25);
}
.page-hero-tag {
  display: inline-block;
  background: rgba(0,168,38,0.15);
  border: 1px solid rgba(0,168,38,0.35);
  color: #00a826;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.page-hero-headline {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  max-width: 680px;
}
.page-hero-headline em {
  color: #00a826;
  font-style: normal;
}
.page-hero-desc {
  font-size: 1rem;
  color: #999;
  margin-top: 12px;
  max-width: 580px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #070010;
  border-top: 2px solid rgba(0,168,38,0.2);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .wordmark { font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.825rem;
  color: #666;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.875rem;
  color: #777;
  transition: color 0.2s;
}
.footer-links a:hover { color: #00a826; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #555;
}
.footer-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-trust img { height: 22px; width: auto; filter: grayscale(1) brightness(0.4); }
.footer-copyright { margin-top: 4px; }

/* Responsible gaming notice */
.rg-notice {
  background: rgba(255,175,39,0.06);
  border: 1px solid rgba(255,175,39,0.15);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0 0;
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg-notice img { height: 28px; width: auto; flex-shrink: 0; }
.rg-notice .rg18 { height: 24px; width: 24px; flex-shrink: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .features-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Mobile */
@media (max-width: 860px) {
  /* Header: show only wordmark + burger */
  .header-nav { display: none; }
  .header-right { display: none; }
  .burger-btn { display: flex; }

  /* Hero */
  .hero-slider { aspect-ratio: 16/7; max-height: 240px; }
  .hero-cta-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-cta-actions { width: 100%; }
  .hero-cta-actions .btn { flex: 1; }
  .hero-cta-text .cta-headline { font-size: 1.2rem; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-title { font-size: 1.25rem; }

  /* Page hero */
  .page-hero { padding: 32px 0 28px; }
  .page-hero-headline { font-size: 1.5rem; }

  /* Bonus band */
  .bonus-inner { flex-direction: column; }
  .bonus-headline { font-size: 1.5rem; }

  /* Odds board */
  .odds-row { grid-template-columns: 1fr; gap: 8px; }
  .odds-row .odds-btn { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; }

  /* Partners */
  .partners-row { gap: 24px; }
  .partners-row img { height: 36px; }
}

@media (max-width: 560px) {
  .hero-slider { aspect-ratio: 16/9; max-height: 220px; }
  .hero-cta-actions { flex-direction: column; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }

  /* Responsive tables */
  .seo-content table { font-size: 0.78rem; }
  .seo-content th,
  .seo-content td { padding: 6px 8px; font-size: 0.78rem; }

  .seo-content h1 { font-size: 1.5rem; }
  .seo-content h2 { font-size: 1.15rem; }
  .faq-question { font-size: 0.9rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
