/* style/promotions.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --background-color: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Text Main on Background */
  background-color: var(--background-color);
}

.page-promotions__section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-promotions__section-title {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-green);
  overflow: hidden;
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-promotions__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-promotions__cta-button--large {
  padding: 20px 60px;
  font-size: 1.4em;
}

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

.page-promotions__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-promotions__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-promotions__text-block {
  flex: 1;
}

.page-promotions__image-block {
  flex: 1;
  min-width: 300px; /* Ensure images don't get too small */
}

.page-promotions__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__benefit-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 1.05em;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
}

.page-promotions__benefit-list li strong {
  color: var(--gold-color);
  margin-right: 10px;
  flex-shrink: 0;
}

/* Promotion Types Section */
.page-promotions__promotion-types {
  background-color: var(--deep-green);
}

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

.page-promotions__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
}

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

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.6em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  align-self: flex-start;
  transition: all 0.3s ease;
  border: none;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--background-color);
}

.page-promotions__step-list {
  list-style: none;
  padding: 0;
}

.page-promotions__step-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  counter-increment: step-counter;
}

.page-promotions__step-list li::before {
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--gold-color);
  color: #000;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.page-promotions__step-list li h3 {
  color: var(--text-main);
  margin-top: 0;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-promotions__step-list li p {
  color: var(--text-secondary);
  font-size: 1em;
}

/* Terms and Conditions Section */
.page-promotions__terms {
  background-color: var(--deep-green);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
}

.page-promotions__terms-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 1em;
  color: var(--text-secondary);
}

.page-promotions__terms-list li strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 5px;
}

.page-promotions__terms-contact {
  margin-top: 30px;
  font-style: italic;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-promotions__faq {
  background-color: var(--background-color);
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}

details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: rgba(var(--primary-color), 0.1);
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-green);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
}

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

/* Final CTA Section */
.page-promotions__final-cta {
  background-color: var(--deep-green);
  text-align: center;
}

.page-promotions__cta-wrapper {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__section-title {
    font-size: 2.5em;
  }

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

  .page-promotions__hero-description {
    font-size: 1.1em;
  }

  .page-promotions__content-grid {
    flex-direction: column;
  }

  .page-promotions__content-grid--reverse {
    flex-direction: column;
  }

  .page-promotions__image-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__section {
    padding: 40px 15px;
  }

  .page-promotions__container {
    padding: 0;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* Ensure small padding-top on mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-promotions__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__cta-button,
  .page-promotions__cta-button--large,
  .page-promotions__card-button,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-promotions__cta-wrapper,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-promotions__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__image-block img,
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
  }

  .page-promotions__card {
    margin: 0 15px;
  }

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

  .page-promotions__card-title {
    font-size: 1.4em;
  }

  .page-promotions__card-text {
    font-size: 0.95em;
  }

  .page-promotions__step-list li,
  .page-promotions__terms-list li {
    padding: 20px;
    margin: 0 15px 15px;
  }

  .page-promotions__step-list li::before {
    left: 15px;
  }

  details.page-promotions__faq-item {
    margin: 0 15px 15px;
  }
  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
  .page-promotions__faq-qtext { font-size: 1em; }
  .page-promotions__faq-toggle { font-size: 20px; width: 24px; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
}

@media (max-width: 480px) {
  .page-promotions__cta-button {
    font-size: 1em;
    padding: 15px 30px;
  }
  .page-promotions__cta-button--large {
    font-size: 1.2em;
    padding: 18px 40px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
}