﻿/*!
Theme Name: Bet365 Elite Theme
Description: ?????????°?»N????°N? WordPress N‚?µ???° ???»N? ???°?·??????-N??°??N‚????
Author: Your Name
Version: 1.1.0
Text Domain: bet365-elite
*/

/* Google fonts are enqueued via functions.php for non-blocking load. */

:root {
  /* Bet365 palette: emerald green, bright yellow, clean white */
  --bet365-white: #FFFFFF;
  --bet365-emerald: #0B5C2F;
  --bet365-yellow:  #FFDD00;

  /* Base surfaces (dark UI, sportsbook feel) */
  --bet365-base-green: #052915;
  --bet365-secondary-green: #0A3A20;
  --bet365-card-green: #0F4D2B;

  /* Accent mapping */
  --bet365-accent-yellow: var(--bet365-yellow);
  --bet365-accent-flare: #FFE866;
  --bet365-accent-emerald: #14A94A;

  /* Text and borders */
  --bet365-text-primary: var(--bet365-white);
  --bet365-text-secondary: #E3F4E8;
  --bet365-text-muted: #A3C4AE;
  --bet365-border: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --bet365-gradient-primary: linear-gradient(135deg, #0B5C2F 0%, #127A3A 55%, #FFDD00 100%);
  --bet365-gradient-secondary: linear-gradient(135deg, rgba(11,92,47,0.95) 0%, rgba(255,221,0,0.9) 100%);
  --bet365-gradient-dark: linear-gradient(135deg, #02160C 0%, #0A301B 100%);

  /* Shadows tuned to brand */
  --bet365-shadow-primary: 0 10px 40px rgba(5, 20, 10, 0.45);
  --bet365-shadow-secondary: 0 5px 20px rgba(255, 221, 0, 0.3);
  --bet365-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);

  --bet365-radius: 12px;
  --bet365-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* guard: prevent phantom right gap on mobile */
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bet365-base-green);
  color: var(--bet365-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: scroll; /* prevent scrollbar-appearance shift */
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--bet365-accent-yellow);
  color: var(--bet365-base-green);
  padding: 0.5rem 1rem;
  border-radius: var(--bet365-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--bet365-transition);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.site-header {
  background: rgba(5, 41, 21, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bet365-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  min-height: 72px; /* reserve space to prevent CLS */
}

/* WordPress admin bar offset (remove global margin and offset sticky header instead) */
html { margin-top: 0 !important; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 72px; /* match header min-height */
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  max-height: 72px; /* allow vertical logos, slightly bigger */
  width: auto;
  height: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: var(--bet365-radius);
  transition: var(--bet365-transition);
}

.site-logo img:hover {
  transform: scale(1.05);
  box-shadow: var(--bet365-shadow-primary);
}

.site-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--bet365-text-primary);
  text-decoration: none;
  background: var(--bet365-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--bet365-transition);
}

.site-title a:hover {
  transform: translateY(-2px);
}

