/* ═══════════════════════════════════════════════════════════════
   seo-content.css — text sections, FAQs and the legal/info pages.
   Only adds NEW blocks; nothing that already exists is restyled.
   ═══════════════════════════════════════════════════════════════ */
.jg-seo{
  width: min(920px, 92%);
  margin: 56px auto 24px;
  position: relative;
  z-index: 1;
}
.jg-seo__head{
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 0 0 22px;
  font-size: 14px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase;
  color: #ffd56a; text-shadow: 0 2px 12px rgba(0,0,0,.85);
  text-align: center;
}
.jg-seo__head::before,
.jg-seo__head::after{
  content: ""; flex: 0 1 56px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffd56a);
}
.jg-seo__head::after{ background: linear-gradient(270deg, transparent, #ffd56a); }
.jg-seo__p{
  margin: 0 0 14px;
  font-size: 15px; line-height: 1.75;
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.jg-seo__p a{ color: #ffd56a; }

.jg-faq{ display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.jg-faq details{
  border: 1px solid rgba(255,213,106,.24);
  border-radius: 12px;
  background: rgba(0,0,0,.42);
  padding: 0 16px;
}
.jg-faq details[open]{ border-color: rgba(255,213,106,.5); }
.jg-faq summary{
  cursor: pointer; list-style: none; position: relative;
  padding: 14px 30px 14px 0;
  font-weight: 800; font-size: 14.5px; color: #fff;
}
.jg-faq summary::-webkit-details-marker{ display: none; }
.jg-faq summary::after{
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 22px; line-height: 1; color: #ffd56a;
}
.jg-faq details[open] summary::after{ content: "\2212"; }
.jg-faq__a{ padding: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.82); }

/* ── legal / info pages ── */
.jg-legal{ width: min(860px, 92%); margin: 26px auto 70px; }
.jg-legal__card{
  padding: 34px 34px 26px;
  border: 1px solid rgba(255,213,106,.26);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,16,10,.82), rgba(8,6,4,.9));
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.jg-legal h1{
  margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); font-weight: 950; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff6d2 0%, #ffd971 45%, #f0b23a 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.jg-legal__updated{ margin: 0 0 22px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.jg-legal h2{ margin: 26px 0 8px; font-size: 17px; font-weight: 900; color: #ffd56a; }
.jg-legal p, .jg-legal li{ font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,.82); }
.jg-legal p{ margin: 0 0 12px; }
.jg-legal ul{ margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.jg-legal a{ color: #ffd56a; }
.jg-legal strong{ color: #fff; }
@media (max-width: 767px){
  .jg-seo{ margin-top: 40px; }
  .jg-seo__head{ letter-spacing: .18em; font-size: 13px; }
  .jg-seo__head::before, .jg-seo__head::after{ flex-basis: 26px; }
  .jg-legal__card{ padding: 24px 18px 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   Premium description card — the text / FAQ block at the bottom of
   Home, Giveaways, Raffles, VIP, Referrals and the Keno verifier.

   Framed with the site's spiky gold border (leaderboards/table-bg.webp,
   same as the leaderboard table and giveaway cards) and sized to each
   page's content column via $seoBlock['width'].
   Three shapes (class set by partials/seo_content.php):
     .jg-seo--split  text + FAQ  → two columns with a gold divider
     .jg-seo--text   text only   → editorial: drop cap, two text columns
     .jg-seo--faq    FAQ only    → centered header, two-column FAQ grid
   ═══════════════════════════════════════════════════════════════ */
.jg-seo--card{
  /* --seo-width / --seo-width-sm are set inline per page from $seoBlock['width'] */
  --seo-gold:   #ffd77a;
  --seo-gold2:  #f3d08a;
  --seo-copper: #C48747;
  --seo-text:   rgba(238,232,218,.82);
  --seo-metal:  linear-gradient(180deg, #fff8df 0%, #ffe29a 34%, #eab24a 68%, #b07a2c 100%);
  width: var(--seo-width, min(1120px, 100% - 40px));
  margin: 76px auto 44px;
  position: relative;
  z-index: 1;
}

/* ── card shell: the site's spiky gold frame (same image and slices as the
      leaderboard table and the giveaway cards) ── */
.jg-seo__card{
  position: relative;
  isolation: isolate;
  border: solid transparent;
  border-width: 50px 34px 48px 38px;
  border-image: url('/assets/img/leaderboards/table-bg.webp') 112 160 112 168 fill / 58px 82px 58px 85px stretch;
  border-radius: 0;
  background: none;
  padding: 14px 38px 22px;
  filter: drop-shadow(0 0 14px rgba(255,190,70,.22)) drop-shadow(0 20px 34px rgba(0,0,0,.6));
}

/* ── heading group ── */
.jg-seo__header{ text-align: center; margin: 0 auto 34px; max-width: 760px; }
.jg-seo__eyebrow{
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-size: 11.5px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase;
  color: var(--seo-copper);
}
.jg-seo__eyebrow::before,
.jg-seo__eyebrow::after{
  content: ""; width: 6px; height: 6px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--seo-gold), var(--seo-copper));
  box-shadow: 0 0 8px rgba(255,205,110,.45);
}
.jg-seo__title{
  margin: 0;
  font-size: clamp(25px, 2.6vw, 34px); font-weight: 950; line-height: 1.14; letter-spacing: -.012em;
  background: var(--seo-metal);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.55));
}
.jg-seo__rule{
  position: relative; display: block;
  width: 96px; height: 1px; margin: 18px 0 24px;
  background: linear-gradient(90deg, rgba(255,215,122,.9), rgba(255,215,122,.15));
}
.jg-seo__header .jg-seo__rule{ margin: 18px auto 0; background: linear-gradient(90deg, transparent, rgba(255,215,122,.9), transparent); }
.jg-seo__rule::after{
  content: ""; position: absolute; top: 50%; left: 0;
  width: 7px; height: 7px; transform: translate(-1px, -50%) rotate(45deg);
  background: var(--seo-gold); box-shadow: 0 0 10px rgba(255,205,110,.6);
}
.jg-seo__header .jg-seo__rule::after{ left: 50%; transform: translate(-50%, -50%) rotate(45deg); }

/* ── body text ── */
.jg-seo--card .jg-seo__p{
  margin: 0 0 16px;
  font-size: 15.5px; line-height: 1.85; color: var(--seo-text); text-shadow: none;
}
.jg-seo--card .jg-seo__p:last-child{ margin-bottom: 0; }
.jg-seo--card .jg-seo__p strong{ color: #fff; font-weight: 800; }
.jg-seo--card .jg-seo__p em{ color: var(--seo-gold2); font-style: normal; font-weight: 700; }
.jg-seo--card .jg-seo__p a{
  color: var(--seo-gold); text-decoration: none; font-weight: 600;
  background-image: linear-gradient(90deg, rgba(255,215,122,.55), rgba(255,215,122,.55));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: color .15s ease, background-size .2s ease;
}
.jg-seo--card .jg-seo__p a:hover{ color: #fff0c2; background-image: linear-gradient(90deg, #ffd77a, #ffd77a); }

/* ── layouts ── */
.jg-seo__grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

/* text + FAQ: two columns with a fading gold divider between them */
.jg-seo--split .jg-seo__grid{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 60px; align-items: start; }
.jg-seo--split .jg-seo__faqcol{ position: relative; }
.jg-seo--split .jg-seo__faqcol::before{
  content: ""; position: absolute; left: -30px; top: 4px; bottom: 4px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,215,122,.28) 18%, rgba(255,215,122,.28) 82%, transparent);
}

/* text only: editorial — drop cap and two balanced text columns */
.jg-seo--text .jg-seo__text{
  columns: 2; column-gap: 56px;
  column-rule: 1px solid rgba(255,215,122,.10);
}
.jg-seo--text .jg-seo__p{ break-inside: avoid; }
.jg-seo--text .jg-seo__p:first-child::first-letter{
  float: left;
  margin: 7px 14px 0 0;
  font-size: 4.5em; line-height: .78; font-weight: 950;
  background: var(--seo-metal);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* FAQ only: two-column grid of questions */
.jg-seo--faq .jg-faq{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }

/* ── facts tiles ── */
.jg-seo__facts{
  list-style: none; margin: 28px 0 0; padding: 0;
  /* tiles share the row but never get narrower than their value */
  display: flex; flex-wrap: wrap; gap: 10px;
}
.jg-seo__fact{
  flex: 1 1 0;
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 13px 13px;
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(34,26,14,.96), rgba(14,10,6,.96)) padding-box,
    linear-gradient(135deg, rgba(255,226,154,.6), rgba(196,135,71,.16) 45%, rgba(196,135,71,.16) 60%, rgba(255,215,122,.45)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,236,190,.07);
}
.jg-seo__fact strong{
  white-space: nowrap;
  font-size: 19px; font-weight: 950; line-height: 1.15;
  background: var(--seo-metal);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.jg-seo__fact--long strong{ font-size: 15px; letter-spacing: .03em; }
.jg-seo__fact span{ font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(238,232,218,.52); }

/* ── FAQ ── */
.jg-seo__subhead{
  display: flex; align-items: center; gap: 10px;
  margin: 6px 0 16px;
  font-size: 12px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase;
  color: var(--seo-copper);
}
.jg-seo__subhead::before{
  content: ""; width: 6px; height: 6px; transform: rotate(45deg); flex: 0 0 auto;
  background: linear-gradient(135deg, var(--seo-gold), var(--seo-copper));
}
.jg-seo--card .jg-faq{ gap: 10px; margin-top: 0; }
.jg-seo--card .jg-faq details{
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,215,122,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.jg-seo--card .jg-faq details:hover{ border-color: rgba(255,215,122,.32); }
.jg-seo--card .jg-faq details[open]{
  border-color: rgba(255,215,122,.46);
  background: linear-gradient(180deg, rgba(255,215,122,.075), rgba(255,215,122,.02));
  box-shadow: inset 3px 0 0 #e0a83c, 0 12px 30px rgba(0,0,0,.35);
}
.jg-seo--card .jg-faq summary{
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px 16px 18px;
  font-size: 14.5px; line-height: 1.45;
}
/* the old plain FAQ draws its own +/− with summary::after — not in the card */
.jg-seo--card .jg-faq details summary::after,
.jg-seo--card .jg-faq details[open] summary::after{ content: none; display: none; }
.jg-seo--card .jg-faq summary:focus-visible{ outline: 2px solid var(--seo-gold); outline-offset: 2px; border-radius: 13px; }
.jg-faq__num{
  flex: 0 0 auto; min-width: 22px;
  font-size: 12px; font-weight: 900; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--seo-copper);
  transition: color .2s ease;
}
.jg-faq__q{ flex: 1 1 auto; font-weight: 800; color: #fff; }
.jg-faq__icon{
  position: relative; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255,215,122,.38);
  transition: transform .3s ease, background .25s ease, border-color .25s ease;
}
.jg-faq__icon::before,
.jg-faq__icon::after{
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 2px; border-radius: 2px;
  background: var(--seo-gold);
  transform: translate(-50%, -50%);
  transition: transform .3s ease, background .25s ease;
}
.jg-faq__icon::after{ transform: translate(-50%, -50%) rotate(90deg); }
.jg-seo--card details[open] .jg-faq__num{ color: var(--seo-gold); }
.jg-seo--card details[open] .jg-faq__icon{
  transform: rotate(180deg);
  border-color: transparent;
  background: linear-gradient(135deg, #ffd77a, #c9912a);
  box-shadow: 0 0 14px rgba(255,205,110,.35);
}
.jg-seo--card details[open] .jg-faq__icon::before,
.jg-seo--card details[open] .jg-faq__icon::after{ background: #1b1206; }
.jg-seo--card details[open] .jg-faq__icon::after{ transform: translate(-50%, -50%) rotate(0deg); }
.jg-seo--card .jg-faq__a{
  padding: 0 20px 18px 54px;
  font-size: 14.5px; line-height: 1.78; color: rgba(238,232,218,.78);
}
.jg-seo--card details[open] .jg-faq__a{ animation: jgFaqIn .32s ease both; }
@keyframes jgFaqIn{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: none; } }

/* smooth open/close where the browser supports animating <details> (Chrome 131+) */
@supports (interpolate-size: allow-keywords){
  .jg-seo--card{ interpolate-size: allow-keywords; }
  .jg-seo--card .jg-faq details::details-content{
    height: 0; overflow: clip;
    transition: height .32s ease, content-visibility .32s allow-discrete;
  }
  .jg-seo--card .jg-faq details[open]::details-content{ height: auto; }
}

/* ── responsive ── */
@media (max-width: 1000px){
  .jg-seo--split .jg-seo__grid{ grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .jg-seo--split .jg-seo__faqcol::before{ display: none; }
  .jg-seo--split .jg-seo__faqcol{ padding-top: 30px; border-top: 1px solid rgba(255,215,122,.14); }
  .jg-seo--faq .jg-faq{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px){
  .jg-seo--card{ margin-top: 52px; }
  .jg-seo--card{ width: var(--seo-width-sm, calc(100% - 16px)); }
  .jg-seo__card{
    border-width: 20px 22px 20px 24px;
    border-image-width: 30px 42px 30px 44px;
    padding: 18px 8px 16px;
    filter: drop-shadow(0 0 8px rgba(255,190,70,.18)) drop-shadow(0 10px 18px rgba(0,0,0,.55));
  }
  .jg-seo__header{ margin-bottom: 26px; }
  .jg-seo__eyebrow{ letter-spacing: .22em; font-size: 11px; }
  .jg-seo--text .jg-seo__text{ columns: 1; }
  .jg-seo--card .jg-seo__p{ font-size: 15px; line-height: 1.8; }
  .jg-seo__fact{ flex-basis: 40%; }
  .jg-seo__fact--long strong{ font-size: 17px; }
  .jg-seo--card .jg-faq summary{ gap: 12px; padding: 15px 14px; }
  .jg-seo--card .jg-faq__a{ padding: 0 16px 16px 48px; }
}
@media (prefers-reduced-motion: reduce){
  .jg-seo--card *, .jg-seo--card *::details-content{ transition: none !important; animation: none !important; }
}
