.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* #F3F8FF */
  background-color: var(--deep-navy); /* #08162B */
}

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

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-casino__section-title--light {
  color: var(--gold); /* #F2C14E */
}

.page-casino__section-subtitle {
  font-size: 18px;
  color: var(--text-secondary); /* #AFC4E8 */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-casino__article-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary); /* #AFC4E8 */
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-casino__article-body p {
  margin-bottom: 15px;
}

.page-casino__article-body strong {
  color: var(--text-main); /* #F3F8FF */
}

.page-casino__article-figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--gold); /* #F2C14E */
  border: 2px solid var(--gold); /* #F2C14E */
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-casino__btn-secondary:hover {
  background: var(--gold); /* #F2C14E */
  color: var(--deep-navy); /* #08162B */
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
  transform: translateY(-2px);
}

.page-casino__btn-link {
  background: none;
  color: var(--gold); /* #F2C14E */
  border: none;
  padding: 8px 15px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  line-height: 0;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 15px 60px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-casino__hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 18px;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.page-casino__about-vwin-section {
  background-color: var(--deep-navy);
}

/* Game Categories Section */
.page-casino__game-categories-section {
  background-color: var(--card-bg); /* #10233F */
  border-top: 1px solid var(--divider); /* #1B3357 */
  border-bottom: 1px solid var(--divider); /* #1B3357 */
}

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

.page-casino__category-card {
  background: var(--deep-navy); /* #08162B */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__category-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__category-description {
  font-size: 15px;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

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

.page-casino__game-card {
  background: var(--card-bg); /* #10233F */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main); /* #F3F8FF */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 15px;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Promotions Section */
.page-casino__promotions-section {
  background-color: var(--card-bg); /* #10233F */
  border-top: 1px solid var(--divider); /* #1B3357 */
}

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

.page-casino__promotion-card {
  background: var(--deep-navy); /* #08162B */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promotion-description {
  font-size: 15px;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__view-all-promotions {
  text-align: center;
}

/* How to Play Section */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-casino__step-card {
  background: var(--card-bg); /* #10233F */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main); /* #F3F8FF */
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 15px;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security and Fairness Section */
.page-casino__security-fairness-section {
  background-color: var(--card-bg); /* #10233F */
  border-top: 1px solid var(--divider); /* #1B3357 */
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: var(--deep-navy);
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border); /* #244D84 */
  overflow: hidden;
  background: var(--card-bg); /* #10233F */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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;
}

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: rgba(var(--gold-rgb), 0.1); /* Slightly lighter hover */
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* #F3F8FF */
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold); /* #F2C14E */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 20px;
  background: var(--deep-navy); /* #08162B */
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 15px;
  line-height: 1.6;
}

/* CTA Section */
.page-casino__cta-section {
  background-color: var(--card-bg); /* #10233F */
  border-top: 1px solid var(--divider); /* #1B3357 */
}

.page-casino__cta-content {
  text-align: center;
}

.page-casino__cta-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-casino__cta-description {
  font-size: 18px;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* General Image Styles for content area */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General Button Container Styles */
.page-casino__hero-cta-buttons,
.page-casino__cta-buttons,
.page-casino__view-all-promotions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-casino__section-padding {
    padding: 50px 15px;
  }

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

  .page-casino__section-subtitle {
    font-size: 16px;
  }

  .page-casino__hero-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 12px 25px;
    font-size: 15px;
  }

  .page-casino__category-title,
  .page-casino__game-title,
  .page-casino__promotion-title,
  .page-casino__step-title {
    font-size: 20px;
  }

  .page-casino__category-description,
  .page-casino__game-description,
  .page-casino__promotion-description,
  .page-casino__step-description,
  .page-casino__article-body {
    font-size: 15px;
  }

  .page-casino__faq-qtext {
    font-size: 17px;
  }

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

  .page-casino__cta-description {
    font-size: 16px;
  }
}

@media (max-width: 849px) {
  .page-casino__hero-image {
    object-fit: contain !important; /* Ensure hero image is not cropped */
    aspect-ratio: unset !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .page-casino__section-padding {
    padding: 40px 15px;
  }

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

  .page-casino__section-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-casino__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }

  .page-casino__hero-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-link,
  .page-casino a[class*="button"],
  .page-casino a[class*="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__hero-cta-buttons .page-casino__btn-primary,
  .page-casino__hero-cta-buttons .page-casino__btn-secondary {
    width: 100%;
  }

  /* 产品展示图区域 & 通用图片与容器 */
  .page-casino__game-categories-grid,
  .page-casino__featured-games-grid,
  .page-casino__promotions-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__category-card,
  .page-casino__game-card,
  .page-casino__promotion-card,
  .page-casino__step-card {
    padding-bottom: 15px;
  }

  .page-casino__category-image,
  .page-casino__game-image,
  .page-casino__promotion-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-cta-buttons,
  .page-casino__cta-buttons,
  .page-casino__view-all-promotions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-casino__article-body {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 0 10px; /* Add slight horizontal padding */
  }
  
  .page-casino__article-figure {
    margin: 20px auto;
  }

  .page-casino__category-title,
  .page-casino__game-title,
  .page-casino__promotion-title,
  .page-casino__step-title {
    font-size: 18px;
  }

  .page-casino__category-description,
  .page-casino__game-description,
  .page-casino__promotion-description,
  .page-casino__step-description {
    font-size: 14px;
  }

  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 20px;
  }

  .page-casino__faq-qtext {
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
  }

  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }

  .page-casino__cta-title {
    font-size: 26px;
  }

  .page-casino__cta-description {
    font-size: 15px;
  }

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