.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  background-color: #f8f8f8;
}

.page-casino__section--padding {
  padding: 60px 20px;
}

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

.page-casino__text-center {
  text-align: center;
}

.page-casino__section-title {
  font-size: 36px;
  color: #1A202C;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

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

.page-casino__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #1A202C;
  overflow: hidden;
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

.page-casino__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Use accent color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__intro-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-casino__cta-button--primary {
  background: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-casino__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-casino__cta-button--secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-casino__cta-button--secondary:hover {
  background: #FFD700;
  color: #1A202C;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Intro Section */
.page-casino__intro-section {
  background-color: #ffffff;
}

/* Games Section */
.page-casino__dark-section {
  background-color: #1A202C;
  color: #f0f0f0;
}

.page-casino__dark-section .page-casino__section-title {
  color: #FFD700;
}

.page-casino__dark-section .page-casino__section-title::after {
  background-color: #f0f0f0;
}

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

.page-casino__game-card {
  background-color: #333d4d; /* Darker background for cards in dark section */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-casino__game-card .page-casino__card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  padding: 0 15px;
}

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

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

.page-casino__game-card p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__btn-play {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: calc(100% - 30px);
  margin: 0 15px;
}

.page-casino__btn-play:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

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

.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-casino__promo-card .page-casino__card-title {
  font-size: 22px;
  color: #1A202C;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-casino__promo-card p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__btn-view-promo {
  display: inline-block;
  padding: 10px 25px;
  background-color: #1A202C;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: calc(100% - 30px);
  margin: 0 15px;
}

.page-casino__btn-view-promo:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

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

/* Get Started Section */
.page-casino__get-started-section {
  background-color: #1A202C;
}

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

.page-casino__step-card {
  background-color: #333d4d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 30px 20px;
  color: #f0f0f0;
}

.page-casino__step-card img {
  
  
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-casino__step-card h3 {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__step-card h3 a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__step-card h3 a:hover {
  color: #ffffff;
}

.page-casino__step-card p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 0;
}

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

/* Security Section */
.page-casino__security-section {
  background-color: #ffffff;
}

.page-casino__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-casino__feature-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-item h4 {
  font-size: 20px;
  color: #1A202C;
  margin-bottom: 10px;
}

.page-casino__feature-item p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 0;
}

/* Mobile Section */
.page-casino__mobile-section {
  background-color: #1A202C;
}

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

.page-casino__mobile-text {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

.page-casino__mobile-text h3 {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-casino__mobile-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__mobile-text li {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-casino__mobile-text li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #FFD700;
}

.page-casino__mobile-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__mobile-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-casino__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 20px !important;
  opacity: 1;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-casino__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #1A202C;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

/* Call to Action Section */
.page-casino__call-to-action-section {
  background-color: #1A202C;
  color: #f0f0f0;
}

.page-casino__call-to-action-section .page-casino__section-title {
  color: #FFD700;
}

.page-casino__call-to-action-section .page-casino__section-title::after {
  background-color: #f0f0f0;
}

.page-casino__call-to-action-section .page-casino__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 42px;
  }
  .page-casino__intro-description {
    font-size: 18px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__main-title {
    font-size: 36px;
  }
  .page-casino__intro-description {
    font-size: 16px;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-casino__game-grid, .page-casino__promo-grid, .page-casino__steps-grid, .page-casino__security-features {
    grid-template-columns: 1fr;
  }
  .page-casino__section--padding {
    padding: 40px 15px;
  }
  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 15px;
  }
  .page-casino__game-card img {
    
  }
  .page-casino__promo-card img {
    
  }
  .page-casino__game-card .page-casino__card-title, .page-casino__promo-card .page-casino__card-title, .page-casino__step-card h3 {
    font-size: 20px;
  }
  .page-casino__mobile-content {
    flex-direction: column;
  }
  .page-casino__mobile-text h3 {
    font-size: 28px;
    text-align: center;
  }
  .page-casino__mobile-text ul {
    padding-left: 20px;
  }
  .page-casino__mobile-text li {
    font-size: 16px;
  }
  .page-casino__mobile-image img {
    max-width: 80%;
  }
  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-casino__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image and button responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section, .page-casino__card, .page-casino__container, .page-casino__hero-buttons, .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__cta-button, .page-casino__btn-play, .page-casino__btn-view-promo {
    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 {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 30px;
  }
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__game-card .page-casino__card-title, .page-casino__promo-card .page-casino__card-title, .page-casino__step-card h3 {
    font-size: 18px;
  }
  .page-casino__mobile-text h3 {
    font-size: 24px;
  }
}