.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF5E1); /* Default text color, will be overridden by light/dark bg */
  background-color: var(--bg-color, #B71C1C); /* Default background color */
}

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

/* Text colors based on background */
.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-casino__dark-bg,
.page-casino__dark-section {
  background-color: #B71C1C;
  color: #FFF5E1;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: inherit;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__text-block {
  margin-bottom: 1em;
  color: inherit;
}

.page-casino__text-block--center {
  text-align: center;
}

.page-casino__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-casino__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-casino__text-content {
  flex: 1;
}

.page-casino__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__image,
.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 50px;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.page-casino__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-casino__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFF5E1;
  line-height: 1.2;
}

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

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

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

.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: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: #7A0E0E;
  color: #FFD86A;
  border: 2px solid #FFD86A;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
  background: #FFD86A;
  color: #7A0E0E;
  border-color: #FFD86A;
  transform: translateY(-2px);
}

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

.page-casino__game-tile {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
}

.page-casino__game-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent grid */
  object-fit: cover;
  border-bottom: 1px solid #7A0E0E;
  margin-bottom: 15px;
}

.page-casino__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD86A;
  padding: 0 15px;
}

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

/* Payment Section */
.page-casino__payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.1em;
  color: #FFF5E1;
  text-align: center;
  width: 150px;
}

.page-casino__payment-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #D32F2F; /* Card BG */
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-casino__promo-item {
  background-color: #D32F2F; /* Card BG */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #FFF5E1;
  border-left: 5px solid #FFD86A;
}

.page-casino__promo-item strong {
  color: #FFD86A;
}

/* Support Channels */
.page-casino__support-channels {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-casino__support-item {
  background-color: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333333;
  border-left: 5px solid #C91F17;
}

.page-casino__support-item strong {
  color: #C91F17;
}

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

.page-casino__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
  border: 1px solid #7A0E0E;
}

.page-casino__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #FFD86A;
}

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

.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: 0 25px 20px;
  font-size: 1em;
  color: #FFF5E1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  padding: 60px 20px;
}

.page-casino__conclusion-section .page-casino__section-title {
  margin-bottom: 20px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-casino__hero-section {
    padding-bottom: 40px;
  }

  .page-casino__main-title {
    font-size: 2.8em;
  }

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

  .page-casino__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-casino__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-casino__game-image {
    height: 220px;
  }

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

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

  .page-casino__image-wrapper {
    order: -1; /* For reverse layout, image still comes first on mobile */
  }

  .page-casino__payment-item {
    width: 120px;
  }

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

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

  .page-casino__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-casino__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-casino__hero-image {
    object-fit: contain !important; /* Mobile hero image: contain, not cover */
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  /* Buttons */
  .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: 12px 20px;
    font-size: 1em;
  }

  .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;
    margin-bottom: 25px;
  }

  /* Game Grid */
  .page-casino__game-grid {
    grid-template-columns: 1fr 1fr; /* Two columns on mobile */
    gap: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-casino__game-tile {
    padding-bottom: 15px;
  }

  .page-casino__game-image {
    height: auto; /* Allow height to adjust */
    aspect-ratio: 1/1; /* Maintain aspect ratio */
    object-fit: cover;
  }

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

  .page-casino__game-description {
    font-size: 0.9em;
  }

  /* General Images and Containers */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Content Wrapper */
  .page-casino__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-casino__content-wrapper--reverse .page-casino__image-wrapper {
    order: -1; /* Ensure image is always above text on mobile for both layouts */
  }

  /* Payment Methods */
  .page-casino__payment-methods {
    gap: 15px;
  }

  .page-casino__payment-item {
    width: 100px;
    font-size: 0.9em;
  }

  .page-casino__payment-icon {
    width: 70px;
    height: 70px;
  }

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

  .page-casino__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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