/* style/casino.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */
.page-casino {
  color: #ffffff; /* Body background #0a0a0a là màu tối, nên dùng chữ màu sáng */
}

.page-casino__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Nền tối, dùng nền card/section hơi sáng hơn */
  border-radius: 8px;
}

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

.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ để không bị khoảng trắng lớn */
  margin-bottom: 20px;
  text-align: center;
  background-color: #0a0a0a;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Giới hạn chiều cao cho hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino__hero-content {
  padding: 30px 15px 60px;
  max-width: 900px;
  position: relative; /* Đảm bảo không bị che bởi ảnh nếu có z-index */
  z-index: 1;
}

.page-casino__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
  /* Sử dụng clamp để kiểm soát kích thước font H1 */
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
  max-width: 100%;
}

.page-casino__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-casino__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino__section-title {
  font-size: clamp(1.8rem, 3.5vw + 0.5rem, 2.8rem);
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-casino__text-block {
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__about-section {
  background-color: rgba(255, 255, 255, 0.03);
}

.page-casino__games-grid,
.page-casino__benefits-grid,
.page-casino__guide-steps,
.page-casino__promotions-grid,
.page-casino__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-casino__game-card,
.page-casino__benefit-card,
.page-casino__step-item,
.page-casino__promotion-card,
.page-casino__channel-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__game-image,
.page-casino__step-image,
.page-casino__promotion-image,
.page-casino__channel-icon {
  width: 100%;
  max-width: 400px; /* Đảm bảo ảnh không quá nhỏ */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  object-fit: cover;
}

.page-casino__channel-icon {
  max-width: 200px;
  height: 150px;
}

.page-casino__game-title,
.page-casino__benefit-title,
.page-casino__step-title,
.page-casino__promotion-title,
.page-casino__channel-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-casino__game-description,
.page-casino__benefit-description,
.page-casino__step-description,
.page-casino__promotion-description,
.page-casino__channel-description {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
}

.page-casino__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: #1e8fc7;
  text-decoration: underline;
}

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

.page-casino__promotions-section {
  background-color: rgba(38, 169, 224, 0.1);
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.03);
  list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

.page-casino__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  padding: 0 25px 18px;
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

.page-casino__faq-answer p {
  margin-bottom: 0; /* Loại bỏ margin dưới cùng của p trong câu trả lời FAQ */
}

.page-casino__cta-final-section {
  text-align: center;
  padding-bottom: 60px;
  background-color: #0a0a0a;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-casino__section {
    padding: 30px 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-casino__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-casino__hero-content {
    padding: 20px 10px 40px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__games-grid,
  .page-casino__benefits-grid,
  .page-casino__guide-steps,
  .page-casino__promotions-grid,
  .page-casino__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__benefit-card,
  .page-casino__step-item,
  .page-casino__promotion-card,
  .page-casino__channel-card {
    padding: 20px;
  }

  .page-casino__game-image,
  .page-casino__step-image,
  .page-casino__promotion-image,
  .page-casino__channel-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Responsive images for all img tags within .page-casino */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers are responsive and prevent overflow */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__hero-image-wrapper,
  .page-casino__games-grid,
  .page-casino__benefits-grid,
  .page-casino__guide-steps,
  .page-casino__promotions-grid,
  .page-casino__support-channels,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino__hero-section {
    padding-top: 10px !important; /* body đã xử lý padding-top cho header */
  }

  .page-casino__hero-image-wrapper {
    max-height: 40vh;
  }
}