/* =================================================================
   SITE DESIGN V2 - Stealth Crypto Theme
   ================================================================= */

/* --- 1. Global Styles & Variables --- */
:root {
  --color-background: #ffffff;
  --color-surface: #f4f7f5;
  --color-text-primary: #0b1210;
  --color-text-secondary: #3b4a44;
  --color-border: #d1ded7;

  /* accent kept by name, changed by value */
  --color-accent-gold: #1db954;
  --color-cta-text: #ffffff;

  --gradient-text: linear-gradient(45deg, #1db954, #6ee7b7);
  --gradient-border: linear-gradient(90deg, #1db954, #6ee7b7, transparent);

  --font-headings: "Poppins", sans-serif;
  --font-body: "Roboto", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  background-color: var(--color-background);
  color: var(--color-text-secondary);
}

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}
.container > .container {
  padding: 0;
}
.casino-grid__bonus-cta-btn {
  max-width: 100% !important;
}
/* --- NEW: Admin Toolbar --- */
.admin-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 2px solid var(--color-accent-gold);
  z-index: 9999;
  color: #111;
  font-size: 14px;
}

.toolbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.toolbar-info {
  color: var(--color-text-secondary);
}

.toolbar-info code {
  background: #eeeeee;
  color: #111111;
  padding: 2px 6px;
  border-radius: 4px;
}

.toolbar-actions {
  display: flex;
  gap: 20px;
}

.toolbar-actions a {
  color: #111111;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.toolbar-actions a:hover {
  background-color: #e3f2fd;
  color: #111;
}

.toolbar-actions a.logout-link {
  background-color: #e0e0e0;
}

.toolbar-actions a.logout-link:hover {
  background-color: #cccccc;
}

/* Push the main site content down when in admin mode */
body.admin-mode .main-header {
  position: sticky;
  top: 50px;
}

.logo-link img {
  max-height: 50px;
  width: auto;
}

/* --- 2. Hero Section & Aurora Background --- */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 300px;
  background-image: radial-gradient(
    circle,
    rgba(30, 136, 229, 0.15),
    transparent 70%
  );
  transform: translate(-50%, -50%);
  filter: blur(80px);
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

/* --- 3. Typography --- */
h1,
h2 {
  font-family: var(--font-headings);
  line-height: 1.3;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.2rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-top: 0;
  padding-bottom: 0;
}

h2 {
  font-size: 2rem;
  color: #1e88e5;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4em;
  margin-top: 1em;
}

h3 {
  font-family: var(--font-headings);
  font-size: 1.75rem;
 color: var(--color-accent-gold);
}

h4 {
  font-size: 1.2rem;
  color: #555555;
  font-style: italic;
  font-weight: 400;
}

p {
  margin-bottom: 1.5em;
}
a {
  color: var(--color-accent-gold);
  text-decoration: none;
}
ul {
  padding-left: 20px;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.75em;
}

.bonus-text {
  color: var(--color-text-primary);
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.bonus-text-auto {
  font-weight: bold;
  text-align: center;
}

/* --- 4. Special Content Elements --- */
.toplist-note {
  text-align: center;
  font-style: italic;
  color: var(--color-text-secondary);
  background-color: #f0f6ff;
  border-left: 4px solid #1e88e5;
  padding: 10px 15px;
  margin: 2em 0;
  border-radius: 0 4px 4px 0;
}

.tip {
  background-color: rgba(30, 136, 229, 0.08);
  border-left: 4px solid #1e88e5;
  padding: 20px 25px;
  margin: 2.5em 0;
  font-size: 1em;
  border-radius: 0 8px 8px 0;
}

.toplist-note h4,
.tip h4 {
  color: var(--color-text-primary);
  font-weight: bold;
}

/* --- 5. New Casino Card Design --- */
.casino-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 2.5em 0;
}

.casino-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.casino-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: #90caf9;
}

.casino-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.6rem;
  border: none;
  color: var(--color-text-primary);
}

.casino-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 0.95em;
}

.casino-details li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
}

.casino-details strong {
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.1em;
}

/* Wrapper controls spacing & centering */
.responsive-image {
  width: 100%;
  padding: 2.5rem 0; /* top & bottom spacing */
  display: flex;
  justify-content: center; /* center if image is smaller */
}

.responsive-image figure {
  margin: 0;
  text-align: center;
}

