/*
Theme Name: Custom Affiliate Theme
Author: Your Name
Version: 1.0
Description: Custom-built theme for casino affiliate SEO
*/
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f7fafd;
  color: #222;
  padding: 2rem;
}

/* Accessibility Fix: Underline links in main content */
.entry-content p a,
.homepage-intro-desc a,
.homepage-bottom p a {
    text-decoration: underline;
}

h1 {
  color: #2c3e50;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-list li a {
  color: #2c3e50;
  font-weight: 500;
  text-decoration: none;
}

.nav-list li a:hover {
  color: #0073aa;
  text-decoration: underline;
}

/*
 * Mobile Navigation Menu Styling - V2
 * Prevents wrapping of menu items AND text inside the items.
 */
@media (max-width: 768px) {
  /*
     * 1. The Menu Container (the UL element)
     * This forces all menu items onto a single, scrollable line.
     */
  .main-nav .nav-list {
    display: flex;
    /* CRITICAL: Prevents the menu buttons from wrapping to a new line */
    flex-wrap: nowrap;
    /* CRITICAL: Allows for horizontal swiping/scrolling */
    overflow-x: auto;
    /* Adds momentum scrolling on iOS devices for a smoother feel */
    -webkit-overflow-scrolling: touch;
    /* Adds space at the bottom so the scrollbar doesn't overlap content */
    padding-bottom: 20px;
    /* Hides the scrollbar visually for a cleaner look */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  /* Hides scrollbar for Chrome, Safari, and Opera */
  .main-nav .nav-list::-webkit-scrollbar {
    display: none;
  }

  /*
     * 2. The Menu Items (the LI elements)
     * This tells the items not to shrink to fit the container.
     */
  .main-nav .nav-list > .menu-item {
    flex-shrink: 0;
  }

  /*
     * 3. The Links Inside the Menu Items (the A elements)
     * This is the key fix for your specific problem.
     */
  .main-nav .nav-list > .menu-item > a {
    /* CRITICAL: Stops text like "Casino Finder" from breaking onto two lines */
    white-space: nowrap;
  }
}

/* style.css - Starter CSS for Author Page */
.author-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}
.author-avatar img {
  border-radius: 50%; /* Makes the avatar a circle */
}
.author-info {
  flex: 1;
}
.author-info .page-title {
  margin: 0 0 5px 0;
}
.author-expertise {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  color: #555;
}
.author-bio-long {
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.author-posts-title {
  margin-top: 40px;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 10px;
}
.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* =================================================================
   Author Page & Archive Grid Styles
   ================================================================= */

/* 1. The Grid Container
--------------------------------------------- */
.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* 2. The Article Card Itself
--------------------------------------------- */
.casino-card,
.post-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.casino-card:hover,
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-link {
  text-decoration: none !important; /* Use !important to override other link styles */
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- EDITED --- This rule is now more specific */
.post-card .card-link:hover .card-title,
.casino-card .card-link:hover .card-title {
  text-decoration: none;
}

/* 3. Card Image Styling
--------------------------------------------- */
.card-image {
  width: 100%;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. Card Content Styling
--------------------------------------------- */
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.card-rating,
.card-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.card-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-content .button {
  display: inline-block;
  background-color: #0056b3;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out; /* Added transform transition */
}

/* --- EDITED --- This rule is now more specific */
/* Since the whole card is a link, we style the button's hover state
   when the parent link is hovered. */
.post-card:hover .button,
.casino-card:hover .button {
  background-color: #004a99; /* Darkens the blue color on hover */
  transform: scale(1.05); /* Slightly enlarges the button on hover */
}

.author-title-area {
  display: flex;
  align-items: center;
  gap: 15px;
}
.author-social-link svg {
  fill: #026396;
  transition: fill 0.2s ease;
}
.author-social-link:hover svg {
  fill: #005582; /* Darker blue on hover */
}

/* =================================================================
   Global Content & Article Styles
   ================================================================= */

/* This targets the main content area of any post or page. */
.entry-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #333;
  line-height: 1.6;
}

/* --- Headings --- */
.entry-content h2 {
  font-size: 1.8em;
  line-height: 1.2;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-top: 2em;
  margin-bottom: 1em;
}

.entry-content h3 {
  font-size: 1.4em;
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

/* --- Paragraphs --- */
.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content p strong {
  color: #000;
}

/* --- Internal Link Call-to-Action Box --- */
.entry-content .internal-link-cta {
  background: #f9f9f9;
  border-left: 4px solid #0073aa;
  padding: 20px;
  margin: 2em 0;
}

.entry-content .internal-link-cta a {
  text-decoration: none;
  color: #0056b3;
  font-weight: bold;
}

/* --- Custom Lists --- */
.entry-content ul.checklist {
  list-style: none;
  padding-left: 0;
}

.entry-content ul.checklist li {
  padding-left: 2em;
  text-indent: -2em;
  margin-bottom: 0.5em;
}

.entry-content ul.checklist li::before {
  content: "✔️";
  margin-right: 0.8em;
}

/* --- FAQ Section --- */
.entry-content .faq-section {
  margin-top: 2em;
  border-top: 1px solid #eee;
  padding-top: 1em;
}

.entry-content .faq-item {
  margin-bottom: 1.5em;
}

.entry-content .faq-item h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
  border-bottom: none;
  padding-bottom: 0;
}

.entry-content .faq-item p {
  margin-top: 0;
  color: #555;
}

/* =================================================================
   Affiliate Link & CTA Styles
   ================================================================= */

/* 1. Clickable Casino Logo
--------------------------------------------- */
.casino-logo a {
  display: block;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-radius: 8px;
  overflow: hidden;
}

.casino-logo a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 2. Main CTA Button Section
--------------------------------------------- */
.casino-cta-section {
  margin: 2rem 0;
  text-align: center;
}

.cta-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Space between the button and the pills below it */
}

/* --- UPDATED TO MATCH .play-now-btn --- */
.cta-button {
  display: inline-block;
  background: #0073aa;
  color: #fff !important;
  padding: 0.85em 2em;
  border-radius: 2em;
  font-size: 1.18em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px #0073aa33;
  border: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  cursor: pointer;
}

.cta-button:hover,
.cta-button:focus {
  background: #005b85;
  text-decoration: none;
  color: #fff !important;
  box-shadow: 0 6px 24px #0073aa22;
  transform: translateY(-2px) scale(1.03);
}

.cta-button .cta-subtext {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);	
  margin-top: 5px;
  opacity: 0.8;
}

/* =================================================================
   Styles for the bonus pills section
   ================================================================= */
/* Container for the bonus pills */
.bonus-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1em;
  justify-content: flex-start; /* aligns left, but change to center if you prefer */
}

