/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-light: #f8f9fa;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-promotions {
  color: var(--text-light); /* Default text for dark body background */
  background-color: var(--background-dark); /* Inherited from body */
  padding-top: 120px; /* Adjust for fixed header */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-promotions__section-title {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-promotions__section-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:promotions:lode88 win,khuyen mai,hero,background,1920x1080]') no-repeat center center/cover;
  padding: 100px 20px;
  color: var(--text-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  margin-top: -120px; /* Offset for fixed header */
}

.page-promotions__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-promotions__hero-title {
  font-size: 52px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.page-promotions__hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-promotions__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--secondary:hover {
  background: #000066;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-promotions__intro-section .page-promotions__container {
  text-align: left;
}

.page-promotions__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-promotions__content-text p {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-light);
  opacity: 0.9;
}

.page-promotions__content-image {
  text-align: center;
}

.page-promotions__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Promo Types Section */
.page-promotions__promo-types-section {
  background-color: var(--background-dark);
}

.page-promotions__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.page-promotions__promo-card {
  background: var(--card-background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-promotions__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
  opacity: 0.8;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: #e6c200;
  transform: translateY(-1px);
}

/* Terms Section */
.page-promotions__terms-section .page-promotions__container {
  text-align: left;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 900px;
}

.page-promotions__terms-list li {
  background: var(--card-background-dark);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--primary-color);
  text-align: left;
}

.page-promotions__terms-list li p {
  margin: 0;
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.85;
}

.page-promotions__terms-list li p strong {
  color: var(--primary-color);
  font-size: 17px;
}

.page-promotions__terms-cta {
  text-align: center;
  margin-top: 30px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-promotions__steps-list li {
  background: var(--card-background-dark);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__steps-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__step-icon {
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  max-width: 100%;
  height: auto;
}

.page-promotions__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__step-text {
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.85;
  flex-grow: 1;
}

.page-promotions__step-text a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__step-text a:hover {
  color: #e6c200;
}

.page-promotions__how-to-cta {
  margin-top: 40px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  background-color: var(--background-dark);
}

.page-promotions__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.page-promotions__why-choose-item {
  background: var(--card-background-dark);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__why-choose-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
}

.page-promotions__why-choose-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__why-choose-text {
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.85;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: left;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background-dark);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-promotions__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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--text-light);
  transform: rotate(180deg);
}

.page-promotions__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;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 44px;
  }
  .page-promotions__hero-subtitle {
    font-size: 18px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__content-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__content-image {
    order: -1; /* Image on top for mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important; /* Adjust for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__hero-section {
    padding: 80px 15px;
    min-height: 400px;
    margin-top: -100px; /* Offset for fixed header */
  }
  .page-promotions__hero-title {
    font-size: 36px;
  }
  .page-promotions__hero-subtitle {
    font-size: 16px;
  }
  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 28px;
  }
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-promotions__promo-cards-grid,
  .page-promotions__steps-list,
  .page-promotions__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__card-text {
    font-size: 15px;
  }
  .page-promotions__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__terms-list li {
    padding: 15px 20px;
  }
  .page-promotions__terms-list li p {
    font-size: 15px;
  }
  .page-promotions__terms-list li p strong {
    font-size: 16px;
  }
  .page-promotions__step-icon {
    width: 60px;
    height: 60px;
  }
  .page-promotions__step-icon img {
    width: 40px;
    height: 40px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
  .page-promotions__step-text {
    font-size: 15px;
  }
  .page-promotions__why-choose-icon {
    width: 80px;
    height: 80px;
  }
  .page-promotions__why-choose-title {
    font-size: 20px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__content-image,
  .page-promotions__step-icon,
  .page-promotions__why-choose-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}