.responsive-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Image behavior */
.responsive-image img {
  max-width: 100%; /* responsive */
  height: auto; /* preserve aspect ratio */
  display: block; /* remove inline gaps */
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Icons for casino details */
.detail-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-color: var(--color-text-secondary);
}
.icon-bonus {
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 15c-2.06 0-3.86-1.21-4.65-3H12V8H8.16c.48-1.92 2.13-3.34 4.16-3.34.35 0 .68.04 1 .12V10h3.5c-.22 2.41-2.33 4.2-4.82 4.2L12 17z"/></svg>')
    no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 15c-2.06 0-3.86-1.21-4.65-3H12V8H8.16c.48-1.92 2.13-3.34 4.16-3.34.35 0 .68.04 1 .12V10h3.5c-.22 2.41-2.33 4.2-4.82 4.2L12 17z"/></svg>')
    no-repeat center / contain;
}
.icon-spins {
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 14.08c-2.03.5-4.2.14-5.78-1.18l1.42-1.42c1.02.83 2.5.96 3.7.4l-1.01-1.01c-.75.25-1.58.11-2.2-.35l1.42-1.42c.3.21.65.31 1 .31.28 0 .55-.07.8-.2l-1.01-1.01c-.49.1-1.01.03-1.43-.24l1.42-1.42c.5.34 1.14.47 1.78.31l-2.04-2.04c-.03.17-.04.33-.04.5 0 .35.07.68.2.99l1.42-1.42c-.2-.14-.38-.3-.52-.48L13 3.92V10h1.58L13 11.58V12h3v3l-1.42-1.42c-.36.24-.76.41-1.18.52L13 16.08z"/></svg>')
    no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 14.08c-2.03.5-4.2.14-5.78-1.18l1.42-1.42c1.02.83 2.5.96 3.7.4l-1.01-1.01c-.75.25-1.58.11-2.2-.35l1.42-1.42c.3.21.65.31 1 .31.28 0 .55-.07.8-.2l-1.01-1.01c-.49.1-1.01.03-1.43-.24l1.42-1.42c.5.34 1.14.47 1.78.31l-2.04-2.04c-.03.17-.04.33-.04.5 0 .35.07.68.2.99l1.42-1.42c-.2-.14-.38-.3-.52-.48L13 3.92V10h1.58L13 11.58V12h3v3l-1.42-1.42c-.36.24-.76.41-1.18.52L13 16.08z"/></svg>')
    no-repeat center / contain;
}
.icon-wager {
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 6h18v3H3zm0 5h18v3H3zm0 5h18v3H3z"/></svg>')
    no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 6h18v3H3zm0 5h18v3H3zm0 5h18v3H3z"/></svg>')
    no-repeat center / contain;
}

.casino-cta {
  text-align: center;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-accent-gold);
  color: var(--color-cta-text);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1em;
  padding: 14px 30px;
  border-radius: 8px;
  text-align: center;
  transition:
    transform 0.2s ease-out,
    background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.cta-button:hover {
  color: #000;
  transform: scale(1.05);
}

table .cta-button {
  display: inline-block;
  background-color: var(--color-accent-gold);
  color: var(--color-cta-text);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1em;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  transition:
    transform 0.2s ease-out,
    background-color 0.2s;
  width: auto;
  box-sizing: border-box;
}

.terms-link {
  font-size: 0.8em;
  color: var(--color-text-secondary);
  margin-top: 10px;
  display: block;
}

/* --- 7. FAQ Accordion --- */

.faq-container {
  margin: 3em 0;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 15px 0;
}

.faq-question {
  /* Reset button styles to look like a heading */
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 0;

  /* Font and layout */
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;

  /* Flexbox for layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-accent-gold);
  transition: transform 0.3s ease-out;
  margin-left: 20px;
}

.faq-answer {
  /* Smooth slide-down effect */
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-out,
    padding 0.3s ease-out;
  padding: 0 10px;
  color: var(--color-text-secondary);
}

/* --- Active State (toggled by JavaScript) --- */

