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

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

/* HERO Section */
.page-casino__hero-section {
  padding-top: 0; /* shared.css handles body padding-top */
  padding-bottom: 80px;
  text-align: center;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-section .page-casino__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-casino__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary,
.page-casino__btn-register,
.page-casino__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-casino__btn-primary:hover {
  background-color: #005f2e;
  border-color: #f0f0f0;
}

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

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-casino__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}

.page-casino__btn-register:hover {
  background-color: #a00606;
  border-color: #ffffff;
}

.page-casino__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}

.page-casino__btn-login:hover {
  background-color: #a00606;
  border-color: #ffffff;
}

.page-casino__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

/* General Section Styles */
.page-casino__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-casino__section-subtitle {
  font-size: 1.2em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

.page-casino__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
}

/* Intro Section */
.page-casino__intro-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-casino__intro-section .page-casino__section-title {
  color: #017439;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-casino__games-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__games-section .page-casino__section-title::after {
  background-color: #ffffff;
}

.page-casino__games-section .page-casino__section-subtitle {
  color: #f0f0f0;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-casino__game-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
  color: #017439;
}

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

.page-casino__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  padding: 10px 20px;
  border-radius: 5px;
}

.page-casino__btn-tertiary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Cockfighting Focus Section */
.page-casino__cockfighting-focus {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-casino__cockfighting-focus .page-casino__section-title {
  color: #017439;
}

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

.page-casino__feature-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-casino__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-casino__feature-description {
  font-size: 0.95em;
  color: #555555;
}

.page-casino__cockfighting-cta {
  margin-top: 50px;
}

/* Benefits Section */
.page-casino__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-casino__benefits-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__benefits-section .page-casino__section-title::after {
  background-color: #ffffff;
}

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

.page-casino__benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-casino__benefit-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-casino__cta-section .page-casino__section-title {
  color: #017439;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  color: #333333;
}

.page-casino__faq-section .page-casino__section-title {
  color: #017439;
}

.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #017439;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #017439;
  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: #555555;
}

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

.page-casino__faq-answer p {
  margin: 0;
  padding-top: 10px;
  font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }

  .page-casino__section-title {
    font-size: 2em;
  }

  .page-casino__games-grid,
  .page-casino__feature-grid,
  .page-casino__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-casino__hero-section {
    padding-top: 0; /* shared.css handles body padding-top for mobile */
    padding-bottom: 40px;
  }

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

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

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

  .page-casino__hero-image-wrapper {
    margin-top: 20px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 产品展示图区域 & 通用图片与容器 */
  .page-casino__games-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-casino__game-image {
    height: 180px !important;
  }

  .page-casino__feature-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-casino__feature-image {
    height: 200px !important;
  }

  .page-casino__benefits-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

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

  .page-casino__container,
  .page-casino__section,
  .page-casino__card,
  .page-casino__games-section,
  .page-casino__cockfighting-focus,
  .page-casino__benefits-section,
  .page-casino__cta-section,
  .page-casino__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  /* 其他内容模块 */
  .page-casino__intro-section,
  .page-casino__games-section,
  .page-casino__cockfighting-focus,
  .page-casino__benefits-section,
  .page-casino__cta-section,
  .page-casino__faq-section {
    padding: 40px 0 !important;
  }

  .page-casino__section-title {
    font-size: 1.8em !important;
  }

  .page-casino__section-subtitle,
  .page-casino__text-block,
  .page-casino__game-description,
  .page-casino__feature-description,
  .page-casino__benefit-description,
  .page-casino__faq-answer p {
    font-size: 0.95em !important;
  }

  .page-casino__faq-question h3 {
    font-size: 1em !important;
  }
}