.site-description {
  color: var(--bet365-text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.header-navigation-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Header CTA on overlay/pill */
.header-cta {
  position: relative;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
}
.header-cta.cas-btn--primary { background: var(--bet365-gradient-primary); color: #FFFFFF; box-shadow: var(--bet365-shadow-primary); }
.header-cta.cas-btn--secondary { background: rgba(0,102,255,0.18); color: var(--bet365-white); box-shadow: 0 6px 20px rgba(0,102,255,0.25); border-color: rgba(0,102,255,0.4); }
.header-cta:hover { transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--bet365-text-primary);
  transition: var(--bet365-transition);
  border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .top {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .middle {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bottom {
  transform: rotate(-45deg) translate(6px, -6px);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--bet365-text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--bet365-radius);
  position: relative;
  transition: var(--bet365-transition);
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--bet365-yellow);
  background: rgba(255, 221, 0, 0.18);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bet365-gradient-primary);
  transition: var(--bet365-transition);
  transform: translateX(-50%);
}

.main-navigation a:hover::after {
  width: 80%;
}

.site-content {
  flex: 1;
}

/* Mobile-first responsive navigation enhancements */
@media (max-width: 992px) {
  .menu-toggle { display: flex; }
  #site-navigation { position: absolute; top: 64px; right: 0; left: 0; background: rgba(5, 41, 21, 0.98); border-bottom: 1px solid var(--bet365-border); display: none; }
  #site-navigation.active { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; }
  .main-navigation li { border-top: 1px solid rgba(255,255,255,0.05); }
  .main-navigation a { display: block; padding: 1rem; }
  body.no-scroll { overflow: hidden; }
  .header-cta { margin-left: auto; }
}

/* Blocks: base styles (builder) */
.cas-section { padding: 10px 0 !important; }
@media (min-width: 1200px) { .cas-section { padding: 10px 0 !important; } }
@media (max-width: 600px) { .cas-section { padding: 10px 0 !important; } }
.section-title { font-family: 'Orbitron', monospace; font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 10px; }
.cas-btn, .entry-content a.btn, .rich-text a.btn { display:inline-flex; align-items:center; justify-content:center; padding: .75rem 1.25rem; border-radius: var(--bet365-radius); text-decoration:none; font-weight:600; transition: var(--bet365-transition); }
.cas-btn--primary { background: var(--bet365-gradient-primary); color: #FFFFFF; box-shadow: var(--bet365-shadow-primary); }
.cas-btn--primary:hover { transform: translateY(-1px); }
.cas-btn--secondary { background: var(--bet365-gradient-secondary); color: #fff; box-shadow: var(--bet365-shadow-secondary); }

/* Features grid (adaptive text and media) */
.features-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: stretch; }
.feature-card { background: var(--bet365-secondary-green); border: 1px solid var(--bet365-border); border-radius: var(--bet365-radius); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; text-align: center; }
.feature-card__icon { width: clamp(96px, 14vw, 180px); height: auto; object-fit: contain; display: block; }
.feature-card__body { flex: 0 1 auto; min-width: 0; }
.feature-card__title { font-weight: 700; margin: 0 0 4px; font-size: clamp(1rem, 1.2vw, 1.125rem); overflow-wrap: anywhere; }
.feature-card__desc { color: var(--bet365-text-secondary); margin: 0; line-height: 1.5; font-size: clamp(.9rem, 1vw, 1rem); overflow-wrap: anywhere; }

/* Posts grid */
.posts-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.post-card { background: var(--bet365-secondary-green); border:1px solid var(--bet365-border); border-radius: var(--bet365-radius); overflow:hidden; display:flex; flex-direction:column; }
.post-card__thumb img { width:100%; height:auto; display:block; }
.post-card__body { padding: 1rem; }
.post-card__title { margin: 0 0 .5rem; font-size: 1.125rem; }
.post-card__title a { color: var(--bet365-text-primary); text-decoration:none; }
.post-card__meta { font-size: .875rem; color: var(--bet365-text-muted); margin-bottom:.5rem; }

/* Generic responsive images in blocks */
.cas-section img, .entry-content img, .raw-html img { max-width: 100%; height: auto; }

/* Alignment helpers for images inside rich text */
.entry-content img.alignleft, .rich-text img.alignleft { float:left; margin: 0 .75rem .5rem 0; max-width: 45%; height:auto; }
.entry-content img.alignright, .rich-text img.alignright { float:right; margin: 0 0 .5rem .75rem; max-width: 45%; height:auto; }
.entry-content img.aligncenter, .rich-text img.aligncenter { display:block; margin: 0 auto 1rem; }
@media (max-width: 768px) {
  .entry-content img.alignleft, .rich-text img.alignleft,
  .entry-content img.alignright, .rich-text img.alignright { float:none; margin: 0 0 1rem; max-width:100%; display:block; }
}

/* Make links styled as buttons inside WYSIWYG */
.entry-content a.btn, .rich-text a.btn,
.entry-content a.button, .rich-text a.button {
  display:inline-flex; align-items:center; justify-content:center; padding:.65rem 1.1rem; border-radius: var(--bet365-radius); text-decoration:none; font-weight:600; transition: var(--bet365-transition);
}
.entry-content a.btn-primary, .rich-text a.btn-primary { background: var(--bet365-gradient-primary); color: var(--bet365-base-green); box-shadow: var(--bet365-shadow-primary); }
.entry-content a.btn-secondary, .rich-text a.btn-secondary { background: var(--bet365-gradient-secondary); color: #fff; box-shadow: var(--bet365-shadow-secondary); }

/* CTA */
.cas-section--cta .cta { text-align:center; background: var(--bet365-gradient-dark); border:1px solid var(--bet365-border); border-radius: var(--bet365-radius); padding: 2rem; }
.cas-section--cta a { text-decoration: none !important; }
.cas-section--cta a:hover { text-decoration: none !important; }
.cta__title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .5rem; }
.cta__desc { color: var(--bet365-text-secondary); margin-bottom: 1rem; }

/* FAQ */
.cas-faq__item { border-bottom:1px solid var(--bet365-border); }
.cas-faq__question { width:100%; text-align:left; background:none; border:0; color:var(--bet365-text-primary); font-weight:600; padding:1rem 0; cursor:pointer; }
.cas-faq__answer { color: var(--bet365-text-secondary); padding-bottom:1rem; }

.cas-main {
  background: var(--bet365-base-green);
  min-height: 100vh;
}

.cas-hero { background: var(--bet365-gradient-dark); padding: 8px 0; position: relative; overflow: hidden; }
.cas-hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.cas-hero__content { display:flex; flex-direction:column; align-items:flex-start; gap: .25rem; }
.cas-hero__content { min-height: 160px; }
.cas-hero__content > * { display:block; }
.cas-hero__grid.is-img-left { direction: rtl; }
.cas-hero__grid.is-img-left > * { direction: ltr; }
.cas-hero__title { font-family: 'Orbitron', monospace; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.cas-hero__title { font-size-adjust: 0.52; }
.cas-hero__subtitle { color: var(--bet365-text-secondary); margin-top: .25rem; margin-bottom: 1rem; line-height: 1.7; max-width: 65ch; }
.cas-hero__content .cas-btn, .entry-content a.btn, .rich-text a.btn { margin-top: .25rem; }
.cas-hero__subtitle .cas-btn, .cas-hero__subtitle a.btn { white-space: normal; }
.cas-hero__media { display:flex; align-items:center; justify-content:center; width: auto; max-width: 100%; padding: 4px 4px; aspect-ratio: var(--hero-w) / var(--hero-h); inline-size: min(var(--hero-img-max, 560px), 45vw); }
.cas-hero__media img { width: 100%; height: auto; display: block; border-radius: var(--bet365-radius); box-shadow: var(--bet365-shadow-card); max-width: var(--hero-img-max, min(560px, 45vw)); object-fit: contain; margin: 6px 0; }
@media (max-width: 992px) {
  .cas-hero__media img { max-width: 100%; }
}
@media (max-width: 992px) {
  .cas-hero__grid { grid-template-columns: 1fr; }
  .cas-hero__media { width: 100%; }
}

.cas-hero__card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.cas-hero__content {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}

.cas-hero__left {
  animation: fadeInUp 1s ease-out;
}

.cas-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cas-title--h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: var(--bet365-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cas-title--h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bet365-text-primary);
  margin-bottom: 2rem;
}

/* Generic content headings (Rich Text, Gutenberg content, sections) */
.entry-content h2, .rich-text h2, .cas-section h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--bet365-text-primary);
  margin: 1.25rem 0 .75rem;
  line-height: 1.25;
}
.entry-content h3, .rich-text h3, .cas-section h3 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--bet365-text-secondary);
  margin: 1rem 0 .5rem;
  line-height: 1.3;
}
.entry-content h2::after, .rich-text h2::after, .cas-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: .35rem;
  background: var(--bet365-yellow);
  border-radius: 2px;
}

