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

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

.page-casino__section-padding {
  padding: 80px 0;
}

.page-casino__section-title {
  font-size: 2.8em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

.page-casino__sub-title {
  font-size: 1.8em;
  color: #003366;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-casino__sub-title--light {
  color: #FFCC00;
}

.page-casino__text--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
  color: #ffffff;
  text-align: center;
  background-color: #003366; /* Fallback background */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Overlay for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text */
  border-radius: 10px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFCC00;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-casino__button--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

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

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

.page-casino__button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
}

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

.page-casino__button--light:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
}

/* About Section */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-casino__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 5px solid #003366;
}

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

.page-casino__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Games Section */
.page-casino__section--dark-bg {
  background-color: #003366;
  color: #ffffff;
}

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

.page-casino__game-category-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-casino__game-category-title {
  font-size: 1.4em;
  color: #FFCC00;
  margin-bottom: 15px;
  flex-grow: 1; /* Allows title to take available space */
}

.page-casino__game-category-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Promotions Section */
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-casino__promo-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-bottom: 5px solid #FFCC00;
}

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

.page-casino__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

/* Banking Section */
.page-casino__banking-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-casino__banking-details {
  flex: 1;
}

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

.page-casino__banking-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Mobile Section */
.page-casino__mobile-content {
  display: flex;
  flex-direction: row-reverse; /* Image on right */
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

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

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

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

/* Responsible Gaming Section */
.page-casino__responsible-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 700px;
}

.page-casino__responsible-list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFCC00;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-casino__responsible-gaming-section .page-casino__button {
  margin-top: 30px;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  font-size: 1.3em;
  color: #003366;
  padding: 20px 25px;
  cursor: pointer;
  margin: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-casino__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #FFCC00;
  transition: transform 0.3s ease;
}

.page-casino__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  color: #555555;
  font-size: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.page-casino__faq-answer.active {
  max-height: 200px; /* Adjust as needed for content */
}

.page-casino__button--margin-top {
  margin-top: 40px;
}

/* CTA Section */
.page-casino__section--cta-bg {
  background-color: #003366;
  text-align: center;
  padding: 100px 0;
}

.page-casino__cta-content {
  max-width: 800px;
}

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

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

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

@media (max-width: 768px) {
  .page-casino__section-padding {
    padding: 60px 0;
  }

  .page-casino__hero-section {
    min-height: 500px;
    padding: 30px 15px;
  }

  .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 {
    width: 100%;
    padding: 12px 20px;
  }

  .page-casino__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-casino__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

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

  .page-casino__banking-content,
  .page-casino__mobile-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .page-casino__banking-image-wrapper,
  .page-casino__mobile-image-wrapper {
    order: -1; /* Image on top for mobile */
  }

  .page-casino__game-category-image {
    height: 200px;
  }

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-casino img {
    max-width: 100%; 
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-casino__game-category-image {
    min-width: unset;
    min-height: unset;
  }
}

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

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

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

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