.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #121212 requires light text */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-casino__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast on sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__light-bg {
  background-color: #2c2c2c; /* Light background for dark theme - use a dark grey */
  color: #f0f0f0;
  padding: 60px 0;
}

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

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

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #121212 0%, #26A9E0 100%); /* Mix brand color with dark background */
  color: #ffffff;
  text-align: center;
}

.page-casino__hero-content {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  text-align: left;
  max-width: 600px;
}

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

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

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

.page-casino__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* 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: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-casino__game-card,
.page-casino__promotion-card,
.page-casino__benefit-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-casino__game-card:hover,
.page-casino__promotion-card:hover,
.page-casino__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__game-card-image,
.page-casino__promotion-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__game-card-title,
.page-casino__promotion-card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__game-card-description,
.page-casino__promotion-card-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  text-align: center;
}

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

.page-casino__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  max-width: 100%; /* Ensure video does not overflow */
}

.page-casino__video-cta .page-casino__btn-primary,
.page-casino__video-cta .page-casino__btn-secondary {
  margin: 0 10px;
}

/* Why Choose Section */
.page-casino__benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(38, 169, 224, 0.1); /* Light brand color background */
  border: 1px solid #26A9E0;
}

.page-casino__benefit-icon {
  width: 64px; /* Minimum 200px for content images, but icons can be smaller if decorative */
  height: 64px;
  margin-bottom: 15px;
  min-width: 64px; /* Ensure min size for icons */
  min-height: 64px; /* Ensure min size for icons */
  object-fit: contain;
  display: block;
}

.page-casino__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__benefit-description {
  font-size: 0.95em;
  color: #cccccc;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Dark background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
  .page-casino__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-casino__hero-content {
    text-align: center;
    padding: 20px 15px;
  }

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

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

  .page-casino__hero-buttons {
    justify-content: center;
    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: 12px 15px;
  }

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

  .page-casino__game-grid,
  .page-casino__promotion-grid,
  .page-casino__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-casino__game-card,
  .page-casino__promotion-card,
  .page-casino__benefit-item {
    padding: 20px;
  }

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

  .page-casino__video-wrapper,
  .page-casino__video-link,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-casino__video-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__live-casino-section {
    padding-top: var(--header-offset, 120px) !important; /* Important for video section */
  }

  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__game-grid,
  .page-casino__promotion-grid,
  .page-casino__benefits-grid,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  .page-casino__section-description {
    padding: 0 15px;
  }

  /* Content images must not be too small */
  .page-casino__game-card-image,
  .page-casino__promotion-card-image {
    min-width: 200px !important;
    min-height: 150px !important; /* Adjusted for aspect ratio, but still large */
  }

  /* Ensure icons are not affected by generic img rules meant for content images */
  .page-casino__benefit-icon {
    
    
    min-
    min-
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}