/* style/casino.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-casino {
  background-color: #08160F; /* Nền */
  color: #F2FFF6; /* Văn bản chính */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, chỉ cần 10px trang trí */
  text-align: center;
  background-color: #08160F;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Adjust as needed */
}

.page-casino__hero-content {
  position: relative; /* Đảm bảo nội dung nằm trên ảnh nếu cần, nhưng không chồng lấn */
  z-index: 10;
  max-width: 900px;
  margin-top: 40px; /* Tạo khoảng cách với ảnh */
  padding: 0 20px;
}

.page-casino__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  color: #F2FFF6; /* Văn bản chính */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Văn bản phụ */
  margin-bottom: 30px;
}

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

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

.page-casino__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F2FFF6; /* Văn bản chính */
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-casino__text-block {
  font-size: 1rem;
  color: #A7D9B8; /* Văn bản phụ */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút */
  color: #F2FFF6; /* Văn bản chính */
  border: none;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Văn bản chính */
  border: 2px solid #2E7A4E; /* Viền */
}

.page-casino__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Viền */
  transform: translateY(-2px);
}

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

/* About Section */
.page-casino__about-section {
  background-color: #08160F;
}

/* Games Section */
.page-casino__games-section {
  background-color: #08160F;
}

.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: #11271B; /* Nền thẻ */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #F2FFF6; /* Văn bản chính */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__game-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2FFF6; /* Văn bản chính */
  margin-bottom: 10px;
}

.page-casino__game-card-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Văn bản phụ */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-casino__game-card-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__game-card-link:hover {
  color: #57E38D; /* Phát sáng */
}

/* Promotions Section */
.page-casino__promotions-section {
  background-color: #0A4B2C; /* Xanh đậm */
}

.page-casino__promotions-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-casino__why-choose-section {
  background-color: #08160F;
}

.page-casino__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__feature-item {
  background-color: #11271B; /* Nền thẻ */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #F2FFF6; /* Văn bản chính */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-casino__feature-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Văn bản chính */
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Văn bản phụ */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-casino__feature-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__feature-link:hover {
  color: #57E38D;
}

/* How to Start Section */
.page-casino__how-to-start-section {
  background-color: #0A4B2C; /* Xanh đậm */
}

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

.page-casino__step-item {
  background-color: #11271B; /* Nền thẻ */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 4px solid #0A4B2C; /* Xanh đậm */
  box-shadow: 0 0 0 5px #1E3A2A; /* Chia */
}

.page-casino__step-content {
  margin-top: 30px;
  flex-grow: 1;
}

.page-casino__step-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Văn bản chính */
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Văn bản phụ */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-casino__step-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__step-link:hover {
  color: #57E38D;
}

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

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

.page-casino__faq-item {
  background-color: #11271B; /* Nền thẻ */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
  color: #F2FFF6; /* Văn bản chính */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-item summary {
  list-style: none;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6; /* Văn bản chính */
  background-color: #11271B; /* Nền thẻ */
  border-bottom: 1px solid #1E3A2A; /* Chia */
}

.page-casino__faq-question:hover {
  background-color: #1E3A2A;
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−';
}

.page-casino__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 0.95rem;
  color: #A7D9B8; /* Văn bản phụ */
  border-top: 1px solid #1E3A2A; /* Chia */
}

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

.page-casino__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-casino__faq-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__faq-link:hover {
  color: #57E38D;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  background-color: #0A4B2C; /* Xanh đậm */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-casino__hero-description {
    font-size: 1rem;
  }

  .page-casino__section {
    padding: 40px 15px;
  }

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

  .page-casino__game-grid,
  .page-casino__feature-list,
  .page-casino__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__feature-item,
  .page-casino__step-item,
  .page-casino__faq-item {
    padding: 20px;
  }

  .page-casino__hero-cta-buttons,
  .page-casino__cta-buttons--centered {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin-left: auto;
    margin-right: auto;
  }

  .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-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;
  }

  .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-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-casino__step-number {
    top: -25px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .page-casino__step-content {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }

  .page-casino__hero-description {
    font-size: 0.9rem;
  }

  .page-casino__section-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }
}