/* New hero: home (template-parts/welcome.php, #welcome.cg-hero) and inner pages (inc/page-hero.php, .cg-hero--page).
   Centred H1 + text + button on the casino list banner background. Same file in both themes. */

#welcome.cg-hero,
.cg-hero--page {
  background: rgba(36, 3, 33, 0.4);
  backdrop-filter: blur(4px);
  text-align: center;
}

/* inner pages: same colour as the home hero even where the theme paints every section
   (.page-template-filter-page section { background: #1b0520 !important } on the games page) */
section.cg-hero.cg-hero--page { background: rgba(36, 3, 33, 0.4) !important; }

#welcome.cg-hero { padding: 176px 0 112px; }
/* inner pages: breadcrumbs sit above; visible gaps ≈ 72px (the top allows for the space inside the H1 line-height) */
.cg-hero--page { padding: 62px 0 72px; }
/* pages without breadcrumbs (bonus categories): clear the fixed 80px header */
.cg-hero--page.cg-hero--no-bc { padding-top: 142px; }

.cg-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

#welcome.cg-hero .cg-hero__title,
.cg-hero--page .cg-hero__title {
  margin: 0;
  color: var(--color-default);
  font-family: "Baloo 2", sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 115%;
  letter-spacing: 1.68px;
  text-align: center !important;
}

.cg-hero--page .cg-hero__title { font-size: 48px; letter-spacing: 1px; }

.cg-hero__text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #c9c3cc;
  font-size: 17px;
  line-height: 28px;
}

.cg-hero--page .cg-hero__text { max-width: 760px; }

