/* style/casino.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần thêm tại đây */

.page-casino {
  color: #ffffff; /* Mặc định chữ trắng trên nền tối của body */
  background-color: transparent; /* Nền body đã được shared.css định nghĩa */
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Nhẹ nhàng padding-top, body đã bù trừ header */
  box-sizing: border-box;
  overflow: hidden;
  background-color: #1a1a2e; /* Đảm bảo nền tối cho hero */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px; /* Khoảng cách giữa ảnh và nội dung */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Giới hạn chiều cao trên desktop */
  border-radius: 8px;
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-casino__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Tối ưu font-size cho H1 */
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Đảm bảo chữ xuống dòng */
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

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

.page-casino__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.page-casino__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-casino__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Màu sắc cho các section */
.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-casino__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__card-title,
.page-casino__light-bg .page-casino__step-title,
.page-casino__light-bg .page-casino__faq-qtext {
  color: #333333;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__card-title,
.page-casino__dark-bg .page-casino__step-title,
.page-casino__dark-bg .page-casino__faq-qtext {
  color: #ffffff;
}

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

.page-casino__card {
  background-color: #ffffff; /* Nền trắng cho card */
  color: #333333; /* Chữ đen trên nền trắng */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__card-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333333;
}

.page-casino__card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #555555;
}

.page-casino__card .page-casino__btn-primary {
  margin-top: auto; /* Đẩy nút xuống dưới cùng */
  width: auto;
  align-self: flex-start;
}

.page-casino__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__step-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
  display: block;
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-casino__promo-item {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-casino__promo-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-size: 1.2em;
  line-height: 1;
}

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

.page-casino__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-casino__benefit-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-casino__benefit-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__benefit-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-casino__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  color: #333333;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-item summary:hover {
  background-color: #f0f0f0;
}

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

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

.page-casino__faq-answer {
  padding: 15px 25px 20px;
  background-color: #fefefe;
  color: #555555;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid #eee;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-casino__hero-image {
    max-height: 500px;
  }
  .page-casino__section {
    padding: 50px 20px;
  }
  .page-casino__promo-image {
    max-height: 350px;
  }
  .page-casino__grid,
  .page-casino__grid-benefits {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 10px 15px 40px;
  }
  .page-casino__hero-image-wrapper {
    margin-bottom: 25px;
  }
  .page-casino__hero-image {
    max-height: 400px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__hero-content {
    padding: 0 15px;
  }
  .page-casino__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 15px;
  }
  .page-casino__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-casino__section {
    padding: 40px 15px;
  }
  .page-casino__content-area {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-casino__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .page-casino__grid,
  .page-casino__grid-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__card {
    padding: 20px;
  }
  .page-casino__card-image {
    max-height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__card-title {
    font-size: 1.4rem;
  }
  .page-casino__promo-image {
    max-height: 250px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__promo-item {
    font-size: 1rem;
    padding-left: 25px;
  }
  .page-casino__benefit-icon {
    max-width: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__benefit-title {
    font-size: 1.3rem;
  }
  .page-casino__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-casino__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }

  /* Tất cả hình ảnh trong .page-casino phải tuân thủ */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-image {
    max-height: 300px;
  }
  .page-casino__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-casino__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-casino__card-title {
    font-size: 1.2rem;
  }
  .page-casino__benefit-title {
    font-size: 1.1rem;
  }
}