/* Bonus pills themselves (already defined but for clarity) */
.bonus-pill {
  display: block;
  margin: 0.3em auto 0 auto;
  padding: 0.5em 1em;
  font-size: 1.08em;
  font-weight: 600;
  border-radius: 2em;
  box-shadow: 0 1px 6px #0001;
  transition: transform 0.13s, box-shadow 0.13s;
  cursor: default;
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: 360px;
  word-break: break-word;
  line-height: 1.3;
  overflow-wrap: break-word;
}

/* Colourful pill variants for each bonus type */
.bonus-pill--welcome {
  background: #ffe066;
  color: #1a1a1a;
	font-weight: bold;
}
.bonus-pill--spins {
  background: #00da8d;
  color: #fff;
}
.bonus-pill--cashback {
  background: #005a87;
  color: #fff;
}
.bonus-pill--no-deposit {
  background: #ff477e;
  color: #fff;
}
.bonus-pill--default {
  background: #e0e0e0;
  color: #333;
}

.bonus-pill:hover,
.bonus-pill:focus {
  transform: scale(1.06);
  box-shadow: 0 3px 14px #0002;
}

/* Responsive: stack pills and make smaller on mobile */
@media (max-width: 850px) {
  .bonus-pills-container {
    gap: 0.4em;
    justify-content: center; /* Center on smaller screens for balance */
  }
  .bonus-pill {
    min-width: 90px;
    font-size: 0.96em;
    padding: 0.37em 0.7em;
  }
}

@media (max-width: 600px) {
  .bonus-pills-container {
    gap: 0.3em;
    justify-content: center;
  }
  .bonus-pill {
    font-size: 0.9em;
    min-width: 75px;
    padding: 0.3em 0.55em;
  }
}

/* If you want them stacked in one column on very narrow screens: */
@media (max-width: 430px) {
  .bonus-pills-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4em;
  }
  .bonus-pill {
    width: 100%;
    min-width: 0;
  }
}
/* =================================================================
   Homepage Casino Card Styles
   ================================================================= */

.casino-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.casino-card-home {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.casino-card-home:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.casino-card-link {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
}

.casino-card-image {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.casino-card-image img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.casino-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.casino-card-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.casino-card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em; /* Reduce gap for tighter, more consistent spacing */
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin-top: 1.1em;
}

/* === Unified Button Base Styles === */
.casino-card-btn,
.read-review-btn,
.play-now-btn {
  width: 100%; /* Take full width of container (split when row) */
  max-width: 320px; /* Limit to a sensible max width for big screens */
  min-width: 140px; /* Avoid getting too small on tiny screens */
  flex: 1 1 0; /* Grow equally, shrink as needed, base size 0 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.09em;
  white-space: normal; /* Allow wrapping if needed */
  border-radius: 2em;
  padding: 0.85em 0.3em;
  box-shadow: 0 1px 6px #0001;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.15s;
  margin: 0;
}

/* Secondary button style for "Read Review" */
.casino-card-buttons .read-review-btn,
.casino-card-btn.read-review-btn {
  background-color: #e9ecef;
  color: #0073aa;
  border: none;
}

/* Make sure there's no margin-bottom weirdness */
.casino-card-buttons .read-review-btn,
.casino-card-buttons .play-now-btn {
  margin-bottom: 0;
}

.casino-card-buttons .read-review-btn:hover,
.casino-card-btn.read-review-btn:hover {
  background-color: #dee2e6;
  color: #005d82;
  transform: translateY(-2px);
}

/* Main "Play Now" button */
.casino-card-buttons .play-now-btn,
.casino-card-btn.play-now-btn {
  background: #0073aa;
  color: #fff;
  border: none;
}

.casino-card-buttons .play-now-btn:hover,
.casino-card-btn.play-now-btn:hover {
  background: #006298;
  color: #fff;
}

/* === Responsive: Mobile layout for buttons === */
/* =================================================================
   Mobile Layout for Casino Search Results
   ================================================================= */

@media (max-width: 600px) {
  /* Main container for each result card on mobile */
  .casino-result {
    padding: 1rem;
  }

  /* Logo container styles */
  .casino-result .casino-logo {
    width: 80%;
    max-width: 250px;
    height: 100px;
    margin: 0 auto 0.8rem auto;
  }

  .casino-result .casino-logo img {
    max-height: 100%;
  }

  /* --- EDITED --- Tighter layout for the details section */
  .casino-details {
    margin-bottom: 0.5rem; /* Reduced space below this section */
  }

  .casino-details h2 {
    font-size: 1.4rem;
  }

  .casino-details p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
  }

  .casino-details .read-review-btn {
    width: 50%;
    max-width: 150px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.5rem; /* Reduced space above the button */
  }

  /* --- EDITED --- Tighter layout for the CTA section */
  .casino-cta-column {
    margin-top: 0.5rem; /* Reduced space above this section */
  }

  .casino-cta-column .play-now-btn {
    width: 90%;
    max-width: 300px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  /* Stacked bonus pills on mobile */
  .casino-cta-column .bonus-pills-container {
    flex-direction: column;
    gap: 6px;
  }

  .casino-result .bonus-pill {
    width: 90%;
    max-width: 300px;
  }
}

/* Secondary button style for "Read Review" */
.casino-card-buttons .read-review-btn {
  background-color: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
}

/* --- NEW: Hover animation for the secondary button --- */
.casino-card-buttons .read-review-btn:hover {
  background-color: #dee2e6;
  border-color: #adb5bd;
  transform: translateY(-2px);
}

/* This ensures the main .play-now-btn uses its global styles */
.casino-card-buttons .play-now-btn {
  /* Flex property is already set by the base style */
}

/* =================================================================
   Single Post Featured Image Style
   ================================================================= */

.post-featured-image {
  margin-bottom: 2em; /* Adds space between the image and the content below */
  display: flex; /* --- NEW --- Establishes a flex container */
  justify-content: center; /* --- NEW --- Centers the image horizontally */
}

.post-featured-image img {
  width: 50%;
  height: auto;
  border-radius: 8px; /* Rounded corners to match your site's aesthetic */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
}

/* =================================================================
   Homepage Latest Articles Grid Styles
   ================================================================= */

.article-grid-home {
  display: grid;
  /* Changed minmax from 280px to 240px to allow for 4 columns on wider screens */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.article-card-home {
  background: #f9f9f9; /* A slightly different background to distinguish from casinos */
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Important for the image border-radius */
  display: flex; /* Needed for the flex-direction */
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card-home:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card-image {
  width: 100%;
  height: 140px; /* Smaller image height */
  background-color: #e0e0e0; /* Placeholder color for posts with no image */
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-content {
  padding: 1rem; /* Reduced padding */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem; /* Slightly smaller title */
  line-height: 1.3;
}

.article-card-meta {
  font-size: 0.8rem; /* Smaller meta text */
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.read-article-btn {
  margin-top: auto; /* Pushes the button to the bottom */
  align-self: flex-start; /* Prevents button from stretching */
  background-color: #6c757d; /* A neutral, distinct color */
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 2em;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}

.article-card-link:hover .read-article-btn {
  background-color: #5a6268;
}
/* =================================================================
   Related Guides (Pill Links) Styles
   ================================================================= */

.related-content-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.related-content-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: none;
}

.related-guides-list {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the pills horizontally */
  gap: 12px; /* Space between each pill */
}

.guide-pill {
  display: flex;
  align-items: center;
  width: 75%;
  padding: 12px 20px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 50px; /* Pill shape */
  text-decoration: none;
  color: #212529;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.guide-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #0073aa;
  background-color: #fff;
  text-decoration: none; /* Ensures no underline appears on hover */
}

.guide-pill-icon {
  width: 40px;
  height: 40px;
  min-width: 40px; /* Prevents the icon from shrinking */
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background-color: #e9ecef; /* Placeholder color if no image */
}

.guide-pill-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the icon area */
}

.guide-pill-title {
  flex-grow: 1; /* Takes up the available space */
}

.guide-pill-arrow {
  font-size: 1.5rem;
  color: #0073aa;
  transition: transform 0.2s ease;
}

.guide-pill:hover .guide-pill-arrow {
  transform: translateX(5px);
}

/* =================================================================
   Back-to-Pillar Link Pill Style
   ================================================================= */

.back-to-pillar-container {
  margin-bottom: 2em;
  display: flex;
  justify-content: center; /* Centers the pill within the main content area */
}

/* This targets the new back-link pill specifically */
.guide-pill.is-primary {
  background-color: #eef5fa; /* A distinct light blue background */
  border-color: #a3c9e6;
}

.guide-pill.is-primary:hover {
  border-color: #0073aa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* This ensures the arrow on the back-link pill also uses the primary color */
.guide-pill.is-primary .guide-pill-arrow {
  color: #0073aa;
}

.guide-pill.is-primary:hover .guide-pill-arrow {
  transform: translateX(-5px); /* Makes the arrow move left on hover */
}

/* =================================================================
   Casino Filter Form Styles
   ================================================================= */

/* This is the main container for the filter controls */
#casino-filter-form {
  background: #fffbe6; /* --- UPDATED: Yellow background from hero section --- */
  padding: 2rem; /* --- UPDATED: Increased padding --- */
  border-radius: 1rem; /* --- UPDATED: Increased border radius --- */
  border: none; /* --- UPDATED: Removed the grey border --- */
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); /* --- NEW --- Added shadow effect */
}

.filter-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  color: #555;
}

.filter-group {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.9em;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid #ced4da;
  background-color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230073AA%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 10px auto;
}

.filter-group select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Styling for the H1 on the filter page */
.casino-filter-page h1 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}
/* =================================================================
   Trustpilot Homepage Button Styles
   ================================================================= */