#welcome.cg-hero .cg-hero__btn,
.cg-hero--page .cg-hero__btn.btn-default {
  width: auto;
  min-width: 260px;
  margin: 40px auto 0;
  padding: 0 32px;
  background: var(--gradient-bonus-xs);
  color: var(--color-white, #fff);
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  transition: box-shadow 0.3s, filter 0.3s;
}

#welcome.cg-hero .cg-hero__btn:hover,
.cg-hero--page .cg-hero__btn.btn-default:hover {
  box-shadow: 0 4px 16px 0 rgba(179, 16, 225, 0.4);
  filter: brightness(1.08);
}

/* "See top casinos" (#featured): stop below the fixed header */
#featured { scroll-margin-top: 90px; }

/* bonus page: the category icons stay under the hero, on the same background (icons hang 54px above their cards) */
.cg-hero--page:has(+ #bonuses-banner.cg-after-hero) { padding-bottom: 40px; }
#bonuses-banner.cg-after-hero { padding: 78px 0 72px; background: rgba(36, 3, 33, 0.4); }

/* games page: the tabs + provider select open the next block (text + games), on its colour, not the hero's */
#games-banner.cg-after-hero { margin: 0 auto; width: 100%; border-radius: 0; background: #1b0520 !important; backdrop-filter: none; }
#games-banner.cg-after-hero .banner { display: block; height: auto; padding: 48px 0 0; }
#games-banner.cg-after-hero .sort { position: static; padding: 0; }

@media (max-width: 1340px) {
  #welcome.cg-hero .cg-hero__title { font-size: 44px; }
  .cg-hero--page .cg-hero__title { font-size: 40px; }
}

@media (max-width: 992px) {
  #welcome.cg-hero { padding: 120px 0 64px; }
  .cg-hero--page { padding: 40px 0 48px; }
  .cg-hero--page.cg-hero--no-bc { padding-top: 118px; }
  #welcome.cg-hero .cg-hero__title,
  .cg-hero--page .cg-hero__title { font-size: 32px; letter-spacing: 0.5px; }
  .cg-hero__text { margin-top: 16px; font-size: 15px; line-height: 24px; }
  #welcome.cg-hero .cg-hero__btn,
  .cg-hero--page .cg-hero__btn.btn-default { margin-top: 32px; }
  .cg-hero--page:has(+ #bonuses-banner.cg-after-hero) { padding-bottom: 32px; }
  #bonuses-banner.cg-after-hero { padding: 70px 0 48px; }
  #games-banner.cg-after-hero .banner { padding-top: 32px; }
}

@media (max-width: 561px) {
  #welcome.cg-hero { padding: 104px 0 48px; }
  #welcome.cg-hero .cg-hero__title { font-size: 26px; }
  .cg-hero--page .cg-hero__title { font-size: 24px; }
  #welcome.cg-hero .cg-hero__title br { display: none; }
  #welcome.cg-hero .cg-hero__btn,
  .cg-hero--page .cg-hero__btn.btn-default { width: 100%; max-width: 320px; min-width: 0; }
}

/* Casino Bonuses hero (Figma "Casino Bonuses — Desktop 1440"): category chips + trust row between the text and the button.
   Chips 39px high, 12px apart; trust items: 22px circle with a 14px check, 8px to the text, 32px apart; 28px between rows. */
.cg-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1120px;
  margin: 28px auto 0;
}

.cg-hero__chip {
  display: inline-flex;
  align-items: center;
  height: 39px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.cg-hero__chip:hover,
.cg-hero__chip:focus-visible {
  border-color: rgba(179, 16, 225, 0.7);
  background: rgba(179, 16, 225, 0.12);
  color: #fff;
}

.cg-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cg-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #b9b2bd;
  font-size: 14px;
  line-height: 22px;
}

.cg-hero__trust li::before { content: none; }

.cg-hero__check { flex: 0 0 22px; width: 22px; height: 22px; }
.cg-hero__check circle { fill: rgba(255, 255, 255, 0.1); }
.cg-hero__check path { stroke: #e9e4ec; }

/* sections the chips jump to: stop below the fixed header */
.section-bonuses.bonuses__item { scroll-margin-top: 90px; }

@media (max-width: 992px) {
  .cg-hero__chips { gap: 8px; margin-top: 24px; }
  .cg-hero__chip { height: 36px; padding: 0 14px; font-size: 13px; }
  .cg-hero__trust { gap: 8px 20px; margin-top: 20px; }
  .cg-hero__trust li { font-size: 13px; }
}

/* Casino Bonuses intro (Figma "Intro"): text column 636px + steps card 420px, 64px apart */
section.text_before.cg-intro { padding: 72px 0; text-align: left; }

.cg-intro__row {
  display: grid;
  grid-template-columns: minmax(0, 636px) minmax(0, 420px);
  justify-content: space-between;
  align-items: start;
  gap: 48px 64px;
}

.cg-eyebrow {
  display: block;
  margin-bottom: 20px;
  color: #e0558a;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cg-intro__text h2 {
  margin: 0 0 20px;
  padding: 0;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  text-align: left !important;
}

.cg-intro__text p {
  margin: 0 0 20px;
  padding: 0;
  color: #d4cdd8;
  font-size: 16px;
  line-height: 29px;
}

.cg-intro__text p:last-child { margin-bottom: 0; }

.cg-intro__card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.cg-intro__card .cg-eyebrow { margin-bottom: 24px; }

.cg-steps { margin: 0; padding: 0; list-style: none; }

.cg-steps__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  margin: 0;
}

.cg-steps__item + .cg-steps__item { margin-top: 24px; }
.cg-steps__item::before { content: none; }

.cg-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-bonus-xs);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.cg-steps__title {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.cg-steps__text {
  margin: 4px 0 0;
  padding: 0;
  color: #b9b2bd;
  font-size: 14px !important;
  line-height: 22px !important;
}

@media (max-width: 992px) {
  section.text_before.cg-intro { padding: 48px 0; }
  .cg-intro__row { grid-template-columns: 100%; gap: 32px; }
  .cg-intro__text h2 { font-size: 26px; line-height: 34px; }
  .cg-intro__text p { font-size: 15px; line-height: 26px; }
  .cg-intro__card { padding: 24px; }
}

/* Casino Bonuses: "Types of Casino Bonuses" (Figma "Bonus types"): header + 2-column grid of category cards */
.cg-btypes { padding: 72px 0; }

.cg-btypes__head { max-width: 720px; margin-bottom: 40px; }
.cg-btypes__head .cg-eyebrow { margin-bottom: 12px; }

.cg-btypes__title {
  margin: 0;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  text-align: left !important;
}

.cg-btypes__text {
  margin: 12px 0 0;
  color: #b9b2bd;
  font-size: 17px;
  line-height: 28px;
}

.cg-btypes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cg-btype {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  scroll-margin-top: 90px;
}

.cg-btype__head { display: flex; align-items: center; gap: 14px; }

.cg-btype__icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-bonus-xs);
  color: #fff;
}

.cg-btype__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  text-align: left !important;
}

.cg-btype__desc { flex: 1 0 auto; margin-top: 24px; }

