/* style/casino.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc section đầu tiên. */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Màu chữ mặc định cho nền tối của body */
  background-color: #1a1a2e; /* Nền body tối */
}

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

.page-casino__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Chỉ 10px top padding */
  background: linear-gradient(135deg, #1a1a2e, #26A9E0);
}

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Tối thiểu 200px */
}

.page-casino__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-casino__main-title {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* Không đặt font-size cố định quá lớn, dùng line-height, letter-spacing để tạo điểm nhấn */
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-casino__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-casino__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-small:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

/* Features Section */
.page-casino__features-section,
.page-casino__promotions-section,
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Nền sáng cho các phần này */
  color: #333333; /* Chữ tối trên nền sáng */
}

.page-casino__features-section .page-casino__section-title,
.page-casino__features-section .page-casino__section-description,
.page-casino__promotions-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-description,
.page-casino__faq-section .page-casino__section-title,
.page-casino__faq-section .page-casino__section-description {
  color: #333333;
}

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

.page-casino__feature-item {
  text-align: center;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
}

.page-casino__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
  object-fit: contain;
}

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

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

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho hình ảnh game */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-casino__game-title {
  font-size: 1.4rem;
  margin: 20px 15px 10px 15px;
  font-weight: 600;
}

.page-casino__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-casino__game-title a:hover {
  text-decoration: underline;
}

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

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

.page-casino__promotion-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-casino__promotion-card:hover {
  transform: translateY(-5px);
}

.page-casino__promotion-image {
  width: 100%;
  height: 180px; /* Chiều cao cố định cho hình ảnh khuyến mãi */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-casino__promotion-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin: 20px 15px 10px 15px;
  font-weight: 600;
}

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

/* Access Guide Section */
.page-casino__access-guide {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-casino__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__guide-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #f0f0f0;
  line-height: 1.7;
  border-left: 5px solid #26A9E0;
}

.page-casino__guide-list li strong {
  color: #ffffff;
}

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

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

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

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

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

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

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

.page-casino__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  background-color: #f8f8f8;
}

/* CTA Bottom Section */
.page-casino__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(45deg, #26A9E0, #1a1a2e);
  text-align: center;
}

.page-casino__cta-bottom .page-casino__section-title,
.page-casino__cta-bottom .page-casino__section-description {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 2.8rem;
  }
  .page-casino__section-title {
    font-size: 2rem;
  }
  .page-casino__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-casino__main-title {
    font-size: 2.2rem;
  }
  .page-casino__hero-description {
    font-size: 1rem;
  }
  .page-casino__section-title {
    font-size: 1.8rem;
  }
  .page-casino__section-description {
    font-size: 0.95rem;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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__container {
    padding: 0 15px;
  }
  .page-casino__hero-image {
    height: 300px;
  }
  .page-casino__features-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__access-guide,
  .page-casino__faq-section,
  .page-casino__cta-bottom {
    padding: 40px 0;
  }
  /* Mobile image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__game-card,
  .page-casino__promotion-card,
  .page-casino__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-casino__faq-answer {
    padding: 15px;
    font-size: 0.95rem;
  }
  .page-casino__feature-icon,
  .page-casino__game-image,
  .page-casino__promotion-image {
    min-height: 150px; /* Nhỏ hơn trên mobile nhưng vẫn trên 200px nếu có thể */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8rem;
  }
  .page-casino__section-title {
    font-size: 1.5rem;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }
}