.trustpilot-btn {
  background: #008060;
  border: 1.5px solid #008060;
  color: #fff;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-weight: bold;
  align-items: center;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  min-width: 150px;
  min-height: 28px;
  text-align: center;
  text-decoration: none;
  font-size: 1.07rem;
  transition: background 0.03s, border 0.18s, color 0.18s, transform 0.18s;
}

.trustpilot-btn .trustpilot-text,
.trustpilot-btn .trustpilot-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 1.7em;
  line-height: 1.7em;
  transition: opacity 0.18s;
  pointer-events: none;
}

.trustpilot-btn .trustpilot-text {
  color: #fff;
  font-size: 1.07rem;
  height: auto;
  width: 100%;
  opacity: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.18s;
}

.trustpilot-btn .trustpilot-img {
  opacity: 0;
  height: 1.7em;
  width: auto;
  pointer-events: none;
  transition: opacity 0.18s;
}

/* --- Hover Effects: Fade text, show image, move button up --- */
.trustpilot-btn:hover,
.trustpilot-btn:focus {
  background: #1c1c1c;
  border-color: #13bf81;
  color: #fff;
  transform: translateY(-2px);
}

.trustpilot-btn:hover .trustpilot-text,
.trustpilot-btn:focus .trustpilot-text {
  opacity: 0;
}

.trustpilot-btn:hover .trustpilot-img,
.trustpilot-btn:focus .trustpilot-img {
  opacity: 1;
}

/* =================================================================
   Homepage Text Width
   ================================================================= */

.homepage-intro {
  width: 80%;
  max-width: 1500px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.2rem;
  color: #555;
}

.homepage-bottom {
  width: 80%;
  max-width: 1500px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.2rem;
  color: #555;
}

/* =================================================================
   Featured Casinos Section - Animated Border Fix (FINAL)
   ================================================================= */

/* The main container acts as a positioning context for the pseudo-elements. */
.featured-casinos-section {
  position: relative;
  width: 80%;
  max-width: 1500px;
  margin: 2.5rem auto;
  padding: 2.2rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  /* Background and border are now handled by the ::after pseudo-element */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* A simpler shadow for depth */
  border-radius: 1rem;
}

/* The ::before element is the animated gradient layer at the very back. */
.featured-casinos-section::before {
  content: "";
  position: absolute;
  z-index: -2; /* Sits behind the content background layer */
  inset: 0;
  /* This symmetrical gradient ensures a seamless, repeating shimmer */
  background: linear-gradient(
    120deg,
    #fffbe6,
    #fbe26a,
    #ffd700,
    #fbe26a,
    #fffbe6
  );
  background-size: 200% 100%;
  animation: shimmer-border 4s linear infinite;
  border-radius: 1rem; /* Match the parent's border-radius */
}

/* The ::after element is the solid content background that sits on top of the gradient. */
.featured-casinos-section::after {
  content: "";
  position: absolute;
  z-index: -1; /* Sits on top of ::before, but behind the actual content */
  inset: 6px; /* Inset by 6px on all sides to create the border effect */
  background: #fffbe6; /* This is the solid background for the content area */
  border-radius: calc(
    1rem - 6px
  ); /* The inner radius must be smaller to look correct */
}

/* Keyframes for a smooth, back-and-forth shimmering animation */
@keyframes shimmer-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Your original h2 styling, which is correct. */
.featured-casinos-section h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 0.02em;
  position: relative; /* Ensures heading text is on top of the pseudo-elements */
  z-index: 1;
}

/* Your original responsive adjustments, which are correct. */
@media (max-width: 800px) {
  .featured-casinos-section {
    width: 97%;
    padding: 1.3rem 0.6rem;
  }

  .featured-casinos-section h2 {
    font-size: 1.4rem;
  }
}

/* =================================================================
   Hero Intro Section
   ================================================================= */

.homepage-intro-title {
  font-size: clamp(1.3rem, 6vw, 2.5rem);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
  color: #22303a;
}

.homepage-intro-desc {
  font-size: 1.2rem;
  color: #555;
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  text-align: justify;
}

