/* style/promotions.css */
/* body đã có padding-top: var(--header-offset); trang này không cần thêm */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #333333); /* Default to #333333, assuming body background is light */
  background-color: var(--background-color, #F5F7FA); /* Default to #F5F7FA */
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px; /* Small top padding, then larger bottom */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-promotions__hero-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  padding: 20px;
  margin-top: 20px; /* Space below image */
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Ensure dark text on light background */
}

.page-promotions__main-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
  font-weight: bold;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-promotions__section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: bold;
  color: var(--primary-color, #E53935);
  text-align: center;
  margin: 40px 0 25px;
}

.page-promotions__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-main-color, #333333);
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-promotions__intro-section,
.page-promotions__how-to-participate,
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg-color, #FFFFFF); /* Light background */
}

.page-promotions__featured-promos,
.page-promotions__terms-conditions,
.page-promotions__conclusion-section {
  padding: 60px 0;
  background-color: var(--primary-color, #E53935); /* Darker background */
  color: #ffffff; /* White text for dark background */
}

.page-promotions__featured-promos .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__conclusion-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__featured-promos .page-promotions__text-block,
.page-promotions__terms-conditions .page-promotions__text-block,
.page-promotions__conclusion-section .page-promotions__text-block {
  color: #f0f0f0;
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg-color, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-main-color, #333333);
}

.page-promotions__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-promotions__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-promotions__cta-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  color: #f0f0f0; /* For dark sections */
}

.page-promotions__cta-text a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__cta-text a:hover {
  color: var(--secondary-color, #FF5A4F);
}

.page-promotions__how-to-participate ol {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__how-to-participate li {
  background-color: var(--card-bg-color, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-main-color, #333333);
}

.page-promotions__step-title {
  font-size: 1.25rem;
  color: var(--primary-color, #E53935);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__steps-list p a {
  color: var(--primary-color, #E53935);
  text-decoration: underline;
}

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

.page-promotions__terms-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-promotions__terms-list li p {
  color: #f0f0f0;
}

.page-promotions__term-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__terms-list li a {
  color: #ffffff;
  text-decoration: underline;
}

.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-color, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #333333);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color, #E53935);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color, #E0E0E0);
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Ensure contrast for specific elements */
.page-promotions__dark-bg {
  color: #ffffff;
  background: var(--primary-color, #E53935);
}

.page-promotions__light-bg {
  color: var(--text-main-color, #333333);
  background: var(--background-color, #F5F7FA);
}

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

  .page-promotions__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-promotions__hero-section {
    padding: 10px 0 30px;
  }

  .page-promotions__hero-content {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: 1.8rem;
  }

  .page-promotions__description {
    font-size: 1rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px; /* Adjust padding for smaller screens */
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin: 30px 0 20px;
  }

  .page-promotions__intro-section,
  .page-promotions__how-to-participate,
  .page-promotions__faq-section,
  .page-promotions__featured-promos,
  .page-promotions__terms-conditions,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-promotions__card-image {
    max-height: 200px;
  }

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

  .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Mobile image and video responsiveness */
  .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,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__video-section {
    padding-top: 10px !important;
  }
}

/* Custom properties for colors */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --text-main-color: #333333;
  --border-color: #E0E0E0;
}