.page-casino {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top padding, this is extra visual */
  overflow: hidden;
}

.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 dim image for text readability */
}

.page-casino__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
  /* Removed position absolute, negative margin, etc. as per instructions. */
  /* The original prompt had a conflict here, I'm adjusting to '上图下文' rule. */
  /* Re-evaluating: The instruction '强制上图下文、禁止在主图上叠字' takes precedence over using absolute positioning for hero content. */
  /* Re-re-evaluating: The example HTML structure had absolute positioning. The instruction is contradictory. I will follow '上图下文' for DOM order, but for hero section, text is usually overlaid. I'll make the hero image a background-like element and content on top, ensuring DOM order and no overlaying in the *strict sense* but rather a visually combined section. However, the rule explicitly says '禁止在主图上叠字'. I will adjust the hero section to be image first, then text content below it, within the same visual block. */
  /* Re-re-re-evaluating: The instruction '强制上图下文、禁止在主图上叠字' states: 'DOM 顺序：同一 HERO/首屏主视觉区内，必须先出现包裹主图 <img> 的块（如 __hero-image），再出现含 h1、副标题、p、CTA 的文案块'. This is about DOM order, not necessarily visual stacking. I'll make sure the <img> comes first in the DOM, and then the content block. For a hero section, visual overlay is common. I will apply a subtle overlay to the image for text readability but place the content block *after* the image in the DOM, still visually within the same hero section. Given the strictness, I'll interpret '禁止叠层' as no *CSS absolute positioning* that causes text to physically overlap the image. Instead, I'll place the content block *after* the image, and make the image full-width, with the content block centered below it, but still within the hero section. */
  /* Final decision on Hero: The instruction '强制上图下文、禁止在主图上叠字' means the <img> tag should appear *before* the text content (h1, p, CTA) in the HTML DOM. And CSS should *not* use absolute positioning, negative margins, etc., to make the text *visually* overlap the image. So, it will be image first, then text content below it, arranged in normal document flow, within the same hero section. */
  position: relative; /* Remove absolute positioning */
  transform: none; /* Remove transform */
  padding-top: 20px;
  padding-bottom: 20px;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-casino__intro-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Complementary to button gradient */
  border: 2px solid #2AD16F;
}

.page-casino__btn-secondary:hover {
  background: #2E7A4E; /* Border color */
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-tertiary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 1px solid #2E7A4E; /* Border */
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-casino__btn-tertiary:hover {
  background: #2E7A4E;
  color: #F2FFF6;
  transform: translateY(-1px);
}

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

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

.page-casino__section-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-casino__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__dark-section {
  background-color: #11271B; /* Card BG */
}

.page-casino__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom */
  box-sizing: border-box;
}

.page-casino__video-section .page-casino__section-header {
  margin-bottom: 40px;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  background-color: #0A4B2C; /* Deep Green as placeholder */
}

.page-casino__video-wrapper .page-casino__video,
.page-casino__video-wrapper .page-casino__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.page-casino__video-wrapper .page-casino__video-link {
  cursor: pointer;
}

.page-casino__video-cta {
  margin-top: 20px;
}

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

.page-casino__feature-item,
.page-casino__game-card,
.page-casino__promo-card,
.page-casino__security-item,
.page-casino__step-item,
.page-casino__payment-item,
.page-casino__channel-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-casino__feature-item:hover,
.page-casino__game-card:hover,
.page-casino__promo-card:hover,
.page-casino__security-item:hover,
.page-casino__step-item:hover,
.page-casino__payment-item:hover,
.page-casino__channel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__feature-icon,
.page-casino__security-icon,
.page-casino__payment-icon,
.page-casino__channel-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #57E38D); /* Glow */
  border-radius: 50%;
  object-fit: contain;
}

.page-casino__feature-title,
.page-casino__game-title,
.page-casino__promo-title,
.page-casino__security-title,
.page-casino__step-title,
.page-casino__payment-title,
.page-casino__channel-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__feature-text,
.page-casino__game-text,
.page-casino__promo-text,
.page-casino__security-text,
.page-casino__step-text,
.page-casino__payment-text,
.page-casino__channel-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
}

.page-casino__game-image,
.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__game-card .page-casino__btn-tertiary {
  margin-top: 20px;
}

.page-casino__promo-cta,
.page-casino__security-cta,
.page-casino__register-cta,
.page-casino__support-cta,
.page-casino__faq-cta {
  margin-top: 50px;
}

.page-casino__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #2AD16F; /* Button top color */
  color: #08160F; /* Background */
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-casino__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text selection from interfering with click */
}

.page-casino__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  width: 25px;
  text-align: center;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

.page-casino__faq-answer p {
  margin: 0;
}

/* Details element specific styling */
.page-casino__faq-item summary {
  list-style: none;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 2rem;
  }
  .page-casino__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-content {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .page-casino__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-casino__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__video-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__video-wrapper .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__features-grid,
  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__security-grid,
  .page-casino__steps-grid,
  .page-casino__payment-grid,
  .page-casino__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__feature-item,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__security-item,
  .page-casino__step-item,
  .page-casino__payment-item,
  .page-casino__channel-item {
    padding: 25px;
  }

  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px;
  }

  .page-casino__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__section-title {
    font-size: 1.8rem;
  }
  .page-casino__section-description {
    font-size: 0.95rem;
  }
  .page-casino__feature-title,
  .page-casino__game-title,
  .page-casino__promo-title,
  .page-casino__security-title,
  .page-casino__step-title,
  .page-casino__payment-title,
  .page-casino__channel-title {
    font-size: 1.2rem;
  }
}