/* Responsive: shrink the heading and ensure wrap on mobile */
@media (max-width: 520px) {
  .homepage-intro-title {
    font-size: 1.7rem;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .homepage-intro-desc {
    font-size: 1rem;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

.homepage-bottom {
  width: 80%;
  max-width: 1500px;
  margin: 2.5rem auto 1.5rem auto;
  background: #fffbe6;
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem 2rem;
  font-size: 1.2rem;
  color: #555;
  box-shadow: 0 2px 12px #0001;
}

.homepage-intro {
  width: 80%;
  max-width: 1500px;
  margin: 2.5rem auto 1.5rem auto;
  background: #fffbe6;
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem 2rem;
  font-size: 1.2rem;
  color: #555;
  box-shadow: 0 2px 12px #0001;
}

.homepage-process {
  /* Shares most of its style with .homepage-bottom */
  width: 80%;
  max-width: 1500px;
  margin: 2.5rem auto 1.5rem auto;
  background: #fffbe6;
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem 2rem;
  font-size: 1.2rem;
  color: #555;
  box-shadow: 0 2px 12px #0001;
}

.homepage-process h2 {
  margin-top: 0;
  margin-bottom: 1.1rem;
  font-size: 2rem;
  text-align: center;
}

.homepage-process ul {
  margin-bottom: 1.2rem;
  padding-left: 1.4em;
  list-style: disc outside;
}

.homepage-process li {
  margin-bottom: 0.75em;
  line-height: 1.5;
}

.homepage-process a {
  color: #0073aa;
  text-decoration: underline;
  font-weight: bold;
}
.homepage-process a:hover {
  color: #005b8a;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .homepage-process,
  .homepage-bottom {
    width: 96%;
    padding: 1.4rem 0.7rem 1.2rem 0.7rem;
    font-size: 1rem;
  }
  .homepage-process h2 {
    font-size: 1.4rem;
  }
}

/* ==============================================
   Header Banner Styles
   ============================================== */

.homepage-header-banner,
.slim-header-banner {
  width: 96%; /* Not 100% so corners show nicely */
  max-width: 1600px;
  margin: 1.2rem auto 0.5rem auto;
  overflow: hidden;
  border-radius: 1.25rem; /* Soft corners */
  box-shadow: 0 6px 32px #0002, 0 1.5px 5px #0001; /* Subtle shadow */
  background: #fff; /* Optional, makes fade-in look smooth */
  position: relative;
  z-index: 1;
}

.homepage-header-banner-img {
  width: 100%;
  height: auto;
  max-height: 300px; /* or whatever fits your design */
  object-fit: cover;
  object-position: right center; /* <-- Always show right side! */
  display: block;
}

.slim-header-banner-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: right center; /* <-- Always show right side! */
  display: block;
}

.header-nav-container {
  width: 100%;
  margin-top: 0.7rem;
  margin-bottom: 1.2rem; /* adjust as needed for your layout */
  max-width: 1100px;
  margin: 0 auto 0.6rem auto;
  padding: 0 1.5rem 0 2.5rem; /* Increased left padding */
  background: none;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;
}

.logo a {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #0005;
  transition: color 0.18s;
}

.logo a:hover {
  color: #00da8d;
}

.main-nav {
  width: 100%;
}

.main-nav .nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start; /* This is key for right align */
  width: 100%;
  background: rgba(255, 255, 255, 0.03); /* optional: faint glass effect */
  padding: 0.4rem 0.8rem; /* more separation inside the nav */
  border-radius: 2.2em;
}

.main-nav .nav-list li a {
  background: rgba(
    27,
    36,
    61,
    0.95
  ); /* deep blue-black with some transparency */
  color: #fff;
  font-weight: 600;
  font-size: 1.05em;
  padding: 0.4em 1.2em; /*button height*/
  border-radius: 2em;
  text-decoration: none;
  box-shadow: 0 1px 4px #0003;
  border: 1.5px solid #fed248;
  transition: background 0.18s, color 0.18s, border 0.18s;
  letter-spacing: 0.5px;
  position: relative;
}

.main-nav .nav-list li a:hover,
.main-nav .nav-list li a:focus {
  background: #fed248;
  color: #212b36; /* Deep navy text for contrast */
  border-color: #0a3b30; /* Even deeper green border */
  text-shadow: none;
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .header-nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .logo {
    margin-bottom: 0.8rem;
  }
  .main-nav .nav-list {
    gap: 1.2rem;
  }
  .main-nav {
    padding-left: 1rem;
  }
  .main-nav .nav-list li a {
    padding: 0.65em 1em;
    font-size: 1em;
    min-width: 100px;
  }
}

@media (max-width: 520px) {
  .homepage-header-banner-img {
    max-height: 140px;
  }
  .slim-header-banner-img {
    height: 60px;
  }
  .logo a {
    font-size: 1.2rem;
  }
  .main-nav .nav-list li a {
    font-size: 1em;
  }
}

/* ==============================================
   Top Rated Casinos Text
   ============================================== */

.section-heading-casinos {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #222;
  position: relative;
  margin-top: 0; /* Remove extra space above the heading */
  margin-bottom: 2rem; /* Space between heading and grid */
  font-size: 2.4rem; /* Or whatever you're using */
}

.section-heading-casinos::after {
  content: "";
  display: block;
  margin: 0.55em auto 0;
  width: 270px;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(
    120deg,
    #fffbe6 0%,
    #fbe26a 25%,
    #ffd700 60%,
    #ffbe2e 80%,
    #fffbe6 100%
  );
  background-size: 200% 100%;
  box-shadow: 0 2px 18px #fbe26a60;
  animation: shimmer-underline 4s linear infinite;
}

@keyframes shimmer-underline {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* =================================================================
   Site Footer Styles
   ================================================================= */

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1rem;
  background-color: #ffffff; /* Use white to match the content cards */
  border: 1px solid #dee2e6; /* --- EDITED --- Changed from border-top to a full border */
  border-radius: 1rem; /* --- NEW --- Added rounded corners */
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d; /* A softer grey for the text */
}

.site-footer .container {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0.5rem 0;
}

.site-footer a {
  color: #0073aa;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #005b85;
  text-decoration: underline;
}

/* =================================================================
   Casino Search Result Card Layout (Consolidated & Final)
   ================================================================= */

/* Main container for each result card */
.casino-result {
  display: flex;
  align-items: stretch; /* Forces all columns to be the same height */
  gap: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.casino-result:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* --- Column 1: Logo --- */
.casino-logo {
  flex-shrink: 0;
  width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.casino-logo a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
}

.casino-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- Column 2: Details --- */
.casino-details {
  flex: 1; /* Takes up available space */
  display: flex;
  flex-direction: column; /* Stacks content vertically */
}

.casino-details h2 {
  font-size: 1.35rem;
  margin: 0 0 0.3em 0;
  font-weight: 700;
}
.casino-details h2 a {
  text-decoration: none;
  color: #2c3e50;
}

.casino-details p {
  margin: 0.18em 0;
  color: #333;
  font-size: 1em;
}

.casino-details .read-review-btn {
  margin-top: auto; /* Pushes button to the bottom */
  align-self: flex-start; /* Prevents button from stretching */
}

/* --- Column 3: CTA & Bonuses --- */
.casino-cta-column {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Vertically centers the content in this column */
  gap: 10px;
}

.casino-cta-column .play-now-btn {
  width: 100%;
  text-align: center;
  margin-left: 0; /* Override any inherited margin */
}

.casino-cta-column .bonus-pills-container {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Makes pills take up full width of the column */
  gap: 6px;
  width: 100%;
}

.casino-result .bonus-pill {
  font-size: 0.8em;
  padding: 0.4em 0.8em;
  margin: 0;
  line-height: 1.4;
  width: 100%; /* Make all pills the same width */
  box-sizing: border-box;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .casino-result {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .casino-details {
    align-items: center; /* Center content on mobile */
  }
  .casino-details .read-review-btn {
    align-self: center;
    margin-top: 1rem;
  }
  .casino-cta-column {
    flex-basis: auto;
    margin-top: 1rem;
    width: 100%;
  }
  .casino-cta-column .bonus-pills-container {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .casino-result .bonus-pill {
    width: auto; /* Let pills size to their content on mobile */
  }
}

/* =================================================================
   Our Team Page
   ================================================================= */

.our-team-container {
  width: 85%;
  max-width: 1200px;
  margin: 2.5rem auto;
  text-align: center;
}

.our-team-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-member-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #f0f4f8;
}

.team-member-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-member-name a {
  color: #0073aa;
  text-decoration: none;
}

.team-member-name a:hover {
  color: #00da8d;
}

.team-member-bio {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  background-color: #0077b5; /* LinkedIn brand color */
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.linkedin-link:hover {
  background-color: #005983;
}

.linkedin-link::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M19 0h-14C2.24 0 0 2.24 0 5v14c0 2.76 2.24 5 5 5h14c2.76 0 5-2.24 5-5V5c0-2.76-2.24-5-5-5zM7 19H4V9h3v10zm-1.5-11.27c-.97 0-1.75-.79-1.75-1.76S4.53 4.21 5.5 4.21 7.25 5 7.25 5.97 6.47 7.73 5.5 7.73zm13.5 11.27h-3v-5.6c0-3.37-4-3.12-4 0V19h-3V9h3v1.76c1.4-2.59 7-2.78 7 2.47V19z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ============================================
   Main Content Styling for Informational Pages
   ============================================ */

.page-content h1,
.page-content h2,
.page-content h3 {
  text-align: center;
  color: #2c3e50;
  font-size: 3.13em;
  margin-bottom: 0em;
}

.page-content p,
.page-content ul,
.page-content li {
  color: #444;
  font-size: 1.13em;
  line-height: 1.6;
}

.page-content ul {
  display: inline-block;
  text-align: left;
  margin: 1.5em auto;
  padding-left: 2em;
}

@media (max-width: 700px) {
  .page-content {
    padding: 1.3rem 0.7rem;
    font-size: 1em;
  }
}

/* ============================================
   Contact Us Page
   ============================================ */

.page-content-contact {
  max-width: 600px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 16px #0001;
  padding: 2.5rem 2rem;
  color: #222;
  font-size: 1.11rem;
  text-align: center;
}
.contact-intro {
  margin-bottom: 2rem;
}
.contact-form .form-group {
  margin-bottom: 1.4rem;
  text-align: left;
}
.contact-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7em;
  border-radius: 0.5em;
  border: 1px solid #e1e3e6;
  font-size: 1.08em;
  box-sizing: border-box;
  background: #f8fafc;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0073aa;
  outline: none;
  background: #fff;
}
.contact-submit-btn {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  padding: 0.7em 2.4em;
  border: none;
  border-radius: 2em;
  font-size: 1.11em;
  box-shadow: 0 1px 8px #0073aa22;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-submit-btn:hover {
  background: #00da8d;
}
.form-error {
  color: #d43939;
  margin-top: 0.3em;
  font-size: 0.97em;
}
.contact-success {
  background: #d0f6e4;
  border: 1px solid #00da8d;
  color: #116d5d;
  border-radius: 0.7em;
  padding: 1.2em;
  margin-bottom: 1.4em;
}
/* ============================================
   Comments Section Styling
   ============================================ */
#comments {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px #0001;
  padding: 2.5rem 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #222;
}

#comments h2,
#reply-title {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.comment-list {
  list-style: none !important;
  counter-reset: none !important;
  padding-left: 0 !important;
  margin: 0;
  padding: 0;
}

.comment-list > li.comment {
  margin-bottom: 2.3rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #ffe06644;
  background: #fffbe6;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px #ffe06612;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: box-shadow 0.2s;
}

.comment-list > li.comment:last-child {
  border-bottom: none;
}

.comment-body {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.comment-author .avatar {
  border-radius: 50%;
  box-shadow: 0 2px 8px #ffe06655;
  width: 54px;
  height: 54px;
  margin-right: 0.2em;
  flex-shrink: 0;
}

.comment-author .fn {
    color: #005a87; /* A darker, more accessible blue */
    font-weight: bold;
}

.comment-meta {
  font-size: 0.96em;
  color: #005a87;
  margin-bottom: 0.2em;
  display: block;
}
.comment-content {
  font-size: 1.13em;
  color: #222222;
  line-height: 1.7;
  margin-top: 0.1em;
}
.bypostauthor > .comment-body {
  padding-left: 1rem;
  background: #f8f9fa;
}

.comment-reply-link {
  font-weight: 600;
  color: #0098c2;
  background: #fffbe6;
  border-radius: 0.5rem;
  padding: 3px 12px;
  text-decoration: none;
  font-size: 1em;
  margin-top: 0.7em;
  display: inline-block;
  transition: background 0.16s;
}
.comment-reply-link:hover {
  background: #fffbe6;
  color: #222;
}

/* Replies / children styling */
.comment-list .children {
  margin-left: 2.7rem;
  padding-left: 1rem;
  margin-top: 1.5rem;
  list-style: none !important;
  counter-reset: none !important;
  padding-left: 0 !important;
}
.comment-list .children > li.comment {
  background: #f8f9fa;
  border-radius: 0.6rem;
  box-shadow: 0 1px 6px #ffe06611;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

/* Remove numbers if <ol> is used by theme */
.comment-list {
  list-style-type: none;
  counter-reset: none;
}

/* Comment form (as before, just moved down for continuity) */
#respond {
  margin-top: 2.5rem;
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 12px #ffd60011;
  padding: 2rem 1.3rem 1.2rem 1.3rem;
}
#respond label {
  font-weight: 600;
  color: #2c3e50;
  margin-top: 0.8em;
}
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1.5px solid #ffe066cc;
  background: #fff;
  font-size: 1.04em;
  padding: 0.85em 1em;
  margin-top: 0.3em;
  margin-bottom: 1.1em;
  box-sizing: border-box;
  transition: border-color 0.17s;
}
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond textarea:focus {
  border-color: #ffcb47;
  outline: none;
}
#respond .form-submit input[type="submit"] {
  background: #02507d;
  color: #fff;
  font-weight: 600;
  font-size: 1.08em;
  border: none;
  border-radius: 0.7rem;
  padding: 0.8em 2em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5em;
  box-shadow: 0 2px 10px #0098c23a;
}
#respond .form-submit input[type="submit"]:hover {
  background: #ffe066;
  color: #222;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  #comments,
  #respond {
    padding: 1.2rem 0.5rem;
    border-radius: 0.7rem;
  }
  .comment-list > li.comment {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .comment-body {
    gap: 0.7rem;
  }
  .comment-list .children {
    margin-left: 1rem;
    padding-left: 0.6rem;
  }
  .comment-author .avatar {
    width: 40px;
    height: 40px;
  }
}

