.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Assuming body background from shared.css */
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFCC00; /* Accent color for main titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #FFCC00; /* Accent color */
  color: #003366; /* Dark text for contrast */
  border: 2px solid transparent;
}

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

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFCC00; /* Accent color text */
  border: 2px solid #FFCC00;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: 0; /* Assuming shared.css handles body padding-top: var(--header-offset) */
  margin-top: 0;
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-casino__hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.page-casino__hero-content {
  flex: 1;
  max-width: 60%;
}

.page-casino__hero-title {
  font-size: 48px;
  color: #FFCC00;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-casino__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-casino__hero-image-wrapper {
  flex: 1;
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Dark Background Sections */
.page-casino__dark-bg {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 0;
}

/* Features Section */
.page-casino__features-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Body background */
  color: #ffffff;
}

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

.page-casino__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

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

.page-casino__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Games Showcase Section */
.page-casino__games-showcase {
  padding: 60px 0;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-casino__game-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-casino__game-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
  margin-bottom: 15px;
}

.page-casino__game-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop to fit */
  display: block;
}

.page-casino__game-title {
  font-size: 20px;
  color: #FFCC00;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px;
}

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

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__promo-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-casino__promo-title {
  font-size: 22px;
  color: #FFCC00;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-casino__promo-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Get Started Section */
.page-casino__get-started-section {
  padding: 60px 0;
}

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

.page-casino__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__step-icon {
  font-size: 48px;
  font-weight: bold;
  color: #FFCC00;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px solid #FFCC00;
  border-radius: 50%;
}

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

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

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-casino__responsible-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-casino__responsible-text {
  flex: 1;
}

.page-casino__responsible-text p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-casino__responsible-image-wrapper {
  flex: 1;
  max-width: 50%;
}

.page-casino__responsible-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

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

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

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 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;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0;
}

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

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

.page-casino__faq-item.active .page-casino__faq-question {
  border-bottom-color: transparent;
  border-radius: 5px 5px 0 0;
}

.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-casino__faq-question:active {
  background: rgba(255, 255, 255, 0.3);
}

/* 问题标题样式 */
.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: #FFCC00;
}

/* 切换图标 */
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  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); /* Change to X or rotate */
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: #FFCC00; /* Accent color for CTA */
  color: #003366; /* Dark text for contrast */
  text-align: center;
}

.page-casino__cta-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #003366;
}

.page-casino__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #003366;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__cta-section .page-casino__btn-primary {
  background-color: #003366;
  color: #FFCC00;
  border-color: transparent;
}

.page-casino__cta-section .page-casino__btn-primary:hover {
  background-color: #002244;
}

.page-casino__cta-section .page-casino__btn-secondary {
  background-color: transparent;
  color: #003366;
  border-color: #003366;
}

.page-casino__cta-section .page-casino__btn-secondary:hover {
  background-color: #003366;
  color: #FFCC00;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 40px;
  }
  .page-casino__hero-description {
    font-size: 16px;
  }
  .page-casino__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }
  .page-casino__hero-image-wrapper {
    max-width: 80%;
  }
  .page-casino__hero-buttons {
    justify-content: center;
  }
  .page-casino__responsible-content {
    flex-direction: column-reverse;
  }
  .page-casino__responsible-image-wrapper {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino__container,
  .page-casino__hero-container,
  .page-casino__features-grid,
  .page-casino__games-grid,
  .page-casino__promo-grid,
  .page-casino__steps-grid,
  .page-casino__responsible-content,
  .page-casino__faq-list,
  .page-casino__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* General image responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Hero Specific */
  .page-casino__hero-section {
    padding: 40px 0 !important;
  }
  .page-casino__hero-title {
    font-size: 32px;
  }
  .page-casino__hero-description {
    font-size: 15px;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__hero-buttons .page-casino__btn-primary,
  .page-casino__hero-buttons .page-casino__btn-secondary {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Section Titles */
  .page-casino__section-title {
    font-size: 28px;
  }
  .page-casino__section-description {
    font-size: 16px;
  }

  /* Card grids */
  .page-casino__features-grid,
  .page-casino__games-grid,
  .page-casino__promo-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
  }

  /* Game card image specific */
  .page-casino__game-image-wrapper {
    height: 180px;
  }
  .page-casino__game-title {
    font-size: 18px;
  }
  .page-casino__game-description {
    font-size: 14px;
  }

  /* Promo card image specific */
  .page-casino__promo-image-wrapper {
    height: 200px;
  }
  .page-casino__promo-title {
    font-size: 20px;
  }
  .page-casino__promo-description {
    font-size: 15px;
  }

  /* Responsible Gaming */
  .page-casino__responsible-text p {
    font-size: 15px;
  }
  .page-casino__responsible-image-wrapper {
    max-width: 100%;
  }

  /* FAQ specific */
  .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;
  }

  /* CTA specific */
  .page-casino__cta-title {
    font-size: 30px;
  }
  .page-casino__cta-description {
    font-size: 16px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__cta-buttons .page-casino__btn-primary,
  .page-casino__cta-buttons .page-casino__btn-secondary {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
}