/* style/casino.css */
/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-casino__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff; /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Section Styling */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Default for dark sections */
}

.page-casino__sub-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
}

.page-casino__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0; /* Light grey for readability on dark background */
}

/* Dark Background Sections */
.page-casino__dark-bg {
  background-color: #017439; /* Main brand color for sections */
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__sub-title {
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__text-block {
  color: #f0f0f0;
}

/* Light Background Sections */
.page-casino__light-bg {
  background-color: #ffffff; /* Auxiliary color for sections */
  color: #333333; /* Dark text for light background */
}

.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__sub-title {
  color: #017439; /* Brand green for titles on light background */
}

.page-casino__light-bg .page-casino__text-block {
  color: #555555; /* Darker grey for readability on light background */
}

/* Card Styling */
.page-casino__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-casino__light-bg .page-casino__card {
  background: #f8f8f8; /* Light background for cards in light sections */
  color: #333333;
  border: 1px solid #e0e0e0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
  background-color: #C30808; /* Red for primary actions (Register/Login) */
  color: #FFFF00; /* Yellow font for primary buttons */
  border: 2px solid #C30808;
}

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

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

.page-casino__dark-bg .page-casino__btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.page-casino__light-bg .page-casino__btn-secondary {
  border-color: #017439; /* Brand green border on light background */
  color: #017439; /* Brand green text on light background */
}

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

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

/* About Section */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  max-width: 400px; /* Example size */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

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

.page-casino__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #017439; /* Brand green on light background */
}

.page-casino__game-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555555;
  flex-grow: 1; /* Make descriptions take equal height */
}

/* Promotions Section */
.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__promo-image {
  width: 100%;
  height: 280px; /* Fixed height for consistency */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-casino__promo-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Mobile Section */
.page-casino__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-casino__mobile-image {
  width: 50%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__mobile-text {
  width: 50%;
  color: #333333;
}

.page-casino__mobile-text .page-casino__sub-title {
  color: #017439;
}

.page-casino__mobile-text p {
  color: #555555;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  text-align: center;
  padding: 80px 20px;
}

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

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

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 20px;
}

.page-casino__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background: #f8f8f8; /* Light background for FAQ items */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  color: #017439; /* Brand green for questions */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #eaf7ed; /* Light hover effect */
}

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

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

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f8f8f8;
  color: #555555;
}

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

.page-casino__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__mobile-image,
  .page-casino__mobile-text {
    width: 100%;
  }
  .page-casino__mobile-text {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    height: auto;
    min-height: 600px;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-cta-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__text-block {
    font-size: 1em;
  }
  .page-casino__feature-icon,
  .page-casino__game-image,
  .page-casino__promo-image,
  .page-casino__mobile-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce min size even on mobile */
    min-height: 200px;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important; /* Adjust padding for mobile */
  }
}