/* style/casino.css */

/* Base Styles for the Casino Page */
.page-casino {
  color: #333333; /* Dark text for light body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #0A2463; /* Primary brand color */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

/* Buttons */
.page-casino__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-casino__btn--primary {
  background-color: #E3B505; /* Accent color */
  color: #0A2463; /* Primary brand color */
}

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

.page-casino__btn--secondary {
  background-color: #0A2463; /* Primary brand color */
  color: #E3B505; /* Accent color */
  border: 2px solid #E3B505;
}

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

.page-casino__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-casino__btn--large {
  padding: 15px 35px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-casino__link {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0;
  margin-bottom: 60px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for aesthetic */
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-casino__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  z-index: 10;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: #E3B505; /* Accent color for title */
  line-height: 1.2;
}

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

.page-casino__hero-buttons .page-casino__btn {
  margin: 0 10px;
}

/* About Section */
.page-casino__about-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 60px;
}

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

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

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

.page-casino__feature-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-casino__feature-text {
  color: #666666;
}

/* Game Categories Section */
.page-casino__games-category-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-casino__game-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.page-casino__game-category--reverse {
  flex-direction: row-reverse;
}

.page-casino__category-title {
  font-size: 2em;
  color: #0A2463;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

.page-casino__category-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-casino__category-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* Ensure max width is not too small */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image height */
}

.page-casino__category-text {
  flex: 1.5;
  min-width: 300px;
  color: #444444;
}

.page-casino__category-text p {
  margin-bottom: 15px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 60px;
}

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

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

.page-casino__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-casino__promo-title {
  font-size: 1.4em;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-casino__promo-description {
  color: #666666;
  margin-bottom: 20px;
}

.page-casino__promotions-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

/* Security Section */
.page-casino__security-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-casino__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* Ensure max width is not too small */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image height */
}

.page-casino__security-text {
  flex: 1.5;
  min-width: 300px;
  color: #444444;
}

.page-casino__security-text p {
  margin-bottom: 15px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 60px;
}

.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__faq-question {
  font-size: 1.25em;
  color: #0A2463;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
}

.page-casino__faq-answer {
  color: #555555;
  font-size: 1em;
  padding-left: 10px;
  border-left: 3px solid #E3B505;
  margin-top: 15px;
}

.page-casino__faq-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: #0A2463; /* Primary brand color */
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  margin: 60px auto;
  max-width: 1200px;
}

.page-casino__cta-title {
  font-size: 2.8em;
  color: #E3B505; /* Accent color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-casino__hero-content {
    width: 90%;
    padding: 15px;
  }
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons .page-casino__btn {
    margin: 10px 0;
    width: 80%;
  }
  .page-casino__features-grid,
  .page-casino__promo-cards {
    grid-template-columns: 1fr;
  }
  .page-casino__game-category,
  .page-casino__game-category--reverse,
  .page-casino__security-content {
    flex-direction: column;
  }
  .page-casino__category-content {
    flex-direction: column;
  }
  .page-casino__category-image,
  .page-casino__security-image {
    width: 100%;
    max-width: none; /* Allow full width on mobile */
    height: auto;
    max-width: 100%; /* Ensure content images don't overflow */
    min-height: 200px; /* Enforce minimum image height */
  }
  .page-casino__promo-image {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure content images don't overflow */
    min-height: 200px; /* Enforce minimum image height */
  }
  /* Enforce max-width: 100%; height: auto; for all content images on mobile */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__category-title {
    font-size: 1.6em;
  }
  .page-casino__cta-title {
    font-size: 1.8em;
  }
  .page-casino__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.6em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__section-intro {
    font-size: 0.9em;
  }
  .page-casino__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-casino__cta-title {
    font-size: 1.6em;
  }
  .page-casino__cta-description {
    font-size: 0.9em;
  }
}

/* Ensure all images within .page-casino are at least 200px wide/high */
.page-casino img:not(.page-casino__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Hero image might be larger, but ensure it's not tiny */
.page-casino__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Override specific element sizes if they violate the 200px rule */
.page-casino__promo-image {
    min-width: 200px; /* Explicitly set for promo cards */
    min-height: 200px; /* Explicitly set for promo cards */
}

.page-casino__category-image {
    min-width: 200px; /* Explicitly set for category images */
    min-height: 200px; /* Explicitly set for category images */
}

.page-casino__security-image {
    min-width: 200px; /* Explicitly set for security image */
    min-height: 200px; /* Explicitly set for security image */
}