/* 智能文字颜色选择器 - Sử dụng màu chữ phù hợp với độ sáng nền */
.page-casino__text-main {
  color: #FFF5E1;
}

.page-casino__hero-section,
.page-casino__promotions-section,
.page-casino__cta-final {
  background: #B71C1C; /* Nền tối */
  color: #FFF5E1; /* Chữ sáng */
}

.page-casino__section {
  background: #ffffff; /* Nền sáng */
  color: #333333; /* Chữ tối */
}

.page-casino__card {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Border */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.page-casino__card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-casino__card-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #FFF5E1;
}

.page-casino__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #333333; /* Text color for buttons */
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #F2B544; /* Border */
  cursor: pointer;
  margin-left: 15px;
}

.page-casino__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Pull content slightly over image */
  background: rgba(183, 28, 28, 0.85); /* Deep Red with opacity */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544;
}

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

.page-casino__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-casino__section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 25px;
  color: #C91F17; /* Main Color */
}

.page-casino__dark-section .page-casino__section-title {
  color: #FFF5E1;
}

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

.page-casino__text-block {
  font-size: 16px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: justify;
}

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

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

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

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
  text-align: justify;
}

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

.page-casino__faq-list {
  margin-top: 40px;
}

/* Final CTA Section */
.page-casino__cta-final {
  padding: 80px 0;
}

.page-casino__cta-final .page-casino__section-title {
  margin-bottom: 20px;
}

.page-casino__cta-final .page-casino__description {
  margin-bottom: 40px;
}

/* Global image responsiveness */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    max-width: 700px;
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-casino__description {
    font-size: 16px;
  }

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

  .page-casino__btn-secondary {
    margin-left: 0;
  }

  .page-casino__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

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

  .page-casino__card-image {
    height: 180px;
  }

  .page-casino__card-title {
    font-size: 18px;
  }

  .page-casino__card-description {
    font-size: 14px;
  }

  .page-casino__text-block {
    font-size: 15px;
  }

  .page-casino__faq-qtext {
    font-size: 15px;
  }
}

@media (max-width: 849px) {
  .page-casino__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100%;
    height: auto;
  }
  .page-casino__hero-content {
    margin-top: 0; /* No overlap on smaller screens */
    background: #B71C1C; /* Solid background when no overlap */
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

@media (max-width: 768px) {
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__hero-content,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container,
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__features-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-section {
    padding-top: 10px; /* Small top padding */
    min-height: auto;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-casino__description {
    font-size: 15px;
    margin-bottom: 25px;
    text-align: left;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
    font-size: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
  }

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

  .page-casino__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-casino__text-block {
    font-size: 14px;
    margin-bottom: 30px;
    text-align: left;
  }

  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-casino__card-image {
    height: 150px;
  }

  .page-casino__card-title {
    font-size: 17px;
  }

  .page-casino__card-description {
    font-size: 13px;
  }

  details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
  .page-casino__faq-qtext { font-size: 15px; }
  details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }

  .page-casino__cta-final {
    padding: 60px 0;
  }
}