/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Matches body background from shared.css */
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__section-intro {
  font-size: 18px;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  color: #ffffff;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-casino__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD700; /* Highlight H1 with auxiliary color */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

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

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Auxiliary color for primary CTA */
  color: #1A202C; /* Dark text for auxiliary background */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-casino__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-casino__cta-button--secondary {
  background: #1A202C; /* Primary color for secondary CTA */
  color: #FFD700; /* Auxiliary color for secondary CTA text */
  border: 2px solid #FFD700;
}

.page-casino__cta-button--secondary:hover {
  background: #0d1017;
  color: #ffd700;
  border-color: #ffd700;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #1A202C; /* Primary color for section background */
}

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

.page-casino__feature-item {
  background: #2d3748; /* Slightly lighter dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__feature-item img {
  max-width: 100%;
  height: auto;
  width: 200px; /* Ensure minimum size */
   /* Ensure minimum size */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__feature-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

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

/* Game Categories Section */
.page-casino__game-categories-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-casino__game-card {
  background: #1A202C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #2d3748;
}

.page-casino__game-card-content {
  padding: 25px;
  text-align: center;
}

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

.page-casino__game-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-casino__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__card-button:hover {
  background: #e6c200;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-casino__promo-image {
  flex: 1; /* Allow image to take available space */
  min-width: 400px; /* Minimum width for image */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-casino__promo-list {
  flex: 1; /* Allow list to take available space */
  min-width: 400px; /* Minimum width for list */
}

.page-casino__promo-item {
  background: #2d3748;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-casino__promo-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-casino__promo-button {
  display: inline-block;
  padding: 8px 20px;
  background: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__promo-button:hover {
  background: #e6c200;
}

/* Payment Section */
.page-casino__payment-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-casino__payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__payment-item {
  background: #1A202C;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  width: 200px;
  transition: transform 0.3s ease;
}

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

.page-casino__payment-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  filter: brightness(1.2);
}

.page-casino__payment-item p {
  font-size: 16px;
  color: #FFD700;
  font-weight: bold;
}

.page-casino__payment-note {
  font-size: 15px;
  color: #aaaaaa;
  text-align: center;
  margin-top: 40px;
  line-height: 1.6;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  padding: 80px 0;
  background-color: #1A202C;
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #1A202C;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px;
  opacity: 0;
  color: #cccccc;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: #2d3748; /* Slightly different background for active answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A202C;
  border: 1px solid #2d3748;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #2d3748;
  border-color: #3f4a5c;
}

.page-casino__faq-question:active {
  background: #0d1017;
}

/* 问题标题样式 */
.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Auxiliary color for FAQ questions */
}

/* 切换图标 */
.page-casino__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

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

/* Final CTA Section */
.page-casino__final-cta-section {
  padding: 80px 0;
  background-color: #1A202C;
  text-align: center;
}

.page-casino__cta-button--large {
  padding: 18px 50px;
  font-size: 24px;
  border-radius: 10px;
  background: #FFD700;
  color: #1A202C;
}

.page-casino__cta-button--large:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 44px;
  }
  .page-casino__hero-description {
    font-size: 18px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__section-intro {
    font-size: 16px;
  }
  .page-casino__promo-content {
    flex-direction: column;
  }
  .page-casino__promo-image,
  .page-casino__promo-list {
    min-width: unset;
    width: 100%;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .page-casino__hero-section {
    height: auto;
    min-height: 450px;
    padding: 30px 15px;
    padding-top: var(--header-offset, 120px) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-casino__hero-content {
    padding: 15px;
  }

  .page-casino__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-casino__cta-button,
  .page-casino__cta-button--secondary {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__section-title {
    font-size: 28px;
  }

  .page-casino__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-casino__why-choose-section,
  .page-casino__game-categories-section,
  .page-casino__promotions-section,
  .page-casino__payment-section,
  .page-casino__responsible-gaming-section,
  .page-casino__faq-section,
  .page-casino__final-cta-section {
    padding: 50px 0;
  }

  .page-casino__feature-item,
  .page-casino__game-card,
  .page-casino__promo-item,
  .page-casino__payment-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-casino__feature-item img {
    
    
  }

  .page-casino__game-card img {
    height: 200px;
  }

  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-casino__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }
  
  .page-casino__cta-button--large {
    font-size: 20px;
    padding: 15px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* General image responsive rules for mobile */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers for images/content are well-behaved */
  .page-casino__container,
  .page-casino__features-grid,
  .page-casino__game-grid,
  .page-casino__promo-content,
  .page-casino__payment-methods,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
}