/* style/promotions-welcome-bonus-details.css */

:root {
  --primary-color: #FFD700; /* Vàng sang trọng */
  --secondary-color: #B22222; /* Đỏ nhiệt huyết */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0d0d0d;
  --bg-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #444;
}

.page-promotions-welcome-bonus-details {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

.page-promotions-welcome-bonus-details__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-promotions-welcome-bonus-details__hero-section {
  background: linear-gradient(135deg, var(--secondary-color), #8B0000);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  border-bottom: 5px solid var(--primary-color);
}

.page-promotions-welcome-bonus-details__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-promotions-welcome-bonus-details__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-welcome-bonus-details__hero-cta {
  margin-top: 30px;
}

/* General Section Styles */
.page-promotions-welcome-bonus-details__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions-welcome-bonus-details__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Button Styles */
.page-promotions-welcome-bonus-details__btn-primary,
.page-promotions-welcome-bonus-details__btn-secondary,
.page-promotions-welcome-bonus-details__btn-outline {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions-welcome-bonus-details__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-promotions-welcome-bonus-details__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-promotions-welcome-bonus-details__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4);
}

.page-promotions-welcome-bonus-details__btn-secondary:hover {
  background: #991e1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 34, 34, 0.6);
}

.page-promotions-welcome-bonus-details__btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  margin-left: 20px;
}

