/* =========================================================
   bet365-arabic.com — أنماط الموقع الرئيسية
   ========================================================= */

:root {
  --green-dark: #054e35;
  --green: #0a6b48;
  --green-light: #138a5e;
  --yellow: #ffd400;
  --yellow-soft: #ffe24d;
  --ink: #0e1411;
  --ink-soft: #2a3530;
  --paper: #f6f8f5;
  --paper-warm: #fcfaf2;
  --gray: #5a6660;
  --gray-light: #c9d2cd;
  --line: #dfe6e1;
  --shadow-sm: 0 1px 2px rgba(5, 78, 53, 0.08);
  --shadow: 0 8px 24px rgba(5, 78, 53, 0.10);
  --shadow-lg: 0 18px 48px rgba(5, 78, 53, 0.16);
  --radius: 6px;
  --radius-lg: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-light); }

h1, h2, h3, h4 {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============== الترويسة (Header) ============== */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.topbar {
  background: var(--ink);
  color: #c8d2cd;
  font-size: .82rem;
  padding: 6px 0;
  letter-spacing: .2px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar .age-badge {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: .78rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.5px;
}

.brand:hover { color: var(--yellow-soft); }

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  color: var(--green-dark);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -1px;
}

.brand small {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: var(--yellow-soft);
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: #e8efeb;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .98rem;
  transition: background .2s, color .2s;
}

.nav a:hover, .nav a.active {
  background: rgba(255, 212, 0, .15);
  color: var(--yellow);
}

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .98rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 0 #c9a800;
}

.btn:hover {
  background: var(--yellow-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-cta {
  padding: 12px 26px;
  font-size: 1rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 10px;
}

/* ============== البطل (Hero) ============== */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,212,0,.18), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(19,138,94,.45), transparent 50%),
    linear-gradient(135deg, var(--green-dark) 0%, #042b1e 100%);
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin-bottom: .5em;
}

.hero h1 .accent { color: var(--yellow); }

.hero p.lead {
  font-size: 1.12rem;
  color: #d6e3dd;
  margin-bottom: 1.6em;
  max-width: 560px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(160deg, #fff, #f4f7f3);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -12px;
  inset-inline-start: -12px;
  width: 70px;
  height: 70px;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-card h3 {
  margin-top: 0;
  color: var(--green-dark);
  font-size: 1.3rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
}

.hero-card ul li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .96rem;
}

.hero-card ul li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  background: #e8f3ee;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  flex-shrink: 0;
}

.hero-card ul li:last-child { border-bottom: none; }

/* ============== الأقسام (Sections) ============== */
section.block {
  padding: 70px 0;
}

section.block.alt {
  background: var(--paper-warm);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.04rem;
}

/* شبكة المزايا */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature {
  background: #fff;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature .ico {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--yellow);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.feature p {
  color: var(--gray);
  font-size: .95rem;
  margin: 0;
}

/* بطاقات الأقسام */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-banner {
  height: 130px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  position: relative;
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 2.4rem;
  font-weight: 800;
  font-family: Georgia, serif;
  overflow: hidden;
}

.card-banner.alt-1 { background: linear-gradient(135deg, #082c1e, #0a6b48); }
.card-banner.alt-2 { background: linear-gradient(135deg, #2a1010, #6b1f1f); }
.card-banner.alt-3 { background: linear-gradient(135deg, #1a2a4a, #2c4a82); }

.card-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 18px);
}

.card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
}

.card-body p {
  color: var(--gray);
  font-size: .95rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  margin-top: 10px;
  font-size: .95rem;
}

.card-link::before {
  content: "←";
  font-size: 1.2em;
  transition: transform .2s;
}

.card-link:hover::before { transform: translateX(-4px); }

/* قسم النص */
.prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--green-dark); }
.prose ul { padding-inline-start: 1.4em; line-height: 1.9; }
.prose ul li { margin-bottom: 6px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img, .split .visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 4rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.split .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px);
}

/* جدول طرق الدفع / الميزات */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

table.info {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}

table.info th, table.info td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

table.info th {
  background: var(--green-dark);
  color: var(--yellow);
  font-weight: 700;
}

table.info tr:last-child td { border-bottom: none; }
table.info tr:nth-child(even) td { background: #f8fbf9; }

/* فقرة CTA */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  text-align: center;
  padding: 60px 22px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,212,0,.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,212,0,.12), transparent 45%);
}

.cta-band > * { position: relative; }

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: #d6e3dd;
  max-width: 580px;
  margin: 0 auto 24px;
}

/* فهرس FAQ */
.faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}

.faq details[open] {
  box-shadow: var(--shadow);
  border-color: var(--green-light);
}

.faq summary {
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  background: var(--yellow);
  color: var(--ink);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform .25s;
}

.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq details > p {
  margin: 14px 0 4px;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.85;
}

/* فقرات صغيرة */
.tag {
  display: inline-block;
  background: #e8f3ee;
  color: var(--green-dark);
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.note {
  background: #fff7d6;
  border-inline-start: 4px solid var(--yellow);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: .95rem;
  color: var(--ink-soft);
  margin: 24px 0;
}

/* مسار التنقل */
.crumbs {
  font-size: .85rem;
  color: var(--gray);
  padding: 18px 0 0;
}

.crumbs a { color: var(--green); }

.crumbs span { margin: 0 6px; color: var(--gray-light); }

/* ============== التذييل (Footer) ============== */
.site-footer {
  background: var(--ink);
  color: #b9c5bf;
  padding: 60px 0 0;
  font-size: .94rem;
}

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

.foot-grid h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-grid ul li {
  padding: 5px 0;
}

.foot-grid a {
  color: #b9c5bf;
}

.foot-grid a:hover {
  color: var(--yellow);
}

.foot-brand p {
  color: #99a8a2;
  line-height: 1.8;
  margin-top: 10px;
}

.foot-bottom {
  border-top: 1px solid #2a3530;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #8a958f;
  font-size: .85rem;
}

.foot-bottom .badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge-18 {
  background: #fff;
  color: #c00;
  border: 2px solid #c00;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .78rem;
}

.responsible {
  background: #1a2520;
  color: #c8d2cd;
  padding: 18px 0;
  font-size: .85rem;
  text-align: center;
  border-top: 1px solid #2a3530;
  line-height: 1.7;
}

/* ============== التجاوب (Responsive) ============== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    display: none;
    border-block-start: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 14px;
    border-radius: 4px;
  }
  .nav .btn {
    margin-top: 8px;
  }
  .topbar { font-size: .75rem; }
  .topbar .container { gap: 8px; }
  section.block { padding: 50px 0; }
  .hero { padding: 50px 0 60px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .topbar .hide-xs { display: none; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; font-size: .9rem; }
}

/* تأثيرات */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero p.lead, .hero-cta { animation: fadeUp .7s ease both; }
.hero p.lead { animation-delay: .12s; }
.hero-cta { animation-delay: .22s; }
.hero-card { animation: fadeUp .8s ease .3s both; }
