/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register-bg: #C30808;
  --button-register-text: #FFFF00;
  --button-login-bg: #C30808;
  --button-login-text: #FFFF00;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default light background */
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  line-height: 1.2;
}

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

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-promotions__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--text-light); /* White text for dark section */
}

.page-promotions__main-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--button-register-text); /* Yellow text for main title */
  margin-bottom: 20px;
  font-size: clamp(32px, 5vw, 56px);
}

.page-promotions__intro-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 40px;
  color: var(--text-light);
}

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

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

.page-promotions__btn-primary {
  background-color: var(--button-register-bg); /* Red */
  color: var(--button-register-text); /* Yellow */
  border: 2px solid var(--button-register-bg);
}

.page-promotions__btn-primary:hover {
  background-color: var(--primary-color); /* Darker green on hover */
  border-color: var(--primary-color);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--button-register-text); /* Yellow text for secondary button */
  border: 2px solid var(--button-register-text); /* Yellow border */
}

.page-promotions__btn-secondary:hover {
  background-color: var(--button-register-text); /* Yellow background on hover */
  color: var(--button-register-bg); /* Red text on hover */
}

/* Current Promotions Section */
.page-promotions__current-promotions {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-promotions__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  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 6px 20px rgba(0,0,0,0.15);
}

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

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

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

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

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__how-to-claim .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__how-to-claim .page-promotions__section-description {
  color: var(--text-light);
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  font-size: 16px;
  font-weight: 700;
  color: var(--button-register-text); /* Yellow */
  background-color: var(--button-register-bg); /* Red */
  border-radius: 50px;
  padding: 5px 15px;
  margin-bottom: 15px;
}

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

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

/* Why Choose Section */
.page-promotions__why-choose {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-promotions__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-promotions__feature-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-promotions__feature-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__terms-conditions .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__terms-conditions .page-promotions__section-description {
  color: var(--text-light);
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 20px;
  margin: 40px auto;
  max-width: 900px;
  font-size: 16px;
}

.page-promotions__terms-item {
  margin-bottom: 15px;
  color: var(--text-light);
}

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

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-promotions__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-promotions__faq-toggle {
  font-size: 28px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--text-dark);
}

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

.page-promotions__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-promotions__final-cta .page-promotions__section-title,
.page-promotions__final-cta .page-promotions__section-description {
  color: var(--text-light);
}

/* Dark/Light Background Classes for Contrast */
.page-promotions__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-promotions__intro-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-promotions__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px !important;
  }
  
  .page-promotions__hero-section,
  .page-promotions__current-promotions,
  .page-promotions__how-to-claim,
  .page-promotions__why-choose,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__final-cta {
    padding: 40px 0;
  }

  .page-promotions__main-title {
    font-size: clamp(28px, 7vw, 40px);
  }
  .page-promotions__intro-description {
    font-size: clamp(16px, 3vw, 18px);
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__promo-image {
    height: 180px;
  }
  
  .page-promotions__promo-card, 
  .page-promotions__feature-item,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section {
    padding-top: 10px !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__promotions-grid,
  .page-promotions__steps-list,
  .page-promotions__features-grid,
  .page-promotions__terms-list,
  .page-promotions__faq-list,
  .page-promotions__cta-buttons,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__faq-item summary {
    font-size: 18px;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }

  .page-promotions__section-description {
    font-size: 16px;
  }

  .page-promotions p,
  .page-promotions li {
    font-size: 15px;
  }
}