/* Paragraphs and lists spacing inside content */
.entry-content p, .rich-text p { margin: 0 0 1rem; }
.entry-content ul, .rich-text ul, .entry-content ol, .rich-text ol {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
  list-style-position: inside; /* keep markers within content box */
}
.entry-content li, .rich-text li { margin: .35rem 0; }

.cas-hero__rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.cas-hero__rating span:first-child {
  color: var(--bet365-yellow);
  font-size: 1.5rem;
}

.cas-hero__rating span:last-child {
  color: var(--bet365-text-secondary);
  font-weight: 600;
}

.cas-hero__description {
  font-size: 1.125rem;
  color: var(--bet365-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cas-hero__right {
  display: flex;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cas-hero__right img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: var(--bet365-radius);
  box-shadow: var(--bet365-shadow-card);
  transition: var(--bet365-transition);
}

.cas-hero__right img:hover {
  transform: scale(1.05) rotate(2deg);
}

.cas-hero__footer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bet365-border);
}

.cas-hero__footer img {
  height: 72px;
  width: auto;
  opacity: 0.7;
  transition: var(--bet365-transition);
  filter: grayscale(1);
}

.cas-hero__footer img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-2px);
}

.cas-btn, .entry-content a.btn, .rich-text a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--bet365-radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--bet365-transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.cas-btn--primary { background: var(--bet365-gradient-primary); color: #FFFFFF; box-shadow: var(--bet365-shadow-primary); }

.cas-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 184, 0, 0.4);
}

.cas-btn--secondary {
  background: var(--bet365-gradient-secondary);
  color: var(--bet365-text-primary);
  box-shadow: var(--bet365-shadow-secondary);
}

.cas-btn--secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(108, 92, 231, 0.4);
}

.cas-btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Button size helpers for HTML-inserted buttons */
.cas-btn--sm { padding: .5rem 1rem; font-size: .875rem; }
.cas-btn--md { padding: .75rem 1.25rem; font-size: 1rem; }
.cas-btn--lg { padding: 1.1rem 2.25rem; font-size: 1.125rem; }
.cas-btn--xl { padding: 1.5rem 2.75rem; font-size: 1.25rem; }

/* Disable clipping glow when needed */
.cas-btn--no-clip { overflow: visible; }

.cas-btn--cta-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.cas-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cas-btn:hover::before {
  left: 100%;
}

.cas-section {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.cas-section--dark {
  background: var(--bet365-secondary-green);
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--bet365-radius);
  box-shadow: var(--bet365-shadow-card);
}

