/* ============================================================
   Gooobet — Sports Betting Affiliate Site (ar-EG)
   Style system — dark theme, RTL, responsive
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--bg, #16181C);
  color: var(--fg, #E8E8E8);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent, #39BEEF); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover, #4DC8F0); }
ul, ol { list-style: none; }

/* --- Variables --- */
:root {
  --bg: #16181C;
  --surface: #252A31;
  --fg: #E8E8E8;
  --muted: #6B7280;
  --border: #2D3748;
  --accent: #39BEEF;
  --accent-hover: #4DC8F0;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --card-bg: #1E2128;
  --header-bg: rgba(22, 24, 28, 0.95);
  --footer-bg: #111316;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-width: 1200px;
  --header-h: 72px;
}

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; color: #fff; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-top: 1.75rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
b, strong { font-weight: 700; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.header .logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-size: 1.4rem; font-weight: 900; color: #fff;
}
.header .logo img { width: 120px; height: auto; }
.header .logo span { color: var(--accent); display: none; }

/* Navigation */
.nav { display: flex; align-items: center; }
.nav ul { display: flex; gap: 4px; }
.nav ul li a {
  display: flex; align-items: center; padding: 8px 14px;
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  border-radius: var(--radius-sm); transition: all 0.2s;
  white-space: nowrap;
}
.nav ul li a:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* Header CTA buttons */
.header-cta { display: flex; gap: 8px; margin-right: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s; white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #0F1216;
}
.btn-primary:hover { background: var(--accent-hover); color: #0F1216; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(57, 190, 239, 0.12); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

/* --- Burger Menu --- */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.burger span { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(22, 24, 28, 0.97);
  backdrop-filter: blur(8px);
  z-index: 999; display: none; flex-direction: column;
  padding: 20px 20px 140px; overflow-y: auto;
}
.nav-overlay.open { display: flex; }
.nav-overlay ul { display: flex; flex-direction: column; gap: 0; }
.nav-overlay ul li a {
  display: block; padding: 14px 16px;
  color: var(--muted); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-overlay ul li a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-overlay .nav-cta { margin-top: 20px; display: flex; gap: 10px; flex-direction: column; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 84px 0 12px; font-size: 0.8rem; color: var(--muted);
  max-width: 900px;
  margin: 0 auto; padding-left: 20px; padding-right: 20px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 6px; color: var(--border); }

/* --- Page Content --- */
.page-content { padding: 20px 0 60px; }

/* --- Hero Block --- */
.hero {
  padding: 100px 0 40px; text-align: center;
  background: linear-gradient(180deg, rgba(57, 190, 239, 0.06) 0%, transparent 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 900px; margin: 0 auto; padding: 0 20px;
}
.hero-text { text-align: right; }
.hero-text h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.hero-text p { font-size: 1.05rem; color: var(--muted); max-width: 540px; }
.hero-text .hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-image {
  position: relative;

}
.hero-image a { display: block; }
.hero-image img { max-width: 100%; margin: 0 auto; }

/* --- Content Sections --- */
.content-section { max-width: 900px; margin: 0 auto; padding: 0 20px 40px; }
.content-section h2 { position: relative; }
.content-section h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--accent); margin-top: 8px; border-radius: 2px;
}

.content-section .section-img {
  margin: 16px 0; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.content-section .section-img img { width: 100%; height: auto; }

/* -- Hero image on homepage — more prominent -- */
.main-hero-img {
  margin: 20px 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(57, 190, 239, 0.25);
  box-shadow: 0 0 50px rgba(57, 190, 239, 0.15);
}
.main-hero-img a { display: block; }
.main-hero-img img { width: 100%; min-height: 280px; background: var(--surface); }

/* --- Table of Contents --- */
.toc {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin: 24px 0; overflow: hidden;
}
.toc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; cursor: pointer; user-select: none;
  font-weight: 600; font-size: 0.95rem;
}
.toc-header .toc-toggle {
  font-size: 0.8rem; color: var(--accent); background: none; border: none;
  cursor: pointer; font-family: inherit; padding: 4px 8px;
}
.toc-body { display: none; padding: 0 18px 14px; }
.toc-body.open { display: block; }
.toc-body ol { list-style: none; counter-reset: toc-counter; }
.toc-body ol li { counter-increment: toc-counter; margin-bottom: 6px; }
.toc-body ol li::before {
  content: counter(toc-counter) '. ';
  color: var(--accent); font-weight: 600; font-size: 0.85rem;
}
.toc-body ol li a { color: var(--muted); font-size: 0.88rem; }
.toc-body ol li a:hover { color: var(--accent); }

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
caption { padding: 10px 14px; font-weight: 700; font-size: 0.85rem; color: var(--muted); text-align: right; caption-side: top; background: var(--card-bg); border-bottom: 1px solid var(--border); }
th, td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); }
th { background: var(--card-bg); font-weight: 700; color: #fff; white-space: nowrap; }
td { color: var(--fg); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Lists --- */
.content-list { margin: 12px 0 16px; padding-right: 20px; }
.content-list li { position: relative; padding-right: 20px; margin-bottom: 8px; color: var(--fg); }
.content-list li::before {
  content: ''; position: absolute; right: 0; top: 10px;
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}
.content-list ul { margin-top: 8px; padding-right: 20px; }
.content-list ul li::before { width: 4px; height: 4px; background: var(--muted); }
ol.content-list { counter-reset: ol-counter; }
ol.content-list li { counter-increment: ol-counter; padding-right: 28px; }
ol.content-list li::before {
  content: counter(ol-counter) '.';
  position: absolute; right: 0; top: 0;
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
  background: none; width: auto; height: auto;
}

/* --- FAQ Accordion --- */
.faq { margin: 24px 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; cursor: pointer; font-weight: 600;
  background: var(--card-bg); transition: background 0.2s;
  user-select: none; color: #fff;
}
.faq-q:hover { background: rgba(255,255,255,0.04); }
.faq-q .faq-icon { font-size: 1.1rem; transition: transform 0.3s; color: var(--accent); }
.faq-item.open .faq-q .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 12px 18px 14px; color: var(--muted); font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* --- Author Block --- */
.author-block {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; margin: 40px 0 0;
  display: flex; gap: 16px; align-items: flex-start;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 2px solid var(--accent);
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.author-info { flex: 1; }
.author-info .author-name { font-weight: 700; color: #fff; margin-bottom: 2px; }
.author-info .author-role { font-size: 0.82rem; color: var(--accent); margin-bottom: 6px; }
.author-info .author-bio { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 2000; background: var(--surface); border-top: 1px solid var(--border);
  padding: 8px 16px; gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-cta .btn { flex: 1; justify-content: center; padding: 6px 14px; font-size: 15px; }

/* --- Footer --- */
.footer { background: var(--footer-bg); border-top: 1px solid var(--border); padding: 48px 0 88px; margin-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: #fff; }
.footer-col p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--muted); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { width: 150px; height: auto; }
.footer-logo span { font-size: 1.2rem; font-weight: 900; color: #fff; display: none; }
.footer-logo span span { color: var(--accent); }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.footer-trust a { display: block; }
.footer-trust img {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.footer-payments img {
  width: 48px; height: 32px; border-radius: 4px;
  background: #fff; object-fit: contain; padding: 2px;
}
.footer-age { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-age img { display: inline-block; width: 40px; height: 40px; margin: 0 4px; background: var(--surface); border-radius: 4px; }
.footer-age span { font-size: 0.8rem; color: var(--muted); }
.footer-bottom { text-align: center; margin-top: 16px; font-size: 0.78rem; color: var(--muted); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { text-align: center; }
  .hero-text p { max-width: 100%; margin: 0 auto; }
  .hero-cta { justify-content: center; }

  .nav ul { display: none; }
  .burger { display: flex; order: 2; }
  .header-cta {
    margin-right: auto;
    margin-left: 12px;
  }
  .hero { padding: 90px 0 24px; }
    .hero-page {
    padding-top: 40px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .author-block { flex-direction: column; text-align: center; }
  .author-avatar { margin: 0 auto; }
  .sticky-cta { display: flex; }
  .footer { padding-bottom: 80px; }
  .content-section h2::after { margin: 8px auto 0; }
  .toc-body ol li a { font-size: 0.82rem; }

  .hero-image img {
    width: 260px;
  }

  .header {
    height: 60px;
  }
  .nav-overlay {
    top: 60px;
  }
  .breadcrumbs {
    padding-top: 72px;
  }
}

@media (max-width: 480px) {


  .burger { margin-right: auto; }

  body { font-size: 15px; }
  .header-cta { display: none; }

  .container, .header-inner, .content-section { padding: 0 14px; }
  .hero-text h1 { font-size: 1.6rem; }
  .btn { padding: 8px 16px; font-size: 0.85rem; }
}

/* --- CTA Card --- */
.cta-card {
  max-width: 480px; margin: 0 auto 40px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
}
.cta-card h2 { text-align: center; margin: 0 0 24px 0; color: #fff; font-weight: 700; }
.cta-card h2::after{
  margin-left: auto;
  margin-right: auto;
}
.cta-card .btn { display: flex; justify-content: center; padding: 16px; font-size: 1rem; text-decoration: none; }
.cta-card .btn-primary { margin-bottom: 16px; }
.cta-card .btn-outline { margin-bottom: 0; }
.cta-card .btn-outline:last-child { display: flex; justify-content: center; padding: 16px; font-size: 1rem; text-decoration: none; }
.cta-note { text-align: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 4px; }
.hero-sm { padding-bottom: 0; }
.btn-lg { font-size: 1.1rem; padding: 16px 40px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* --- Utilities */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.payments-wrap h4 {
  color: #fff;
  margin: 0 0 18px;
}
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}