.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--dark-background-1); /* Inherited from shared, actual body background */
}

/* Ensure main content area respects header offset */
.page-casino__hero-section {
  padding-top: var(--header-offset, 120px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Adjust as needed */
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary color for hero */
  padding-bottom: 60px;
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

.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;
  box-sizing: border-box;
  text-align: center;
}

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

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

.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-casino__dark-bg .page-casino__section-title::after {
  background-color: #EA7C07;
}

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

.page-casino__centered-text {
  text-align: center;
}

.page-casino__introduction-section,
.page-casino__promotions-section,
.page-casino__tutorial-video-section,
.page-casino__cta-section {
  padding: 80px 0;
  color: #333333;
  background-color: #FFFFFF;
}

.page-casino__game-categories-section,
.page-casino__why-choose-us-section,
.page-casino__faq-section {
  padding: 80px 0;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary color */
}

.page-casino__dark-section {
  color: #ffffff;
  background-color: #26A9E0;
}

.page-casino__light-bg {
  color: #333333;
  background-color: #FFFFFF;
}

.page-casino__dark-bg {
  color: #ffffff;
  background-color: #26A9E0;
}

/* Game Grid */
.page-casino__game-grid,
.page-casino__promo-grid,
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-casino__game-card,
.page-casino__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card-image,
.page-casino__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-card-title,
.page-casino__promo-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-card-title a,
.page-casino__promo-card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-casino__game-card-title a:hover,
.page-casino__promo-card-title a:hover {
  color: #EA7C07;
}

.page-casino__game-card-text,
.page-casino__promo-card-text {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__game-button,
.page-casino__promo-button {
  margin-top: auto;
  margin-left: 15px;
  margin-right: 15px;
}

/* Features Section */
.page-casino__feature-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

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

/* Video Section */
.page-casino__tutorial-video-section {
  padding-bottom: 80px;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 50px auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07;
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-casino__faq-item[open] .page-casino__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 10px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 500px !important;
  padding-top: 10px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  content: '−';
}

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

.page-casino__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-casino__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #333333;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

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

  .page-casino__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
  }

  .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: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
  }

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

  .page-casino__section-description {
    font-size: 0.95em;
  }

  .page-casino__introduction-section,
  .page-casino__promotions-section,
  .page-casino__tutorial-video-section,
  .page-casino__cta-section,
  .page-casino__game-categories-section,
  .page-casino__why-choose-us-section,
  .page-casino__faq-section {
    padding: 60px 0;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item {
    padding: 15px;
  }

  .page-casino__game-card-title,
  .page-casino__promo-card-title {
    font-size: 1.3em;
  }

  .page-casino__game-card-text,
  .page-casino__promo-card-text {
    font-size: 0.9em;
  }

  .page-casino__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-casino__feature-title {
    font-size: 1.2em;
  }

  .page-casino__video-wrapper {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

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

  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

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

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__cta-buttons,
  .page-casino__hero-section,
  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__features-grid,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

  .page-casino__tutorial-video-section {
    padding-top: 60px !important; /* Adjust as needed for mobile */
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__cta-title {
    font-size: 1.6em;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    font-size: 0.95em;
  }
}