.faq-question.active + .faq-answer {
  max-height: 500px; /* A large value to allow content to expand */
  padding: 20px 10px;
  transition:
    max-height 0.5s ease-in,
    padding 0.4s ease-in;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

/* --- 8. Utility Classes --- */
.hidden {
  display: none;
}
.text-center {
  text-align: center;
}

/* --- 7. Custom List Styles --- */

/* Base styles for all custom ULs */
.wp-block-list,
.list-style-2,
.list-style-3 {
  list-style: none;
  padding-left: 0; /* Remove default browser indentation */
  margin-left: 0;
}

.wp-block-list li,
.list-style-2 li,
.list-style-3 li {
  position: relative;
  padding-left: 30px; /* Create space for our custom SVG bullet */
  margin-bottom: 1em;
}

.wp-block-list li::before,
.list-style-2 li::before,
.list-style-3 li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px; /* Adjust for vertical alignment with text */
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Style 1: Rounded Square (Neutral) */
.wp-block-list li::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="80" height="80" rx="20" ry="20" fill="%238B949E"/></svg>');
}

/* Style 2: Checkmark in Circle (Positive) */
.list-style-2 li::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%231DB954" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

/* Style 3: Cross in Circle (Negative) */
.list-style-3 li::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23E57373" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>');
}

/* --- Custom Ordered List Style --- */
ol {
  /* You can adjust padding here if you want OLs to align with ULs */
}
ol li {
  margin-bottom: 1em;
}
ol li::marker {
  font-weight: 700; /* Make the numbers bold */
  color: var(--color-accent-gold);
}

/* --- 8. Table Styles --- */

.table-wrapper {
  margin: 2.5em 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden; /* Clips the corners of the table inside */
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text-secondary);
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

thead th {
  background-color: var(--color-surface);
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr {
  transition: background-color 0.2s ease-in-out;
}

tbody tr:nth-child(even) {
  background-color: var(--color-surface);
}

tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.08); /* Subtle gold hover */
}

/* --- 9. Summary Box --- */

.summary-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px 30px;
  margin: 3em 0;
  position: relative; /* Needed for the gradient border effect */
  overflow: hidden; /* Keeps the gradient border neat */
}

/* Subtle gradient top border for a premium feel */
.summary-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px; /* Thickness of the gradient line */
  background: var(--gradient-text);
}

/* Style the heading inside the summary box */
.summary-box h4 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(
    --color-text-primary
  ); /* Use primary text color for more emphasis */
  font-style: normal; /* Override the default italic h4 style */
  font-weight: 600;
}

/* Adjust list styling when inside a summary box */
.summary-box ul {
  margin-bottom: 0; /* Remove extra space at the bottom of the list */
}

.summary-box li {
  font-size: 0.95em;
  color: var(--color-text-secondary);
}

/* Intro collapse â€“ base (desktop default) */
.intro-content {
  position: relative;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Collapsed state (desktop) */
.intro-content.is-collapsed {
  max-height: 12em; /* ~5â€“6 paragraphs */
}

/* Fade-out hint */
.intro-content.is-collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4em;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--color-background));
}

.intro-toggle {
  background: none;
  border: none;
  color: var(--color-accent-gold);
  font-weight: 600;
  margin: 0.75em 0 2em;
  cursor: pointer;
  padding: 0;
}

.toc-wrapper {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 20px 0 30px;
  background: #fff;
  color: var(--color-text-primary);
}

.toc-header {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.toc-header:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.toc-toggle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.toc-list {
  margin: 12px 0 0;
  list-style: none;
  padding-left: 0;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list li:last-child {
  margin-bottom: 0;
}

.toc-list a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
  color: var(--color-accent-gold);
}

.toc-item {
  position: relative;
  margin-bottom: 6px;
}

.toc-h2 {
  padding-left: 18px;
  position: relative;
}

.toc-h2::before {
  content: "â€¢";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent-gold);
  font-size: 1rem;
  line-height: 1;
}

.toc-h3 {
  padding-left: 30px;
}

.toc-h3::before {
  content: "Â·";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-45%);
  color: var(--color-text-secondary); /* darker than border */
  font-size: 1.4rem; /* bigger dot */
  font-weight: 700;
}

.toc-h2 a {
  font-size: 0.85rem;
  font-weight: 600;
}