.comment-reply-link {
  display: none !important;
}

/* =================================================================
   Sidebar Navigation Styles (Two-Box Layout)
   ================================================================= */

/* This is the main layout container for the page */
.content-sidebar-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 2.5rem auto;
}

/* The sidebar column itself */
.sidebar-casino-clusters {
  flex: 1 1 0%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* This creates the space between the two boxes */
}

/* --- NEW: Common style for both boxes in the sidebar --- */
.sidebar-widget,
.sidebar-category-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.sidebar-heading {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
  text-align: center;
}

/* --- Casino Guides List --- */
.sidebar-casino-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-casino-item {
  position: relative;
  margin-bottom: 0;
}

.nav-casino-item > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #2c3e50;
  text-decoration: none;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 50px;
  transition: all 0.2s ease-in-out;
  position: relative;
  padding-right: 40px;
}

.nav-casino-item > a:hover {
  color: #fff;
  background-color: #0073aa;
  border-color: #005b85;
  box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
  transform: translateY(-2px);
}

.nav-casino-icon {
  flex-shrink: 0;
  width: 80px;
  height: 32px;
  border-radius: 50px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid #e9ecef;
}

.nav-casino-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-casino-title {
  flex-grow: 1;
}

.nav-casino-item > a::after {
  content: "›";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 1.5rem;
  line-height: 1;
  color: #0073aa;
  transition: transform 0.2s ease-in-out, color 0.2s ease;
}

