/* style/promotions.css */

/* Custom Colors */
:root {
  --page-promotions-bg: #08160F;
  --page-promotions-card-bg: #11271B;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border: #2E7A4E;
  --page-promotions-glow: #57E38D;
  --page-promotions-gold: #F2C14E;
  --page-promotions-divider: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
  --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: clamp(2em, 4vw, 2.5em);
  font-weight: bold;
  color: var(--page-promotions-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__section-title--light {
  color: var(--page-promotions-text-main);
}

.page-promotions__description-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__description-text--light {
  color: var(--page-promotions-text-main);
}

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

.page-promotions__hero-image {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3em);
  font-weight: 800;
  color: var(--page-promotions-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__intro-text {
  font-size: 1.2em;
  color: var(--page-promotions-text-main);
  margin-bottom: 30px;
  line-height: 1.5;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: 2px solid var(--page-promotions-glow);
  box-shadow: 0 4px 15px rgba(0, 255, 100, 0.3);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 100, 0.5);
}

.page-promotions__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-promotions__btn-secondary:hover {
  background: var(--page-promotions-glow);
  color: var(--page-promotions-bg);
  transform: translateY(-3px);
}

.page-promotions__btn-link {
  background: transparent;
  color: var(--page-promotions-gold);
  border: 1px solid var(--page-promotions-gold);
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-promotions__btn-link:hover {
  background: var(--page-promotions-gold);
  color: var(--page-promotions-bg);
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background-color: var(--page-promotions-bg);
}

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

.page-promotions__promo-card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-promotions-border);
}

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

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.4em;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-promotions__card-title a {
  color: var(--page-promotions-gold);
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__card-text {
  color: var(--page-promotions-text-secondary);
  font-size: 0.95em;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Featured Promo Section */
.page-promotions__featured-promo {
  padding: 80px 0;
  background-color: var(--page-promotions-deep-green);
  text-align: center;
}

.page-promotions__promo-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-promotions__detail-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding-bottom: 30px;
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--page-promotions-border);
}

.page-promotions__detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 25px;
}

.page-promotions__detail-title {
  font-size: 1.6em;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-promotions__detail-text {
  color: var(--page-promotions-text-secondary);
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 30px;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
  background-color: var(--page-promotions-bg);
}

.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid var(--page-promotions-border);
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter) ": ";
  position: absolute;
  left: 30px;
  top: 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--page-promotions-gold);
}

.page-promotions__step-title {
  font-size: 1.2em;
  color: var(--page-promotions-text-main);
  margin-bottom: 10px;
  padding-left: 100px; /* Adjust for step counter */
}

.page-promotions__step-item p {
  color: var(--page-promotions-text-secondary);
  padding-left: 100px; /* Adjust for step counter */
}

.page-promotions__step-item a {
  color: var(--page-promotions-glow);
  text-decoration: underline;
}

.page-promotions__step-item a:hover {
  color: var(--page-promotions-gold);
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-promotions-border);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--page-promotions-text-main);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-promotions-gold);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--page-promotions-text-secondary);
  line-height: 1.6;
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-promotions-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    max-height: 500px;
  }
}

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

  .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-promotions__hero-image {
    max-height: 350px;
    margin-bottom: 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-promotions__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-link,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__promo-card,
  .page-promotions__detail-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__featured-promo,
  .page-promotions__overview-section,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__cta-final {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.8em, 6vw, 2em);
    margin-bottom: 15px;
  }

  .page-promotions__description-text {
    font-size: 0.9em;
    margin-bottom: 25px;
  }

  .page-promotions__claim-steps {
    padding: 0;
  }

  .page-promotions__step-item {
    padding: 20px;
  }

  .page-promotions__step-item::before {
    position: static;
    display: block;
    margin-bottom: 5px;
  }

  .page-promotions__step-title,
  .page-promotions__step-item p {
    padding-left: 0;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
  }

  /* Image responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-image {
    max-height: 250px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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