/* ============================================================
   CASINO AFFILIATE TEMPLATE — MAIN STYLES
   Brand color: #FF6B35 (green)
   Max-width container: 1100px
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background: #fff;
  color: #1a1a1a;
  min-width: 320px;
}
a { color: #FF6B35; text-decoration: none; transition: color .15s; }
a:hover { color: #cc4a15; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 15px; font-size: 17px; line-height: 25px; }
h1,h2,h3,h4,h5,h6 { margin: 16px 0 10px; line-height: 1.2; font-weight: 400; word-break: break-word; }
h1 { font-size: 2.2em; }
h2 { font-size: 1.9em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.4em; }
ul, ol { padding-left: 20px; margin-bottom: 15px; }
li { font-size: 17px; line-height: 25px; }
b, strong { font-weight: 700; }

/* --- Container --- */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #1a3c34;
  box-shadow: 0 5px 10px rgba(0,0,0,.25);
  padding: 10px 0;
  position: relative;
  z-index: 100;
}
.header-inner {
  background: #fff;
  border-radius: 16px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}
.site-logo img { width: 220px; height: auto; }
.site-logo a { display: block; }

/* Nav */
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav ul li { position: relative; }
.site-nav ul li a {
  display: block;
  color: #1a1a1a;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav ul li a:hover,
.site-nav ul li.active > a {
  background: #1a3c34;
  color: #fff;
  text-decoration: none;
}
/* Dropdown */
.site-nav .has-dropdown { position: relative; }
.site-nav .has-dropdown::after {
  content: "";
  width: 6px; height: 6px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  position: absolute;
  right: 6px; top: 18px;
  rotate: -45deg;
  pointer-events: none;
}
.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #1a3c34;
  border-radius: 8px;
  width: 180px;
  padding: 5px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.site-nav .has-dropdown:hover .dropdown { display: block; }
.site-nav .dropdown li a {
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
}
.site-nav .dropdown li a:hover { background: rgba(0,0,0,.15); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #1a1a1a;
  font-size: 26px;
  line-height: 1;
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-main {
  padding: 30px 0 40px;
}
.page-content {
  font-size: 17px;
}

/* --- Author block --- */
.author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a3c34;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0 20px;
}
.author-block img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.35);
}
.author-info { color: #fff; }
.author-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 1px;
  line-height: 1.2;
}
.author-title {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.2;
}
.author-meta { font-size: 12px; opacity: .85; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.author-bio-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline dotted;
  line-height: 1;
}
.author-bio-toggle:hover { color: #fff; }
.author-bio {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.author-bio.open { display: block; }
.author-bio p { font-size: 12px; margin: 0; color: rgba(255,255,255,.85); }
.author-meta strong { font-weight: 700; }

/* --- Show more / less intro --- */
.intro-wrap {
  position: relative;
  margin: 10px 0 20px;
  overflow: hidden;        /* clips text that escapes .intro-text */
}
.intro-text {
  color: #444;
  max-height: 110px;
  overflow: hidden;
  transition: max-height .4s ease;
}
.intro-text.expanded { max-height: 9999px; }

/* gradient mask over the cut-off text */
.intro-fade {
  pointer-events: none;
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  height: 90px;
  background: linear-gradient(transparent 0%, rgba(255,255,255,.85) 40%, #fff 70%);
  transition: opacity .3s;
}
.intro-text.expanded ~ .intro-fade { opacity: 0; pointer-events: none; }

.intro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #FF6B35;
  cursor: pointer;
  margin-top: 4px;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  position: relative;    /* sits above the fade */
  z-index: 1;
}
.intro-toggle .arrow { font-size: 12px; transition: transform .25s; }

/* --- Section headings --- */
.section-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 28px 0 16px;
  color: #111;
}

/* ============================================================
   RESPONSIBLE GAMBLING BLOCK
   ============================================================ */
.rg-block {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #FF6B35;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 40px 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.rg-block h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rg-block h3 .rg-icon { font-size: 1.3em; }
.rg-block p { font-size: 14px; margin-bottom: 8px; }
.rg-block p:last-child { margin: 0; }
.rg-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.rg-links a { font-size: 13px; color: #FF6B35; font-weight: 600; }

/* ============================================================
   CONTENT TABLES (mobile-scroll)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.content-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.content-table th {
  background: #1a3c34;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.content-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #f0f1f3;
  color: #333;
  font-size: 13px;
}
.content-table tr:last-child td { border-bottom: none; }
.content-table tr:nth-child(even) td { background: #f8f9fb; }
.content-table td:first-child { font-weight: 600; color: #111; }
.content-table .cell-good { color: #1a7a1a; font-weight: 600; }
.content-table .cell-warn { color: #FF6B35; font-weight: 600; }

/* ============================================================
   CONTENT FIGURES
   ============================================================ */
.content-figure {
  margin: 24px 0;
  text-align: center;
}
.content-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.content-figure figcaption {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

/* ============================================================
   EXPERT REVIEW CARDS
   ============================================================ */
.expert-review {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
  background: #fafbfc;
}
.expert-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.review-logo {
  width: 110px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.review-score {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}
.review-score span { font-size: 14px; color: #888; font-weight: 500; }
.review-stars { color: #f5a623; font-size: 14px; letter-spacing: 1px; margin: 2px 0; }
.review-tags { font-size: 12px; color: #555; margin-top: 2px; }
.review-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.review-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.review-stat span {
  display: block;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}
.review-stat strong { font-size: 13px; color: #111; font-weight: 700; }
.pros-cons-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.pros-mini, .cons-mini {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.pros-mini { background: #e8f9e8; border: 1px solid #b3e8b3; }
.cons-mini { background: #fff3f3; border: 1px solid #fbbcbc; }
.pros-mini strong { color: #1a7a1a; display: block; margin-bottom: 5px; }
.cons-mini strong { color: #c00; display: block; margin-bottom: 5px; }
.pros-mini ul, .cons-mini ul { margin: 0; padding-left: 16px; }
.pros-mini li, .cons-mini li { font-size: 12px; line-height: 1.6; margin-bottom: 2px; }
.author-take {
  background: #f0f4ff;
  border-left: 3px solid #1a3c34;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 0;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}
.author-take strong { color: #1a3c34; }

/* ============================================================
   PROS / CONS BLOCK
   ============================================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
.pros-col, .cons-col {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
}
.pros-col { background: #e8f9e8; border: 1px solid #b3e8b3; }
.cons-col { background: #fff3f3; border: 1px solid #fbbcbc; }
.pros-col h4 { color: #1a7a1a; margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.cons-col h4 { color: #c00; margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.pros-col ul, .cons-col ul { margin: 0; padding-left: 18px; }
.pros-col li, .cons-col li { line-height: 1.75; font-size: 13px; }

@media (max-width: 600px) {
  .review-stats { grid-template-columns: repeat(2, 1fr); }
  .pros-cons-mini { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .content-table { font-size: 12px; }
  .content-table th, .content-table td { padding: 7px 10px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a3c34;
  color: #fff;
  padding: 20px 0;
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.footer-nav li a {
  color: #fff;
  font-size: 15px;
  transition: text-decoration .1s;
}
.footer-nav li a:hover { text-decoration: underline; color: #fff; }
.footer-copy {
  font-size: 14px;
  opacity: .9;
  padding: 0 15px;
}
.footer-copy a { color: #fff; text-decoration: underline; }

/* ============================================================
   CONTENT STYLES (articles/pages)
   ============================================================ */
.page-content h2 { margin-top: 32px; }
.page-content h3 { margin-top: 24px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 0; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 36px 16px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: #111;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #FF6B35;
  font-weight: 300;
  transition: transform .25s;
}
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 16px;
  color: #444;
  font-size: 16px;
  line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.4em; }
  h3 { font-size: 1.25em; }

  .site-nav { width: 100%; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    background: #1a3c34;
    position: absolute;
    top: 100%; left: 0; right: 0;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    gap: 0;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .site-nav ul.open { display: flex; }
  .site-nav ul li a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); border-radius: 0; }
  .site-nav ul li:last-child a { border-bottom: none; }
  .site-nav ul li a:hover { background: rgba(0,0,0,.15); color: #fff; }
  .site-nav .has-dropdown::after { border-color: #fff; right: 14px; top: 18px; }
  .site-nav .dropdown { position: relative; display: none; box-shadow: none; background: rgba(0,0,0,.15); width: 100%; border-radius: 4px; }
  .site-nav .has-dropdown:hover .dropdown { display: none; }
  .site-nav .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .header-inner { padding-right: 56px; }

  .author-block { flex-wrap: wrap; }

  .footer-nav { flex-direction: column; gap: 6px; }
}
