/* ============================================================
   Online Pokies Australia — Main Stylesheet
   Colors: Dark Green #14532d, Gold #d4a843, White #fff
   Typography: System stack + Georgia fallback
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #14532d; text-decoration: none; transition: color .2s; }
a:hover { color: #d4a843; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
button { cursor: pointer; font: inherit; }

/* --- Layout --- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
/* section:nth-child(even) { background: #f8faf8; } */

/* --- Responsible Gambling Banner --- */
.rg-banner {
  background: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  position: relative;
  z-index: 2000;
}
.rg-banner a { color: #facc15; text-decoration: underline; text-underline-offset: 2px; }
.rg-banner strong { color: #fff; }

/* --- Header & Navigation --- */
.site-header {
  background: #14532d;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.logo img { width: 40px; height: 40px; border-radius: 6px; }
.logo span { color: #fbbf24; }

/* Desktop nav */
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #14532d 0%, #1a6b3a 50%, #0f3d1e 100%);
  padding: 56px 0 64px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 em { color: #fbbf24; font-style: normal; }
.hero-subtitle {
  font-size: 1.1rem;
  color: #bbf7d0;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-facts {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-fact {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  min-width: 100px;
}
.hero-fact strong { display: block; font-size: 1.3rem; color: #fbbf24; }
.hero-fact span { font-size: .8rem; color: #bbf7d0; }
.hero-img { text-align: center; }
.hero-img img { border-radius: 12px; max-height: 360px; margin: 0 auto; }

/* CTA Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.btn-gold {
  background: linear-gradient(135deg, #d4a843 0%, #e6af45 100%);
  color: #14532d;
}
.btn-gold:hover { background: linear-gradient(135deg, #e0b84f 0%, #c69933 100%); color: #14532d; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-green {
  background: #14532d;
  color: #fff;
}
.btn-green:hover { background: #1a6b3a; color: #fff; }
.btn-sm { padding: 10px; font-size: 16px; width: 170px;}
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Casino Card / List --- */
.casino-logo{
  margin: 10px;
}
.casino-list { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.casino-card {
  /* background: #fff; */
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: 150px 1fr 200px 160px;
  gap: 20px;
  align-items: center;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
}
.casino-card:hover {
  box-shadow: 0 4px 16px rgba(20,83,45,.1);
  border-color: #14532d;
}
.casino-rank {
  width: 48px; height: 48px;
  background: #14532d;
  color: #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  position: absolute;
  left: -20px;
  top: 100px;
}
.casino-rank.top-3 { background: linear-gradient(135deg, #d4a843, #b8892e); color: #fff; }
.casino-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.casino-info h3 a { color: #14532d; }
.casino-info h3 a:hover { color: #d4a843; }
.casino-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}
.casino-meta .tag {
  /* background: #f0fdf4; */
  color: #14532d;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #a7adb4;
  box-shadow: 0 4px 16px rgba(20, 83, 45, .1);
  border-color: #14532d;
}
.casino-bonus {
  text-align: center;
  padding: 12px;
  /* background: #f0fdf4;
  border-radius: 8px; */
}
.casino-bonus strong {
  display: block;
  font-size: 1.1rem;
  color: #14532d;
  margin-bottom: 2px;
}
.casino-bonus small { color: #64748b; font-size: 12px; }
.casino-cta { text-align: center; }
.casino-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  justify-content: center;
  flex-direction: column;
}
.rating-score {
  background: #14532d;
  color: #fbbf24;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 16px;
}
.stars { color: #d4a843; font-size: 18px; letter-spacing: 1px; }

/* Casino Description Toggle (progressive enhancement — JS adds .desc-truncated) */
.casino-list .casino-info > p.desc-truncated {
  max-height: 3em;
  overflow: hidden;
  position: relative;
  transition: max-height .35s ease;
  margin-bottom: 4px;
}
.casino-list .casino-info > p.desc-truncated::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #f1f5f9);
  pointer-events: none;
  transition: opacity .2s;
}
.casino-list .casino-info > p.desc-open {
  max-height: 600px;
}
.casino-list .casino-info > p.desc-open::after {
  opacity: 0;
}
.desc-toggle {
  background: none;
  border: none;
  color: #14532d;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
  cursor: pointer;
  display: block;
  margin-bottom: 6px;
}
.desc-toggle:hover { color: #d4a843; }

/* Badge */
.badge {
  position: absolute;
  top: -8px;
  left: 20px;
  background: linear-gradient(135deg, #d4a843, #b8892e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 {
  font-size: 2rem;
  color: #14532d;
  margin-bottom: 10px;
  font-weight: 800;
}
.section-header p {
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}
h2 { font-size: 1.8rem; color: #14532d; margin-bottom: 16px; font-weight: 800; }
h3 { font-size: 1.3rem; color: #1e293b; margin-bottom: 10px; font-weight: 700; }
h4 { font-size: 1.1rem; color: #14532d; margin-bottom: 8px; font-weight: 700; }

/* --- Content Typography --- */
.content p { margin-bottom: 16px; }
.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 6px; }
.content strong { color: #0f172a; }
.content a { color: #14532d; text-decoration: underline; text-underline-offset: 2px; }
.content a:hover { color: #d4a843; }
.content blockquote {
  border-left: 4px solid #d4a843;
  padding: 16px 20px;
  margin: 20px 0;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  color: #78350f;
  font-style: italic;
}

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 8px; border: 1px solid #e2e8f0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: #14532d; color: #fff; }
th { padding: 12px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
tbody tr:hover { background: #f0fdf4; }
tbody tr:last-child td { border-bottom: none; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: #fff;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #14532d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background .2s;
}
.faq-q:hover { background: #f0fdf4; }
.faq-q::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: #64748b;
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: #475569;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 20px 20px; }

/* --- Pros & Cons --- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.pros, .cons {
  padding: 20px;
  border-radius: 10px;
}
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fef2f2; border: 1px solid #fecaca; }
.pros h4 { color: #14532d; }
.cons h4 { color: #991b1b; }
.pros li::before { content: "\2713 "; color: #14532d; font-weight: 700; }
.cons li::before { content: "\2717 "; color: #dc2626; font-weight: 700; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li, .cons li { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.pros li:last-child, .cons li:last-child { border-bottom: none; }

/* --- Payment Icons Grid --- */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.payment-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Info Box / Callout --- */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-box.warning { background: #fffbeb; border-color: #fde68a; }
.info-box.danger { background: #fef2f2; border-color: #fecaca; }
.info-box .icon { font-size: 24px; flex-shrink: 0; }

/* --- Footer --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { margin-top: 12px; line-height: 1.7; }
.site-footer .footer-heading { color: #e2e8f0; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-weight: 700; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; transition: color .2s; }
.site-footer a:hover { color: #d4a843; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; }
.rg-logos { display: flex; gap: 16px; align-items: center; font-size: 12px; }
.rg-logos span {
  padding: 4px 10px;
  border: 1px solid #334155;
  border-radius: 4px;
  white-space: nowrap;
}

/* --- Affiliate Disclosure --- */
.disclosure {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: #475569;
  margin: 24px 0;
  line-height: 1.6;
}
.disclosure a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: #64748b;
}
.breadcrumb ol { display: flex; gap: 4px; list-style: none; padding: 0; flex-wrap: wrap; }
.breadcrumb li::after { content: " / "; margin: 0 4px; color: #cbd5e1; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: #14532d; }
.breadcrumb li:last-child { color: #94a3b8; }

/* --- TOC (Table of Contents) --- */
.toc {
  background: #f8faf8;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.toc h4 { margin-bottom: 10px; color: #14532d; }
.toc ol { list-style: decimal; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 14px; }
.toc a { color: #334155; }
.toc a:hover { color: #14532d; text-decoration: underline; }

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #f8faf8;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin: 24px 0;
  align-items: flex-start;
}
.author-box img {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.author-box .name { font-weight: 700; color: #14532d; }
.author-box .role { font-size: 13px; color: #64748b; }
.author-box .bio { font-size: 14px; margin-top: 6px; color: #475569; }

/* --- Compare Table (multi-casino) --- */
.compare-table th:first-child { position: sticky; left: 0; background: #14532d; z-index: 2; }
.compare-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 600; }
.compare-table .highlight { background: #f0fdf4; }

/* --- Last Updated --- */
.last-updated {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* --- 18+ Badge --- */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

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

@media (max-width: 1024px) {
  .casino-card { grid-template-columns: 150px 1fr 200px; }
  .casino-cta { grid-column: 1 / -1; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
    /* Mobile nav */
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #14532d;
    flex-direction: column;
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .section-header h2 { font-size: 1.5rem; }
  h2 { font-size: 1.4rem; }
  section { padding: 32px 0; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-facts { justify-content: center; }
  .hero-img { display: none; }
  .cta-group { justify-content: center; }

  .casino-card {
    grid-template-columns: 50% 50%;
    gap: 3px;
    padding: 5px;
    display: grid;
  }
  .casino-info h3, .desc-truncated, .desc-toggle{
    display: none;
  }
  .casino-info{
    order: 3;
  }
  .casino-meta{
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .casino-bonus {grid-column: auto; order: 2;}
  .casino-cta {grid-column: auto; order: 4;}

  .casino-rank {
    width: 24px;
    height: 24px;
    font-size: 12px;
    left: -13px;
    top: 50%;
  }
  .casino-logo{
    margin: 10px;
    order: 1;
    max-width: 150px;
  }

  /* Mobile: fully collapse description */
  .casino-list .casino-info > p.desc-truncated {
    max-height: 0;
    margin: 0;
  }
  .casino-list .casino-info > p.desc-truncated::after { display: none; }
  .casino-list .casino-info > p.desc-open { max-height: 600px; margin-bottom: 4px; }

  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-fact { min-width: 80px; padding: 8px 10px; }
  .hero-fact strong { font-size: 1.1rem; }
  /* .btn { padding: 12px 20px; font-size: 14px; width: 100%; } */
  .cta-group { flex-direction: column; }
  .rg-logos{flex-wrap: wrap;}
}

/* --- Section Images (centered, consistent size) --- */
.section-img {
  display: block;
  margin: 0 auto 28px;
  max-width: 700px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- Author Byline (under H1 on every page) --- */
.author-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.byline-label { font-size: 12px; color: #64748b; display: block; }
.author-name {
  font-weight: 700;
  color: #14532d;
  text-decoration: none;
  font-size: 15px;
}
.author-name:hover { color: #d4a843; text-decoration: underline; }
.byline-title { font-size: 13px; color: #64748b; display: block; }
.byline-meta {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* --- Author Page --- */
.author-hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 40px 0;
}
.author-photo {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #d4a843;
}
.author-intro h1 { margin-bottom: 4px; }
.author-intro .title { font-size: 1.1rem; color: #d4a843; font-weight: 600; margin-bottom: 8px; }
.author-intro .stats {
  display: flex;
  gap: 16px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.author-intro .stat {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #14532d;
}

.qa-section { margin: 32px 0; }
.qa-item { margin-bottom: 24px; }
.qa-item .question {
  font-weight: 700;
  color: #14532d;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.qa-item .answer { color: #475569; line-height: 1.7; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.article-card {
  background: #f8faf8;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  transition: border-color .2s;
}
.article-card:hover { border-color: #14532d; }
.article-card h4 { font-size: 15px; margin-bottom: 4px; }
.article-card h4 a { color: #14532d; }
.article-card .date { font-size: 12px; color: #94a3b8; }

/* --- Credential List --- */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.credential-item {
  background: #f8faf8;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.credential-item .number {
  font-size: 2rem;
  font-weight: 800;
  color: #14532d;
  display: block;
}
.credential-item .label { font-size: 13px; color: #64748b; }

@media (max-width: 768px) {
  .author-hero { flex-direction: column; align-items: center; text-align: center; }
  .author-photo { width: 140px; height: 140px; }
  .author-intro .stats { justify-content: center; }
  .byline-meta { margin-left: 0; width: 100%; }
}

/* --- Print --- */
@media print {
  .rg-banner, .site-header, .site-footer, .nav-toggle, .btn, .casino-cta { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  section { padding: 16px 0; break-inside: avoid; }
}
