.page-casino {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-casino__hero-container {
  position: relative;
  max-width: 1920px; /* Max width for hero content */
  margin: 0 auto;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)); /* Dark overlay for text readability */
  padding: 20px;
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 3em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-casino__hero-actions {
  display: flex;
  gap: 20px;
}

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #8B0000; /* Dark red auxiliary color */
}

.page-casino__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

.page-casino__button--primary {
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Dark red text */
  border: 2px solid #FFD700;
}

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

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

.page-casino__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
}

.page-casino__button--small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #8B0000;
  color: #FFD700;
  border: 1px solid #8B0000;
}

.page-casino__button--small:hover {
  background-color: #a00000;
  border-color: #a00000;
}

.page-casino__games-overview,
.page-casino__why-choose,
.page-casino__how-to-start,
.page-casino__promotions,
.page-casino__testimonials,
.page-casino__faq,
.page-casino__cta-download {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

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

.page-casino__game-card-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-casino__game-card-title a:hover {
  text-decoration: underline;
}

.page-casino__game-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__why-choose-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-casino__why-choose-content {
  flex: 1;
  min-width: 300px;
}

.page-casino__why-choose-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__why-choose-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino__feature-item {
  background-color: #fff;
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-item h3 {
  color: #8B0000;
  margin-top: 0;
  margin-bottom: 5px;
}

.page-casino__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__step-card h3 {
  color: #8B0000;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-casino__step-card p {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-image {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover;
}

.page-casino__promo-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-content h3 {
  color: #8B0000;
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-casino__promo-content p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-casino__testimonial-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #FFD700;
}

.page-casino__testimonial-text {
  font-style: italic;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-casino__testimonial-author {
  font-weight: bold;
  color: #8B0000;
}

.page-casino__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 20px;
}

.page-casino__faq-item h3 {
  color: #8B0000;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.page-casino__faq-item p {
  color: #555555;
}

.page-casino__cta-download {
  background-color: #8B0000;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
}

.page-casino__cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-casino__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-casino__cta-content .page-casino__section-title {
  color: #FFD700;
  text-align: left;
}

.page-casino__cta-content .page-casino__section-intro {
  color: #f0f0f0;
  text-align: left;
  margin-bottom: 30px;
}

.page-casino__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

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

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

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

@media (max-width: 768px) {
  .page-casino__hero-title {
    font-size: 2em;
  }

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

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

  .page-casino__button {
    width: 100%;
  }

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

  .page-casino__why-choose-container,
  .page-casino__cta-container {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__why-choose-content,
  .page-casino__cta-content {
    text-align: center;
  }

  .page-casino__cta-content .page-casino__section-title,
  .page-casino__cta-content .page-casino__section-intro {
    text-align: center;
  }

  /* Critical: Prevent content overflow for images */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }

  .page-casino {
    overflow-x: hidden;
  }
}

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

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

  .page-casino__button--primary,
  .page-casino__button--secondary {
    padding: 10px 20px;
  }

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

  .page-casino__game-categories,
  .page-casino__promo-grid,
  .page-casino__testimonial-grid,
  .page-casino__steps-container {
    grid-template-columns: 1fr;
  }

  .page-casino__game-card-image,
  .page-casino__promo-image {
    height: 150px;
  }

  .page-casino__step-icon {
    width: 120px;
    height: 120px;
  }

  .page-casino__testimonial-avatar {
    width: 60px;
    height: 60px;
  }

  .page-casino__cta-image {
    width: 80%;
  }
}