/* Martin Casino - iraqiuniversity.net edition
   Distinct layout: navy top-bar, spotlight hero, two-column body with sticky facts panel */

:root {
  --ink: #0c1633;
  --navy: #10224f;
  --navy-2: #0a1838;
  --blue: #2560e6;
  --blue-soft: #6f97f2;
  --amber: #ff8a1e;
  --amber-2: #ff6b00;
  --paper: #f5f7fd;
  --panel: #ffffff;
  --line: #dfe6f5;
  --txt: #1c2540;
  --txt-soft: #5a6684;
  --ok: #17a673;
  --no: #e04848;
  --wrap: 1180px;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--txt);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }

/* ---- Top bar ---- */
.topbar {
  background: var(--navy-2);
  color: #cdd8f5;
  font-size: .82rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 10px; padding: 8px 20px; flex-wrap: wrap; }
.topbar strong { color: #fff; }

/* ---- Header ---- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(8, 18, 45, 0.35);
}
.masthead .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.masthead .logo img { height: 36px; }
.mainnav { display: flex; gap: 20px; margin-left: auto; }
.mainnav a { color: #dbe4fb; font-weight: 600; font-size: .93rem; }
.mainnav a:hover { color: #fff; text-decoration: none; }
.btn {
  display: inline-block; cursor: pointer; text-align: center;
  font-weight: 800; border: none; border-radius: 8px;
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  color: #fff; padding: 12px 24px;
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 24px rgba(255, 107, 0, 0.42); }
.btn-lg { font-size: 1.1rem; padding: 15px 34px; }
.btn-line { background: transparent; border: 2px solid #fff; color: #fff; box-shadow: none; }
.btn-navy { background: linear-gradient(180deg, var(--blue), #1a48c0); box-shadow: 0 8px 18px rgba(37,96,230,.3); }
.masthead .btn { margin-left: 8px; padding: 10px 20px; }

/* ---- Spotlight hero ---- */
.spotlight {
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(37,96,230,.55), transparent 60%),
    radial-gradient(700px 380px at 8% 120%, rgba(255,138,30,.28), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf0ff;
  text-align: center;
  padding: 66px 0 84px;
}
.spotlight h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 auto .35em; max-width: 900px; }
.spotlight .sub { color: #c4d1f2; font-size: 1.15rem; max-width: 720px; margin: 0 auto 26px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 15px; font-size: .85rem; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Offer ribbon overlapping hero ---- */
.offer {
  max-width: 900px; margin: -56px auto 0; position: relative; z-index: 5;
  background: var(--panel); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12, 22, 51, 0.18);
  display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; overflow: hidden;
  border: 1px solid var(--line);
}
.offer .cell { padding: 24px; text-align: center; border-right: 1px solid var(--line); }
.offer .cell:last-child { border-right: none; }
.offer .tag { color: var(--amber-2); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; }
.offer .big { font-size: 1.9rem; font-weight: 900; color: var(--ink); margin: 4px 0; }
.offer .cell small { color: var(--txt-soft); }

/* ---- Layout: content + sidebar ---- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 56px 0; }
.section { margin-bottom: 44px; scroll-margin-top: 90px; }
.section:last-child { margin-bottom: 0; }
.lead-note { color: var(--txt-soft); font-size: 1.05rem; }

/* Sidebar */
.sidebar { align-self: start; position: sticky; top: 90px; display: grid; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 8px 24px rgba(12,22,51,.05); }
.panel h3 { margin-top: 0; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.facts li:last-child { border-bottom: none; }
.facts span { color: var(--txt-soft); }
.facts b { color: var(--ink); text-align: right; }
.panel.cta-panel { background: linear-gradient(160deg, #12244f, #0b1a3c); color: #eaf0ff; text-align: center; border: none; }
.panel.cta-panel h3 { color: #fff; }
.panel.cta-panel p { color: #c4d1f2; font-size: .92rem; }

/* ---- Info tables ---- */
.tbl-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 12px; overflow: hidden; min-width: 460px; box-shadow: 0 8px 24px rgba(12,22,51,.05); }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.data th { background: var(--navy); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
table.data td { color: var(--txt-soft); }
table.data tr:last-child td { border-bottom: none; }

/* ---- Highlight box ---- */
.highlight {
  background: linear-gradient(180deg, #fff7ef, #fff);
  border: 1px solid #ffd9b3; border-left: 5px solid var(--amber);
  border-radius: 10px; padding: 18px 20px; margin: 18px 0;
}
.highlight strong { color: var(--amber-2); }

/* ---- Feature cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 8px 24px rgba(12,22,51,.05); }
.tile h3 { margin-top: 0; }
.tile p { color: var(--txt-soft); margin: 0; font-size: .95rem; }
.tile .ic { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(160deg, var(--blue), #12244f); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; margin-bottom: 12px; }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; position: relative; box-shadow: 0 8px 24px rgba(12,22,51,.05); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(255,107,0,.35); }
.step h3 { margin-top: 8px; }
.step p { color: var(--txt-soft); margin: 0; font-size: .94rem; }

/* ---- Games ---- */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 24px rgba(12,22,51,.05); }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(12,22,51,.14); text-decoration: none; }
.gcard img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.gcard span { display: block; padding: 10px; text-align: center; font-weight: 700; font-size: .85rem; color: var(--ink); }

/* ---- Providers ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: .92rem; color: var(--ink); box-shadow: 0 4px 12px rgba(12,22,51,.04); }

/* ---- Pros / cons ---- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { position: relative; padding: 7px 0 7px 26px; color: var(--txt-soft); }
.pc .pros li::before { content: "✔"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.pc .cons li::before { content: "✖"; position: absolute; left: 0; color: var(--no); font-weight: 900; }

/* ---- Reviews ---- */
.score-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.score { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 22px; text-align: center; }
.score b { display: block; font-size: 2.2rem; line-height: 1; }
.score-row .stars { color: var(--amber); font-size: 1.3rem; letter-spacing: 2px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 8px 24px rgba(12,22,51,.05); }
.rev .name { font-weight: 800; }
.rev .s { color: var(--amber); }
.rev p { color: var(--txt-soft); font-size: .92rem; margin: 6px 0 0; }

/* ---- FAQ ---- */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 0 18px; box-shadow: 0 6px 16px rgba(12,22,51,.04); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); padding: 15px 30px 15px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 1.4rem; color: var(--amber-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--txt-soft); margin: 0 0 15px; }

/* ---- Final CTA ---- */
.finalcta { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #eaf0ff; text-align: center; padding: 60px 0; }
.finalcta h2 { color: #fff; }
.finalcta p { color: #c4d1f2; max-width: 620px; margin: 0 auto 22px; }

/* ---- Footer ---- */
.foot { background: #081127; color: #9fb0d6; padding: 46px 0 26px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.foot img { height: 32px; margin-bottom: 12px; }
.foot h4 { color: #fff; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { color: #9fb0d6; }
.foot a:hover { color: #fff; }
.ages { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.a18 { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--no); color: #ff9a9a; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.legal { border-top: 1px solid #17224a; padding-top: 18px; color: #7f90b8; font-size: .8rem; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; grid-template-columns: 1fr 1fr; display: grid; }
  .offer { grid-template-columns: 1fr; }
  .offer .cell { border-right: none; border-bottom: 1px solid var(--line); }
  .offer .cell:last-child { border-bottom: none; }
  .grid-3, .steps, .rev-grid { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .mainnav { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .pc, .sidebar { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .topbar { display: none; }
}
