.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a1a), so text is light */
  background-color: #1a1a1a;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px; /* Adjust height as needed */
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* shared.css handles body padding-top for header offset */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General Section Styling */
.page-casino__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 60px;
}

.page-casino__section-text {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__section-text a {
  color: #FFFF00; /* Yellow for login/register font */
  text-decoration: underline;
}

/* Introduction Section */
.page-casino__introduction-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background */
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly darker */
}

.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.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-casino__game-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

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

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

.page-casino__game-description {
  color: #cccccc;
  font-size: 0.95em;
  padding: 0 15px;
}

.page-casino__centered-button {
  text-align: center;
  margin-top: 50px;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-casino__live-casino-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-list {
  flex: 1;
  list-style: none;
  padding: 0;
  color: #f0f0f0;
}

.page-casino__feature-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-casino__feature-item::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  top: 0;
}

/* Benefits Section */
.page-casino__benefits-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

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

.page-casino__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-casino__benefit-description {
  color: #cccccc;
  font-size: 1em;
  flex-grow: 1;
}

/* Login Guide Section */
.page-casino__login-guide-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-casino__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.page-casino__troubleshooting-text {
  margin-top: 30px;
  font-style: italic;
}

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

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

.page-casino__faq-item {
  background: rgba(255, 255, 255, 0.05);
  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 25px;
  font-size: 1.2em;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  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 25px;
  color: #cccccc;
  font-size: 1em;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-casino__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

.page-casino__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  text-align: center;
}

/* Footer */
.page-casino__footer {
  background-color: #017439; /* Brand primary color for footer */
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9em;
}

.page-casino__copyright {
  margin-bottom: 15px;
}

.page-casino__footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.page-casino__footer-links a:hover {
  color: #FFFF00;
}

/* Button Styles */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

.page-casino__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* Image responsiveness for all images */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Dark background color classes */
.page-casino__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

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

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

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

  .page-casino__live-casino-image {
    max-width: 100%;
  }

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-casino__hero-section {
    height: 450px;
    padding-top: 0; /* Ensures no double padding if shared.css sets body padding */
  }

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

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

  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  /* 产品展示图区域 */
  .page-casino__games-grid {
    grid-template-columns: 1fr 1fr; /* First 4 items in 2x2 grid */
    gap: 20px;
    padding: 0 15px;
  }
  .page-casino__game-card:nth-child(5),
  .page-casino__game-card:nth-child(6) {
    grid-column: span 2; /* Last 2 items each on their own line */
  }
  .page-casino__game-image {
    height: 200px;
  }

  /* 通用图片与容器 */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__live-casino-section,
  .page-casino__benefits-section,
  .page-casino__login-guide-section,
  .page-casino__faq-section,
  .page-casino__conclusion-section {
    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 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: 12px 20px;
    font-size: 0.95em;
  }
  
  .page-casino__hero-buttons,
  .page-casino__centered-button,
  .page-casino__footer-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* 其他内容模块 */
  .page-casino__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

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

  .page-casino__live-casino-content {
    flex-direction: column;
    gap: 20px;
  }

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

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

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

  .page-casino__footer-links {
    margin-top: 20px;
  }
  .page-casino__footer-links a {
    margin: 5px 0;
  }
}