/* style/khuyen-mai.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --card-bg: #FFFFFF;
  --background-color: #F5F7FA;
  --text-main-color: #333333;
  --border-color: #E0E0E0;
  --header-offset: 122px; /* Default for fixed header */
}

.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--background-color); /* Matches body bg if shared.css uses it */
}

/* Hero Carousel Section */
.page-khuyen-mai__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  background-color: var(--primary-color);
}

.page-khuyen-mai__hero-slider {
  display: flex;
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
}

.page-khuyen-mai__hero-slide {
  min-width: 100%;
  transition: transform 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
}

.page-khuyen-mai__hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.page-khuyen-mai__hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-khuyen-mai__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-khuyen-mai__intro-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-khuyen-mai__hero-slider-prev,
.page-khuyen-mai__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
}

.page-khuyen-mai__hero-slider-prev {
  left: 20px;
}

.page-khuyen-mai__hero-slider-next {
  right: 20px;
}

/* General Section Styling */
.page-khuyen-mai__content-section,
.page-khuyen-mai__benefits-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__how-to-claim-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__related-articles-section,
.page-khuyen-mai__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-khuyen-mai__section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Classes */
.page-khuyen-mai__light-bg {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-khuyen-mai__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff; /* Forced white text for dark primary background */
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-description {
  color: #f0f0f0;
}

/* Promo Grid */
.page-khuyen-mai__promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__promo-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-khuyen-mai__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-khuyen-mai__card-text {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Benefits List */
.page-khuyen-mai__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-khuyen-mai__benefits-list li {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__benefits-list li {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-khuyen-mai__benefits-item-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* Terms Grid */
.page-khuyen-mai__terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-khuyen-mai__terms-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__terms-item-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-khuyen-mai__terms-item p {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuyen-mai__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.page-khuyen-mai__text-link:hover {
  text-decoration: underline;
}

/* How-To-Claim Steps */
.page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__step-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__step-card img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Example for step icons, but must be >200px. This implies the step images are larger than 200px and then scaled down in CSS */
  border: 3px solid #ffffff;
  padding: 5px;
  box-sizing: content-box;
}

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

.page-khuyen-mai__step-card p {
  color: #f0f0f0;
}

.page-khuyen-mai__cta-buttons--centered {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-khuyen-mai__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-main-color);
}

/* Related Articles (Blog Grid) */
.page-khuyen-mai__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__blog-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__blog-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}
}
}
}
}