/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Page Styling */
.page-casino {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-casino__section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-casino__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-casino__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px; /* Adjusted padding-top to account for header, fallback 120px */
  padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #017439 0%, #004d26 100%); /* Brand color gradient */
  color: #ffffff;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 20px;
}

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

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

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-casino__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary,
.page-casino__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

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

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808; /* Custom Register/Login color */
}

.page-casino__btn-secondary:hover {
  background-color: #C30808; /* Custom Register/Login color */
  color: #ffffff;
}

.page-casino__btn-tertiary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-tertiary:hover {
  background-color: #004d26;
  border-color: #004d26;
}

.page-casino__btn-link {
  background-color: transparent;
  color: #017439;
  border: none;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

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

.page-casino__cta-center {
  margin-top: 40px;
}

/* Why Choose Section */
.page-casino__why-choose {
  background-color: #1a1a1a; /* Darker background for contrast */
}

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

.page-casino__feature-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-casino__feature-icon {
  width: 200px; /* Min size 200px */
  height: 150px; /* Example, adjust as needed */
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure it respects max-width: 100% */
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Game Library Section */
.page-casino__game-library {
  background-color: #121212; /* Body background, for consistency */
}

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

.page-casino__game-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-casino__game-title a:hover {
  color: #017439; /* Brand color on hover */
}

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

/* Guide Section */
.page-casino__guide-section {
  background-color: #1a1a1a;
}

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

.page-casino__guide-step {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-casino__guide-icon {
  width: 200px; /* Min size 200px */
  height: 150px; /* Example, adjust as needed */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Promotions Section */
.page-casino__promotions {
  background-color: #121212;
}

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

.page-casino__promo-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-casino__promo-image {
  width: 100%;
  height: 225px; /* Consistent height */
  object-fit: cover;
  display: block;
}

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

.page-casino__promo-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Security & Support Section */
.page-casino__security-support {
  background-color: #1a1a1a;
}

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

.page-casino__info-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-casino__info-icon {
  width: 200px; /* Min size 200px */
  height: 150px; /* Example, adjust as needed */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* FAQ Section */
.page-casino__faq {
  background-color: #121212;
}

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

.page-casino__faq-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-casino__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari marker */
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439; /* Brand color for question */
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #cccccc;
  background-color: #2a2a2a; /* Card background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* News Section */
.page-casino__news {
  background-color: #1a1a1a;
}

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

.page-casino__news-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-casino__news-image {
  width: 100%;
  height: 225px; /* Consistent height */
  object-fit: cover;
  display: block;
}

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

.page-casino__news-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-casino__news-title a:hover {
  color: #017439; /* Brand color on hover */
}

.page-casino__news-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Conclusion Section */
.page-casino__conclusion {
  background-color: #017439; /* Primary brand color for conclusion */
  padding: 80px 0;
}

.page-casino__conclusion-text {
  font-size: 1.3em;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 80px 0 60px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
  }

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

  .page-casino__hero-description {
    font-size: 1em;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .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__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-wrap: wrap !important;
    gap: 10px;
  }

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

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

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

  .page-casino__section-intro {
    font-size: 0.95em;
  }

  /* Images responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__why-choose,
  .page-casino__game-library,
  .page-casino__guide-section,
  .page-casino__promotions,
  .page-casino__security-support,
  .page-casino__faq,
  .page-casino__news,
  .page-casino__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding for content within sections */
    padding-right: 15px;
  }
  
  /* Remove specific padding for sections that have a container inside */
  .page-casino__hero-section,
  .page-casino__conclusion {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

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

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

/* Image filter restriction - explicitly no filters */
.page-casino img {
  filter: none; /* Ensure no CSS filters are applied */
}