/* style/slot-games.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

.page-slot-games {
  background-color: var(--background-color, #B71C1C);
  color: var(--text-main-color, #FFF5E1);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1;
  text-align: center;
  overflow: hidden;
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-slot-games__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF5E1;
}

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

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

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red for text on gold */
  border: 2px solid #F2B544; /* Border color */
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-slot-games__btn-secondary {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border color */
}

.page-slot-games__btn-secondary:hover {
  background-color: #E53935; /* Auxiliary color */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-slot-games__glow-effect {
  box-shadow: 0 0 15px #FFCC66; /* Glow color */
}

.page-slot-games__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #C91F17; /* Primary color */
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: #FFF5E1; /* Text Main for dark backgrounds */
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-slot-games__dark-bg {
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
  padding: 60px 0;
}

.page-slot-games__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-slot-games__dark-bg .page-slot-games__text-block {
  color: #FFF5E1;
}

.page-slot-games__highlight-text {
  color: #F4D34D; /* Gold color */
  font-weight: bold;
}

/* Features Section */
.page-slot-games__features-grid,
.page-slot-games__games-grid,
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__feature-card,
.page-slot-games__game-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border color */
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-slot-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-height: 200px; /* Minimum image size */
}

.page-slot-games__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFF5E1; /* Text Main */
  padding: 0 15px;
}

.page-slot-games__card-description {
  font-size: 1rem;
  color: #FFF5E1;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-slot-games__step-item {
  text-align: center;
  padding: 30px 20px;
  background-color: #FFF5E1;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-slot-games__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto 20px;
  background-color: #C91F17; /* Primary color */
  color: #FFF5E1;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
}

.page-slot-games__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #C91F17; /* Primary color */
}

.page-slot-games__step-description {
  font-size: 1rem;
  color: #333333;
}

.page-slot-games__step-description a {
  color: #E53935; /* Auxiliary color */
  text-decoration: underline;
}

.page-slot-games__step-description a:hover {
  color: #C91F17;
}

.page-slot-games__play-button {
  margin-top: 15px;
}

.page-slot-games__promotion-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-slot-games__list-item {
  background-color: #f8f8f8;
  border-left: 5px solid #E53935; /* Auxiliary color */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #333333;
}

.page-slot-games__list-item:last-child {
  margin-bottom: 0;
}

.page-slot-games__center-align {
  text-align: center;
}

.page-slot-games__app-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  min-height: 200px; /* Minimum image size */
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__faq-item {
  background-color: #FFF5E1;
  border: 1px solid #F2B544; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  list-style: none;
}

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

.page-slot-games__faq-item summary:hover {
  background-color: #E53935; /* Auxiliary color */
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-slot-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  background-color: #FFF5E1;
  color: #333333;
  border-top: 1px solid #F2B544;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

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

.page-slot-games__faq-answer a {
  color: #C91F17;
  text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
  color: #E53935;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-slot-games__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-content {
    padding: 30px 15px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-slot-games__hero-description {
    font-size: 1rem;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-slot-games__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-slot-games__light-bg, .page-slot-games__dark-bg {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__features-grid,
  .page-slot-games__games-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card-image,
  .page-slot-games__app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure minimum size */
  }
  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__step-item,
  .page-slot-games__faq-item {
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 12px 20px 15px;
  }
  
  /* Responsive images, videos, and containers */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__container,
  .page-slot-games__features-grid,
  .page-slot-games__games-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__faq-list,
  .page-slot-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* Small visual top padding */
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-slot-games__section-title {
    font-size: 1.5rem;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
  .page-slot-games__card-title {
    font-size: 1.3rem;
  }
  .page-slot-games__faq-item summary {
    font-size: 1rem;
  }
}