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

.page-casino {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Chữ sáng trên nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Padding-top nhỏ, không dùng var(--header-offset) */
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-casino__hero-image {
  width: 100%;
  height: 675px; /* 1200x675 for 16:9 ratio, will be max-width: 100% on mobile */
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Requested size for generation */
  margin-bottom: 30px;
}

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

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-casino__btn-secondary {
  background: #11271B; /* Card BG */
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
  background: #2E7A4E;
  color: #F2FFF6;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-casino__text-block {
  font-size: 1.05rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__about-section,
.page-casino__games-section,
.page-casino__live-casino-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__how-to-play-section,
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-casino__games-section,
.page-casino__promotions-section {
  background-color: #11271B; /* Card BG for alternating sections */
}

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

.page-casino__game-card,
.page-casino__promo-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-image,
.page-casino__promo-image {
  width: 100%;
  height: 285px; /* Adjust height based on card aspect ratio */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-casino__game-title,
.page-casino__promo-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  padding: 0 15px;
  font-weight: 600;
}

.page-casino__game-title a,
.page-casino__promo-title a {
  color: inherit;
  text-decoration: none;
}

.page-casino__game-title a:hover,
.page-casino__promo-title a:hover {
  color: #57E38D; /* Glow */
}

.page-casino__game-description,
.page-casino__promo-description {
  font-size: 0.95rem;
  color: #A7D9B8;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn-play,
.page-casino__btn-claim {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  margin: 0 15px;
  box-shadow: 0 2px 10px rgba(17, 168, 78, 0.3);
}

.page-casino__btn-play:hover,
.page-casino__btn-claim:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

.page-casino__live-casino-section .page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.page-casino__live-casino-section .page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure video is block-level */
}

.page-casino__security-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-casino__security-features li {
  background-color: #11271B; /* Card BG */
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: #F2FFF6;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon {
  width: 48px;
  height: 48px;
  margin-right: 15px;
  object-fit: contain;
  min-width: 48px; /* Ensure icons are not too small */
  min-height: 48px;
}

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

.page-casino__step-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

.page-casino__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1;
}

.page-casino__step-title {
  font-size: 1.3rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-casino__step-description {
  font-size: 0.95rem;
  color: #A7D9B8;
}

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

.page-casino__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F2FFF6;
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
}

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

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

.page-casino__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8;
  font-size: 1rem;
  line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .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: 2rem;
  }

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

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-play,
  .page-casino__btn-claim {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__live-casino-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__how-to-play-section,
  .page-casino__faq-section {
    padding: 60px 0;
  }

  .page-casino__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__security-features,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-card {
    padding: 25px;
  }

  .page-casino__game-image,
  .page-casino__promo-image {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }

  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* height:auto would work too */
    display: block !important;
  }

  .page-casino__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-casino__feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin-right: 10px;
  }

  .page-casino__security-features li {
    font-size: 1rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8rem;
  }

  .page-casino__section-title {
    font-size: 1.6rem;
  }
}