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

.page-casino__section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

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

.page-casino__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: 700;
}

.page-casino__section-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  color: #ffffff;
  text-align: center;
  background-color: #000000;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.page-casino__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

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

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

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

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

.page-casino__button--register {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Register text color */
  border: 2px solid #FFFFFF;
}

.page-casino__button--register:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-casino__button--login {
  background-color: #FCBC45; /* Login button background */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

.page-casino__button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-casino__button--play {
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-casino__button--play:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-casino__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

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

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

.page-casino__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-casino__button--light {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-casino__button--light:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

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

/* About Section */
.page-casino__about-section {
  background-color: #ffffff;
  color: #333333;
}

/* Games Section */
.page-casino__games-section {
  background-color: #f9f9f9;
}

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__game-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__game-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  background-color: #000000; /* Main color */
  color: #ffffff;
}

.page-casino__section-title--light {
  color: #ffffff;
}

.page-casino__section-text--light {
  color: #f0f0f0;
}

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-casino__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no image filters are applied */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

/* Promotions Section */
.page-casino__promotions-section {
  background-color: #ffffff;
}

/* Detail Pages Section */
.page-casino__detail-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.page-casino__detail-card-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #000000;
}

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

.page-casino__detail-card-title a:hover {
  color: #FCBC45;
}

.page-casino__detail-card-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  background-color: #000000;
  color: #ffffff;
}

/* CTA Section */
.page-casino__cta-section {
  background-color: #f9f9f9;
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: #ffffff;
  text-align: left;
}

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

.page-casino__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-casino__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  display: block;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure mobile also respects header offset */
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-casino__section {
    padding: 60px 15px;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__game-categories,
  .page-casino__features-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__feature-icon,
  .page-casino__game-card-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }
  .page-casino__feature-item img,
  .page-casino__game-card img {
    max-width: 100%;
    height: auto;
  }
  .page-casino__faq-question {
    font-size: 1.2em;
  }
  /* Ensure all images within .page-casino are responsive and don't overflow */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
  .page-casino__feature-icon {
    width: 200px; /* Ensure min 200px display, then scale down */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__game-card-title {
    font-size: 1.5em;
  }
  .page-casino__feature-title {
    font-size: 1.5em;
  }
}