/* style/casino.css */
.page-casino {
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Explicitly set to match default body */
}

.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Desktop and mobile header offset */
  padding-bottom: 60px;
  text-align: center;
  color: #ffffff;
  background-color: #3A1C71; /* Main brand color for hero background */
}

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

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

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #D72638; /* Accent color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

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

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

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

.page-casino__btn--primary {
  background-color: #D72638; /* Accent color */
  color: #ffffff;
}

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

.page-casino__btn--secondary {
  background-color: #3A1C71; /* Main brand color */
  color: #ffffff;
  border: 2px solid #D72638;
}

.page-casino__btn--secondary:hover {
  background-color: #2e165a;
  transform: translateY(-2px);
}

.page-casino__btn--small {
  padding: 10px 20px;
  font-size: 1em;
}

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

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

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

.page-casino__section-title {
  font-size: 2.8em;
  color: #3A1C71; /* Main brand color */
  text-align: center;
  margin-bottom: 20px;
  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: #D72638; /* Accent color */
  border-radius: 2px;
}

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

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

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

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

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

.page-casino__feature-card, .page-casino__category-card, .page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__feature-card:hover, .page-casino__category-card:hover, .page-casino__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-icon, .page-casino__category-image, .page-casino__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-casino__feature-icon {
  width: 100%; /* Ensure it takes full width of its container */
  min-height: 200px; /* Enforce min height for feature icons */
}

.page-casino__feature-title, .page-casino__category-title, .page-casino__promo-title {
  font-size: 1.6em;
  color: #3A1C71;
  margin-bottom: 15px;
}

.page-casino__feature-description, .page-casino__category-description, .page-casino__promo-description {
  font-size: 0.95em;
  line-height: 1.7;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__bg-dark {
  background-color: #3A1C71;
  color: #ffffff;
}

.page-casino__bg-accent {
  background-color: #D72638;
  color: #ffffff;
}

.page-casino__link {
  color: #D72638;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__link:hover {
  color: #bb1f2e;
  text-decoration: underline;
}

.page-casino__download-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

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

.page-casino__download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-casino__download-guide-text {
  margin-top: 20px;
  font-size: 0.95em;
  color: #666666;
}

.page-casino__promo-card .page-casino__btn {
  margin-top: auto; /* Push button to the bottom */
}

.page-casino__all-promos-cta {
  text-align: center;
  margin-top: 50px;
}

.page-casino__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-casino__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
  font-size: 1.3em;
  color: #3A1C71;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-casino__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  color: #D72638;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
}

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

.page-casino__more-faq-cta {
  text-align: center;
  margin-top: 50px;
}

.page-casino__cta-final {
  background: linear-gradient(135deg, #D72638, #bb1f2e);
  text-align: center;
  color: #ffffff;
}

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

.page-casino__cta-content .page-casino__section-title::after {
  background-color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
    padding-bottom: 40px;
  }

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

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

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

  .page-casino__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-casino__section-padding {
    padding: 60px 15px;
  }

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

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

  .page-casino__feature-grid, .page-casino__category-grid, .page-casino__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__download-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Mobile content area images must be constrained */
  .page-casino img {
    max-width: 100%;
    height: auto;
    /* Ensure no image falls below 200px display size here */
    min-width: 200px; 
    min-height: 200px; 
  }
  
  /* Specific overrides for smaller images if they exist, to ensure min 200px */
  .page-casino__feature-icon, 
  .page-casino__category-image, 
  .page-casino__promo-image, 
  .page-casino__download-image {
    width: 100%; /* Ensure these take full width but respect max-width */
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Re-enforce min size for mobile */
    min-height: 200px; /* Re-enforce min size for mobile */
  }

  .page-casino__download-guide-text {
    font-size: 0.9em;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
  }

  .page-casino__faq-answer {
    font-size: 0.9em;
  }
}

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

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