/* style/promotions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #1a1a2e; /* From shared.css body background */
  --register-color: #C30808;
  --login-color: #C30808;
  --font-register-login: #FFFF00;
}

.page-promotions {
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
  padding-top: var(--header-offset, 120px);
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  overflow: hidden;
  min-height: 500px;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-promotions__hero-section .page-promotions__container {
  position: relative;
  z-index: 1;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__introduction {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-promotions__featured-offers {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-promotions__terms-conditions {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__how-to-participate {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-promotions__cta-final {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.page-promotions__section-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__introduction .page-promotions__section-title,
.page-promotions__featured-offers .page-promotions__section-title,
.page-promotions__how-to-participate .page-promotions__section-title {
  color: var(--secondary-color);
}

.page-promotions__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background-color: var(--login-color); /* Sử dụng màu đỏ cho CTA chính */
  color: var(--font-register-login); /* Sử dụng màu vàng cho chữ */
  border: 2px solid var(--login-color);
}

.page-promotions__btn-primary:hover {
  background-color: #a70707;
  transform: translateY(-3px);
}

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

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

.page-promotions__list {
  list-style-type: disc;
  text-align: left;
  max-width: 900px;
  margin: 30px auto;
  padding-left: 40px;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-light);
}

.page-promotions__list li {
  margin-bottom: 15px;
}

.page-promotions__list li strong {
  color: var(--secondary-color);
}

.page-promotions__numbered-list {
  list-style-type: none;
  text-align: left;
  max-width: 900px;
  margin: 30px auto;
  padding-left: 0;
  counter-reset: step-counter;
}

.page-promotions__numbered-list li {
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.page-promotions__numbered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-promotions__list-item-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions__list-item-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-light);
}

.page-promotions__faq-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--primary-color);
}

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

.page-promotions__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #f5f5f5;
}

.page-promotions__faq-title {
  margin: 0;
  color: var(--primary-color);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
  background-color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

.page-promotions__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 1em;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__text-block,
  .page-promotions__list,
  .page-promotions__numbered-list li,
  .page-promotions__card-text,
  .page-promotions__faq-question,
  .page-promotions__faq-answer p {
    font-size: 0.95em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }
  .page-promotions__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__text-block,
  .page-promotions__list,
  .page-promotions__numbered-list li,
  .page-promotions__card-text,
  .page-promotions__faq-question,
  .page-promotions__faq-answer p {
    font-size: 0.9em;
  }

  .page-promotions__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card {
    padding: 20px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }

  .page-promotions__list,
  .page-promotions__numbered-list {
    padding-left: 20px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-promotions__numbered-list li {
    padding-left: 50px;
  }
  .page-promotions__numbered-list li::before {
    width: 40px;
    height: 40px;
    font-size: 1.3em;
  }

  .page-promotions__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__cta-final,
  .page-promotions__introduction,
  .page-promotions__featured-offers,
  .page-promotions__terms-conditions,
  .page-promotions__how-to-participate,
  .page-promotions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Mobile button responsiveness */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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;
    padding-right: 15px;
  }
  .page-promotions__cta-buttons,
  .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__card .page-promotions__btn-secondary {
    width: auto; /* Allow buttons in cards to shrink */
    max-width: 100%;
  }
}