.cas-section--info {
  background: var(--bet365-card-green);
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--bet365-radius);
}

.cas-content {
  color: var(--bet365-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
}

.cas-content p {
  margin-bottom: 1.5rem;
}

.cas-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.cas-content li {
  margin-bottom: 0.5rem;
  color: var(--bet365-text-secondary);
}

.cas-content li::marker {
  color: var(--bet365-yellow);
}

.cas-content--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cas-content__media img {
  width: 100%;
  height: auto;
  border-radius: var(--bet365-radius);
  box-shadow: var(--bet365-shadow-card);
}

.cas-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--bet365-radius);
  background: var(--bet365-card-green);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead th {
  /* subtle highlight with soft light gradient over dark surface */
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%), var(--bet365-secondary-green);
  color: var(--bet365-text-primary); /* white text */
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--bet365-border);
  border-top: 1px solid var(--bet365-border);
  border-left: 1px solid var(--bet365-border);
  border-right: 1px solid var(--bet365-border);
}

tbody td {
  padding: 1rem;
  border: 1px solid var(--bet365-border);
  color: var(--bet365-text-secondary);
}

tbody tr:hover {
  background: rgba(255, 184, 0, 0.05);
}

tbody td:first-child {
  font-weight: 600;
  color: var(--bet365-text-primary);
}

tbody td img {
  vertical-align: middle;
  margin-right: 0.5rem;
}

.cas-ratings {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.cas-ratings__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cas-criteria-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bet365-card-green);
  border-radius: var(--bet365-radius);
  transition: var(--bet365-transition);
}

.cas-criteria-item:hover {
  transform: translateX(5px);
  box-shadow: var(--bet365-shadow-card);
}

.cas-criteria-item span:first-child {
  font-weight: 600;
  color: var(--bet365-text-primary);
}

.cas-criteria-item__bar {
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--bet365-border);
  border-radius: 4px;
  margin: 0 1rem;
  overflow: hidden;
}

.cas-criteria-item__bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--width, 0%);
  background: var(--bet365-gradient-primary);
  border-radius: 4px;
  animation: fillBar 1.5s ease-out;
}

.cas-criteria-item__bar span {
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--bet365-yellow);
  font-size: 0.875rem;
}

.cas-ratings__overall {
  background: var(--bet365-gradient-dark);
  padding: 2rem;
  border-radius: var(--bet365-radius);
  text-align: center;
  box-shadow: var(--bet365-shadow-card);
  border: 1px solid var(--bet365-border);
}

.cas-ratings__score {
  font-family: 'Orbitron', monospace;
  font-size: 4rem;
  font-weight: 800;
  background: var(--bet365-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.cas-ratings__score span {
  font-size: 2rem;
  opacity: 0.7;
}

.cas-ratings__verdict {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bet365-yellow);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cas-ratings__overall p {
  color: var(--bet365-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cas-card {
  background: var(--bet365-card-green);
  border-radius: var(--bet365-radius);
  overflow: hidden;
  box-shadow: var(--bet365-shadow-card);
  transition: var(--bet365-transition);
  border: 1px solid var(--bet365-border);
}

.cas-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cas-card__image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.cas-card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--bet365-transition);
}

.cas-card:hover .cas-card__image-container img {
  transform: scale(1.1);
}

.cas-card__title {
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bet365-text-primary);
  padding: 1.5rem 1.5rem 1rem;
  margin: 0;
}

.cas-card__content {
  padding: 0 1.5rem 1.5rem;
  color: var(--bet365-text-secondary);
  line-height: 1.6;
}

.cas-card__btn {
  display: block;
  margin: 0 1.5rem 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bet365-gradient-primary);
  color: var(--bet365-base-green);
  text-decoration: none;
  text-align: center;
  border-radius: var(--bet365-radius);
  font-weight: 600;
  transition: var(--bet365-transition);
}

.cas-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--bet365-shadow-primary);
}

.cas-faq {
  margin-top: 2rem;
}

.cas-faq__item {
  background: var(--bet365-card-green);
  border-radius: var(--bet365-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--bet365-border);
}

.cas-faq__question {
  padding: 1.5rem;
  margin: 0;
  background: var(--bet365-secondary-green);
  color: var(--bet365-text-primary);
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  position: relative;
  transition: var(--bet365-transition);
}

.cas-faq__heading { margin: 0; }

.cas-faq__question:hover {
  background: var(--bet365-card-green);
  color: var(--bet365-yellow);
}

.cas-faq__question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--bet365-yellow);
  transition: var(--bet365-transition);
}

.cas-faq__item[open] .cas-faq__question::after {
  content: 'a?’';
  transform: translateY(-50%) rotate(180deg);
}

.cas-faq__answer {
  padding: 1.5rem;
  color: var(--bet365-text-secondary);
  line-height: 1.7;
}

