.page-casino {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-casino__dark-bg {
  background-color: #1a1a2e; /* Matches body background for consistency */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-casino__section-title {
  font-size: 2.8em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
  max-width: 60%;
}

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

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

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

.page-casino__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
  max-width: 40%;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Games Overview Section */
.page-casino__games-overview {
  padding: 80px 0;
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
}

.page-casino__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-casino__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-casino__game-title a:hover {
  text-decoration: underline;
}

.page-casino__game-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
  padding: 0 15px;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 30px;
}

.page-casino__cta-center .page-casino__btn-primary,
.page-casino__cta-center .page-casino__btn-secondary {
  margin: 0 10px;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 80px 0;
}

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

.page-casino__live-casino-text {
  flex: 1;
}

.page-casino__live-casino-text .page-casino__section-title {
  text-align: left;
  color: #ffffff;
}

.page-casino__live-casino-text .page-casino__section-description {
  text-align: left;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-casino__live-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__live-features li {
  color: #f0f0f0;
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-casino__live-features li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__live-casino-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.page-casino__live-casino-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
}

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-10px);
}

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

.page-casino__promo-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-title a {
  color: inherit;
  text-decoration: none;
}

.page-casino__promo-title a:hover {
  text-decoration: underline;
}

.page-casino__promo-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
  padding: 0 15px 20px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
}

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

.page-casino__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.page-casino__security-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-casino__security-text .page-casino__section-title {
  text-align: left;
  color: #ffffff;
}

.page-casino__security-text .page-casino__section-description {
  text-align: left;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-casino__security-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__security-features li {
  color: #f0f0f0;
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-casino__security-features li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Guide Section */
.page-casino__guide-section {
  padding: 80px 0;
}

.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.page-casino__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 30px;
}

.page-casino__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__step-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__step-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
}

/* Strategy Section */
.page-casino__strategy-section {
  padding: 80px 0;
}

.page-casino__strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-casino__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__strategy-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__strategy-text {
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Support Section */
.page-casino__support-section {
  padding: 80px 0;
}

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

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

.page-casino__support-text .page-casino__section-title {
  text-align: left;
  color: #017439;
}

.page-casino__support-text .page-casino__section-description {
  text-align: left;
  color: #333333;
  margin-bottom: 30px;
}

.page-casino__support-channels {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__support-channels li {
  color: #333333;
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-casino__support-channels li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__support-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.page-casino__support-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question:hover {
  background-color: #005f2f;
}

.page-casino__faq-title {
  margin: 0;
  color: inherit;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

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

/* General image styling to prevent small icons */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space nicely */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }

  .page-casino__hero-content {
    padding-right: 0;
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-casino__hero-title {
    font-size: 3em;
  }

  .page-casino__hero-image-wrapper {
    max-width: 80%;
    justify-content: center;
  }

  .page-casino__live-casino-content,
  .page-casino__security-content,
  .page-casino__support-content {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__live-casino-text .page-casino__section-title,
  .page-casino__security-text .page-casino__section-title,
  .page-casino__support-text .page-casino__section-title {
    text-align: center;
  }

  .page-casino__live-casino-text .page-casino__section-description,
  .page-casino__security-text .page-casino__section-description,
  .page-casino__support-text .page-casino__section-description {
    text-align: center;
  }

  .page-casino__live-features,
  .page-casino__security-features,
  .page-casino__support-channels {
    text-align: left;
    margin: 0 auto 30px;
    max-width: 600px;
  }

  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-casino__strategy-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__cta-center .page-casino__btn-primary,
  .page-casino__cta-center .page-casino__btn-secondary {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-casino__hero-section {
    padding: 40px 0;
    padding-top: 0; /* Ensures no double padding */
    flex-direction: column;
    text-align: center;
  }

  .page-casino__hero-content {
    padding: 0 15px;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-casino__hero-image-wrapper {
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-casino__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 */
  .page-casino__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* 强制前4张 2x2, 后2张各一行 */
  .page-casino__games-grid .page-casino__game-card:nth-child(1),
  .page-casino__games-grid .page-casino__game-card:nth-child(2),
  .page-casino__games-grid .page-casino__game-card:nth-child(3),
  .page-casino__games-grid .page-casino__game-card:nth-child(4) {
    /* On mobile, they are 1fr anyway, but this ensures no accidental side-by-side */
    grid-column: auto;
  }

  .page-casino__games-overview {
    padding: 40px 0;
  }

  .page-casino__game-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__game-title {
    font-size: 1.4em;
  }

  .page-casino__game-text {
    font-size: 0.9em;
  }

  /* 通用图片与容器 */
  .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__card,
  .page-casino__container,
  .page-casino__games-overview,
  .page-casino__live-casino-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__guide-section,
  .page-casino__strategy-section,
  .page-casino__support-section,
  .page-casino__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* 按钮与按钮容器 */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .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-buttons,
  .page-casino__cta-center,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }

  /* 其他内容模块 */
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-casino__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-casino__live-casino-content,
  .page-casino__security-content,
  .page-casino__support-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-casino__live-casino-image-wrapper,
  .page-casino__security-image-wrapper,
  .page-casino__support-image-wrapper {
    order: -1; /* Image appears before text on mobile */
    max-width: 100%;
    padding: 0;
  }

  .page-casino__promotions-grid,
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__promo-image {
    height: 150px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__promo-title {
    font-size: 1.3em;
  }

  .page-casino__promo-text {
    font-size: 0.9em;
  }

  .page-casino__strategy-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__strategy-title {
    font-size: 1.5em;
  }

  .page-casino__strategy-text {
    font-size: 1em;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-casino__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }
}