.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #0a0a0a, so text should be light */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-casino__image {
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}

.page-casino__image--full-width {
  width: 100%;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #017439 0%, #0a0a0a 100%);
  min-height: 600px;
  overflow: hidden;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-casino__hero-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: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background: #C30808; /* Đăng Ký color */
  color: #FFFF00; /* Đăng Ký font color */
  border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
  background: #017439; /* Login color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

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

.page-casino__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video for text readability */
}

/* Game Grid Section */
.page-casino__games-section {
  background-color: #0a0a0a;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  color: #ffffff; /* Light text for dark background */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-casino__card-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn-text {
  color: #FFFF00; /* Yellow for link text */
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-casino__btn-text:hover {
  text-decoration: underline;
}

.page-casino__arrow {
  font-size: 1.2em;
  transition: transform 0.2s ease;
}

.page-casino__btn-text:hover .page-casino__arrow {
  transform: translateX(5px);
}

/* Advantages Section */
.page-casino__advantages-section {
  background: #017439; /* Primary color background */
  color: #ffffff;
}

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

.page-casino__advantage-item {
  text-align: center;
  background: rgba(0, 0, 0, 0.2); /* Dark transparent background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__advantage-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: contain;
  background-color: #ffffff;
  padding: 10px;
}

.page-casino__advantage-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__advantage-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section */
.page-casino__guide-section {
  background-color: #0a0a0a;
}

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

.page-casino__guide-step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-casino__step-number {
  width: 60px;
  height: 60px;
  background: #C30808;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(195, 8, 8, 0.6);
}

.page-casino__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__step-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-casino__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Promotions Section */
.page-casino__promotions-section {
  background-color: #0a0a0a;
}

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

.page-casino__promotion-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* FAQ Section */
.page-casino__faq-section {
  background-color: #0a0a0a;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Yellow toggle icon */
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px 25px;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  background: #017439;
  color: #ffffff;
  text-align: center;
}

.page-casino__cta-final-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__cta-final-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__cta-final-section .page-casino__text-block {
  color: #f0f0f0;
}

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

.page-casino__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }

  .page-casino__hero-description {
    font-size: 1.1em;
  }

  .page-casino__section-title {
    font-size: 2em;
  }
}

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

  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

  .page-casino__hero-title {
    font-size: 2.2em;
  }

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

  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-casino__section {
    padding: 40px 0;
  }

  .page-casino__section-title {
    font-size: 1.8em;
  }

  .page-casino__text-block {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-casino__container {
    padding: 0 15px;
  }

  /* 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__game-card,
  .page-casino__advantage-item,
  .page-casino__guide-step-item,
  .page-casino__promotion-card,
  .page-casino__faq-item,
  .page-casino__hero-video-wrapper,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-casino__hero-video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-casino__game-grid,
  .page-casino__advantages-grid,
  .page-casino__guide-steps,
  .page-casino__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

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

  .page-casino__hero-description {
    font-size: 0.9em;
  }

  .page-casino__section-title {
    font-size: 1.5em;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}