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

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

.page-casino__hero-section {
  background-color: #007BFF; /* Primary color */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-casino__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFC107; /* Secondary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-casino__hero-image {
  display: block;
  width: 100%;
  max-width: 1920px; /* Ensure image doesn't overflow */
  height: auto;
  margin-top: 40px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 180px;
}

.page-casino__button--primary {
  background-color: #FFC107; /* Secondary color */
  color: #007BFF; /* Primary color for text */
  border: 2px solid #FFC107;
}

.page-casino__button--primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__button--secondary:hover {
  background-color: #FFC107;
  color: #007BFF; /* Primary color */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__button--centered {
  display: block;
  margin: 40px auto 0;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #007BFF; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  position: relative;
}

.page-casino__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFC107; /* Secondary color */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-casino__subsection-title {
  font-size: 1.8em;
  color: #007BFF; /* Primary color */
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
}

.page-casino__text-content {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #555555;
  text-align: justify;
}

.page-casino__image-content {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

.page-casino__about-section,
.page-casino__game-categories-section,
.page-casino__promotions-section,
.page-casino__why-choose-section,
.page-casino__faq-section,
.page-casino__cta-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eeeeee;
}

.page-casino__about-section {
  background-color: #ffffff;
}

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

.page-casino__card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.page-casino__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

.page-casino__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-casino__card-title a {
  color: #007BFF; /* Primary color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
  color: #FFC107; /* Secondary color */
}

.page-casino__card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-casino__benefit-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: #333333;
  border-left: 5px solid #007BFF; /* Primary color accent */
  transition: transform 0.3s ease;
}

.page-casino__benefit-item:hover {
  transform: translateY(-5px);
}

.page-casino__benefit-item strong {
  color: #007BFF;
}

.page-casino__faq-accordion {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.page-casino__faq-question {
  font-size: 1.2em;
  color: #007BFF; /* Primary color */
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question::after {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  color: #FFC107; /* Secondary color */
}

.page-casino__faq-question.active::after {
  content: '-';
}

.page-casino__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-casino__faq-answer p {
  margin-bottom: 20px;
  color: #555555;
}

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

.page-casino__cta-section {
  background-color: #007BFF; /* Primary color */
  color: #ffffff;
  text-align: center;
  padding-bottom: 0;
}

.page-casino__cta-section .page-casino__section-title {
  color: #FFC107;
}

.page-casino__cta-section .page-casino__text-content {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-casino__cta-image {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 60px auto 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

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

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

  .page-casino__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }

  .page-casino__hero-section {
    padding: 60px 15px 0;
  }

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

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

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

  .page-casino__button {
    width: 100%;
    max-width: 280px;
  }

  .page-casino__content-wrapper {
    padding: 0 15px;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-casino__text-content {
    font-size: 1em;
  }

  .page-casino__game-cards {
    grid-template-columns: 1fr;
  }

  .page-casino__card-image {
    height: 180px;
  }

  .page-casino__card-title {
    font-size: 1.3em;
  }

  .page-casino__benefits-list {
    grid-template-columns: 1fr;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-casino__faq-answer.active {
    max-height: 250px; /* Allow more height for mobile content */
    padding: 10px 20px 15px;
  }

  .page-casino__image-content,
  .page-casino__cta-image,
  .page-casino__card-image,
  .page-casino__hero-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
  }
  
  /* Ensure no horizontal overflow */
  .page-casino {
    overflow-x: hidden;
  }
  .page-casino__content-wrapper {
    max-width: 100%;
  }
}

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

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

  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-casino__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}