.page-casino {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Inherited from body, but explicitly set for clarity */
}

/* Fixed Header Spacing: shared.css sets body padding-top, so hero should be 0 */
.page-casino__hero-section {
  position: relative;
  padding-top: 0; /* Ensures no double padding with shared header offset */
  padding-bottom: 80px;
  background: linear-gradient(135deg, #0A2033 0%, #0A2033 70%, #E8B900 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-casino__hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-casino__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.page-casino__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #E8B900; /* Highlight with accent color */
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background-color: #E8B900;
  color: #0A2033;
  border: 2px solid #E8B900;
}

.page-casino__btn-primary:hover {
  background-color: #ffc81a;
  border-color: #ffc81a;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #E8B900;
  border: 2px solid #E8B900;
}

.page-casino__btn-secondary:hover {
  background-color: #E8B900;
  color: #0A2033;
  transform: translateY(-2px);
}

.page-casino__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 700px;
}

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

.page-casino__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #E8B900;
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-casino__game-categories-section {
  padding: 80px 0;
  background-color: #0A2033;
}

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

.page-casino__category-card {
  background-color: #1a3a50;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-casino__category-link {
  display: block;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 20px;
}

.page-casino__category-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__category-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E8B900;
}

.page-casino__category-text {
  font-size: 15px;
  line-height: 1.5;
  padding: 0 15px;
  color: #cccccc;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 60px;
}

.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #0A2033;
}

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

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

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

.page-casino__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E8B900;
}

.page-casino__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #0A2033;
}

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

.page-casino__promotion-card {
  background-color: #1a3a50;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__promotion-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-casino__promotion-content {
  padding: 25px;
}

.page-casino__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E8B900;
}

.page-casino__promotion-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-casino__safety-section {
  padding: 80px 0;
  background-color: #0A2033;
}

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

.page-casino__safety-text {
  flex: 1;
  color: #f0f0f0;
}

.page-casino__safety-text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.page-casino__safety-image-wrapper {
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__safety-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-section {
  padding: 80px 0;
  background-color: #0A2033;
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a3a50;
  border: 1px solid #2a4a60;
}

/* 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 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
  line-height: 1.6;
}

/* FAQ展开状态 - 🚨 Sử dụng!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; /* 🚨 Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: #1a3a50;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề phong cách */
.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #0A2033;
  border-bottom: 1px solid #2a4a60;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #1a3a50;
  border-color: #3a5a70;
}

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

/* Tiêu đề câu hỏi */
.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #E8B900;
}

/* Chuyển đổi biểu tượng */
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E8B900;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.page-casino__cta-section {
  padding: 80px 0;
  background-color: #0A2033;
  border-top: 1px solid #1a3a50;
}

.page-casino__cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-casino__cta-title {
  font-size: 38px;
  font-weight: bold;
  color: #E8B900;
  margin-bottom: 20px;
}

.page-casino__cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-casino__cta-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

/* Global responsive for images within .page-casino */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global responsive for containers within .page-casino */
.page-casino__container,
.page-casino__hero-container,
.page-casino__hero-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Global responsive for buttons within .page-casino */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* 🚨 Mobile Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-casino__hero-content {
    max-width: 100%;
  }

  .page-casino__hero-title {
    font-size: 42px;
  }

  .page-casino__hero-description {
    font-size: 17px;
  }

  .page-casino__hero-cta {
    justify-content: center;
  }

  .page-casino__safety-content {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__safety-text {
    max-width: 100%;
  }

  .page-casino__safety-text .page-casino__btn-primary,
  .page-casino__safety-text .page-casino__btn-secondary {
    width: 100%;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__hero-section {
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-casino__game-categories-section,
  .page-casino__why-choose-section,
  .page-casino__promotions-section,
  .page-casino__safety-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 60px 0;
  }

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

  .page-casino__category-grid,
  .page-casino__feature-grid,
  .page-casino__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__category-img {
    
  }

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

  .page-casino__category-text {
    font-size: 14px;
  }

  .page-casino__promotion-img {
    
  }

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

  .page-casino__promotion-text {
    font-size: 14px;
  }

  .page-casino__safety-content {
    gap: 20px;
  }

  .page-casino__safety-text p {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .page-casino__safety-text .page-casino__btn-primary,
  .page-casino__safety-text .page-casino__btn-secondary {
    margin-bottom: 10px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
  }

  .page-casino__faq-question h3 {
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }

  .page-casino__cta-title {
    font-size: 28px;
  }

  .page-casino__cta-description {
    font-size: 16px;
  }

  .page-casino__cta-content {
    margin-bottom: 20px;
  }

  /* Ensures all images are responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensures all containers are responsive */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-container,
  .page-casino__hero-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific override for button groups to wrap */
  .page-casino__hero-cta,
  .page-casino__safety-text {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}