.page-casino {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for white background */
  background-color: var(--background-color, #ffffff); /* Default to white if var not set */
  line-height: 1.6;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #ffffff;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  color: #017439; /* Brand color for H1 */
  font-size: clamp(2em, 4vw, 3em); /* Min 2em, preferred 4vw, max 3em */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #C30808; /* Register/Login button color for secondary */
  border: 2px solid #C30808;
}

.page-casino__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFF00;
}

.page-casino__btn-tertiary {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-tertiary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* General Section Styles */
.page-casino__section-title {
  font-size: 2em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-casino__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Dark Background Sections */
.page-casino__dark-bg {
  background-color: #017439; /* Main brand color as dark background */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

.page-casino__dark-bg .page-casino__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-casino__dark-bg .page-casino__section-intro {
  color: #f0f0f0;
}

/* Games Section */
.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #017439;
}

.page-casino__game-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-casino__promo-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
}

.page-casino__promo-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__promo-description {
  color: #555555;
}

.page-casino__cta-buttons--center {
  margin-top: 40px;
}

/* Features Section */
.page-casino__features-section {
  padding: 60px 0;
}

.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1); /* Light background for dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-icon {
  width: 200px; /* Changed to 200px to meet minimum size */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  background-color: #ffffff; /* White background for icon to stand out */
  border-radius: 50%;
  padding: 10px;
}

.page-casino__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff; /* White text for dark background */
}

.page-casino__feature-description {
  color: #f0f0f0;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 60px 0;
  text-align: center;
  background-color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

  .page-casino__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset, this is small decoration */
  }

  .page-casino__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em); /* Use clamp for H1 on mobile */
  }

  .page-casino__description,
  .page-casino__section-intro {
    font-size: 1em;
  }

  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text wrap */
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-image,
  .page-casino__game-image,
  .page-casino__feature-icon,
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__hero-image-wrapper,
  .page-casino__game-card,
  .page-casino__feature-card,
  .page-casino__promo-item,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container,
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-casino__game-grid,
  .page-casino__feature-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-casino__section-title {
    font-size: 1.8em;
  }

  .page-casino__game-image {
    height: auto; /* Allow height to adjust on mobile */
  }
}

/* Ensure all images in content area are at least 200px wide/high */
.page-casino img:not(.page-casino__feature-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure contrast for different sections */
.page-casino__dark-bg .page-casino__feature-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly more opaque for contrast */
}