.toc-h3 a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* --- 6. Responsive Design --- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .casino-card {
    grid-template-columns: 1fr;
  }
  .casino-info {
    text-align: center;
  }
  .casino-details ul {
    justify-content: center;
  }

  .table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling on small screens */
  }

  /* Reduce hero padding */
  .hero-section {
    padding: 2rem 0;
  }

  /* Logo sizing */
  .logo-icon {
    padding: 6px;
    border-radius: 6px;
  }

  .logo-link img {
    max-height: 25px;
  }

  .logo-initials {
    font-size: 1rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  /* Headings tighter + smaller */
  h1 {
    font-size: 1.7rem;
    margin-top: 0.75em;
    padding-bottom: 0.25em;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 1.25em;
  }

  h3 {
    font-size: 1.35rem;
  }

  /* Paragraph density */
  p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.1em;
  }

  /* Container padding */
  .container {
    padding: 16px;
  }

  .intro-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .intro-content.is-collapsed {
    max-height: 8.5em; /* ~3 paragraphs */
  }

  .intro-content.is-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(
      rgba(255, 255, 255, 0),
      var(--color-background)
    );
  }

  .toc-wrapper {
    padding: 8px 10px;
  }
}

/* --- NEW: 2a. Header & Navigation --- */

.main-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.main-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  background-color: var(--color-accent-gold);
  color: var(--color-cta-text);
  font-weight: 700;
  border-radius: 8px;
  padding: 10px;
  margin-right: 12px;
}

.logo-initials {
  font-size: 1.25rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.main-nav {
  display: none; /* Hidden by default, shown on desktop */
  gap: 18px;
}

.main-nav a {
  /*
    font-weight: 500;
    color: var(--color-text-secondary);
*/
  transition: color 0.2s ease-in-out;
  font-size: 0.85rem;
  line-height: 1;
  padding: 12px 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #555;
}

.main-nav a:hover {
  color: var(--color-accent-gold);
}

.mobile-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--color-text-primary);
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
}

.icon-close {
  display: none;
}

.nav-long {
  display: none;
}

/* Footer nav container */
.footer-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Footer nav */
.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 140px;
}

.footer-nav ul:not(:last-child) {
  padding-right: 24px;
  border-right: 1px solid var(--color-border);
}

.footer-nav li {
  margin: 0;
}

.footer-nav li + li {
  margin-top: 6px; /* vertical rhythm */
}

/* Footer nav links */
.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.4;
  transition: color 0.2s ease-in-out;
}

.footer-nav a:hover {
  color: var(--color-accent-gold);
}

.footer-copy {
  text-align: center;
  font-style: italic;
  font-size: 0.8em;
  padding: 0;
}

/* --- Responsible Gambling Footer Section --- */
.footer-responsible {
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
  padding-top: 20px;
}

.responsible-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.responsible-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.responsible-title-text {
  line-height: 1;
}

.badge-21plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.badge-21plus svg {
  width: 100%;
  height: 100%;
  display: block;
}

.responsible-logos {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.responsible-logos li {
  margin: 0;
}

.responsible-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.responsible-logos a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.responsible-logos img {
  max-height: 42px;
  max-width: 140px;
  width: auto;
  height: auto;
  display: block;
}

.responsible-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  font-style: italic;
  margin: 0;
}

/* Wrapper to hold 1 or 2 buttons */
.casino-cta-wrapper {
  display: flex;
  justify-content: center; /* center if one button */
  flex-wrap: wrap; /* allows stacking on mobile */
  gap: 16px; /* space between buttons */
  padding-bottom: 30px;
}

/* Base button style */
.casino-cta-btn,
.casino-grid__bonus-cta-btn,
a[href*="/out/"],
.casino-review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  min-width: 150px; /* ensures buttons arenâ€™t too small */
  flex: 1 1 auto; /* flexible width */
  border-radius: 80px;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

/* Specific backgrounds */
.casino-cta-btn,
.casino-grid__bonus-cta-btn,
a[href*="/out/"] {
  background: var(--color-accent-gold);
  max-width: 450px;
  margin: 0 auto;
}
.casino-grid__bonus-logo {
  height: auto !important;
  min-width: auto !important; /* ensures buttons arenâ€™t too small */

  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
}

.casino-review-btn {
  background: var(--color-accent-alternate); /* change to your desired color */
  color: var(--color-text-secondary);
}

.author-meta-top {
  display: flex;
  align-items: center;
  gap: 12px; /* spacing between author image and icons */
  padding: 10px 14px;
  border: 1px solid var(--color-border); /* subtle border */
  border-radius: 12px; /* slightly rounded corners */
  background-color: var(--color-surface); /* neutral card-like background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* gentle shadow for depth */
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.author-meta-top:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* slightly stronger on hover */
  border-color: var(--color-primary); /* subtle highlight */
}

