/* style/casino.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Màu chữ mặc định cho nền sáng */
  background-color: #F5F7FA; /* Màu nền tùy chỉnh */
  line-height: 1.6;
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Khoảng đệm trên nhỏ, body xử lý offset của header */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000000; /* Nền tối cho phần video */
  color: #ffffff;
}

.page-casino__video-wrapper {
  width: 100%;
  max-width: 1200px; /* Chiều rộng tối đa cho container video */
  position: relative;
  padding-bottom: 56.25%; /* Tỷ lệ khung hình 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 8px;
  transform: scale(0.98); /* Thu nhỏ nhẹ để tạo hiệu ứng thị giác */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-casino__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-casino__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Kích thước font chữ phản hồi cho H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* Chữ trắng trên nền video tối */
}

.page-casino__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #333333; /* Màu chữ chính */
}

.page-casino__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

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

.page-casino__game-card {
  background: #FFFFFF; /* Màu nền thẻ */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định để nhất quán */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 15px 20px 10px;
  color: #E53935; /* Màu chính cho tiêu đề */
}

.page-casino__game-card-text {
  font-size: 0.95rem;
  padding: 0 20px 15px;
  color: #555555;
}

.page-casino__btn-small {
  font-size: 0.9rem;
  padding: 10px 18px;
  margin: 0 20px 20px;
}

.page-casino__why-choose {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-casino__why-choose-content {
  flex: 1;
  min-width: 300px;
}

.page-casino__why-choose-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-casino__why-choose-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino__feature-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0; /* Màu viền */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 0.95rem;
  color: #555555;
}

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

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

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

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

.page-casino__promotion-card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định để nhất quán */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promotion-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 15px 20px 10px;
  color: #E53935;
}

.page-casino__promotion-card-text {
  font-size: 0.95rem;
  padding: 0 20px 15px;
  color: #555555;
}

.page-casino__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

.page-casino__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: #E53935; /* Màu chính làm nền cho CTA */
  color: #ffffff; /* Chữ trắng trên nền chính */
}

.page-casino__cta-section .page-casino__section-title,
.page-casino__cta-section .page-casino__section-description {
  color: #ffffff; /* Đảm bảo chữ trắng trên phần tối */
}

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

/* Button Styles */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Viền trong suốt mặc định */
  box-sizing: border-box; /* Đảm bảo padding/border được tính vào chiều rộng */
  white-space: nowrap; /* Ngăn chặn ngắt dòng văn bản trên máy tính để bàn */
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Gradient nút tùy chỉnh */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.6);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Màu chính cho văn bản */
  border-color: #E53935; /* Màu chính cho viền */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F; /* Màu phụ trợ khi hover */
  border-color: #FF5A4F;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Styling hình ảnh chung để ngăn chặn các biểu tượng nhỏ */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-casino__why-choose {
    flex-direction: column;
  }
  .page-casino__why-choose-image-wrapper {
    order: -1; /* Hình ảnh trên nội dung trên màn hình nhỏ hơn */
  }
}

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

  /* Video responsiveness */
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 56.25% !important; /* Đảm bảo tỷ lệ khung hình */
    transform: none !important; /* Loại bỏ scale trên di động */
    box-shadow: none !important; /* Loại bỏ đổ bóng trên di động */
  }
  .page-casino__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }
  .page-casino__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    padding-bottom: 40px;
  }
  .page-casino__hero-content {
    padding: 0 15px;
  }

  /* Image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Buộc kích thước tối thiểu */
    min-height: 200px !important;
  }
  .page-casino__game-card-image,
  .page-casino__promotion-card-image {
    height: 180px !important; /* Điều chỉnh chiều cao cố định cho thẻ trên di động */
  }

  /* Container responsiveness */
  .page-casino__game-categories,
  .page-casino__why-choose,
  .page-casino__promotions,
  .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-casino__hero-cta-buttons,
  .page-casino__cta-buttons {
    flex-direction: column !important; /* Xếp chồng các nút theo chiều dọc */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__btn-small {
    margin: 0 auto 15px auto !important; /* Căn giữa các nút nhỏ nếu cần */
  }
}