/* style/khuyen-mai.css */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    line-height: 1.6;
}

.page-khuyen-mai__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
    background-color: #F4F7FB;
}

.page-khuyen-mai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px;
}

.page-khuyen-mai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #1F2D3D;
}

.page-khuyen-mai__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2F6BFF;
}

.page-khuyen-mai__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.page-khuyen-mai__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-khuyen-mai__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-khuyen-mai__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #2F6BFF;
    text-align: center;
    margin-bottom: 20px;
}

.page-khuyen-mai__section-description {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #1F2D3D;
}

.page-khuyen-mai__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
}

.page-khuyen-mai__intro-section {
    background-color: #FFFFFF; /* Card BG */
    padding: 60px 0;
}

.page-khuyen-mai__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-khuyen-mai__icon-box {
    flex: 1 1 30%;
    max-width: 350px;
    text-align: center;
    background-color: #F4F7FB; /* Background */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border */
}

.page-khuyen-mai__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #6FA3FF;
    box-shadow: 0 0 0 8px rgba(111, 163, 255, 0.3);
}

.page-khuyen-mai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-khuyen-mai__icon-box-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 10px;
}

.page-khuyen-mai__icon-box-text {
    font-size: 0.95rem;
    color: #1F2D3D;
}

.page-khuyen-mai__promo-section {
    padding: 60px 0;
    background-color: #F4F7FB;
}

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

.page-khuyen-mai__promo-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #D6E2FF; /* Border */
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai__promo-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

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

.page-khuyen-mai__promo-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 10px;
}

.page-khuyen-mai__promo-card-text {
    font-size: 0.95rem;
    color: #1F2D3D;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.page-khuyen-mai__btn-link:hover {
    opacity: 0.9;
}

.page-khuyen-mai__guide-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Dark BG */
    color: #ffffff;
}

.page-khuyen-mai__guide-section .page-khuyen-mai__section-title,
.page-khuyen-mai__guide-section .page-khuyen-mai__section-description {
    color: #ffffff;
}

.page-khuyen-mai__guide-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-khuyen-mai__guide-steps {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-khuyen-mai__guide-steps ol {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-khuyen-mai__guide-steps li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    position: relative;
    padding-left: 50px;
}

.page-khuyen-mai__guide-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #6FA3FF;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.page-khuyen-mai__guide-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.page-khuyen-mai__guide-steps p {
    font-size: 0.95rem;
    color: #ffffff;
}

.page-khuyen-mai__guide-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-khuyen-mai__guide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: #F4F7FB;
}

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

.page-khuyen-mai__faq-item {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2F6BFF;
    cursor: pointer;
    list-style: none;
    user-select: none;
    position: relative;
}

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

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #6FA3FF;
    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: #1F2D3D;
    line-height: 1.7;
}

.page-khuyen-mai__cta-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Dark BG */
    color: #ffffff;
    text-align: center;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__section-title,
.page-khuyen-mai__cta-section .page-khuyen-mai__section-description {
    color: #ffffff;
}

.page-khuyen-mai__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
    background-color: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF; /* Border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #F4F7FB;
    color: #2F6BFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* General image and container responsive styles */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  /* General content area padding */
  .page-khuyen-mai__content-area {
    padding: 20px 15px !important;
  }

  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-khuyen-mai__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-khuyen-mai__hero-content {
    order: 2;
    flex: 1 1 100%;
  }

  .page-khuyen-mai__hero-image {
    order: 1;
    flex: 1 1 100%;
  }

  .page-khuyen-mai__hero-title {
    font-size: 2rem;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1rem;
  }

  .page-khuyen-mai__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  /* Module 1 - Intro Section - Three Circular Images */
  .page-khuyen-mai__intro-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__icon-boxes {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__icon-box {
    max-width: 100%;
    padding: 20px 15px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 160px !important;
    height: 160px !important;
    border: 3px solid #6FA3FF;
    box-shadow: 0 0 0 6px rgba(111, 163, 255, 0.3);
  }

  .page-khuyen-mai__icon-box-title {
    font-size: 1.3rem;
  }

  /* Promo Grid Section */
  .page-khuyen-mai__promo-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promo-card {
    box-sizing: border-box;
  }

  .page-khuyen-mai__promo-card-image {
    height: 180px; /* Adjust height for mobile if needed */
  }

  .page-khuyen-mai__promo-card-content {
    padding: 20px;
  }

  .page-khuyen-mai__promo-card-title {
    font-size: 1.2rem;
  }

  /* How to Claim Section (Guide) */
  .page-khuyen-mai__guide-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__guide-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__guide-steps {
    order: 2;
    flex: 1 1 100%;
  }

  .page-khuyen-mai__guide-steps li {
    padding-left: 40px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__guide-steps li::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .page-khuyen-mai__guide-step-title {
    font-size: 1.15rem;
  }

  .page-khuyen-mai__guide-image {
    order: 1;
    flex: 1 1 100%;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__faq-list {
    margin-top: 20px;
  }

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

  .page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
  }

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Final CTA Section */
  .page-khuyen-mai__cta-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
  }

  /* All images must be responsive */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers holding images or content */
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All buttons must be responsive */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai 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;
  }

  /* Button containers mobile adaptation */
  .page-khuyen-mai__hero-cta-buttons,
  .page-khuyen-mai__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important; /* Ensure vertical stacking for multiple buttons */
  }
}