.author-meta-avatar {
  display: flex;
  align-items: center; /* vertically center the img */
  justify-content: center; /* optional: center horizontally if needed */
  width: 32px; /* same as image width */
  height: 32px; /* same as image height */
}

.author-meta-top a {
  font-weight: 600;
  color: var(--color-text-primary);
}

.author-meta-divider {
  opacity: 0.6;
}

.author-meta-icons {
  display: flex;
  gap: 6px;
}

.author-icon {
  position: relative;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

/* Tooltip */
.author-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-primary);
  width: 380px;
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  /*
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 20;
*/
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

/* Show on hover / focus */
.author-icon:hover .author-tooltip,
.author-icon:focus-within .author-tooltip {
  opacity: 1;
  visibility: visible;
}

/* --- Author Box (Bottom) --- */
.author-box {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 24px;
  margin-top: 3em;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.author-photo img {
  border-radius: 50%;
  display: block;
  width: 64px;
  height: 64px;
}

.author-name {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.author-title {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 4px 0 12px;
}

.author-title a {
  font-weight: 600;
  margin-left: 6px;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-links {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.author-date {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-secondary);
}

.author-profile {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin: 2.5em 0 3em;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.author-profile-photo img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-profile-name {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 6px;
}

.author-profile-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}

.author-profile-contact {
  font-size: 0.9rem;
  margin: 0;
}

.author-profile-contact a {
  font-weight: 600;
  color: var(--color-accent-gold);
}

/* --- Mobile Navigation Styles --- */
@media (min-width: 768px) {
  /* On desktop, show main nav and hide hamburger */
  .main-nav {
    display: flex;
  }
  .mobile-nav-toggle {
    display: none;
  }

  .casino-cta-wrapper > a {
    flex: 0 1 calc(50% - 8px); /* half width minus half the gap */
  }
}

@media (max-width: 767px) {
  .main-nav {
    /* When mobile menu is open */
    display: none; /* Initially hidden */
    position: absolute;
    top: 85px; /* Adjust based on your header height */
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);

    position: fixed;
    top: 72px; /* height of header */
    left: 0;
    right: 0;

    background: var(--color-surface);
    z-index: 1000;

    display: none;
    flex-direction: column;

    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 16px 0;
  }
  .main-nav.is-open {
    display: flex; /* Show the menu */
  }

  /* Toggle hamburger/close icons when menu is open */
  .mobile-nav-toggle.is-open .icon-hamburger {
    display: none;
  }
  .mobile-nav-toggle.is-open .icon-close {
    display: block;
  }

  .nav-short {
    display: none;
  }
  .nav-long {
    display: inline;
  }

  .footer-nav-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav ul {
    min-width: auto;
  }

  .footer-nav ul:not(:last-child) {
    padding-right: 0;
    border-right: 0;
  }

  .casino-cta-wrapper > a {
    flex: 0 1 80%;
  }

  .author-tooltip {
    top: 130%;
    bottom: auto;
    left: 50%;
    transform: translateX(0%);
    width: 250px;
  }

  .author-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-photo {
    justify-self: center;
  }

  .author-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-profile-photo {
    justify-self: center;
  }

  .author-profile-name {
    font-size: 1.6rem;
  }
}

/* testing */

/* Wrapper */
.casino-grid__wrapper {
  margin: 32px 0 40px;
}

/* Offers container */
.casino-grid__bonuses {
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.04))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}

/* Single offer (desktop) */
.casino-grid__bonus {
  display: grid;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 20px;
  gap: 16px;
  /*
  grid-template-columns:
  minmax(160px, 200px)
  minmax(180px, 1fr)
  minmax(220px, 260px)
  minmax(180px, 220px);
*/
  grid-template-columns:
    180px /* logo */
    300px /* main */
    190px /* title */
    142px; /* extra */

  grid-template-areas: "logo main title extra";
}

.casino-grid__bonus:last-child {
  border-bottom: none;
}

/* Logo */

/*
.casino-grid__bonus-logo-wrapper {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casino-grid__bonus-logo img {
  width: 195px;
  height: 69px;
  object-fit: contain;
}
*/