.cg-btype__desc p,
.cg-btype__desc {
  color: #c9c3cc;
  font-size: 14px;
  line-height: 24px;
}

.cg-btype__desc p { margin: 0 0 12px; padding: 0; }
.cg-btype__desc p:last-child { margin-bottom: 0; }

.cg-btype__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.cg-btype__tags li {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eee9f0;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.cg-btype__tags li::before { content: none; }

.cg-btype__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cg-btype__link {
  color: #e0558a;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: color 0.2s;
}

.cg-btype__link:hover { color: #ff7aa8; }

@media (max-width: 992px) {
  .cg-btypes { padding: 48px 0; }
  .cg-btypes__head { margin-bottom: 28px; }
  .cg-btypes__title { font-size: 26px; line-height: 34px; }
  .cg-btypes__text { font-size: 15px; line-height: 24px; }
  .cg-btypes__grid { grid-template-columns: 100%; gap: 16px; }
  .cg-btype { padding: 24px; }
  .cg-btype__title { font-size: 20px; line-height: 26px; }
}

/* Casino Bonuses: "Casino Bonuses at a Glance" table (Figma "Comparison"): right under the cards, rounded bordered table,
   columns 260 / 340 / 220 / rest, wagering as a coloured badge */
.cg-cmp { padding: 0 0 72px; }

.cg-cmp__wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}

.cg-cmp__table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: none;
}

.cg-cmp__table th,
.cg-cmp__table td {
  padding: 22px 24px;
  border: 0;
  background: none;
  text-align: left;
  vertical-align: middle;
}

