/* style/casino.css */
.page-casino {
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Explicitly set for consistency */
}

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

.page-casino__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text on dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight title with accent color */
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__btn {
  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;
  cursor: pointer;
  border: none;
}

.page-casino__btn--register {
  background-color: #FFFFFF; /* Register button background */
  color: #000000; /* Register button text */
}

.page-casino__btn--register:hover {
  background-color: #f0f0f0;
}

.page-casino__btn--login {
  background-color: #FCBC45; /* Login button background */
  color: #000000; /* Login button text */
}

.page-casino__btn--login:hover {
  background-color: #e0a53b;
}

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

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

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

.page-casino__game-categories,
.page-casino__featured-section,
.page-casino__why-choose,
.page-casino__download-app,
.page-casino__faq-section {
  padding: 60px 0;
}

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

.page-casino__game-card,
.page-casino__promo-card,
.page-casino__benefit-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #eee;
}

.page-casino__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px 15px;
  color: #000000;
}

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

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

.page-casino__card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn--play,
.page-casino__btn--claim,
.page-casino__btn--download,
.page-casino__btn--learn-more,
.page-casino__btn--view-all-faq {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

.page-casino__btn--play:hover,
.page-casino__btn--claim:hover,
.page-casino__btn--download:hover,
.page-casino__btn--learn-more:hover,
.page-casino__btn--view-all-faq:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-casino__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: contain; /* Contain to show full image without cropping */
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-casino__benefit-text {
  color: #555555;
  padding: 0 15px;
}

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

.page-casino__download-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background-color: #000000; /* Dark background for download section */
  color: #FFFFFF;
  padding: 60px;
  border-radius: 12px;
}

.page-casino__download-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-casino__download-content .page-casino__section-title {
  color: #FFFFFF;
  text-align: left;
}

.page-casino__download-content .page-casino__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-casino__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-casino__app-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  position: relative;
  padding-left: 25px;
}

.page-casino__app-features li::before {
  content: '✓';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__app-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  min-height: 200px;
}

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

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

.page-casino__faq-question {
  background-color: #f9f9f9;
  color: #000000;
  padding: 18px 25px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-casino__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-casino__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

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

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

.page-casino__faq-answer.active {
  max-height: 200px; /* Adjust based on content */
  padding: 15px 25px;
}

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

.page-casino__faq-answer a {
  color: #000000;
  text-decoration: underline;
}

.page-casino__faq-answer a:hover {
  color: #FCBC45;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__game-grid,
  .page-casino__featured-grid,
  .page-casino__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
  }
  .page-casino__hero-section {
    padding: 60px 20px;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.9em;
  }
  .page-casino__game-grid,
  .page-casino__featured-grid,
  .page-casino__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__card-image, .page-casino__benefit-image, .page-casino__app-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-casino__download-container {
    flex-direction: column;
    padding: 40px 20px;
  }
  .page-casino__download-content .page-casino__section-title,
  .page-casino__download-content .page-casino__section-description {
    text-align: center;
  }
  .page-casino__app-features {
    padding-left: 25px;
  }
  .page-casino__app-features li {
    padding-left: 0;
  }
  .page-casino__app-features li::before {
    display: none;
  }
  /* Ensure no horizontal scrolling */
  .page-casino {
    overflow-x: hidden;
  }
  .page-casino__container {
    padding: 15px;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-answer.active {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__btn {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-casino__card-image {
    height: 200px;
  }
}