.nav-casino-item > a:hover::after {
  color: #fff;
}

.nav-casino-item:hover > a::after {
  transform: translateY(-50%) rotate(-90deg);
}

.nav-casino-supporting {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
}

.nav-casino-item:hover > .nav-casino-supporting {
  max-height: 800px;
}

.nav-casino-supporting li {
  margin-bottom: 6px;
}

.nav-casino-supporting a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  background-color: #f1f3f5;
  border-radius: 20px;
  margin-left: 20px;
  transition: all 0.2s ease;
}

.nav-casino-supporting a:hover {
  color: #fff;
  background-color: #6c757d;
  text-decoration: none;
  transform: translateX(5px);
}

/* --- Article Category List --- */
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category-list li {
  margin-bottom: 0.5rem;
}

.sidebar-category-list li a {
  display: block;
  padding: 10px 15px; /* Adjusted padding for larger font */
  background-color: #f1f3f5;
  color: #343a40;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem; /* Matched font size */
  font-weight: bold; /* Matched font weight */
  transition: all 0.2s ease;
}

.sidebar-category-list li a:hover {
  background-color: #e9ecef;
  color: #0073aa;
  transform: translateX(5px);
}

/* Responsive styles */
@media (max-width: 900px) {
  .content-sidebar-wrapper {
    flex-direction: column;
    gap: 1.2rem;
  }
  .sidebar-casino-clusters {
    max-width: 100%;
    margin: 0;
  }
}

/* =================================================================
   Category Page Header Styles
   ================================================================= */

/* This targets the header on category archive pages */
.category .page-header {
  background: #fff; /* White background to create a card effect */
  padding: 2rem;
  border-radius: 1rem; /* Rounded corners */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); /* Subtle shadow */
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: none; /* Remove the default underline */
}

.category .page-header .page-title {
  margin-top: 0;
}

.category .archive-description {
  font-size: 1.1em;
  color: #555;
  max-width: 700px;
  margin: 1rem auto 0;
}

/* =================================================================
   Post Card Parent Casino Info Styles
   ================================================================= */

.parent-casino-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

/* --- EDITED --- This now matches the sidebar icon pill style */
.parent-casino-logo {
  flex-shrink: 0;
  width: 80px;
  height: 32px;
  background-color: #ffffff;
  border-radius: 50px; /* Pill shape */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
  padding: 2px;
  box-sizing: border-box;
}

.parent-casino-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.parent-casino-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
}

/* =================================================================
   Final Author Box CSS
   ================================================================= */

.author-box {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.author-box-avatar {
  flex-shrink: 0;
}

.author-box-img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-box-content {
  flex: 1;
  min-width: 0; /* Fixes flexbox overflow issues */
}

.author-box-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.author-box-title a {
  text-decoration: none;
  color: #2c3e50;
}

.author-box-description {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  max-height: 4.5em; /* Collapsed by default to ~3 lines */
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.author-box-description p {
    margin: 0 0 1em 0;
    padding: 0;
}
.author-box-description p:last-of-type {
    margin-bottom: 0;
}

/* Styles for the expanded state */
.author-box-description.is-expanded {
  max-height: 1200px;
  margin-bottom: 0;
}

/* Style for the "Read More" button */
.author-box-read-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 5px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  color: #0073aa;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.author-box-read-more:hover {
  text-decoration: underline;
}

.author-box-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .author-box-description {
    text-align: left;
  }

  .author-box-links {
    justify-content: center;
  }
}

/* =================================================================
   Comment Star Rating Styles (Final Corrected Version)
   ================================================================= */

/* --- 1. Star Rating Input in the Comment Form --- */

/* --- EDITED --- Use Flexbox for precise control --- */
.comment-form-rating {
  display: flex;
  align-items: center; /* Vertically aligns the text and the stars */
  gap: 15px; /* Controls the space between the text and the stars */
  margin-bottom: 1rem;
}

.comment-form-rating > label {
  /* No longer needs display:block or margin-bottom */
  font-weight: bold;
  flex-shrink: 0; /* Prevents the label from shrinking if space is tight */
}

/* The box that holds the stars */
.commentratingbox {
  display: inline-flex;
  /* This reverses the visual order of the stars, so they appear 5, 4, 3, 2, 1 */
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Hide the actual radio buttons */
.commentratingbox input[type="radio"] {
  display: none;
}

/* Style the labels (which contain the number and star) */
.commentratingbox label {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 0.2em;
  font-weight: normal;
}

/* When you hover over any star, it and all the stars that are visually
   to its left will turn gold. */
.commentratingbox label:hover,
.commentratingbox label:hover ~ label {
  color: #ffc700;
}

/* Keep stars colored when an option is selected */
.commentratingbox input[type="radio"]:checked ~ label {
  color: #ffc700;
}

/* --- 2. Displayed Stars on Existing Comments --- */
.comment-stars {
  margin-top: 0.5rem;
}

.comment-stars .star {
  font-size: 1.2rem;
  color: #ddd; /* Unfilled star color */
}

.comment-stars .star.filled {
  color: #f5a623; /* Filled star color */
}

/* =================================================================
   Payment Method Logo Styles
   ================================================================= */

.payment-methods-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 1rem;
  border: 1px solid #e9ecef;
}

