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

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

.page-casino__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Assuming shared.css handles body padding-top */
  min-height: 70vh;
  text-align: center;
  background: #0a0a0a;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-section .page-casino__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-casino__hero-content {
  flex: 1;
  padding-right: 20px;
}

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

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

.page-casino__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

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

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

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-casino__games-overview {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-casino__games-overview .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__game-categories {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

.page-casino__game-link {
  text-decoration: none;
  color: inherit;
  display: contents; /* Allows children to behave as if they are direct children of grid item */
}

.page-casino__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-casino__game-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__game-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background-color: #EA7C07; /* Login button color for action */
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-small:hover {
  background-color: #c96706;
}

.page-casino__advantages-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-casino__advantages-section .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__advantage-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__advantage-icon {
  width: 200px;
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  display: block; /* Ensure it's a block element */
  margin-left: auto;
  margin-right: auto;
}

.page-casino__advantage-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__advantage-description {
  font-size: 1em;
  color: #cccccc;
}

.page-casino__how-to-start {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-casino__how-to-start .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

.page-casino__step-description {
  font-size: 1em;
  color: #cccccc;
}

.page-casino__how-to-start-cta {
  margin-top: 60px;
  text-align: center;
}

.page-casino__how-to-start-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__btn-large {
  padding: 16px 32px;
  font-size: 1.2em;
  border-radius: 10px;
  background-color: #EA7C07;
  border: 2px solid #EA7C07;
}

.page-casino__btn-large:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-casino__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-casino__faq-section .page-casino__section-description {
  color: #f0f0f0;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #26A9E0;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #1e87c0;
}

.page-casino__faq-question h3 {
  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-question {
  background-color: #1e87c0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.05);
  color: #cccccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 25px !important;
}

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

/* Universal image and container responsiveness */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-casino__section,
.page-casino__card,
.page-casino__container,
.page-casino__games-grid,
.page-casino__advantages-grid,
.page-casino__steps-grid {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-casino__hero-section {
    min-height: auto;
    padding: 60px 0;
    text-align: center;
  }
  
  .page-casino__hero-section .page-casino__container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-casino__hero-content {
    padding-right: 0;
    order: 2; /* Content below image */
  }

  .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: 10px;
    justify-content: center;
    align-items: center;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 300px !important; /* Limit max-width for better aesthetics on small screens */
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-casino__game-card {
    padding: 20px;
  }

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

  /* 通用图片与容器 */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__games-grid,
  .page-casino__advantages-grid,
  .page-casino__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* 按钮与按钮容器 */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-small,
  .page-casino__btn-large,
  .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;
    text-align: center;
  }
  
  .page-casino__hero-buttons,
  .page-casino__how-to-start-cta {
    display: flex;
    flex-direction: column !important;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-casino__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-casino__advantage-item {
    padding: 25px;
  }

  .page-casino__advantage-icon {
    width: 150px;
    height: auto;
  }

  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-casino__step-item {
    padding: 25px;
  }

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

  .page-casino__faq-list {
    padding: 0 15px;
  }

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

  .page-casino__faq-answer {
    padding: 10px 20px !important;
  }
}