/* Quriousbit Games - LAYOUT_083 News Portal | COLOR_041 Emerald | TYPO_049 Nunito Sans */
:root {
  --primary: #067A46;
  --primary-dark: #045C35;
  --accent: #12B76A;
  --accent-light: #D1FADF;
  --background: #F3FFF8;
  --text: #101828;
  --muted: #667085;
  --surface: #FFFFFF;
  --border: #EAECF0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 800; color: var(--text); }
h1 { font-size: 44px; margin: 0 0 20px; }
h2 { font-size: 32px; margin: 0 0 18px; }
h3 { font-size: 22px; margin: 0 0 14px; }
h4 { font-size: 18px; margin: 0 0 10px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px 24px; }
li { margin-bottom: 8px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateX(calc(-100% - 24px));
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { transform: translateX(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: var(--primary);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
}
.brand-name { color: var(--text); }
.primary-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: none;
  border-bottom-color: var(--primary);
}
.header-cta { display: flex; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--accent-light); color: var(--primary-dark); text-decoration: none; }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.25); color: #fff; text-decoration: none; }
.hamburger {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* Hero */
.page-hero {
  padding: 64px 0 56px;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.page-hero > .hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.page-hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero .lede { font-size: 19px; line-height: 1.6; max-width: 720px; margin: 0 0 28px; opacity: 0.95; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Trust strip */
.trust-strip {
  background: var(--surface);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong { font-size: 28px; color: var(--primary); font-weight: 900; }
.trust-item span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Section */
.section { padding: 60px 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 32px; }
.section-head.left { text-align: left; }
.section-head h2 { font-size: 32px; margin-bottom: 10px; }
.section-head p { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }

/* Hub grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hub-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
  color: var(--text);
  text-decoration: none;
}
a.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  text-decoration: none;
}
.hub-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 20px; }
.hub-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Content blocks (news portal) */
.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.content-block h2 { color: var(--primary); margin-bottom: 16px; font-size: 28px; }
.content-block h3 { color: var(--text); margin: 18px 0 10px; font-size: 19px; }
.content-block p { margin-bottom: 14px; font-size: 17px; line-height: 1.7; }
.content-block ul { margin: 0 0 16px 22px; }
.content-block li { font-size: 16px; margin-bottom: 8px; color: var(--text); }

/* FAQ */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}
.faq-section h2 { color: var(--primary); margin-bottom: 20px; font-size: 28px; }
.faq-section details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-section details:last-child { border-bottom: 0; }
.faq-section summary {
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  color: var(--text);
  font-size: 17px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-section summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 6px;
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.2s;
}
.faq-section details[open] summary::after { content: '−'; }
.faq-section p { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Related */
.related-section {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
}
.related-section h2 { color: var(--primary-dark); margin-bottom: 16px; font-size: 24px; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related-list li { margin: 0; }
.related-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.related-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }

/* Footer */
.site-footer {
  background: #0a1f15;
  color: #d1f5e1;
  padding: 56px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c8e6d4; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-blurb { color: #c8e6d4; font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.footer-bottom {
  background: #050f0a;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #8aa899;
}

/* Mobile */
/* Section hero images (desktop: 880px max, 220px tall) */
.section-figure {
  margin: 0 auto 28px;
  max-width: 880px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Inline figures (desktop: 720px max, 420px tall cap) */
.inline-figure {
  margin: 28px auto;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.inline-figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.inline-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  max-height: 420px;
  filter: brightness(1.05) saturate(1.08) contrast(1.02);
}
.inline-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  background: var(--background);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}


@media (max-width: 900px) {
  .primary-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .primary-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .primary-nav.open ul { flex-direction: column; gap: 14px; }
  .primary-nav.open .header-cta { display: flex; margin-top: 14px; }
  .hub-grid, .hub-grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .page-hero { padding: 50px 0 40px; }
    .page-hero h1 { font-size: 32px; }
    .section { padding: 40px 0; }
    .content-block { padding: 22px; }
    .section-figure { max-width: 100%; margin-bottom: 20px; }
    .section-figure img { height: 180px; }
    .inline-figure { max-width: 100%; margin: 20px auto !important; }
    .inline-figure img { max-height: 280px; }
  }


/* Comparison table (homepage) */
.content-block table { font-size: 15px; }
.content-block th { font-weight: 700; }
.content-block table tr:nth-child(even) { background: var(--accent-light); }

/* Statistics number emphasis */
.content-block h3 {
  color: var(--primary);
  font-weight: 900;
}

/* Better hero image visibility */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,122,70,0.55), rgba(4,92,53,0.75));
  z-index: 1;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero > .hero-img { position: absolute; z-index: 0; }
.page-hero .container { width: 100%; }

/* Pull-quote / testimonial cards */
.hub-card blockquote {
  margin: 12px 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-style: italic;
  color: var(--text);
}

/* Comparison highlight - first column */
.content-block table td:first-child { background: var(--background); font-weight: 600; }
.content-block table tr:hover td { background: var(--accent-light); }

/* Quriousbit mobile affiliate CTA and menu polish. */
@media (min-width: 901px) {
  .mobile-affiliate-cta { display: none !important; }
}

@media (max-width: 900px) {
  body { padding-bottom: 86px; }
  .site-header { z-index: 1200; }
  .header-inner { position: relative; }
  .hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border-radius: 10px;
    background: var(--accent-light);
  }
  .primary-nav.open {
    z-index: 1300;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
  }
  .primary-nav.open a {
    display: block;
    width: 100%;
    padding: 10px 4px;
  }
  .page-hero {
    min-height: 0;
    padding: 34px 0 32px;
    align-items: flex-start;
  }
  .page-hero h1 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.12;
    margin-bottom: 14px;
  }
  .page-hero .lede {
    font-size: 16px;
    line-height: 1.52;
    margin-bottom: 18px;
  }
  .page-hero .eyebrow {
    margin-bottom: 12px;
  }
  .page-hero .byline {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 0;
  }
  .news-list,
  .news-card,
  .news-card > div {
    min-width: 0;
    max-width: 100%;
  }
  .news-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 18px !important;
  }
  .news-card .news-date {
    width: fit-content;
    min-width: 92px;
    padding: 10px 14px !important;
  }
  .news-card h3,
  .news-card h3 a,
  .news-card p {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .news-card > div > div:last-child {
    flex-wrap: wrap;
    min-width: 0;
  }
  .news-card > div > div:last-child span {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .sticky-cta { display: none !important; }
  .mobile-affiliate-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: auto !important;
    z-index: 1100;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin: 0;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .2);
    backdrop-filter: blur(10px);
  }
  .mobile-affiliate-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-height: 54px;
    padding: 12px 10px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
  }
  .mobile-affiliate-primary {
    background: var(--primary);
    color: #fff;
  }
  .mobile-affiliate-secondary {
    background: #fff;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
  }
}