.page-promotions-welcome-bonus-details__btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Card Styles */
.page-promotions-welcome-bonus-details__content-grid,
.page-promotions-welcome-bonus-details__promo-grid,
.page-promotions-welcome-bonus-details__feature-list {
  display: grid;
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions-welcome-bonus-details__content-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promotions-welcome-bonus-details__promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions-welcome-bonus-details__feature-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-promotions-welcome-bonus-details__content-card,
.page-promotions-welcome-bonus-details__promo-card,
.page-promotions-welcome-bonus-details__feature-item {
  background-color: var(--bg-light-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-promotions-welcome-bonus-details__content-card:hover,
.page-promotions-welcome-bonus-details__promo-card:hover,
.page-promotions-welcome-bonus-details__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.page-promotions-welcome-bonus-details__card-image,
.page-promotions-welcome-bonus-details__promo-image,
.page-promotions-welcome-bonus-details__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Limit icon/image width */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

.page-promotions-welcome-bonus-details__feature-icon {
  max-width: 100px;
  height: 100px;
  object-fit: contain;
}

.page-promotions-welcome-bonus-details__card-title,
.page-promotions-welcome-bonus-details__promo-title,
.page-promotions-welcome-bonus-details__feature-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions-welcome-bonus-details__card-text,
.page-promotions-welcome-bonus-details__promo-text,
.page-promotions-welcome-bonus-details__feature-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

.page-promotions-welcome-bonus-details__promo-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promotions-welcome-bonus-details__promo-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* CTA Sections */
.page-promotions-welcome-bonus-details__cta-section,
.page-promotions-welcome-bonus-details__cta-bottom,
.page-promotions-welcome-bonus-details__final-cta-section .page-promotions-welcome-bonus-details__cta-buttons {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: rgba(var(--secondary-color), 0.2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-promotions-welcome-bonus-details__cta-text {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-promotions-welcome-bonus-details__cta-bottom {
  background: none;
  border-top: 1px dashed var(--primary-color);
  padding-top: 40px;
  margin-top: 60px;
  flex-direction: row; /* For desktop, buttons side-by-side */
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* How-To-Claim Section */
.page-promotions-welcome-bonus-details__how-to-claim-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-promotions-welcome-bonus-details__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-promotions-welcome-bonus-details__steps-list .page-promotions-welcome-bonus-details__list-item {
  background-color: var(--bg-light-card);
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  padding-left: 80px;
  text-align: left;
}

.page-promotions-welcome-bonus-details__steps-list .page-promotions-welcome-bonus-details__list-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions-welcome-bonus-details__list-item-title {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions-welcome-bonus-details__list-item p {
  color: rgba(255, 255, 255, 0.7);
}

/* Terms & Conditions Section */
.page-promotions-welcome-bonus-details__terms-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-promotions-welcome-bonus-details__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-promotions-welcome-bonus-details__terms-list .page-promotions-welcome-bonus-details__list-item {
  background-color: var(--bg-light-card);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--primary-color);
  text-align: left;
}

.page-promotions-welcome-bonus-details__terms-list .page-promotions-welcome-bonus-details__list-item-title {
  font-size: 1.3em;
  margin-bottom: 8px;
}

.page-promotions-welcome-bonus-details__terms-note {
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}

/* Other Promos Section */
.page-promotions-welcome-bonus-details__other-promos-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

/* Why Lucky88 Section */
.page-promotions-welcome-bonus-details__why-lucky88-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

/* FAQ Section */
.page-promotions-welcome-bonus-details__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-promotions-welcome-bonus-details__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions-welcome-bonus-details__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-light-card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions-welcome-bonus-details__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions-welcome-bonus-details__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-promotions-welcome-bonus-details__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click */
}

.page-promotions-welcome-bonus-details__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle from blocking click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-promotions-welcome-bonus-details__faq-item.active .page-promotions-welcome-bonus-details__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
  color: var(--secondary-color);
}

.page-promotions-welcome-bonus-details__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.page-promotions-welcome-bonus-details__faq-item.active .page-promotions-welcome-bonus-details__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-promotions-welcome-bonus-details__faq-answer p {
  margin-bottom: 10px;
}

/* Final CTA Section */
.page-promotions-welcome-bonus-details__final-cta-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  text-align: center;
  color: var(--text-light);
}

.page-promotions-welcome-bonus-details__final-cta-section .page-promotions-welcome-bonus-details__section-title {
  color: var(--primary-color);
}

.page-promotions-welcome-bonus-details__final-cta-section .page-promotions-welcome-bonus-details__section-description {
  color: var(--text-light);
}

.page-promotions-welcome-bonus-details__final-cta-section .page-promotions-welcome-bonus-details__cta-buttons {
  background: none;
  padding: 0;
  margin-top: 30px;
  flex-direction: row; /* For desktop, buttons side-by-side */
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-welcome-bonus-details__hero-title {
    font-size: 2.8em;
  }
  .page-promotions-welcome-bonus-details__section-title {
    font-size: 2em;
  }
  .page-promotions-welcome-bonus-details__content-card,
  .page-promotions-welcome-bonus-details__promo-card,
  .page-promotions-welcome-bonus-details__feature-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-promotions-welcome-bonus-details {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 15px;
  }

  .page-promotions-welcome-bonus-details__container {
    padding: 0 15px;
  }

  .page-promotions-welcome-bonus-details__hero-section,
  .page-promotions-welcome-bonus-details__how-to-claim-section,
  .page-promotions-welcome-bonus-details__terms-section,
  .page-promotions-welcome-bonus-details__other-promos-section,
  .page-promotions-welcome-bonus-details__why-lucky88-section,
  .page-promotions-welcome-bonus-details__faq-section,
  .page-promotions-welcome-bonus-details__final-cta-section {
    padding: 60px 0;
  }

  .page-promotions-welcome-bonus-details__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-promotions-welcome-bonus-details__hero-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-promotions-welcome-bonus-details__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions-welcome-bonus-details__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-promotions-welcome-bonus-details__btn-primary,
  .page-promotions-welcome-bonus-details__btn-secondary,
  .page-promotions-welcome-bonus-details__btn-outline {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Mobile full width */
    margin-left: 0 !important; /* Remove margin for stacking */
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-promotions-welcome-bonus-details__cta-bottom,
  .page-promotions-welcome-bonus-details__final-cta-section .page-promotions-welcome-bonus-details__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }
  
  .page-promotions-welcome-bonus-details__cta-section {
    padding: 20px 15px;
    margin-top: 30px;
  }

  .page-promotions-welcome-bonus-details__content-grid,
  .page-promotions-welcome-bonus-details__promo-grid,
  .page-promotions-welcome-bonus-details__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-promotions-welcome-bonus-details__content-card,
  .page-promotions-welcome-bonus-details__promo-card,
  .page-promotions-welcome-bonus-details__feature-item {
    padding: 20px;
  }
  
  .page-promotions-welcome-bonus-details__card-image,
  .page-promotions-welcome-bonus-details__promo-image,
  .page-promotions-welcome-bonus-details__feature-icon {
    max-width: 180px;
    margin-bottom: 15px;
  }

  .page-promotions-welcome-bonus-details__feature-icon {
    max-width: 80px;
    height: 80px;
  }

  .page-promotions-welcome-bonus-details__card-title,
  .page-promotions-welcome-bonus-details__promo-title,
  .page-promotions-welcome-bonus-details__feature-title {
    font-size: 1.4em;
  }

  .page-promotions-welcome-bonus-details__steps-list .page-promotions-welcome-bonus-details__list-item {
    padding: 25px 20px 25px 70px;
  }

  .page-promotions-welcome-bonus-details__steps-list .page-promotions-welcome-bonus-details__list-item::before {
    left: 20px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }

  .page-promotions-welcome-bonus-details__list-item-title {
    font-size: 1.2em;
  }
  
  .page-promotions-welcome-bonus-details__faq-question {
    padding: 15px 20px;
  }

  .page-promotions-welcome-bonus-details__faq-question h3 {
    font-size: 1.1em;
  }

  .page-promotions-welcome-bonus-details__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-promotions-welcome-bonus-details__faq-answer {
    padding: 0 20px;
  }

  .page-promotions-welcome-bonus-details__faq-item.active .page-promotions-welcome-bonus-details__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Image responsiveness */
  .page-promotions-welcome-bonus-details img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions-welcome-bonus-details__card-image,
  .page-promotions-welcome-bonus-details__promo-image,
  .page-promotions-welcome-bonus-details__feature-icon {
    max-width: 100% !important; /* Ensure images adapt within cards */
    width: auto !important; /* Let auto handle width based on max-width */
    height: auto !important;
  }
  
  .page-promotions-welcome-bonus-details__container,
  .page-promotions-welcome-bonus-details__content-grid,
  .page-promotions-welcome-bonus-details__promo-grid,
  .page-promotions-welcome-bonus-details__feature-list,
  .page-promotions-welcome-bonus-details__content-card,
  .page-promotions-welcome-bonus-details__promo-card,
  .page-promotions-welcome-bonus-details__feature-item,
  .page-promotions-welcome-bonus-details__cta-section,
  .page-promotions-welcome-bonus-details__cta-bottom,
  .page-promotions-welcome-bonus-details__final-cta-section .page-promotions-welcome-bonus-details__cta-buttons,
  .page-promotions-welcome-bonus-details__faq-list,
  .page-promotions-welcome-bonus-details__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }
}