.cas-faq__answer ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.cas-faq__answer li {
  margin-bottom: 0.5rem;
}

.cas-section--conclusion {
  background: var(--bet365-gradient-dark);
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--bet365-radius);
  text-align: center;
}

.cas-iso {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.cas-conclusion__cta {
  margin-top: 3rem;
}

.cas-author-box {
  background: var(--bet365-card-green);
  border-radius: var(--bet365-radius);
  margin: 3rem 0;
  overflow: hidden;
  box-shadow: var(--bet365-shadow-card);
  border: 1px solid var(--bet365-border);
}

.cas-author-box__inner {
  padding: 2rem;
}

.cas-author-box__header {
  margin-bottom: 1.5rem;
}

.cas-author-box__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bet365-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cas-author-box__content {
  display: flex;
  gap: 2rem;
  align-items: start;
}

.cas-author-box__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cas-author-box__img-container img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bet365-accent-yellow);
}

.cas-author-box__social a {
  color: var(--bet365-yellow);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255, 221, 0, 0.18);
  border-radius: var(--bet365-radius);
  transition: var(--bet365-transition);
}

.cas-author-box__social a:hover {
  background: var(--bet365-accent-yellow);
  color: var(--bet365-base-green);
}

.cas-author-box__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cas-author-box__name a {
  color: var(--bet365-text-primary);
  text-decoration: none;
}

.cas-author-box__desc {
  color: var(--bet365-text-secondary);
  line-height: 1.6;
}

.site-footer {
  background: var(--bet365-base-green);
  margin-top: 4rem;
}

.footer-premium-zone {
  background: var(--bet365-gradient-dark);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.footer-premium-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 169, 74, 0.2) 0%, transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.premium-zone-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.premium-cta-block {
  text-align: left;
}

.premium-cta-subtitle {
  color: var(--bet365-yellow);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.premium-cta-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bet365-text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.premium-cta-description {
  font-size: 1.125rem;
  color: var(--bet365-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.premium-social-proof {
  text-align: center;
}

.live-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bet365-yellow);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--bet365-text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-signup {
  background: var(--bet365-card-green);
  padding: 2rem;
  border-radius: var(--bet365-radius);
  border: 1px solid var(--bet365-border);
}

.newsletter-title {
  color: var(--bet365-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input[type="email"] {
  padding: 1rem;
  border: 1px solid var(--bet365-border);
  background: var(--bet365-secondary-green);
  color: var(--bet365-text-primary);
  border-radius: var(--bet365-radius);
  font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--bet365-yellow);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--bet365-text-muted);
}

.gdpr-consent {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--bet365-text-muted);
}

.gdpr-consent input[type="checkbox"] {
  margin-top: 0.25rem;
}

.footer-main {
  padding: 4rem 0 2rem;
  background: var(--bet365-secondary-green);
}

.footer-grid{ display:flex; justify-content:center; }

.footer-col h3 {
  color: var(--bet365-text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-about-text {
  color: var(--bet365-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  background: var(--bet365-card-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bet365-text-secondary);
  text-decoration: none;
  transition: var(--bet365-transition);
  border: 1px solid var(--bet365-border);
}

.footer-social-links a:hover {
  background: var(--bet365-accent-yellow);
  color: var(--bet365-base-green);
  transform: translateY(-2px);
}

.footer-widget-title {
  color: var(--bet365-text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--bet365-text-secondary);
  text-decoration: none;
  transition: var(--bet365-transition);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--bet365-yellow);
  transform: translateX(5px);
}

.partner-logos {
  margin-top: 1rem;
}

.partner-type-title {
  color: var(--bet365-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo-grid img {
  opacity: 0.6;
  transition: var(--bet365-transition);
  filter: grayscale(1);
}

.logo-grid img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.footer-legal-zone {
  background: var(--bet365-base-green);
  padding: 2rem 0;
  border-top: 1px solid var(--bet365-border);
}

.responsible-gaming-block {
  display: flex;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--bet365-card-green);
  border-radius: var(--bet365-radius);
  border: 1px solid var(--bet365-border);
}

.age-restriction img {
  width: 60px;
  height: 60px;
}

.responsible-gaming-text {
  flex: 1;
}

.responsible-gaming-text p {
  color: var(--bet365-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.help-organizations {
  display: flex;
  gap: 2rem;
}

.help-organizations img {
  opacity: 0.7;
  transition: var(--bet365-transition);
}

.help-organizations img:hover {
  opacity: 1;
}

.licensing-info {
  display: flex;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.license-logos {
  display: flex;
  gap: 1rem;
}

.license-logos img {
  opacity: 0.8;
}

.licensing-info p {
  flex: 1;
  color: var(--bet365-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--bet365-border);
}

.copyright-text {
  color: var(--bet365-text-muted);
  font-size: 0.875rem;
}

.footer-legal-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-nav a {
  color: var(--bet365-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--bet365-transition);
}

.footer-legal-nav a:hover {
  color: var(--bet365-yellow);
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--bet365-gradient-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bet365-shadow-primary);
  opacity: 0;
  visibility: hidden;
  transition: var(--bet365-transition);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 184, 0, 0.4);
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid var(--bet365-base-green);
}

.cas-contact-form-wrapper {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--bet365-card-green);
  border: 1px solid var(--bet365-border);
  border-radius: var(--bet365-radius);
  box-shadow: var(--bet365-shadow-card);
}

.cas-form__group {
  margin-bottom: 1.5rem;
}

.cas-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--bet365-text-primary);
}

.cas-form__input,
.cas-form__textarea,
.cas-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--bet365-secondary-green);
  color: var(--bet365-text-primary);
  border: 1px solid var(--bet365-border);
  border-radius: var(--bet365-radius);
  transition: var(--bet365-transition);
}