.casino-grid__bonus-logo-wrapper {
  display: flex; /* Flex centering */
  align-items: center; /* Vertically center */
  justify-content: center; /* Horizontally center */
  padding: 12px; /* Space around logo */
  border-radius: 12px; /* Rounded corners */
  width: 180px; /* Fixed width of the wrapper */
  height: 80px; /* Fixed height of the wrapper */
  overflow: hidden; /* Prevent logos from overflowing */
  position: relative; /* Keeps mobile score circle in correct place */
  box-sizing: border-box; /* Include padding in width/height */
  background-color: inherit; /* fallback if inline style not used */
}

.casino-grid__bonus-logo-wrapper img {
  max-width: 100%; /* Contain inside wrapper */
  max-height: 100%; /* Contain inside wrapper */
  object-fit: contain; /* Preserve aspect ratio */
  display: block; /* remove inline spacing issues */
}

/* Main (rating + feature) */
.casino-grid__bonus-main {
  grid-area: main;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Rating */
.casino-grid__bonus-rating-wrapper {
  position: relative;
  width: 62px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.casino-grid__bonus-rating-circle {
  position: absolute;
  transform: rotate(-90deg);
}

.casino-grid__bonus-rating-circle .bg {
  fill: none;
  stroke: #ace9ff;
  stroke-width: 3.44;
}

.casino-grid__bonus-rating-circle .progress {
  fill: none;
  stroke: #27bef4;
  stroke-width: 3.44;
  stroke-dasharray: 175.93;
  stroke-dashoffset: calc(175.93 - (175.93 * var(--percent)) / 100);
  transition: stroke-dashoffset 0.5s ease-out;
}

.casino-grid__bonus-rating-score {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #2839a2;
  z-index: 1;
}

.casino-grid__bonus-rating-rated {
  font-family: "Open Sans", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(40, 57, 161, 0.6);
  z-index: 1;
}

/* Feature text */
.casino-grid__bonus-key-feature {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: rgba(40, 57, 161, 0.85);
  flex-shrink: 0;
  width: 220px;
}

/* Bullet list */
.casino-grid__bonus-bullets {
  list-style: none;
  padding: 0px 12px;
  margin: 0;
  text-align: left;
  border-left: 1px solid var(--color-accent-gold);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Bullet items */
.casino-grid__bonus-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.casino-grid__bonus-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1db954;
  font-weight: 700;
}

/* Spacing between bullets */
.casino-grid__bonus-bullets li + li {
  margin-top: 4px;
}

/* Bonus / title */
.casino-grid__bonus-title {
  grid-area: title;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(227, 235, 254, 0.39);
  margin: -16px 0;
  padding: 16px;
}

.casino-grid__bonus-title p {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  line-height: 26px;
  color: #2839a2;
  margin: 0;
}

/* CTA */
.casino-grid__bonus-extra {
  grid-area: extra;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.casino-grid__bonus-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: 100%;
  border-radius: 80px;
  background: var(--color-accent-gold);
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.casino-grid__bonus-cta-btn:hover {
  background: #af0d3a;
}

/* =========================
   Mobile layout
========================= */
@media (max-width: 991px) {
  .casino-grid__wrapper {
    margin: 16px 0 24px;
  }

  .casino-grid__bonus {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "title"
      "main"
      "extra";
    background: #f5f8ff;
    border-radius: 8px;
    padding: 16px;
    gap: 0;
  }

  /*
  .casino-grid__bonus-logo-wrapper {
    margin: -16px -16px 0;
    padding: 18px 0;
    background: #fff;
  }

  .casino-grid__bonus-logo img {
    width: 155px;
    height: 65px;
  }
*/

  .casino-grid__bonus-logo-wrapper {
    width: 160px; /* slightly smaller for mobile */
    height: 64px; /* slightly smaller for mobile */
    padding: 10px;
  }

  .casino-grid__bonus-rating-wrapper {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .casino-grid__bonus-title {
    margin: 12px 0 0;
    background: transparent;
  }

  .casino-grid__bonus-title p {
    font-size: 20px;
    line-height: 28px;
  }

  .casino-grid__bonus-main {
    justify-content: start;
  }

  .casino-grid__bonus-key-feature {
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    width: auto;
  }

  .casino-grid__bonus-bullets {
    border-left: 0;
  }

  .casino-grid__bonus-bullets li {
    font-size: 13px;
    line-height: 18px;
  }

  .casino-grid__bonus-extra {
    margin-top: 12px;
  }

  .casino-grid__bonus-cta-btn {
    font-size: 16px;
    line-height: 28px;
  }
}