.page-casino {
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  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__hero-section {
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark background */
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

.page-casino__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
}

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

.page-casino__btn--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-casino__btn--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-casino__btn--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.page-casino__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
}

.page-casino__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-casino__category-card, .page-casino__promo-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__category-card img, .page-casino__promo-card img {
  width: 100%;
  height: 250px; /* Consistent height for card images */
  object-fit: cover;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce minimum image size */
}

.page-casino__card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-casino__card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino__btn--view-details, .page-casino__btn--claim-bonus, .page-casino__btn--info, .page-casino__btn--download, .page-casino__btn--contact {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 0.95em;
  min-width: 150px;
}

.page-casino__btn--view-details:hover, .page-casino__btn--claim-bonus:hover, .page-casino__btn--info:hover, .page-casino__btn--download:hover, .page-casino__btn--contact:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-casino__security-links, .page-casino__guide-actions, .page-casino__support-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.page-casino__faq-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  margin-top: 60px;
}

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

.page-casino__faq-question {
  font-size: 1.2em;
  color: #000000;
  margin-bottom: 10px;
}

.page-casino__faq-answer {
  font-size: 1em;
  color: #555555;
}

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

@media (max-width: 768px) {
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-actions {
    flex-direction: column;
  }
  .page-casino__btn {
    min-width: unset;
    width: 100%;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__text-content {
    font-size: 0.95em;
  }
  .page-casino__category-card img, .page-casino__promo-card img {
    height: 200px;
    min-height: 200px; /* Enforce minimum image size */
    max-width: 100%;
    height: auto;
  }
  .page-casino__game-categories, .page-casino__promo-cards {
    grid-template-columns: 1fr;
  }
  .page-casino__security-links, .page-casino__guide-actions, .page-casino__support-links {
    flex-direction: column;
  }
  /* Ensure all images within .page-casino are responsive and don't overflow */
  .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__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__card-title {
    font-size: 1.3em;
  }
  .page-casino__faq-question {
    font-size: 1.1em;
  }
  .page-casino__faq-item {
    padding: 20px;
  }
}