/* style/casino.css */

/* Base styles for the page content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly setting for contrast calculation */
}

/* --- Section Styling --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 600px;
  overflow: hidden; /* Ensure video doesn't overflow */
}

.page-casino__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-casino__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff; /* White text for dark video background */
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.page-casino__introduction-section,
.page-casino__download-guide-section,
.page-casino__payment-section,
.page-casino__faq-section {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__security-support-section,
.page-casino__cta-section {
  padding: 80px 20px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for brand color background */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-casino__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__sub-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: inherit;
}

/* --- Buttons --- */
.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;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Special case for secondary button on light background */
.page-casino__light-bg .page-casino__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-casino__light-bg .page-casino__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* --- Games Grid --- */
.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on blue background */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: #ffffff;
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
  filter: none !important; /* Ensure no CSS filter */
}

.page-casino__game-card-title {
  font-size: 1.5em;
  margin: 15px 15px 10px;
  color: #ffffff;
}

.page-casino__game-card-link {
  color: #ffffff;
  text-decoration: none;
}

.page-casino__game-card-link:hover {
  text-decoration: underline;
}

.page-casino__game-card-description {
  font-size: 0.95em;
  padding: 0 15px;
  color: #f0f0f0;
}

/* --- Guide List --- */
.page-casino__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  font-size: 1.05em;
  color: #333333;
}

.page-casino__guide-list li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.page-casino__guide-list strong {
  color: #26A9E0; /* Highlight steps with brand color */
}

/* --- Promotions List --- */
.page-casino__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino__promotion-list li {
  background-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  line-height: 1.5;
}

.page-casino__promotion-list strong {
  color: #FFFFFF;
}

/* --- Payment List --- */
.page-casino__payment-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  font-size: 1.05em;
  color: #333333;
}

.page-casino__payment-list li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.page-casino__payment-list strong {
  color: #26A9E0;
}

/* --- Flex Layout for Sections --- */
.page-casino__flex-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__flex-reverse {
  flex-direction: row-reverse;
}

.page-casino__content-block,
.page-casino__image-block {
  flex: 1;
}

.page-casino__responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: none !important; /* Ensure no CSS filter */
}

/* --- Two Column Grid --- */
.page-casino__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* --- CTA Section --- */
.page-casino__cta-content {
  text-align: center;
}

/* --- FAQ Section --- */
.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #f0f0f0;
}

.page-casino__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #333333;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  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, padding 0.3s ease;
  background-color: #f8f8f8;
}

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

.page-casino__faq-text {
  margin: 0;
  color: #555555;
  font-size: 1em;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__flex-row,
  .page-casino__flex-reverse {
    flex-direction: column;
  }
  .page-casino__grid-two-cols {
    grid-template-columns: 1fr;
  }
  .page-casino__hero-video {
    filter: brightness(0.4); /* Slightly darker for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile */
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Mobile image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-casino video,
  .page-casino__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Containers for images/videos */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__video-wrapper,
  .page-casino__image-block,
  .page-casino__game-card,
  .page-casino__cta-buttons,
  .page-casino__hero-cta-buttons,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Adjust padding for content sections on mobile */
  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__download-guide-section,
  .page-casino__promotions-section,
  .page-casino__payment-section,
  .page-casino__security-support-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 40px 0; /* Adjust to allow container padding to take effect */
  }
  
  .page-casino__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino__game-card-image {
    height: 200px; /* Smaller fixed height for mobile cards */
  }
}

/* Ensure content area images are not too small */
/* This rule applies to any img within .page-casino, except shared header/footer */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
}

/* Override min-width/height for mobile if needed for specific cases, but general rule is to be large */
@media (max-width: 768px) {
  .page-casino img {
    min-width: unset;
    min-height: unset;
  }
}

/* Color contrast fixes */
.page-casino__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-casino__light-bg {
  color: #333333; /* Light background with dark text */
}

/* Specific button colors for contrast */
.page-casino__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
}
.page-casino__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* On light background */
  border-color: #26A9E0;
}
.page-casino__dark-bg .page-casino__btn-secondary {
  color: #ffffff; /* On dark background */
  border-color: #ffffff;
}

/* No CSS filters on images */
.page-casino img {
  filter: none !important;
}

/* Ensure video does not have filters */
.page-casino video {
    filter: none !important;
}