/* style/casino.css */
.page-casino {
  color: #ffffff; /* Body background is dark (#0a0a0a), so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on shared body background */
}

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

/* Sections */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

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

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

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-casino__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  /* No fixed font-size, rely on clamp if needed, otherwise responsive behavior */
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-casino__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9em;
}

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

.page-casino__about-section,
.page-casino__registration-section,
.page-casino__security-support-section,
.page-casino__conclusion-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__faq-section {
  padding: 60px 0;
  background-color: rgba(38, 169, 224, 0.1); /* Semi-transparent brand color for dark body */
  color: #ffffff; /* Light text for dark/semi-transparent background */
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles on light backgrounds */
}

.page-casino__dark-bg .page-casino__section-title {
  color: #ffffff; /* White for titles on dark/semi-transparent backgrounds */
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #666666; /* Slightly darker for light background */
}

.page-casino__dark-bg .page-casino__section-description {
  color: #f0f0f0; /* Lighter for dark background */
}

.page-casino__content-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.page-casino__text-block {
  flex: 1;
  min-width: 300px;
}

.page-casino__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for subtitles on light backgrounds */
}

.page-casino__dark-bg .page-casino__sub-title {
  color: #ffffff; /* White for subtitles on dark/semi-transparent backgrounds */
}

.page-casino__text-block p,
.page-casino__text-block ul li {
  margin-bottom: 10px;
  color: #333333; /* Dark text for light background */
}

.page-casino__dark-bg .page-casino__text-block p,
.page-casino__dark-bg .page-casino__text-block ul li {
  color: #f0f0f0; /* Light text for dark background */
}

.page-casino__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
}

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

.page-casino__game-card,
.page-casino__promo-card,
.page-casino__step-card {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for light card background */
}

.page-casino__game-image,
.page-casino__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-casino__game-title,
.page-casino__promo-title,
.page-casino__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 15px 20px 10px;
  color: #26A9E0;
}

.page-casino__game-description,
.page-casino__promo-description {
  font-size: 0.95em;
  margin: 0 20px 15px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-link,
.page-casino__promo-card .page-casino__btn-link,
.page-casino__step-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  align-self: flex-start;
  width: auto; /* Allow buttons to size to content */
}

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

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

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

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

.page-casino__faq-answer {
  padding: 15px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-casino__faq-item summary {
  list-style: none;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  text-align: center;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-casino__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-casino__section-title {
    font-size: 2em;
  }

  .page-casino__sub-title {
    font-size: 1.5em;
  }

  .page-casino__content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-casino__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-link,
  .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__about-section,
  .page-casino__registration-section,
  .page-casino__security-support-section,
  .page-casino__conclusion-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__faq-section {
    padding: 40px 0;
  }

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

  .page-casino__sub-title {
    font-size: 1.3em;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__game-card .page-casino__btn-link,
  .page-casino__promo-card .page-casino__btn-link,
  .page-casino__step-card .page-casino__btn-primary {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

  .page-casino__section-title {
    font-size: 1.5em;
  }

  .page-casino__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-casino__faq-answer {
    padding: 12px 15px;
  }
}

/* Ensure images do not use filters */
.page-casino img {
  filter: none; /* Reset any potential filter, except for hero image brightness overlay */
}

.page-casino__hero-image {
  filter: brightness(0.5); /* Specific filter for hero image for text contrast */
}