.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Body background is white */
  line-height: 1.6;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  background-color: #f0f8ff; /* Light background for hero section */
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio for responsive image */
  position: relative;
  overflow: hidden;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area, may crop sides */
  display: block;
}

.page-casino__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  position: relative;
  z-index: 1;
  color: #333333; /* Dark text on light background */
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

.page-casino__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to prevent overflow */
}

/* General Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

.page-casino__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 5px;
  background-color: #26A9E0;
  color: #ffffff;
  border: 1px solid #26A9E0;
}

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

/* General Section Styling */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-casino__section-title {
  font-size: clamp(2rem, 3vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for section titles */
  line-height: 1.3;
}

.page-casino__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* About Section */
.page-casino__about-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #26A9E0; /* Dark section for contrast */
  color: #ffffff; /* White text on dark background */
}

.page-casino__about-section .page-casino__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-casino__about-section .page-casino__text-block {
  color: #f0f0f0;
}

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

.page-casino__image-text-item {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-casino__image-text-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__image-text-item .page-casino__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #f9f9f9;
}

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-casino__game-card .page-casino__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

.page-casino__game-card .page-casino__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-card .page-casino__card-title a:hover {
  color: #1e87c0;
}

.page-casino__game-card p {
  font-size: 0.95rem;
  color: #666666;
  padding: 0 15px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-casino__game-card .page-casino__btn-small {
  margin: 0 15px 20px;
  align-self: center;
  width: calc(100% - 30px); /* Adjust width for padding */
}

.page-casino__view-all-games {
  text-align: center;
  margin-top: 50px;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #26A9E0; /* Dark section */
  color: #ffffff;
}

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

.page-casino__live-casino-section .page-casino__text-block {
  color: #f0f0f0;
}

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

.page-casino__live-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  color: #333333;
}

.page-casino__live-card img {
  width: 100%;
  height: 280px; /* Fixed height */
  object-fit: cover;
  display: block;
}

.page-casino__live-card .page-casino__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

.page-casino__live-card .page-casino__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__live-card .page-casino__card-title a:hover {
  color: #1e87c0;
}

.page-casino__live-card p {
  font-size: 0.95rem;
  color: #666666;
  padding: 0 15px 20px;
}

.page-casino__live-cta {
  text-align: center;
  margin-top: 50px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #f9f9f9;
}

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

.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card img {
  width: 100%;
  height: 250px; /* Fixed height */
  object-fit: cover;
  display: block;
}

.page-casino__promo-card .page-casino__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

.page-casino__promo-card .page-casino__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promo-card .page-casino__card-title a:hover {
  color: #1e87c0;
}

.page-casino__promo-card p {
  font-size: 0.95rem;
  color: #666666;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-small {
  margin: 0 15px 20px;
  align-self: center;
  width: calc(100% - 30px);
}

.page-casino__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure dark text on light summary */
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light answer background */
}

/* CTA Section */
.page-casino__cta-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  text-align: center;
}

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

.page-casino__cta-section .page-casino__text-block {
  color: #f0f0f0;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to prevent overflow */
}

/* Universal Image Responsive */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    padding: 30px 15px 50px;
  }
  .page-casino__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-casino__hero-description {
    font-size: 1.1rem;
  }
  .page-casino__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-casino__image-text-grid,
  .page-casino__game-categories,
  .page-casino__live-casino-grid,
  .page-casino__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
  .page-casino__game-card img,
  .page-casino__promo-card img {
    height: 220px;
  }
  .page-casino__live-card img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-casino__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    margin-bottom: 30px;
  }
  .page-casino__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    position: static; /* Allow normal flow on mobile */
    height: auto !important; /* Ensure image scales */
  }
  .page-casino__hero-image-wrapper {
    padding-bottom: 0; /* No fixed padding for aspect ratio on mobile */
    height: auto;
  }
  .page-casino__hero-content {
    padding: 20px 15px 40px;
  }
  .page-casino__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Smaller font for mobile H1 */
    margin-bottom: 15px;
  }
  .page-casino__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Ensure padding is applied */
  }

  /* 通用图片与容器 */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__container,
  .page-casino__section,
  .page-casino__card,
  .page-casino__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-small,
  .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;
    font-size: 0.95rem !important;
  }
  .page-casino__hero-cta-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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Default to column for button groups */
  }

  /* 产品展示图区域 (Games Section, Live Casino, Promotions) */
  .page-casino__games-section,
  .page-casino__live-casino-section,
  .page-casino__promotions-section {
    padding: 40px 0;
    margin-bottom: 30px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-casino__game-categories,
  .page-casino__live-casino-grid,
  .page-casino__promotion-cards {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 15px; /* Add padding to grid containers */
  }
  .page-casino__game-card img,
  .page-casino__promo-card img {
    height: auto;
  }
  .page-casino__live-card img {
    height: auto;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-casino__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem); /* Smaller font for mobile section titles */
    margin-bottom: 20px;
    padding: 0 15px;
  }
  .page-casino__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-casino__image-text-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 15px;
  }
  .page-casino__faq-section {
    padding: 40px 0;
  }
  details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
  .page-casino__faq-qtext { font-size: 15px; }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }
}