/* style/casino.css */

/* General page styling */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
  line-height: 1.6;
}

.page-casino__section {
  padding: 60px 20px;
  background-color: #FFFFFF; /* Default light background for sections */
  color: #333333;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
  box-sizing: border-box;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF; /* Ensure light background for text visibility */
  overflow: hidden; /* Prevent image overflow */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio for large screens */
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-casino__hero-content {
  max-width: 900px;
  text-align: center;
  margin-top: 40px;
  padding: 0 15px;
  z-index: 1; /* Ensure content is above any potential background elements */
  color: #333333; /* Ensure text is dark on light background */
}

.page-casino__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #555555;
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 500px; /* Limit button group width */
  box-sizing: border-box;
}

.page-casino__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
  flex-grow: 1; /* Allow buttons to grow */
  max-width: 220px; /* Max width for individual buttons */
}

.page-casino__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid #26A9E0;
}

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

.page-casino__btn-secondary {
  background-color: #FFFFFF; /* Auxiliary color */
  color: #26A9E0; /* Brand color text for contrast */
  border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* Section Titles and Text */
.page-casino__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-casino__text-block {
  font-size: 1.05rem;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__text-block .highlight {
  color: #26A9E0; /* Highlight important keywords with brand color */
  font-weight: 600;
}

/* Game Categories */
.page-casino__game-category {
  margin-bottom: 50px;
  padding: 25px;
  background-color: #f9f9f9; /* Light background for game categories */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-casino__game-category-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: center;
}

.page-casino__game-image,
.page-casino__promo-image,
.page-casino__security-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 25px auto;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px; /* Enforce min size for content images */
}

/* Promotions List */
.page-casino__promotions-highlight .page-casino__container {
  text-align: center;
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-casino__promo-item {
  background-color: #e0f2f7; /* Lighter brand color for list items */
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05rem;
  color: #333333;
}

.page-casino__promo-item strong {
  color: #26A9E0;
}

/* Security Info Section (Dark background) */
.page-casino__dark-section {
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for contrast */
}

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

.page-casino__dark-section .page-casino__text-block {
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-casino__dark-section .page-casino__text-block .highlight {
  color: #FFFFFF; /* White highlight on dark background */
}

.page-casino__security-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-casino__security-item {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on brand background */
  border-left: 5px solid #FFFFFF;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.page-casino__security-item strong {
  color: #FFFFFF;
}

/* User Experience Section */
.page-casino__user-experience .page-casino__experience-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-casino__experience-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05rem;
  color: #333333;
}

.page-casino__experience-item strong {
  color: #26A9E0;
}

/* How to Join Section */
.page-casino__join-steps {
  list-style: decimal;
  padding-left: 25px;
  margin: 30px 0;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-casino__step-item {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-casino__step-item strong {
  color: #26A9E0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-casino__section {
    padding: 40px 15px;
  }

  .page-casino__hero-section {
    padding-bottom: 40px;
  }

  .page-casino__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-casino__subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .page-casino__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 20px;
  }

  .page-casino__text-block,
  .page-casino__promo-item,
  .page-casino__security-item,
  .page-casino__experience-item,
  .page-casino__step-item {
    font-size: 1rem;
    padding-left: 15px; /* Adjust padding for mobile list items */
    padding-right: 15px;
  }

  /* Images */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Reset min-width for mobile */
    min-height: unset !important; /* Reset min-height for mobile */
  }
  
  /* Image containers */
  .page-casino__hero-image-wrapper,
  .page-casino__game-category,
  .page-casino__promotions-highlight,
  .page-casino__security-info,
  .page-casino__user-experience,
  .page-casino__join-us {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons */
  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section specific mobile padding */
  .page-casino__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Color Contrast Enforcement */
.page-casino__card, /* Using card as a general term for content blocks */
.page-casino__game-category,
.page-casino__promo-item,
.page-casino__security-item,
.page-casino__experience-item {
  background-color: #f9f9f9; /* Light background for general blocks */
  color: #333333; /* Dark text for contrast */
}

.page-casino__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF; /* White text on brand color background */
}

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__text-block,
.page-casino__dark-section .page-casino__security-item,
.page-casino__dark-section .page-casino__security-item strong {
  color: #FFFFFF;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF; /* White text on brand color button */
}

.page-casino__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand color text on white button */
}

/* Specific color for Login button if present */
.page-casino__btn-login { /* Assuming a login button might use this class */
  background-color: #EA7C07; /* Custom login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}
.page-casino__btn-login:hover {
  background-color: #c96706;
  border-color: #c96706;
}

/* Ensure all images do not use filter */
.page-casino img {
  filter: none;
}