/* style/casino.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Sẽ được phủ bởi các phần có nền cụ thể */
  background-color: transparent; /* Body đã có nền từ shared.css #1a1a2e (dark), nên nội dung chính sẽ dùng chữ màu sáng */
}

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

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

.page-casino__dark-section {
  background-color: #26A9E0; /* Màu chủ đạo */
  color: #ffffff;
}

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

.page-casino__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã có padding-top */
  overflow: hidden;
  color: #ffffff;
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Giảm độ sáng để chữ dễ đọc */
}

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

.page-casino__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-casino__tagline {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__faq-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Màu login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* Why Choose Section */
.page-casino__why-choose {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-casino__feature-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-casino__feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

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

.page-casino__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Game Categories Section */
.page-casino__game-categories {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__game-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
  color: #ffffff;
}

.page-casino__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-casino__promo-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  background: rgba(0, 0, 0, 0.3);
}

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

.page-casino__promo-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__view-all-promos {
  margin-top: 20px;
}

/* Payment Methods Section */
.page-casino__payment-methods {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-casino__payment-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-casino__payment-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__payment-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-casino__view-all-payments {
  margin-top: 20px;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-casino__responsibility-list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: #f0f0f0;
}

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

.page-casino__read-more {
  margin-top: 20px;
}

/* FAQ Section */
.page-casino__faq {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-casino__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-casino__faq-item summary {
  display: block;
  cursor: pointer;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  list-style: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg); /* Thay đổi dấu + thành X hoặc - */
}

.page-casino__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-casino__faq-btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #EA7C07;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}

.page-casino__faq-btn:hover {
  background-color: #d16e06;
}

/* Final CTA Section */
.page-casino__cta-final {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

/* Floating Buttons */
.page-casino__floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #EA7C07;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  max-width: 100px; /* Adjust for spacing */
  text-align: center;
}

.page-casino__floating-button:hover {
  background-color: #d16e06;
  transform: translateY(-3px);
}

.page-casino__floating-login {
  right: 140px; /* Adjust based on button width */
  background-color: #000000; /* Màu đen cho Đăng Nhập */
}

.page-casino__floating-login:hover {
  background-color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }
  .page-casino__hero-content {
    padding: 15px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 80%;
    margin: 0 auto;
  }
  .page-casino__floating-button {
    bottom: 15px;
    right: 15px;
    padding: 12px 20px;
    font-size: 0.9em;
    max-width: unset;
    width: auto;
  }
  .page-casino__floating-login {
    right: 120px;
  }
}

@media (max-width: 768px) {
  .page-casino__section {
    padding: 40px 0;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-casino__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-casino__tagline {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .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__hero-section {
    padding-bottom: 40px;
  }
  .page-casino__features-grid,
  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__payment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__feature-card,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__payment-card {
    padding: 20px;
  }
  .page-casino__feature-title,
  .page-casino__game-title,
  .page-casino__promo-title,
  .page-casino__payment-title {
    font-size: 1.3em;
  }
  .page-casino__responsibility-list li {
    padding: 15px;
    font-size: 0.95em;
  }
  .page-casino__faq-item summary {
    font-size: 1.05em;
    padding: 15px;
  }
  .page-casino__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-casino__floating-button {
    width: calc(50% - 25px);
    max-width: unset;
    bottom: 15px;
    right: 15px;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 0.9em;
  }
  .page-casino__floating-login {
    left: 15px;
    right: unset;
  }
  /* Ensure images and containers are fully responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-casino__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset */
  }
}