.cas-form__input:focus,
.cas-form__textarea:focus,
.cas-form select:focus {
  outline: none;
  border-color: var(--bet365-yellow);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
}

.cas-form__textarea {
  resize: vertical;
}

.cas-btn--primary { background: var(--bet365-gradient-primary); color: #FFFFFF; box-shadow: var(--bet365-shadow-primary); }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--width);
  }
}

@keyframes glow {
  from {
    box-shadow: var(--bet365-shadow-primary);
  }
  to {
    box-shadow: 0 15px 50px rgba(255, 184, 0, 0.6), 0 0 30px rgba(255, 184, 0, 0.3);
  }
}

@media (max-width: 1024px) {
  .cas-hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .cas-ratings__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cas-content--split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .premium-zone-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-grid{ display:flex; justify-content:center; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bet365-secondary-green);
    border-top: 1px solid var(--bet365-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--bet365-transition);
    overflow: visible; /* allow language dropdown to overflow */
    z-index: 1002;
  }
  
  .main-navigation.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-navigation ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .main-navigation li {
    width: 100%;
  }
  
  .main-navigation a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--bet365-border);
  }

  /* Language dropdown positioning on mobile: stick to left, fully visible */
  .lang-switch { position: relative; margin-left: 0 !important; align-self: flex-start; }
  .lang-switch__list { left: 8px !important; right: auto !important; max-width: calc(100vw - 16px); }
  
  .cas-cards {
    grid-template-columns: 1fr;
  }

  .iso {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
  
  .cas-author-box__content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-grid{ display:flex; justify-content:center; }
  
  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .responsible-gaming-block {
    flex-direction: column;
    text-align: center;
  }
  
  .licensing-info {
    flex-direction: column;
    text-align: center;
  }
  
  .live-stats {
    flex-direction: column;
    gap: 2rem;
  }

  /* Prevent rating bar label from causing horizontal overflow */
  .cas-criteria-item__bar span { right: .25rem; transform: translateY(-50%); }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.5rem;
  }
  .site-logo img { max-height: 56px; }
  
  .cas-section {
    padding: 2rem 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .container {
    padding: 0 0.5rem;
  }
  
  .cas-btn, .entry-content a.btn, .rich-text a.btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .cas-btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .cas-ratings__score {
    font-size: 3rem;
  }
  
  .newsletter-form {
    gap: 0.75rem;
  }
  
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}
/* Footer nav basic styles */
.footer-nav .footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-nav .footer-menu li { margin: .25rem 0; }
.footer-nav .footer-menu a { color: var(--bet365-text-secondary); text-decoration: none; }
.footer-nav .footer-menu a:hover { color: var(--bet365-yellow); }
/* Footer simplified styles */
.footer-logo-simple img{ max-width:120px; height:auto; }
.footer-disclaimer{ color: var(--bet365-text-secondary); margin-bottom: .75rem; }
.footer-compliance-logos{ display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.footer-bottom-bar{ display:flex; align-items:center; padding:12px 0; border-top:1px solid var(--bet365-border); }
.footer-menu-inline{ list-style:none; margin:0; padding:0; display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.footer-menu-inline a{ color: var(--bet365-text-secondary); text-decoration:none; }
.footer-menu-inline a:hover{ color: var(--bet365-yellow); }
.copyright-text{ color: var(--bet365-text-secondary); }

/* Keep header menu on one line */
.main-navigation ul { flex-wrap: nowrap; }
.main-navigation a { white-space: nowrap; }
.menu-wrapper{ overflow-x:auto; scrollbar-width:none; }
.menu-wrapper::-webkit-scrollbar{ display:none; }

/* Language dropdown */
.lang-switch{ position: relative; display:inline-flex; align-items:center; margin-left:12px; }
.lang-switch__toggle{ background: rgba(255,255,255,0.06); border:1px solid var(--bet365-border); color: var(--bet365-text-secondary); border-radius: 8px; padding: 6px 10px; cursor:pointer; }
.lang-switch__list{ position:absolute; right:0; top:calc(100% + 6px); background: var(--bet365-secondary-green); border:1px solid var(--bet365-border); border-radius:8px; padding:6px; display:none; min-width:140px; z-index:1001; }
.lang-switch__list{ max-height: 70vh; overflow-y: auto; max-width: calc(100vw - 16px); }
@media (max-width: 768px){
  .lang-switch{ margin-left: 0; }
  .lang-switch__list{ right: 8px; }
}
.lang-switch.open .lang-switch__list{ display:block; }
.lang-switch__list a{ display:block; padding:6px 8px; color: var(--bet365-text-secondary); text-decoration:none; }
.lang-switch__list a:hover{ color: var(--bet365-yellow); background: rgba(227,6,19,0.08); border-radius:6px; }

.footer-menu-under-logo{ justify-content: var(--footer-menu-justify, center); }
.footer-under-logo-nav{ margin-top:8px; }

.cas-section > .container > *:first-child{ margin-top:0 }
.cas-section > .container > *:last-child{ margin-bottom:0 }

.lang-switch__toggle img{ width:18px; height:12px; margin-right:6px; border-radius:2px; }
.lang-switch__list img{ width:18px; height:12px; margin-right:6px; border-radius:2px; }

.footer-col--logo{ width:100%; display:flex; flex-direction:column; align-items:center; text-align:center; }
.footer-under-logo-nav{ margin-top:8px; width:100%; }
.copyright-text{ color: var(--bet365-text-secondary); width:100%; text-align:center; }
.main-navigation{ display:flex; align-items:center; gap:12px; }
.main-navigation ul{ flex:1 1 auto; }
.lang-switch{ position:relative; display:inline-flex; align-items:center; margin-left:auto; }
.lang-switch__toggle img{ width:18px; height:12px; margin-right:6px; border-radius:2px; }
.lang-switch__list img{ width:18px; height:12px; margin-right:6px; border-radius:2px; }




/* Device Gallery (phone-like cards) */
.cas-section--devices { }
.cas-device-grid { display:grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.cas-device-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cas-device-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cas-device-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .cas-device-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

.cas-device-card { background:#FFFFFF; color:#111827; border:1px solid #e5e7eb; border-radius: 22px; padding: 14px; padding-top: 36px; box-shadow: 0 8px 24px rgba(0,0,0,.12); position: relative; display:flex; flex-direction: column; min-width: 0; }
.cas-device-caption { margin-bottom: 10px; }
.cas-device-title { font-weight: 700; font-size: 1rem; margin: 0 0 4px; }
.cas-section.cas-section--devices h3.cas-device-title { color: #111827 !important; }
.cas-section--devices h3 { color: #111827 !important; }
.cas-device-desc { font-size: .9rem; color:#4b5563; margin: 0; overflow-wrap:anywhere; word-break: break-word; }
.cas-device-desc .cas-btn, .cas-device-desc a.btn{ margin-top:8px; white-space: normal; max-width: 100%; }
.cas-device-media { background:#f8fafc; border:1px solid #e5e7eb; border-radius: 16px; padding: 6px; overflow: hidden; margin-top:auto; }
.cas-device-img { width:100%; height:auto; display:block; border-radius: 12px; }
/* When crop is on, allow consistent cover look if parent sets height */
.cas-device-img.is-cropped { object-fit: cover; }
.cas-device-notch { position:absolute; top:8px; left:12px; background:#e5e7eb; color:#111827; border:1px solid #d1d5db; border-radius:999px; padding:2px 10px; font-size:12px; line-height:1.5; font-weight:600; box-shadow: 0 2px 8px rgba(0,0,0,0.06); white-space: nowrap; z-index:2; }

/* Fix: FAQ icon shows minus when open */
.cas-faq__item[open] .cas-faq__question::after { content: '\2212'; transform: translateY(-50%); }

/* Mobile: Device gallery becomes horizontal scroll with snap */
@media (max-width: 768px) {
  .cas-section--devices .container { overflow: visible; }
  /* Mobile: vertical stacking (step-by-step while scrolling page) */
  .cas-device-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; overflow: visible; }
  .cas-device-card { width: 100%; max-width: 100%; }
}

/* Class-based horizontal mode (JS fallback) */
/* Force vertical mode even if JS class present */
.cas-device-grid.is-horizontal { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; overflow: visible; }
.cas-device-grid.is-horizontal .cas-device-card { width: 100%; max-width: 100%; }

/* Prevent tables from causing horizontal scroll on mobile */
.rich-text, .entry-content { overflow-x: hidden; }
.rich-text table, .entry-content table { display: table; width:100%; border-collapse: collapse; table-layout: auto; border:1px solid var(--bet365-border); }
.rich-text th, .entry-content th, .rich-text td, .entry-content td { white-space: normal; word-break: break-word; overflow-wrap: anywhere; border:1px solid var(--bet365-border); }
/* subtle zebra for readability */
.rich-text tbody tr:nth-child(even), .entry-content tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.cas-section--rich { content-visibility: auto; contain: layout style paint; }

/* Device Gallery: reserve image aspect-ratio to prevent CLS */
.cas-section--devices .cas-device-media{ aspect-ratio: var(--dg-w, 9) / var(--dg-h, 16); width:100%; }
/* Ensure stable card height on first paint */
.cas-section--devices .cas-device-card{ min-height: 320px; }
/* Explicit H1 sizing to avoid UA 'H1UserAgentFontSizeInSection' behavior */
.entry-content h1, .rich-text h1, .cas-section h1, section h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.25;
  color: var(--bet365-text-primary);
  margin: 1.25rem 0 .75rem;
}

/* -------------------------------------------------
   404 Page
-------------------------------------------------- */
.site-main--404 {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(circle at top, rgba(20, 169, 74, 0.2), transparent 55%),
    var(--bet365-base-green);
}

.error-404 {
  width: 100%;
}

.error-404__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2.5rem;
  border-radius: 28px;
  background: var(--bet365-secondary-green);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.error-404__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--bet365-gradient-primary);
  color: var(--bet365-white);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--bet365-shadow-primary);
}

.error-404__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.error-404__description {
  color: var(--bet365-text-secondary);
  margin-bottom: 2rem;
}

.error-404__description p {
  margin-bottom: 1rem;
}

.error-404__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.error-404__search {
  width: 100%;
}

.error-404__search .search-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.error-404__search .search-field {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--bet365-white);
}

.error-404__search .search-submit {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--bet365-gradient-primary);
  border: none;
  color: var(--bet365-white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--bet365-transition);
}

.error-404__search .search-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--bet365-shadow-primary);
}