.payment-methods-title {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #495057;
}

.payment-methods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.payment-logo-item {
  height: 40px; /* A consistent height for all logo containers */
  padding: 5px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-logo-item img {
  max-height: 100%;
  max-width: 80px; /* Prevent wide logos from being too large */
  width: auto;
  height: auto;
}

/* =================================================================
   Post Meta & Byline Styles
   ================================================================= */

/* This targets the container for the author/date info on posts */
.entry-meta {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem !important; /* Overrides inline style */
  margin-bottom: 2rem !important; /* Overrides inline style */
  display: flex;
  align-items: center;
  gap: 15px;
}

/* The container for the text lines */
.entry-meta > div {
  line-height: 1.4;
}

/* The line containing the author's name */
.entry-meta .author-line {
  /* We will add this class in the next step */
  font-size: 1rem;
  color: #555;
}

/* --- The "Last Updated" Date --- */
.entry-meta .last-updated-date {
  /* We will add this class in the next step */
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px; /* Space between icon and text */
}

/* Add a small clock icon before the date */
.entry-meta .last-updated-date::before {
  content: "🕒"; /* You can also use an SVG icon here */
  font-size: 1.1em;
}

/* =================================================================
   Comparison Table Styles
   ================================================================= */

.comparison-table-container {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: middle; /* Vertically align content in the middle */
}

.comparison-table thead th {
  border-bottom: 2px solid #e9ecef;
  color: #6c757d;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.casino-table-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
}
.casino-table-logo {
  flex-shrink: 0;
  width: 120px;
  height: 60px;
}
.casino-table-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rating-value {
  font-weight: 500;
}

/*
 * FINAL Mobile Comparison Table Styling - Based on Mockup
 */
@media (max-width: 768px) {
  .comparison-table thead {
    display: none;
  }

  .comparison-table .casino-table-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
  }

  .comparison-table .rating-value {
    font-size: 1.2em;
    font-weight: bold;
    padding: 1rem 8rem;
  }

  .comparison-table tr {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .comparison-table td {
    padding: 0.5rem 0;
  }

  .comparison-table .bonus-pill {
    padding: 0.4rem 3rem;
	width: 100%
    max-width: 15rem;
	box-sizing: border-box;
  }

  .comparison-table .cta-button {
    padding: 0.4rem 3rem;
    width: 100%
	max-width: 15rem;
	box-sizing: border-box;
  }
}

/* =================================================================
   Sidebar "Best Of" Comparison List Styles
   ================================================================= */

/* The .sidebar-widget class you already have will provide the main box style */

.sidebar-comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-comparison-list li {
  margin-bottom: 0.5rem;
}

.sidebar-comparison-list li a {
  display: block;
  padding: 8px 15px;
  background-color: #fffbe6; /* Using the hero section's yellow for distinction */
  color: #856404;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #ffeeba;
  transition: all 0.2s ease;
}

.sidebar-comparison-list li a:hover {
  background-color: #ffeeba;
  color: #664d03;
  transform: translateX(5px);
}

/* --- NEW --- Give columns more defined widths --- */
.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 40%;
} /* Casino */
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 15%;
} /* Rating */
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 25%;
} /* Bonus */
.comparison-table th:nth-child(4),
.comparison-table td:nth-child(4) {
  width: 20%;
  text-align: center;
} /* Action */

@media (max-width: 900px) {
  /* This makes the main content and sidebar stack vertically */
  .content-sidebar-wrapper {
    flex-direction: column;
    gap: 1.2rem;
  }

  /* This makes the sidebar take up the full width on smaller screens */
  .sidebar-casino-clusters {
    max-width: 100%;
    margin: 0;
  }

  /* --- NEW ---
       This now correctly styles the "Best Of" list on smaller screens.
    */
  .sidebar-comparison-list li a {
    padding: 10px 18px;
    font-size: 1rem;
  }
}

/*
 * Comparison Page - Intro & Conclusion Content Styling
 * This ensures the text content matches the overall site style.
 */

/* Common container styles for both sections */
.page-intro-content,
.page-conclusion-content {
  /* Constrains line length for better readability on desktop */
  max-width: 800px;
  /* Centers the container */
  margin-left: auto;
  margin-right: auto;
  /* Adds some space on the sides for mobile */
  padding: 0 1rem;
}

/* Styling for paragraphs within the new sections */
.page-intro-content p,
.page-conclusion-content p {
  font-size: 1.1em;
  line-height: 1.7; /* Improves readability by adding space between lines */
  margin-bottom: 1.5rem;
  color: #333; /* A standard dark grey for body text */
}

/* Styling for any headings (H2, H3, etc.) you might use in the editor */
.page-intro-content h2,
.page-conclusion-content h2,
.page-intro-content h3,
.page-conclusion-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  color: #111; /* A darker color for headings to create contrast */
}

/* Removes the extra space after the final paragraph in each section */
.page-intro-content p:last-of-type,
.page-conclusion-content p:last-of-type {
  margin-bottom: 0;
}

.entry-content .wp-block-image img {
  border: 1px solid #e9ecef; /* A light, subtle border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* A soft drop shadow */
  border-radius: 8px; /* Optional: slightly rounded corners */
  padding: 0; /* Ensures no extra space inside the border */
}

/* =================================================================
   Game Provider Archive Page Styling
   ================================================================= */

/* The main grid container */
.game-archive-grid {
  display: grid;
  /* Creates a responsive grid that shows as many 300px columns as will fit */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem; /* Sets the space between the cards */
}

/* Individual game card item */
.game-card-item {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden; /* Ensures the image corners respect the border-radius */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Add a subtle lift effect when a user hovers over a card */
.game-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* The link that wraps the card content */
.game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* The image inside the card */
.game-card-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 1; /* CHANGED: This makes the image container twice as wide as it is tall, significantly reducing its height. */
  object-fit: contain;
}

/* The game title below the image */
.game-card-title {
  font-size: 1.25em;
  padding: 0.75rem 1rem; /* CHANGED: Reduced the top and bottom padding to make the title area shorter. */
  margin: 0;
  text-align: center;
}

/*
 * Single Game Review Page Styling
 */

/* Main layout for the review content and sidebar */
.game-review-layout {
  display: flex;
  flex-wrap: wrap; /* Allows sidebar to stack on mobile */
  gap: 2rem;
  margin: 2rem 0;
}

