/* style/promotions.css */

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

.page-promotions {
  background-color: var(--promotions-background); /* Dark background */
  color: var(--promotions-text-main); /* Light text */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: var(--promotions-deep-green); /* Darker green background for hero */
  padding-bottom: 40px; /* Space below content */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image to make text pop */
}

.page-promotions__hero-content {
  text-align: center;
  padding: 20px;
  margin-top: -120px; /* Pull content up over the image slightly for visual effect */
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  color: var(--promotions-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--promotions-gold);
  border: 2px solid var(--promotions-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--promotions-gold);
  color: var(--promotions-background);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background: var(--promotions-button-gradient);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-promotions__btn-small:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-promotions__btn-outline {
  background-color: transparent;
  color: var(--promotions-text-main);
  border: 1px solid var(--promotions-border);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.95em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-promotions__btn-outline:hover {
  background-color: var(--promotions-primary-color);
  border-color: var(--promotions-primary-color);
  color: #ffffff;
}

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

/* Section Titles & Descriptions */
.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--promotions-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--promotions-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

.page-promotions__promo-card {
  background-color: var(--promotions-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.page-promotions__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-title {
  font-size: 1.4em;
  color: var(--promotions-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

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

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

.page-promotions__promo-category {
  margin-bottom: 60px;
}

.page-promotions__category-title {
  font-size: 2em;
  color: var(--promotions-gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-promotions__category-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-promotions__category-content--reverse {
  flex-direction: row-reverse;
}

.page-promotions__content-image {
  width: 50%;
  min-width: 300px; /* Ensure image is not too small */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure no extra space below image */
}

.page-promotions__text-block {
  width: 50%;
  color: var(--promotions-text-main);
}

.page-promotions__text-block p {
  margin-bottom: 15px;
  color: var(--promotions-text-secondary);
}

.page-promotions__text-block .page-promotions__btn-primary {
  margin-top: 20px;
}

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

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

.page-promotions__claim-steps li {
  background-color: var(--promotions-card-bg);
  border-left: 5px solid var(--promotions-primary-color);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__claim-steps li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--promotions-primary-color);
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9em;
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: var(--promotions-gold);
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-promotions__claim-steps p {
  color: var(--promotions-text-secondary);
  margin-bottom: 10px;
}

.page-promotions__final-cta {
  text-align: center;
  font-size: 1.1em;
  color: var(--promotions-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
}

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

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

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

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

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

.page-promotions__faq-question:hover {
  background-color: rgba(var(--promotions-primary-color), 0.1); /* Slight highlight on hover */
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--promotions-gold);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--promotions-text-secondary);
}

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

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 60px 0;
  background-color: var(--promotions-background);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -80px;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__category-title {
    font-size: 1.8em;
  }
  .page-promotions__category-content {
    flex-direction: column;
    text-align: center;
  }
  .page-promotions__category-content--reverse {
    flex-direction: column;
  }
  .page-promotions__content-image,
  .page-promotions__text-block {
    width: 100%;
  }
  .page-promotions__text-block {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small,
  .page-promotions__btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__overview-section,
  .page-promotions__detail-section,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section {
    padding: 40px 0;
  }
  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 1.2em;
  }
  .page-promotions__card-text {
    font-size: 0.9em;
  }

  .page-promotions__category-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-promotions__content-image {
    width: 100% !important;
    min-width: unset;
  }
  .page-promotions__text-block {
    width: 100%;
    padding-top: 15px;
  }

  .page-promotions__claim-steps li {
    padding: 20px;
  }
  .page-promotions__claim-steps li::before {
    left: 15px;
    padding: 4px 12px;
  }
  .page-promotions__step-title {
    font-size: 1.3em;
  }

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

  /* Mobile image and video responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__promo-category,
  .page-promotions__content-image,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-promotions__hero-section {
      padding-top: 10px !important; /* body already has padding-top */
  }
  .page-promotions__video-section {
      padding-top: 10px !important; /* body already has padding-top */
  }
}