.page-casino {
  color: #333333; /* Default text color for light body background */
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-casino__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for the hero content */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken background image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 40px 20px;
}

.page-casino__hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  color: #FFD700; /* Gold for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-casino__button--primary {
  background-color: #FFD700; /* Gold */
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-casino__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-casino__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

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

.page-casino__section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #1A202C;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.page-casino__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 0;
  border-radius: 2px;
}

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

.page-casino__game-categories-section, .page-casino__why-choose-section, .page-casino__featured-games-section, .page-casino__deep-content-section, .page-casino__detail-pages-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-casino__game-categories-section:nth-of-type(even), .page-casino__why-choose-section:nth-of-type(even), .page-casino__featured-games-section:nth-of-type(even), .page-casino__deep-content-section:nth-of-type(even), .page-casino__detail-pages-section:nth-of-type(even) {
  background-color: #ffffff;
}

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

.page-casino__category-card, .page-casino__feature-item, .page-casino__game-card, .page-casino__detail-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__category-card:hover, .page-casino__feature-item:hover, .page-casino__game-card:hover, .page-casino__detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-casino__category-image, .page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 30px auto 20px;
}

.page-casino__category-title, .page-casino__feature-title, .page-casino__game-title, .page-casino__detail-card-title {
  font-size: 1.6rem;
  color: #1A202C;
  margin-bottom: 10px;
  padding: 0 15px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-casino__detail-card-title a {
  color: #1A202C;
  text-decoration: none;
}

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

.page-casino__category-description, .page-casino__feature-description, .page-casino__game-provider, .page-casino__detail-card-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino__button--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: auto; /* Push button to bottom */
}

.page-casino__button--play {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #1A202C;
}

.page-casino__button--play:hover {
  background-color: #333d4e;
  color: #FFD700;
}

.page-casino__sub-section-title {
  font-size: 2rem;
  color: #1A202C;
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 5px solid #FFD700;
  padding-left: 15px;
}

.page-casino__game-type-heading {
  font-size: 1.6rem;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 10px;
  padding-left: 20px;
}

.page-casino__deep-content-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #444444;
}

.page-casino__list {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 20px;
  color: #444444;
}

.page-casino__list li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.page-casino__list li strong {
  color: #1A202C;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-image {
    height: 600px; /* Adjust hero image height for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-casino__hero-container {
    min-height: 400px;
  }

  .page-casino__hero-image {
    height: 400px;
  }

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

  .page-casino__hero-description {
    font-size: 0.95rem;
  }

  .page-casino__button {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-casino__section-intro {
    font-size: 1rem;
  }

  .page-casino__category-image, .page-casino__game-image {
    height: 180px;
  }

  .page-casino__sub-section-title {
    font-size: 1.7rem;
  }

  .page-casino__game-type-heading {
    font-size: 1.4rem;
  }

  /* Ensure all images within .page-casino are responsive and don't overflow */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }

  .page-casino__container {
    padding: 20px 15px;
  }

  .page-casino__game-categories-section, .page-casino__why-choose-section, .page-casino__featured-games-section, .page-casino__deep-content-section, .page-casino__detail-pages-section {
    padding: 40px 0;
  }

  .page-casino__categories-grid, .page-casino__features-grid, .page-casino__games-grid, .page-casino__detail-card-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8rem;
  }

  .page-casino__hero-description {
    font-size: 0.9rem;
  }

  .page-casino__button {
    width: 100%;
  }

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

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

  .page-casino__game-type-heading {
    font-size: 1.2rem;
  }

  .page-casino__list {
    margin-left: 20px;
  }
}