/* Main content area (the review text) */
.game-main-content {
  flex: 2; /* Takes up 2/3 of the space */
  min-width: 300px; /* Prevents it from getting too squashed */
}

/* Sidebar for game details */
.game-info-sidebar {
  flex: 1; /* Takes up 1/3 of the space */
  min-width: 250px;
}

.game-info-box {
  background-color: #f9f9f9;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
}

.game-info-box h3 {
  margin-top: 0;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.game-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-info-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.game-info-box li:last-child {
  border-bottom: none;
}

.game-info-box li strong {
  color: #333;
}

/* "Where to Play" section styling */
.where-to-play-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.where-to-play-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Grid for the casino cards */
.where-to-play-section .casinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Individual casino card in the grid */
.where-to-play-section .casino-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.where-to-play-section .casino-card img {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.where-to-play-section .casino-card h3 {
  font-size: 1.2em;
  margin: 0 0 1rem 0;
}

/*
 * Single Game Review - Featured Image Styling
 */
.game-featured-image {
  /* Adds some space below the image before the main text starts */
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.game-featured-image img {
  display: block; /* Allows the use of margin: auto for centering */
  width: 50%; /* Reduces the image to half the width of its container */
  height: auto; /* Maintains the image's aspect ratio */
  margin-left: auto; /* In combination with margin-right, this centers the image */
  margin-right: auto;
  border-radius: 12px; /* Applies the rounded corners */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Adds a soft, modern drop shadow */
}

/* =================================================================
   Game Provider Archive Page - Header & Description Styling
   ================================================================= */

/*
 * This targets the header on game provider archive pages specifically.
 * It transforms the header into a styled "card" similar to your category pages.
*/
body.tax-game_provider .page-header {
  background: #ffffff; /* Use the standard white card background */
  padding: 2.5rem 2rem;
  border-radius: 1rem; /* Consistent rounded corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* A prominent shadow to lift it off the page */
  margin-bottom: 3rem; /* Space between this header card and the game grid below */
  text-align: center;
}

/* Style the main H1 title within the new header card */
body.tax-game_provider .page-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.8em;
  color: #2c3e50; /* Consistent heading color */
}

/*
 * This styles the container for the description text.
 * It sets the width and centers it.
*/
body.tax-game_provider .archive-description {
  max-width: 800px; /* Constrain line length for readability */
  margin: 1rem auto 0;
}

/*
 * These rules style the actual content (paragraphs, headings, lists)
 * that you write inside the provider's description field in WordPress.
*/

/* Paragraph styling for the description */
body.tax-game_provider .archive-description p {
  font-size: 1.15em;
  line-height: 1.7;
  color: #444; /* Standard body text color */
  text-align: left; /* CRITICAL: Ensures long text is readable */
  margin-bottom: 1.25em;
}

/* If you use H2 or H3 headings within your description */
body.tax-game_provider .archive-description h2,
body.tax-game_provider .archive-description h3 {
  text-align: left;
  margin-top: 2em;
  margin-bottom: 1em;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5em;
}

/* If you use lists within your description */
body.tax-game_provider .archive-description ul {
  text-align: left;
  display: inline-block; /* Makes the list only as wide as its content */
  padding-left: 1.5em;
  margin-top: 0;
}

/* =================================================================
   Sidebar Game Provider List Styles
   ================================================================= */

/* This is the list container for the game providers */
.sidebar-provider-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-provider-list li {
  margin-bottom: 0.5rem;
}

/* * This styles the actual links with a new green color scheme.
 * The shape (padding, border-radius, font-size) is identical to the
 * .sidebar-category-list for consistency.
*/
.sidebar-provider-list li a {
  display: block;
  padding: 10px 15px;
  background-color: #005a87;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

/* The hover effect uses the main site green for a vibrant interaction */
.sidebar-provider-list li a:hover {
  background-color: #00da8d; /* Your site's primary green */
  color: #ffffff; /* White text for high contrast on hover */
  transform: translateX(5px);
}

.sidebar-provider-list .provider-post-count {
  font-weight: 500; /* Use a normal font-weight */
  font-size: 0.85em; /* Make it slightly smaller */
  opacity: 0.7; /* Make it slightly transparent */
  margin-left: 5px; /* Add a little space from the name */
  color: #ffffff;
}

/* =================================================================
   Homepage Game Search Section
   ================================================================= */

.latest-games-section {
  width: 80%;
  max-width: 1500px;
  margin: 2.5rem auto;
}

.game-search-header {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.game-search-intro {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0.5rem auto 1.5rem auto;
}

.game-search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.game-search-field {
  flex-grow: 1;
  border: 2px solid #ced4da;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 50px 0 0 50px;
  transition: border-color 0.2s;
}

.game-search-field:focus {
  outline: none;
  border-color: #0073aa;
}

.game-search-submit {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 50px 50px 0;
  transition: background-color 0.2s;
}

.game-search-submit:hover {
  background: #005b85;
}

.fallback-search-notice {
  grid-column: 1 / -1; /* Make this notice span all columns of the grid */
  text-align: center;
  font-style: italic;
  color: #555;
  background: #fffbe6;
  padding: 1rem;
  border-radius: 8px;
}

.latest-games-title {
  grid-column: 1 / -1; /* Make title span all columns of the grid */
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 1rem;
  color: #333;
}
.section-delimiter {
  border: 0; /* Removes the default browser border */
  height: 1px; /* Creates a thin line */
  background-color: #dee2e6; /* A light, neutral grey from your theme */
  width: 50%; /* Makes the line half the width of its container */
  margin: 4rem auto; /* Adds ample vertical space and centers the line */
}

/* =================================================================
   Sidebar load optimisations
   ================================================================= */

.content-sidebar-wrapper {
  display: flex;
  align-items: flex-start; /* Aligns items to the top */
  gap: 2rem; /* Creates space between content and sidebar */
}

/* Give the main content area flexible width */
#main-content.casino-review {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
  /* Remove margin: auto; as flexbox now handles positioning */
  margin: 2rem 0; 
}

/* Give the sidebar a fixed, reserved width */
.sidebar-casino-clusters {
  flex: 0 0 300px; /* Does not grow, does not shrink, base width of 300px */
  margin-top: 2rem;
}

@media (max-width: 768px) {
    .single-casino .casino-logo {
        width: 150px; /* A slightly smaller size for mobile */
    }
}

/* =================================================================
   Single Casino Review Header Styles
   ================================================================= */

/* Desktop layout: Side-by-side */
.casino-review-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

/* --- NEW: Responsive layout for mobile --- */
@media (max-width: 600px) {
  .casino-review-header {
    /* Stack the logo and text vertically */
    flex-direction: column;
    /* Reduce the space between the stacked items */
    gap: 1rem;
    /* Center the items for a cleaner look on mobile */
    text-align: center;
  }

  .casino-review-header .entry-meta {
    /* Center the author byline content */
    justify-content: center;
  }
}