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

.page-casino__hero-section {
  background-color: #1A2E44; /* Midnight Blue background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-casino__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-casino__hero-buttons {
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-casino__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #1A2E44; /* Midnight Blue text */
  border: 2px solid #FFD700;
}

.page-casino__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-casino__button--secondary:hover {
  background-color: #FFD700;
  color: #1A2E44;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Constrain image width */
  margin-top: 40px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #1A2E44;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-casino__why-choose-us,
.page-casino__game-categories,
.page-casino__promotions,
.page-casino__deep-dive,
.page-casino__download-app,
.page-casino__faq-section,
.page-casino__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.page-casino__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-casino__feature-card:hover {
  transform: translateY(-10px);
}

.page-casino__feature-icon {
  width: 100%; /* Ensure images take full width of card */
  max-width: 400px; /* Constrain max width for feature icons */
  height: auto;
  min-height: 200px; /* Enforce min height for content images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-casino__feature-title {
  font-size: 1.8em;
  color: #1A2E44;
  margin-bottom: 15px;
}

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

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

.page-casino__game-card,
.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-casino__game-card:hover,
.page-casino__promo-card:hover {
  transform: translateY(-10px);
}

.page-casino__game-image,
.page-casino__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Enforce min height for content images */
}

.page-casino__game-title,
.page-casino__promo-title {
  font-size: 1.6em;
  color: #1A2E44;
  padding: 15px 20px 5px;
}

.page-casino__game-title a,
.page-casino__promo-title a {
  text-decoration: none;
  color: inherit;
}

.page-casino__game-title a:hover,
.page-casino__promo-title a:hover {
  color: #FFD700;
}

.page-casino__game-description,
.page-casino__promo-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px;
}

.page-casino__button--small {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #FFD700;
  color: #1A2E44;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-casino__button--small:hover {
  background-color: #e6c200;
}

.page-casino__button--outline {
  background-color: transparent;
  color: #1A2E44;
  border: 2px solid #1A2E44;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  margin-top: 20px;
}

.page-casino__button--outline:hover {
  background-color: #1A2E44;
  color: #ffffff;
}

.page-casino__deep-dive-intro,
.page-casino__deep-dive-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #444444;
}

.page-casino__subsection-title {
  font-size: 2em;
  color: #1A2E44;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-casino__download-app {
  display: flex;
  align-items: center;
  background-color: #1A2E44;
  color: #ffffff;
  padding: 60px 40px;
  border-radius: 10px;
  gap: 40px;
}

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

.page-casino__download-content .page-casino__section-title {
  color: #FFD700;
  text-align: left;
}

.page-casino__download-content .page-casino__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-casino__download-content .page-casino__section-intro {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
}

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

.page-casino__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  min-height: 200px; /* Enforce min height for content images */
}

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

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

.page-casino__faq-question {
  background-color: #f9f9f9;
  color: #1A2E44;
  padding: 18px 25px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  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;
  transition: transform 0.3s ease;
}

.page-casino__faq-question.active {
  background-color: #FFD700;
  color: #1A2E44;
}

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

.page-casino__faq-answer {
  padding: 0 25px;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-casino__faq-answer p {
  padding: 15px 0;
  color: #555555;
}

.page-casino__cta-section {
  text-align: center;
  background-color: #f9f9f9;
  padding: 60px 20px;
  border-radius: 10px;
  margin-bottom: 60px;
}

.page-casino__cta-section .page-casino__section-title {
  margin-bottom: 20px;
}

.page-casino__cta-section .page-casino__section-intro {
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__download-app {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__download-content .page-casino__section-title,
  .page-casino__download-content .page-casino__section-intro {
    text-align: center;
  }
  .page-casino__download-content .page-casino__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 60px 15px;
  }
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
  }
  .page-casino__button {
    width: 100%;
    max-width: 300px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-intro {
    font-size: 0.95em;
  }
  .page-casino__why-choose-us,
  .page-casino__game-categories,
  .page-casino__promotions,
  .page-casino__deep-dive,
  .page-casino__download-app,
  .page-casino__faq-section,
  .page-casino__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-casino__feature-card,
  .page-casino__game-card,
  .page-casino__promo-card {
    padding: 20px;
  }
  .page-casino__game-image,
  .page-casino__promo-image {
    height: 200px;
  }
  .page-casino__deep-dive-intro,
  .page-casino__deep-dive-text {
    font-size: 1em;
  }
  .page-casino__subsection-title {
    font-size: 1.6em;
  }
  /* Enforce max-width for images in content area */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
  .page-casino__feature-icon,
  .page-casino__game-image,
  .page-casino__promo-image,
  .page-casino__download-image {
    min-width: 200px; /* Ensure images are not tiny */
    min-height: 200px; /* Ensure images are not tiny */
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}