/* style/casino.css */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-casino__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 700px; /* Adjust height as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-casino__hero-title {
  font-size: 3.8em;
  color: #FFD700; /* Accent color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background-color: #FFD700; /* Accent color */
  color: #1A202C; /* Main color for text */
  border: 2px solid #FFD700;
}

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

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Accent color */
  border: 2px solid #FFD700;
}

.page-casino__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Game Categories Section */
.page-casino__game-categories {
  padding: 80px 0;
}

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

.page-casino__category-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-casino__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__card-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
  color: #FFD700; /* Accent color for card titles */
  font-weight: bold;
}

.page-casino__card-title .page-casino__card-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__card-title .page-casino__card-link:hover {
  color: #ffffff;
}

.page-casino__card-text {
  font-size: 1em;
  color: #cccccc;
  padding: 0 15px;
}

/* Featured Games Section */
.page-casino__featured-games {
  padding: 80px 0;
  background-color: #1A202C; /* Main color as background */
  color: #ffffff;
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__game-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__btn-play {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__btn-play:hover {
  background-color: #e6c200;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
  padding: 80px 0;
}

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
}

.page-casino__feature-icon {
  width: 200px; /* Enforce min size */
  height: 200px; /* Enforce min size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 1em;
  color: #cccccc;
}

/* Promotions Section */
.page-casino__promotions {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-casino__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-casino__promo-card .page-casino__card-title {
  padding: 15px 20px 0;
  text-align: left;
}

.page-casino__promo-card .page-casino__card-text {
  padding: 0 20px 15px;
  text-align: left;
}

.page-casino__btn-detail {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__btn-detail:hover {
  background-color: #e6c200;
}

/* Game Strategy Section */
.page-casino__game-strategy {
  padding: 80px 0;
}

.page-casino__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-casino__strategy-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #f0f0f0;
}

.page-casino__strategy-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__strategy-title .page-casino__card-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__strategy-title .page-casino__card-link:hover {
  color: #ffffff;
}

.page-casino__strategy-text {
  font-size: 1em;
  color: #cccccc;
}

.page-casino__strategy-cta {
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent for consistency */
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #cccccc;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 25px;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Dark/Light Background helpers for contrast */
.page-casino__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #f0f0f0; /* Use a very light grey for contrast */
  color: #1A202C; /* Dark text for light background */
}

/* Ensure all text within .page-casino has sufficient contrast */
.page-casino h1, .page-casino h2, .page-casino h3, .page-casino h4, .page-casino h5, .page-casino h6 {
  color: #FFD700; /* Accent for headings */
}

.page-casino p, .page-casino li, .page-casino__card-text, .page-casino__feature-text, .page-casino__strategy-text {
  color: #e0e0e0; /* Light grey for body text on dark background */
}

/* Overrides for light background sections */
.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__section-description,
.page-casino__light-bg .page-casino__card-title .page-casino__card-link,
.page-casino__light-bg .page-casino__card-text,
.page-casino__light-bg .page-casino__game-card .page-casino__card-title,
.page-casino__light-bg .page-casino__game-card .page-casino__card-text,
.page-casino__light-bg .page-casino__feature-title,
.page-casino__light-bg .page-casino__feature-text,
.page-casino__light-bg .page-casino__promo-card .page-casino__card-title .page-casino__card-link,
.page-casino__light-bg .page-casino__promo-card .page-casino__card-text,
.page-casino__light-bg .page-casino__strategy-title .page-casino__card-link,
.page-casino__light-bg .page-casino__strategy-text,
.page-casino__light-bg .page-casino__faq-question h3,
.page-casino__light-bg .page-casino__faq-answer p {
  color: #1A202C; /* Dark text for light backgrounds */
}

.page-casino__light-bg .page-casino__category-card,
.page-casino__light-bg .page-casino__game-card,
.page-casino__light-bg .page-casino__feature-item,
.page-casino__light-bg .page-casino__promo-card,
.page-casino__light-bg .page-casino__strategy-item,
.page-casino__light-bg .page-casino__faq-item {
  background-color: #ffffff; /* White background for cards/items on light section */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__light-bg .page-casino__faq-question {
  background-color: #f8f8f8;
}
.page-casino__light-bg .page-casino__faq-question:hover {
  background-color: #e8e8e8;
}
.page-casino__light-bg .page-casino__faq-toggle {
  color: #1A202C;
}

/* Ensure images in content area are not too small */
.page-casino__feature-icon {
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* Ensure all image elements within .page-casino are not smaller than 200px */
.page-casino__game-image, .page-casino__category-image, .page-casino__promo-image {
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-image {
  height: 280px; /* Maintain aspect ratio */
}

.page-casino__category-image {
  height: 250px;
}

.page-casino__promo-image {
  height: 250px;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
  .page-casino__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width for better appearance */
    margin: 0 auto;
  }

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

  .page-casino__categories-grid,
  .page-casino__games-grid,
  .page-casino__features-grid,
  .page-casino__promotions-grid,
  .page-casino__strategy-grid {
    grid-template-columns: 1fr;
  }

  /* Force responsive for all images */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all videos (if any were added) */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all buttons */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .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;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure containers handle overflow */
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__game-categories,
  .page-casino__featured-games,
  .page-casino__why-choose-us,
  .page-casino__promotions,
  .page-casino__game-strategy,
  .page-casino__faq-section,
  .page-casino__cta-section,
  .page-casino__category-card,
  .page-casino__game-card,
  .page-casino__feature-item,
  .page-casino__promo-card,
  .page-casino__strategy-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific overrides for flex/grid items to prevent overflow */
  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px;
  }
}

/* Dark background color for sections for contrast */
.page-casino__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

/* Light background color for sections for contrast */
.page-casino__light-bg {
  background-color: #f0f0f0;
  color: #1A202C;
}

/* Ensure all text within .page-casino has sufficient contrast */
.page-casino h1, .page-casino h2, .page-casino h3, .page-casino h4, .page-casino h5, .page-casino h6 {
  color: #FFD700; /* Accent for headings */
}

.page-casino p, .page-casino li, .page-casino__card-text, .page-casino__feature-text, .page-casino__strategy-text {
  color: #e0e0e0; /* Light grey for body text on dark background */
}

/* Overrides for light background sections */
.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__section-description,
.page-casino__light-bg .page-casino__card-title .page-casino__card-link,
.page-casino__light-bg .page-casino__card-text,
.page-casino__light-bg .page-casino__game-card .page-casino__card-title,
.page-casino__light-bg .page-casino__game-card .page-casino__card-text,
.page-casino__light-bg .page-casino__feature-title,
.page-casino__light-bg .page-casino__feature-text,
.page-casino__light-bg .page-casino__promo-card .page-casino__card-title .page-casino__card-link,
.page-casino__light-bg .page-casino__promo-card .page-casino__card-text,
.page-casino__light-bg .page-casino__strategy-title .page-casino__card-link,
.page-casino__light-bg .page-casino__strategy-text,
.page-casino__light-bg .page-casino__faq-question h3,
.page-casino__light-bg .page-casino__faq-answer p {
  color: #1A202C; /* Dark text for light backgrounds */
}

.page-casino__light-bg .page-casino__category-card,
.page-casino__light-bg .page-casino__game-card,
.page-casino__light-bg .page-casino__feature-item,
.page-casino__light-bg .page-casino__promo-card,
.page-casino__light-bg .page-casino__strategy-item,
.page-casino__light-bg .page-casino__faq-item {
  background-color: #ffffff; /* White background for cards/items on light section */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__light-bg .page-casino__faq-question {
  background-color: #f8f8f8;
}
.page-casino__light-bg .page-casino__faq-question:hover {
  background-color: #e8e8e8;
}
.page-casino__light-bg .page-casino__faq-toggle {
  color: #1A202C;
}