.cg-cmp__table thead th {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9b2bd;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cg-cmp__table thead th:nth-child(1) { width: 23%; }
.cg-cmp__table thead th:nth-child(2) { width: 31%; }
.cg-cmp__table thead th:nth-child(3) { width: 20%; }

.cg-cmp__table tbody tr { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.cg-cmp__table tbody th {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.cg-cmp__table tbody td {
  color: #c9c3cc;
  font-size: 14px;
  line-height: 20px;
}

.cg-level {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.cg-level--high     { background: rgba(239, 68, 68, 0.16);  color: #f87171; }
.cg-level--mid_high { background: rgba(249, 115, 22, 0.16); color: #fb923c; }
.cg-level--medium   { background: rgba(234, 179, 8, 0.16);  color: #facc15; }
.cg-level--low,
.cg-level--none     { background: rgba(34, 197, 94, 0.14);  color: #4ade80; }
.cg-level--varies   { background: rgba(255, 255, 255, 0.08); color: #b9b2bd; }

@media (max-width: 992px) {
  .cg-cmp { padding-bottom: 48px; }
  .cg-cmp__table th,
  .cg-cmp__table td { padding: 16px; }
  .cg-cmp__table thead th { padding-top: 12px; padding-bottom: 12px; }
}

/* Casino Bonuses: bonus terms (Figma "Bonus terms"): header (max 900px), 3-column tiles 24px apart, example box */
.cg-terms { padding: 0 0 72px; }

.cg-terms__head { max-width: 900px; margin-bottom: 40px; }
.cg-terms__head .cg-eyebrow { margin-bottom: 12px; }

.cg-terms__text { max-width: 820px; margin-top: 12px; }

.cg-terms__text p {
  margin: 0 0 12px;
  padding: 0;
  color: #b9b2bd;
  font-size: 17px;
  line-height: 28px;
}

.cg-terms__text p:last-child { margin-bottom: 0; }

.cg-terms__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cg-terms__tile {
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.cg-terms__num {
  display: block;
  color: #e0558a;
  font-family: "Baloo 2", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
}

.cg-terms__title {
  margin: 12px 0 0;
  padding: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  text-align: left !important;
}

.cg-terms__desc {
  margin: 8px 0 0;
  padding: 0;
  color: #b9b2bd;
  font-size: 14px !important;
  line-height: 22px !important;
}

.cg-terms__example {
  margin: 40px 0 0;
  padding: 20px 24px;
  border: 1px solid rgba(224, 85, 138, 0.3);
  border-radius: 12px;
  background: rgba(179, 16, 225, 0.08);
  color: #e9e4ec;
  font-size: 15px;
  line-height: 26px;
}

.cg-terms__example strong { color: #e0558a; font-weight: 700; }

@media (max-width: 992px) {
  .cg-terms { padding-bottom: 48px; }
  .cg-terms__head { margin-bottom: 28px; }
  .cg-terms__text p { font-size: 15px; line-height: 24px; }
  .cg-terms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cg-terms__example { margin-top: 28px; }
}

@media (max-width: 561px) {
  .cg-terms__grid { grid-template-columns: 100%; }
}

/* Casino Bonuses: verdict card (Figma "Verdict"): rounded gradient card, text left (542px), tips right (400px) */
.cg-verdict { padding: 0 0 72px; }

.cg-verdict__card {
  display: grid;
  grid-template-columns: minmax(0, 542px) minmax(0, 400px);
  justify-content: space-between;
  gap: 40px 64px;
  padding: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(120, 30, 160, 0.35) 0%, rgba(40, 10, 50, 0.25) 45%, rgba(255, 255, 255, 0.02) 100%);
}

.cg-verdict__main .cg-eyebrow { margin-bottom: 12px; }
.cg-verdict__main .cg-btypes__title { margin-bottom: 16px; }

.cg-verdict__text p {
  margin: 0 0 12px;
  padding: 0;
  color: #c9c3cc;
  font-size: 16px;
  line-height: 28px;
}

.cg-verdict__text p:last-child { margin-bottom: 0; }

.cg-eyebrow--muted { color: #b9b2bd; }
.cg-verdict__tips .cg-eyebrow { margin-bottom: 14px; }

.cg-tips { margin: 0; padding: 0; list-style: none; }

.cg-tips__item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.cg-tips__item + .cg-tips__item { margin-top: 14px; }
.cg-tips__item::before { content: none; }

.cg-tips__check {
  display: flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-bonus-xs);
  color: #fff;
}

@media (max-width: 992px) {
  .cg-verdict { padding-bottom: 48px; }
  .cg-verdict__card { grid-template-columns: 100%; padding: 28px 24px; gap: 32px; }
  .cg-verdict__text p { font-size: 15px; line-height: 26px; }
  .cg-tips__item { padding: 14px 16px; font-size: 14px; }
}

/* Casino Bonuses: FAQ (Figma "FAQ"): centred header, 860px list of accordion items with +/- */
.cg-faq { padding: 0 0 72px; }

.cg-faq__head { margin-bottom: 32px; text-align: center; }
.cg-faq__head .cg-eyebrow { margin-bottom: 12px; }
.cg-faq__head .cg-btypes__title { text-align: center !important; }

.cg-faq__list { max-width: 860px; margin: 0 auto; }

.cg-faq__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s;
}

.cg-faq__item + .cg-faq__item { margin-top: 12px; }
.cg-faq__item[open] { border-color: rgba(224, 85, 138, 0.35); }

.cg-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  list-style: none;
}

.cg-faq__q::-webkit-details-marker { display: none; }

.cg-faq__q::after {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23e0558a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  content: "";
  transition: transform 0.2s;
}

.cg-faq__item[open] .cg-faq__q::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%23e0558a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.cg-faq__a { padding: 0 28px 24px; }

.cg-faq__a p {
  margin: 0;
  padding: 0;
  color: #c9c3cc;
  font-size: 15px;
  line-height: 26px;
}

@media (max-width: 992px) {
  .cg-faq { padding-bottom: 48px; }
  .cg-faq__head { margin-bottom: 24px; }
  .cg-faq__q { padding: 20px; font-size: 16px; }
  .cg-faq__a { padding: 0 20px 20px; }
  .cg-faq__a p { font-size: 14px; line-height: 24px; }
}

/* Casino Bonuses: gaps where the blocks meet the text wrapper (.more_wrap has its own background):
   terms (first in the wrapper) and FAQ (right after it) get 72px on top, terms → verdict 72px. */
.more_wrap .more_text > section.cg-terms { padding-top: 72px !important; padding-bottom: 72px !important; }
/* the verdict is not :last-child (the old layout's <style> follows it), so its bottom gap is set here */
.more_wrap .more_text > section.cg-verdict { padding-top: 0 !important; padding-bottom: 72px !important; }
.cg-faq { padding-top: 72px; }

@media (max-width: 992px) {
  .more_wrap .more_text > section.cg-terms { padding-top: 48px !important; padding-bottom: 48px !important; }
  .more_wrap .more_text > section.cg-verdict { padding-bottom: 48px !important; }
  .cg-faq { padding-top: 48px; }
}
