:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Deep Sky Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light background */
  line-height: 1.6;
  background-color: #ffffff; 
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  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: var(--primary-color);
  border-radius: 2px;
}

.page-casino__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* CTA Button Styles */
.page-casino__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-casino__cta-button:hover {
  background: #E6C200; /* Darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button--secondary {
  background: var(--secondary-color);
}

.page-casino__cta-button--secondary:hover {
  background: #1A7DD9; /* Darker secondary */
}

.page-casino__cta-button--light {
  background: var(--text-light);
  color: var(--text-dark);
}

.page-casino__cta-button--light:hover {
  background: #f0f0f0;
}

.page-casino__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); 
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%); 
  color: var(--text-light);
}

.page-casino__hero-section .page-casino__main-title {
  font-size: 56px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-section .page-casino__description {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-section .page-casino__cta-button {
  margin-top: 20px;
  font-size: 20px;
  padding: 18px 45px;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

/* Features Section */
.page-casino__features-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-casino__feature-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  filter: none !important;
}

.page-casino__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-casino__card-description {
  font-size: 16px;
  color: #666666;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
}

.page-casino__game-category {
  margin-bottom: 70px;
  text-align: center;
}

.page-casino__category-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.page-casino__category-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-casino__game-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  object-fit: cover;
  filter: none !important;
}

.page-casino__category-description {
  font-size: 17px;
  color: #444444;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

/* How to Start Section */
.page-casino__how-to-start-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-casino__step-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-casino__step-description {
  font-size: 16px;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Mobile App Section */
.page-casino__mobile-app-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

.page-casino__mobile-app-section .page-casino__section-title {
  color: var(--primary-color);
}

.page-casino__mobile-app-section .page-casino__description {
  color: #f0f0f0;
}

.page-casino__mobile-app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-casino__mobile-app-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-casino__mobile-app-text .page-casino__section-title {
  text-align: left;
}

.page-casino__mobile-app-text .page-casino__description {
  text-align: left;
  margin-bottom: 30px;
}

.page-casino__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__mobile-app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  filter: none !important;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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 15px;
  opacity: 0;
  color: #444;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; 
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.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;
  pointer-events: none; 
  color: var(--text-dark);
}

/* 切换图标 */
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: 28px;
  height: 28px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); 
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 80px 0;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  text-align: center;
}

.page-casino__cta-final-section .page-casino__section-title {
  color: var(--text-light);
}

.page-casino__cta-final-section .page-casino__description {
  color: #e0e0e0;
}

.page-casino__cta-final-section .page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-casino__cta-final-section .page-casino__cta-button {
  background: var(--text-light);
  color: var(--text-dark);
}

.page-casino__cta-final-section .page-casino__cta-button:hover {
  background: #f0f0f0;
}

.page-casino__cta-final-section .page-casino__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.page-casino__cta-final-section .page-casino__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* General image responsiveness for content area */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important; /* Ensure no filter */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-section .page-casino__main-title {
    font-size: 48px;
  }
  .page-casino__hero-section .page-casino__description {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-casino__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-casino__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-casino__hero-section .page-casino__main-title {
    font-size: 38px;
  }

  .page-casino__hero-section .page-casino__description {
    font-size: 18px;
  }

  .page-casino__hero-section .page-casino__cta-button {
    font-size: 18px;
    padding: 15px 35px;
  }

  .page-casino__features-section,
  .page-casino__games-section,
  .page-casino__how-to-start-section,
  .page-casino__mobile-app-section,
  .page-casino__faq-section,
  .page-casino__cta-final-section {
    padding: 50px 0;
  }

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

  .page-casino__feature-card {
    padding: 20px;
  }

  .page-casino__card-title {
    font-size: 20px;
  }

  .page-casino__category-title {
    font-size: 26px;
  }

  .page-casino__game-category {
    margin-bottom: 50px;
  }

  .page-casino__category-description {
    font-size: 15px;
    text-align: left; 
  }

  .page-casino__step-title {
    font-size: 20px;
  }

  .page-casino__step-description {
    font-size: 15px;
  }

  .page-casino__mobile-app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-casino__mobile-app-text {
    text-align: center;
  }
  
  .page-casino__mobile-app-text .page-casino__section-title,
  .page-casino__mobile-app-text .page-casino__description {
    text-align: center;
  }

  /* FAQ mobile styles */
  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-casino__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }

  /* Button responsiveness */
  .page-casino__cta-button,
  .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__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;
    flex-direction: column; 
  }

  /* Image 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-section,
  .page-casino__features-section,
  .page-casino__games-section,
  .page-casino__how-to-start-section,
  .page-casino__mobile-app-section,
  .page-casino__faq-section,
  .page-casino__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; 
  }
}

/* Ensure no filter is used on images */
.page-casino img {
  filter: none !important;
}

/* Color contrast check for specific elements */
.page-casino__dark-bg {
  background: var(--background-dark);
  color: var(--text-light);
}
.page-casino__dark-bg .page-casino__section-title {
  color: var(--primary-color);
}
.page-casino__dark-bg .page-casino__description {
  color: #f0f0f0;
}

/* Ensure default body text color is dark for white background */
body {
  color: var(--text-dark);
}