.error-404__home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bet365-white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--bet365-transition);
}

.error-404__home-link:hover {
  border-color: transparent;
  background: var(--bet365-gradient-secondary);
  color: var(--bet365-white);
}

@media (max-width: 640px) {
  .error-404__inner {
    padding: 2.5rem 1.5rem;
  }

  .error-404__search .search-form {
    flex-direction: column;
  }

  .error-404__search .search-submit {
    width: 100%;
  }
}

/* -------------------------------------------------
   Global Search Components
-------------------------------------------------- */
.cas-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cas-search-form .search-field {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--bet365-white);
}

.cas-search-form .search-field::placeholder {
  color: var(--bet365-text-muted);
}

.cas-search-form .search-submit {
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  border: none;
  background: var(--bet365-gradient-primary);
  color: var(--bet365-white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--bet365-transition);
}

.cas-search-form .search-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--bet365-shadow-primary);
}

/* -------------------------------------------------
   Header search toggle
-------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-search-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--bet365-transition);
}

.header-search-toggle__icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.header-search-toggle__icon span:first-child {
  position: absolute;
  inset: 0;
  border: 2px solid var(--bet365-white);
  border-radius: 50%;
}

.header-search-toggle__icon span:last-child {
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--bet365-white);
  bottom: -2px;
  right: -4px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.header-search-toggle[aria-expanded="true"] span:last-child {
  width: 12px;
}

.header-search-toggle:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: rgba(5, 41, 21, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 50;
}

.header-search.is-open {
  transform: scaleY(1);
  opacity: 1;
  visibility: visible;
}

@media (max-width: 992px) {
  .header-search {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-bottom: none;
    background: transparent;
    padding: 1rem 0 0;
  }
}

/* -------------------------------------------------
   Search page layout
-------------------------------------------------- */
.site-main--search {
  padding: 4rem 1.5rem;
}

.search-page__header {
  max-width: 860px;
  margin: 0 auto 3rem;
  text-align: center;
}

.search-page__badge {
  display: inline-flex;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bet365-text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.search-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.search-page__form {
  max-width: 620px;
  margin: 0 auto;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.search-card {
  background: var(--bet365-secondary-green);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--bet365-shadow-card);
}

.search-card__type {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--bet365-text-muted);
}

.search-card__title {
  font-size: 1.35rem;
  margin: 0.25rem 0;
}

.search-card__title a {
  color: inherit;
  text-decoration: none;
}

.search-card__excerpt {
  color: var(--bet365-text-secondary);
}

.search-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.search-card__meta time {
  color: var(--bet365-text-muted);
  font-size: 0.9rem;
}

.search-card__link {
  text-decoration: none;
}

.search-pagination {
  margin-top: 3rem;
  text-align: center;
}

.search-empty {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.search-empty__form {
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .cas-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cas-search-form .search-submit {
    width: 100%;
  }

  .search-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}





