/* style/casino-games.css */
/*
  Body background is #0A2342 (dark).
  Main text color should be light (#ffffff).
*/

.page-casino-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0A2342; /* Ensure main container matches body background */
}

/* --- Hero Section --- */
.page-casino-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for visual break, body handles header offset */
  box-sizing: border-box;
  overflow: hidden; /* Contains potential overflow from hero image */
  background-color: #0A2342; /* Deep blue background */
}

.page-casino-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper does not overflow */
  margin-bottom: 30px; /* Spacing between image and text content */
}

.page-casino-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-casino-games__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any background effects */
}

.page-casino-games__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  color: #FFD700; /* Gold accent for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino-games__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* --- CTA Buttons --- */
.page-casino-games__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  justify-content: center;
}

.page-casino-games__btn-primary,
.page-casino-games__btn-secondary,
.page-casino-games__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-casino-games__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #0A2342; /* Deep blue text */
  border: 2px solid #FFD700;
}

.page-casino-games__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-casino-games__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-casino-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2342;
}

.page-casino-games__btn-tertiary {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for tertiary */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-casino-games__btn-tertiary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* --- General Section Styling --- */
.page-casino-games__featured-games-section,
.page-casino-games__why-choose-section,
.page-casino-games__providers-section,
.page-casino-games__how-to-start-section,
.page-casino-games__responsible-gaming-section,
.page-casino-games__faq-section,
.page-casino-games__cta-section {
  padding: 60px 20px;
  box-sizing: border-box;
  text-align: center;
}

.page-casino-games__dark-bg {
  background-color: #0A2342; /* Deep blue */
  color: #ffffff;
}

.page-casino-games__light-bg {
  background-color: #ffffff; /* White background for contrast */
  color: #333333;
}

.page-casino-games__medium-bg {
  background-color: #FFD700; /* Gold background */
  color: #0A2342; /* Deep blue text for contrast */
}

.page-casino-games__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  color: inherit; /* Inherit color from parent section */
  margin-bottom: 20px;
}

.page-casino-games__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit; /* Inherit color from parent section */
}

/* --- Featured Games Section --- */
.page-casino-games__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino-games__category-card {
  background-color: rgba(0, 0, 0, 0.05); /* Light background for cards in light section */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light card background */
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-casino-games__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-casino-games__category-icon {
  width: 200px; /* Ensure minimum size */
  height: 200px; /* Ensure minimum size */
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 4px;
}

.page-casino-games__category-title {
  font-size: 1.5em;
  color: #0A2342; /* Deep blue title */
  margin-bottom: 10px;
}

.page-casino-games__category-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555555;
}

/* --- Why Choose Section --- */
.page-casino-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino-games__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards in dark section */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-casino-games__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino-games__feature-icon {
  width: 600px; /* Recommended size for content display */
  height: 400px; /* Recommended size for content display */
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 4px;
}

.page-casino-games__feature-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold accent for feature titles */
  margin-bottom: 10px;
}

.page-casino-games__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* --- Providers Section --- */
.page-casino-games__providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 167x127px images */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino-games__provider-item {
  background-color: rgba(0, 0, 0, 0.03); /* Very light background for provider logos */
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light section */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.page-casino-games__provider-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

.page-casino-games__provider-logo {
  width: 167px; /* Fixed width for media partner game images */
  height: 127px; /* Fixed height for media partner game images */
  object-fit: contain;
  margin-bottom: 10px;
}

.page-casino-games__provider-name {
  font-size: 0.9em;
  font-weight: bold;
  color: #0A2342;
}

/* --- How To Start Section --- */
.page-casino-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-casino-games__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 30px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-casino-games__step-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino-games__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* --- Responsible Gaming Section --- */
.page-casino-games__responsible-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-casino-games__responsible-item {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  color: #333333;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-casino-games__responsible-title {
  font-size: 1.4em;
  color: #0A2342;
  margin-bottom: 10px;
}

.page-casino-games__responsible-text {
  font-size: 1em;
  color: #555555;
}

/* --- FAQ Section --- */
.page-casino-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-casino-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-casino-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-casino-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-casino-games__faq-title {
  font-size: 1.2em;
  color: #FFD700; /* Gold accent for FAQ questions */
  margin: 0;
}

.page-casino-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-casino-games__faq-item.active .page-casino-games__faq-toggle {
  transform: rotate(45deg);
}

.page-casino-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-casino-games__faq-item.active .page-casino-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-casino-games__faq-text {
  font-size: 1em;
  margin: 0;
  padding-bottom: 10px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-casino-games__hero-section {
    padding: 40px 15px;
  }

  .page-casino-games__hero-content {
    padding: 0 15px;
  }

  .page-casino-games__main-title {
    font-size: clamp(1.8em, 6vw, 3em);
  }

  .page-casino-games__section-title {
    font-size: clamp(1.6em, 5vw, 2.5em);
  }

  .page-casino-games__featured-games-section,
  .page-casino-games__why-choose-section,
  .page-casino-games__providers-section,
  .page-casino-games__how-to-start-section,
  .page-casino-games__responsible-gaming-section,
  .page-casino-games__faq-section,
  .page-casino-games__cta-section {
    padding: 40px 15px;
  }

  .page-casino-games__game-categories,
  .page-casino-games__features-grid,
  .page-casino-games__steps-grid,
  .page-casino-games__responsible-features {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-casino-games__hero-section {
    padding: 30px 15px;
  }

  .page-casino-games__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
  }

  .page-casino-games__hero-description {
    font-size: 1em;
  }

  .page-casino-games__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
  }

  .page-casino-games__section-description {
    font-size: 0.95em;
  }

  .page-casino-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-casino-games__btn-primary,
  .page-casino-games__btn-secondary,
  .page-casino-games__btn-tertiary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino-games__game-categories,
  .page-casino-games__features-grid,
  .page-casino-games__steps-grid,
  .page-casino-games__responsible-features {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-casino-games__category-card,
  .page-casino-games__feature-item,
  .page-casino-games__step-item,
  .page-casino-games__responsible-item {
    padding: 20px;
  }

  .page-casino-games__category-icon,
  .page-casino-games__feature-icon,
  .page-casino-games__provider-logo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino-games__providers-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller logos */
    gap: 15px;
  }

  .page-casino-games__faq-question {
    padding: 15px 20px;
  }

  .page-casino-games__faq-title {
    font-size: 1.1em;
  }

  .page-casino-games__faq-answer {
    padding: 0 20px;
  }

  .page-casino-games__faq-item.active .page-casino-games__faq-answer {
    padding: 10px 20px;
  }
}

/* Ensure images and containers adapt to mobile */
.page-casino-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-casino-games__section,
.page-casino-games__card,
.page-casino-games__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Specific overrides for mobile images/containers */
@media (max-width: 768px) {
  .page-casino-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino-games__section,
  .page-casino-games__card,
  .page-casino-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video section top padding, as body handles header offset */
  .page-casino-games__hero-section {
    padding-top: 10px !important; /* Small top padding for visual break */
  }
}

/* Contrast fixes for specific elements if needed, based on background */
.page-casino-games__light-bg .page-casino-games__category-text,
.page-casino-games__light-bg .page-casino-games__responsible-text {
    color: #555555; /* Darker grey for readability on light background */
}

.page-casino-games__dark-bg .page-casino-games__hero-description,
.page-casino-games__dark-bg .page-casino-games__feature-text,
.page-casino-games__dark-bg .page-casino-games__step-text,
.page-casino-games__dark-bg .page-casino-games__faq-text {
    color: #f0f0f0; /* Lighter grey for readability on dark background */
}