/* style/casino.css */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-dark); /* Assuming shared.css sets --bg-dark to a dark color */
}

/* Hero Banner Section */
.page-casino__hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #CC0000 0%, #FFD700 100%); /* Brand colors for hero background */
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-casino__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-casino__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-casino__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border-color: #CC0000;
}

.page-casino__btn-primary:hover {
  background-color: #FFD700;
  color: #CC0000;
  border-color: #FFD700;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #CC0000;
  border-color: #ffffff;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 0;
}

.page-casino__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* General Section Styles */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #CC0000; /* Use brand color for titles */
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-casino__light-bg {
  background-color: #f9f9f9;
  padding: 60px 0;
  color: #333333;
}

.page-casino__dark-section {
  background-color: #1a1a1a; /* Dark background for contrast */
  padding: 60px 0;
  color: #ffffff;
}

.page-casino__dark-section .page-casino__section-title {
  color: #FFD700; /* Gold color for titles on dark background */
}

.page-casino__dark-section .page-casino__section-description {
  color: #cccccc;
}

/* Games Overview Section */
.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

.page-casino__category-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__category-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #CC0000;
}

.page-casino__category-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555555;
}

.page-casino__btn-text {
  color: #CC0000;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: #FFD700;
}

/* Why Choose Section */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  transition: background-color 0.3s ease;
}

.page-casino__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-casino__feature-item img {
  
  
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-casino__feature-description {
  font-size: 16px;
  color: #cccccc;
}

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

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

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

.page-casino__promo-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #CC0000;
}

.page-casino__promo-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #555555;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-casino__faq-question:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #CC0000;
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #333333;
  color: #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-casino__btn-link {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-casino__btn-link:hover {
  color: #CC0000;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
  padding: 60px 0;
  text-align: center;
}

.page-casino__responsible-gaming .page-casino__description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Global Image Styles */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Default object-fit, can be overridden */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__game-categories,
  .page-casino__features-grid,
  .page-casino__promo-cards {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-banner {
    padding: 60px 15px;
  }
  .page-casino__main-title {
    font-size: 32px;
  }
  .page-casino__description {
    font-size: 16px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-casino__light-bg,
  .page-casino__dark-section,
  .page-casino__faq-section,
  .page-casino__responsible-gaming {
    padding: 40px 0;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__section-title {
    font-size: 28px;
  }
  .page-casino__section-description {
    font-size: 15px;
  }

  .page-casino__game-categories,
  .page-casino__features-grid,
  .page-casino__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__category-card,
  .page-casino__feature-item,
  .page-casino__promo-card {
    padding: 20px;
  }
  .page-casino__category-title {
    font-size: 20px;
  }
  .page-casino__feature-title,
  .page-casino__promo-title {
    font-size: 20px;
  }
  .page-casino__category-text,
  .page-casino__feature-description,
  .page-casino__promo-description {
    font-size: 15px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-question h3 {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }
  .page-casino__faq-answer p {
    font-size: 15px;
  }

  /* Force all images to be responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers adapt */
  .page-casino__container,
  .page-casino__hero-content,
  .page-casino__cta-buttons,
  .page-casino__game-categories,
  .page-casino__features-grid,
  .page-casino__promo-cards,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Specific override for any potential fixed-width elements that might break layout */
  .page-casino__category-card img,
  .page-casino__feature-item img,
  .page-casino__promo-card img {
    max-width: 100% !important; /* Ensure these specific images also scale down */
    height: auto !important;
    width: auto !important; /* Allow natural scaling if needed */
  }
}