/* General Styling */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Custom Background color */
}

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

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-casino__section-description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Buttons */
.page-casino__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-casino__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-casino__btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-casino__btn--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF; /* Border color */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-casino__btn--secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #2F6BFF;
}

.page-casino__btn--large {
  padding: 15px 35px;
  font-size: 18px;
}

/* Dark Section Styling */
.page-casino__dark-section {
  background-color: #2F6BFF; /* Primary Color */
  color: #ffffff;
}

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

.page-casino__dark-section .page-casino__section-description,
.page-casino__dark-section .page-casino__section-description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #F4F7FB; /* Background color */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-casino__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 20px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-casino__about-section .page-casino__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-casino__about-section p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

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

.page-casino__game-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-casino__game-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-casino__game-card-description {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-casino__promo-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-casino__promo-card-description {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-casino__center-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-casino__benefit-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__benefit-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-casino__benefit-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-casino__why-choose-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 50px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #F4F7FB; /* Background color */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Primary Color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 25px;
  background: #F4F7FB; /* Background color */
  border-radius: 0 0 12px 12px;
  color: #1F2D3D; /* Text Main */
}
.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

/* Final CTA Section */
.page-casino__cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Image Global Responsive Styling */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 30px;
  }
  .page-casino__section-description {
    font-size: 16px;
  }
  .page-casino__hero-content {
    padding: 0 15px;
  }
  .page-casino__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-casino__hero-description {
    font-size: 18px;
  }
  .page-casino__game-card-title,
  .page-casino__promo-card-title,
  .page-casino__benefit-title {
    font-size: 20px;
  }
  .page-casino__game-card-description,
  .page-casino__promo-card-description,
  .page-casino__benefit-description {
    font-size: 15px;
  }
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 20px;
    font-size: 17px;
  }
  .page-casino__faq-qtext {
    font-size: 17px;
  }
  .page-casino__faq-toggle {
    font-size: 26px;
    margin-left: 15px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
  }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. Banner `__hero-section` */
  .page-casino__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }
  .page-casino__hero-image {
    object-fit: contain; /* Ensure image fits well */
    height: auto;
    max-height: 400px; /* Limit height on mobile */
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-casino__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  /* 2. 三链按钮 `__access-links` (General button responsiveness applies here) */
  .page-casino__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__btn--large {
    padding: 12px 20px;
    font-size: 16px;
  }

  /* 3. 五入口 `__category-lobby` (Placeholder for completeness, not used on this page) */
  /* This specific module is for homepage, but rule required for completeness. */
  /* If it were present: */
  /* .page-casino__category-lobby__grid { */
  /*   grid-template-columns: repeat(2, 1fr); */
  /*   gap: 15px; */
  /* } */
  /* .page-casino__category-card-link img { */
  /*   aspect-ratio: 1/1 !important; */
  /*   border: none !important; */
  /*   box-shadow: none !important; */
  /*   min-width: 200px !important; */
  /*   min-height: 200px !important; */
  /* } */

  /* 4. 博客滑块 `__blog-slider` (Placeholder for completeness, not used on this page) */
  /* This specific module is for homepage, but rule required for completeness. */
  /* If it were present: */
  /* .page-casino__blog-slider-track { */
  /*   scroll-snap-type: x mandatory; */
  /*   -webkit-overflow-scrolling: touch; */
  /*   overflow-x: scroll; */
  /*   padding-bottom: 20px; */
  /* } */
  /* .page-casino__blog-slider-track > * { */
  /*   scroll-snap-align: start; */
  /*   flex: 0 0 calc(100% - 30px); */
  /*   margin-right: 15px; */
  /* } */
  /* .page-casino__blog-slider-controls { */
  /*   display: flex; */
  /*   justify-content: center; */
  /*   margin-top: 20px; */
  /* } */

  /* 5. 通用图片与按钮 */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-casino__section,
  .page-casino__container,
  .page-casino__card,
  .page-casino__content-wrapper,
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__benefits-grid,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__section-description {
    font-size: 15px;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: auto;
  }
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__benefit-item {
    padding: 20px;
  }
  .page-casino__game-card-title {
    font-size: 20px;
  }
  .page-casino__promo-card-title {
    font-size: 18px;
  }
  .page-casino__benefit-title {
    font-size: 20px;
  }

  /* FAQ Mobile */
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 15px;
    font-size: 16px;
  }
  .page-casino__faq-qtext {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 24px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }
  .page-casino__faq-answer p {
    font-size: 15px;
  }
}