/* style/casino.css */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.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-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-casino__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-casino__button--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Register color */
  border: 2px solid #FFFFFF;
}

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

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

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

.page-casino__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

.page-casino__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-casino__games-overview,
.page-casino__why-choose,
.page-casino__promotions,
.page-casino__get-started,
.page-casino__mobile-gaming,
.page-casino__responsible-gaming,
.page-casino__faq,
.page-casino__cta-final {
  padding: 60px 0;
}

.page-casino__games-overview {
  background-color: #f8f8f8;
}

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

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

.page-casino__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

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

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

.page-casino__game-card-description {
  color: #666666;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__why-choose {
  background-color: #FFFFFF;
}

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

.page-casino__feature-item {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-casino__feature-item p {
  color: #666666;
}

.page-casino__promotions {
  background-color: #000000;
  color: #ffffff;
}

.page-casino__promotions .page-casino__section-title,
.page-casino__promotions .page-casino__section-intro {
  color: #ffffff;
}

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

.page-casino__promo-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__promo-card-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__promo-card-title a {
  color: #FCBC45;
  text-decoration: none;
}

.page-casino__promo-card-title a:hover {
  color: #e0a53b;
}

.page-casino__promo-card-description {
  color: #cccccc;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__get-started {
  background-color: #f8f8f8;
}

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

.page-casino__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-casino__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FCBC45;
  margin-bottom: 15px;
}

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

.page-casino__step-item p {
  color: #666666;
  margin-bottom: 20px;
}

.page-casino__mobile-gaming {
  background-color: #FFFFFF;
}

.page-casino__mobile-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-casino__mobile-content {
  flex: 1;
}

.page-casino__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-casino__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__mobile-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23FCBC45"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #555555;
}

.page-casino__responsible-gaming {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}

.page-casino__responsible-gaming .page-casino__section-title,
.page-casino__responsible-gaming .page-casino__section-intro,
.page-casino__responsible-gaming p {
  color: #ffffff;
}

.page-casino__responsible-gaming p {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-casino__faq {
  background-color: #f8f8f8;
}

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

.page-casino__faq-question {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-casino__faq-question::after {
  content: '+';
  font-size: 1.2em;
  font-weight: bold;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  color: #666666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 200px; /* Adjust as needed */
  margin-top: 15px;
}

.page-casino__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
}

.page-casino__faq-answer a:hover {
  text-decoration: underline;
}

.page-casino__cta-final {
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-casino__cta-final .page-casino__section-title,
.page-casino__cta-final .page-casino__section-intro {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2.2em;
  }
  .page-casino__mobile-flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-casino__hero-section {
    padding: 60px 0;
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-casino__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-casino__games-overview,
  .page-casino__why-choose,
  .page-casino__promotions,
  .page-casino__get-started,
  .page-casino__mobile-gaming,
  .page-casino__responsible-gaming,
  .page-casino__faq,
  .page-casino__cta-final {
    padding: 40px 0;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 180px;
  }
  .page-casino__mobile-image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all images within .page-casino are responsive and don't overflow */
  .page-casino img {
    max-width: 100%;
    height: auto; /* Important for preventing overflow and maintaining aspect ratio */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    min-width: unset; /* Allow these specific images to scale down if needed, but overall img rule applies */
    min-height: unset;
  }
}

@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.5em;
  }
  .page-casino__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-casino__game-card-title,
  .page-casino__promo-card-title,
  .page-casino__feature-title,
  .page-casino__step-title,
  .page-casino__faq-question {
    font-size: 1.4em;
  }
}