.page-casino {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-casino__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold accent for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.page-casino__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  font-size: 1.1em;
}

.page-casino__button--primary {
  background-color: #FFD700; /* Gold accent */
  color: #3F0071; /* Dark purple text */
  border: 2px solid #FFD700;
}

.page-casino__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-casino__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-casino__button--secondary:hover {
  background-color: #3F0071; /* Dark purple background */
  color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(63, 0, 113, 0.4);
}

.page-casino__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-casino__button--large {
  padding: 18px 40px;
  font-size: 1.25em;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  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.4); /* Darken image for text readability */
}

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

.page-casino__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-casino__feature-item {
  background-color: rgba(63, 0, 113, 0.6); /* Semi-transparent main color */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__feature-icon {
  width: 250px; /* Enforce minimum size */
  height: 167px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 2px solid #FFD700;
}

.page-casino__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

.page-casino__about-cta {
  text-align: center;
  margin-top: 50px;
  font-size: 1.2em;
  color: #f0f0f0;
}

.page-casino__about-cta a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.page-casino__about-cta a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #1a0033;
}

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

.page-casino__category-card {
  background-color: rgba(255, 215, 0, 0.1); /* Light gold transparent */
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__category-image {
  width: 350px; /* Enforce minimum size */
  height: 263px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-casino__category-title {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-casino__category-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__category-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-casino__category-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Featured Games */
.page-casino__featured-games {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-casino__game-card {
  background-color: rgba(63, 0, 113, 0.6); /* Semi-transparent main color */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__game-image {
  width: 350px; /* Enforce minimum size */
  height: 263px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-casino__game-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__game-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #1a0033;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 215, 0, 0.1); /* Light gold transparent */
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__promo-image {
  width: 350px; /* Enforce minimum size */
  height: 233px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-casino__promo-title {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-casino__promo-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promo-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-casino__promo-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-casino__promotions-cta {
  text-align: center;
  margin-top: 50px;
  font-size: 1.2em;
  color: #f0f0f0;
}

.page-casino__promotions-cta a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.page-casino__promotions-cta a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Detail Pages List Section */
.page-casino__detail-pages-list {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-casino__detail-card {
  background-color: rgba(63, 0, 113, 0.6); /* Semi-transparent main color */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__detail-title {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-casino__detail-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__detail-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-casino__detail-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 20px;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: #1a0033;
  text-align: center;
}

.page-casino__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 215, 0, 0.1); /* Light gold transparent */
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__cta-image {
  width: 600px; /* Enforce minimum size for CTA image */
  height: 338px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 3px solid #FFD700;
}

.page-casino__cta-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.page-casino__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3.5em;
  }
  .page-casino__section-title {
    font-size: 2.5em;
  }
  .page-casino__cta-title {
    font-size: 2.8em;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-casino__hero-section {
    padding: 60px 15px;
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-casino__about-section, .page-casino__games-section, .page-casino__featured-games, .page-casino__promotions-section, .page-casino__detail-pages-list, .page-casino__cta-section {
    padding: 50px 0;
  }
  .page-casino__features-grid, .page-casino__categories-grid, .page-casino__featured-grid, .page-casino__promo-grid, .page-casino__detail-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__feature-icon, .page-casino__category-image, .page-casino__game-image, .page-casino__promo-image {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-width: 100%;
  }
  .page-casino__cta-title {
    font-size: 2.2em;
  }
  .page-casino__cta-description {
    font-size: 1em;
  }
  .page-casino__cta-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  /* CRITICAL: Mobile content area image constraint */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__cta-title {
    font-size: 1.8em;
  }
  .page-casino__cta-content {
    padding: 30px 20px;
  }
}