/* style/promotions.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
  line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 40px; /* Separation between image and content */
  background: var(--card-bg, #11271B); /* Dark background for content block */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--gold, #F2C14E); /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 15px;
  justify-content: center;
}

.page-promotions__cta-buttons--center {
  margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-promotions__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--background, #08160F);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-promotions__overview-section,
.page-promotions__bonus-spotlight-section,
.page-promotions__deposit-bonus-section,
.page-promotions__special-events-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__final-cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__dark-bg {
  background-color: var(--card-bg, #11271B); /* Consistent dark background for sections */
  color: var(--text-main, #F2FFF6);
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw + 1rem, 2.8rem);
  color: var(--gold, #F2C14E);
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.3;
}

.page-promotions__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 700px;
  text-align: left;
  font-size: 1.05rem;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__feature-list li {
  background: var(--deep-green, #0A4B2C);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__feature-list li::before {
  content: "✅";
  margin-right: 15px;
  font-size: 1.2rem;
}

/* Bonus Spotlight Section */
.page-promotions__bonus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__bonus-image {
  width: 100%;
  max-width: 500px; /* Limit image width within card */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__bonus-content {
  flex: 1;
}

.page-promotions__bonus-title {
  font-size: clamp(1.5rem, 3vw + 1rem, 2.2rem);
  color: var(--glow, #57E38D);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__bonus-description {
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

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

.page-promotions__bonus-details li {
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__bonus-details strong {
  color: var(--gold, #F2C14E);
}

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

.page-promotions__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__card-image {
  width: 100%;
  max-width: 300px; /* Limit image width within card */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-promotions__card-title {
  font-size: 1.4rem;
  color: var(--glow, #57E38D);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__card-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* Special Events / VIP Section */
.page-promotions__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__event-card {
  text-align: left;
  padding: 30px;
}

/* How to Claim Section */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-promotions__steps-list li {
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
  font-size: 1.05rem;
  position: relative;
  counter-increment: step-counter;
}

.page-promotions__steps-list li::before {
  content: "Bước " counter(step-counter) ":";
  font-weight: 700;
  color: var(--gold, #F2C14E);
  display: block;
  margin-bottom: 8px;
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--glow, #57E38D);
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* For details tag, hide default marker and rotate toggle */
.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes an X */
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider, #1E3A2A);
  margin-top: -1px; /* Overlap border */
}

.page-promotions__faq-answer p {
  margin: 0;
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: 30px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: 20px;
    padding: 25px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem);
  }

  .page-promotions__intro-text,
  .page-promotions__section-description,
  .page-promotions__feature-list li,
  .page-promotions__bonus-description,
  .page-promotions__bonus-details li,
  .page-promotions__card-text,
  .page-promotions__steps-list li,
  .page-promotions__faq-answer {
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw + 1rem, 2.2rem);
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__overview-section,
  .page-promotions__bonus-spotlight-section,
  .page-promotions__deposit-bonus-section,
  .page-promotions__special-events-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section {
    padding: 40px 0;
  }

  .page-promotions__bonus-card {
    flex-direction: column;
    padding: 30px 20px;
  }

  .page-promotions__bonus-image {
    max-width: 100%;
  }

  .page-promotions__bonus-grid,
  .page-promotions__grid-2-cols {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    padding: 25px;
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }

  /* Mobile image and video responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__hero-content,
  .page-promotions__bonus-card,
  .page-promotions__bonus-grid,
  .page-promotions__grid-2-cols,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section,
  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Video specific mobile rules (if any videos were present) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__video-section {
    padding-top: 10px !important;
  }
}

/* Color Contrast Enforcement - Custom colors used where applicable */
.page-promotions__dark-bg {
  background: var(--card-bg, #11271B); /* Using custom card background */
  color: var(--text-main, #F2FFF6); /* Using custom main text color */
}

/* Ensure general text on main background is light */
.page-promotions p,
.page-promotions li {
  color: var(--text-secondary, #A7D9B8); /* Secondary text color for general content */
}

.page-promotions__card {
  background: var(--card-bg, #11271B); /* Custom card background */
  color: var(--text-main, #F2FFF6); /* Custom main text color */
  border: 1px solid var(--border, #2E7A4E); /* Custom border color */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff; /* White text on dark button */
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D); /* Custom glow color for text */
  border: 2px solid var(--glow, #57E38D); /* Custom glow color for border */
}

/* Specific elements needing strong contrast on dark backgrounds */
.page-promotions__section-title,
.page-promotions__main-title {
  color: var(--gold, #F2C14E); /* Gold text on dark background */
}

.page-promotions__card-title,
.page-promotions__faq-question {
  color: var(--glow, #57E38D); /* Glow text on dark background */
}

.page-promotions__steps-list li::before {
  color: var(--gold, #F2C14E); /* Gold text for step numbers */
}

/* Divider for FAQ */
.page-promotions__faq-answer {
  border-top: 1px solid var(--divider, #1E3A2A);
}