.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    background: #FFFFFF; /* Body background from shared.css */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    text-align: center;
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.page-khuyen-mai__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Desktop default cover */
    display: block;
}

.page-khuyen-mai__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
    overflow: hidden;
}

.page-khuyen-mai__cta-buttons--center {
    justify-content: center;
    margin-top: 30px;
}

/* General Sections */
.page-khuyen-mai__section {
    padding: 60px 0;
    margin-bottom: 0; /* No margin between sections, use padding */
}

.page-khuyen-mai__overview-section {
    background: #f9f9f9;
}

.page-khuyen-mai__promo-types-section {
    background: #26A9E0; /* Dark background for this section */
    color: #ffffff; /* White text for dark background */
}

.page-khuyen-mai__dark-section .page-khuyen-mai__section-title {
    color: #ffffff;
}
.page-khuyen-mai__dark-section .page-khuyen-mai__card-text {
    color: #f0f0f0;
}
.page-khuyen-mai__dark-section .page-khuyen-mai__highlight {
    color: #FFD700; /* Gold for highlight on dark background */
}


.page-khuyen-mai__light-bg {
    background: #ffffff;
    color: #333333;
}

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

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0;
}

.page-khuyen-mai__promo-types-section .page-khuyen-mai__section-title {
    color: #ffffff;
}

.page-khuyen-mai__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__highlight {
    font-weight: bold;
    color: #EA7C07; /* Login color for highlight */
}
.page-khuyen-mai__promo-types-section .page-khuyen-mai__highlight {
    color: #FFD700; /* Gold for highlight on dark background */
}


/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks */
    box-sizing: border-box; /* Include padding/border in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-khuyen-mai__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-khuyen-mai__btn-primary:hover {
    background: #d46c00;
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-secondary:hover {
    background: #f0f8ff;
    color: #1a7bb0;
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

.page-khuyen-mai__promo-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-khuyen-mai__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-khuyen-mai__promo-types-section .page-khuyen-mai__card-image {
    height: 220px; /* Slightly taller images for dark section cards */
}

.page-khuyen-mai__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-khuyen-mai__promo-types-section .page-khuyen-mai__card-title {
    color: #26A9E0; /* Still brand color on card, as card background is white */
}

.page-khuyen-mai__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-primary {
    margin-top: auto; /* Push button to the bottom */
    align-self: center; /* Center button horizontally */
}

/* List Styles */
.page-khuyen-mai__list {
    list-style: none;
    padding: 0;
    margin: 20px auto 30px;
    max-width: 900px;
}

.page-khuyen-mai__list-item {
    background: #f0f8ff;
    border-left: 5px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333333;
}

.page-khuyen-mai__list-item strong {
    color: #26A9E0;
}

/* Steps Grid */
.page-khuyen-mai__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-khuyen-mai__step-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-khuyen-mai__step-card:hover {
    transform: translateY(-5px);
}

.page-khuyen-mai__step-icon {
    width: 60px;
    height: 60px;
    background: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.page-khuyen-mai__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-khuyen-mai__step-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}
.page-khuyen-mai__step-text a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
}
.page-khuyen-mai__step-text a:hover {
    text-decoration: underline;
}

/* Tips Section */
.page-khuyen-mai__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__tip-item {
    background: #f0f8ff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.page-khuyen-mai__tip-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-khuyen-mai__tip-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}

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

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

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: #f5f5f5;
}
.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-khuyen-mai__faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}


/* Final CTA */
.page-khuyen-mai__final-cta-section {
    background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient for final CTA */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__section-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__btn-primary {
    background: #EA7C07;
    border-color: #EA7C07;
    color: #ffffff;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__btn-primary:hover {
    background: #d46c00;
    border-color: #d46c00;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__btn-secondary {
    background: #ffffff;
    border-color: #ffffff;
    color: #26A9E0;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__btn-secondary:hover {
    background: #f0f8ff;
    border-color: #f0f8ff;
    color: #1a7bb0;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-content {
        padding: 20px 15px 30px;
    }

    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-khuyen-mai__intro-text {
        font-size: 1rem;
    }

    .page-khuyen-mai__section {
        padding: 50px 0;
    }

    .page-khuyen-mai__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.5rem);
        margin-bottom: 30px;
    }

    .page-khuyen-mai__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .page-khuyen-mai__card-image {
        height: 180px;
    }

    .page-khuyen-mai__promo-types-section .page-khuyen-mai__card-image {
        height: 200px;
    }

    .page-khuyen-mai__steps-grid,
    .page-khuyen-mai__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }

    .page-khuyen-mai__step-card,
    .page-khuyen-mai__tip-item {
        padding: 25px;
    }

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-khuyen-mai__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
        margin-bottom: 30px;
    }
    .page-khuyen-mai__hero-image-wrapper {
        padding-bottom: 75%; /* More vertical space for mobile */
    }
    .page-khuyen-mai__hero-image {
        object-fit: contain !important; /* Mobile must contain, not crop */
        aspect-ratio: unset;
    }
    .page-khuyen-mai__hero-content {
        padding: 20px 15px 30px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for mobile */
        margin-bottom: 15px;
    }
    .page-khuyen-mai__intro-text {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-khuyen-mai__cta-buttons .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__cta-buttons .page-khuyen-mai__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* 通用图片与容器 */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-khuyen-mai__container,
    .page-khuyen-mai__section,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__step-card,
    .page-khuyen-mai__tip-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-khuyen-mai__section {
        padding: 40px 0;
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 25px;
    }
    .page-khuyen-mai__text-block {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left; /* Adjust text alignment for mobile readability */
    }
    /* 产品展示图区域 (Promo Grid) */
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column for promo cards on mobile */
        gap: 20px;
        overflow-x: hidden;
    }
    .page-khuyen-mai__card-image {
        height: 160px; /* Adjust height for mobile cards */
    }
    .page-khuyen-mai__promo-types-section .page-khuyen-mai__card-image {
        height: 180px;
    }
    .page-khuyen-mai__card-title {
        font-size: 1.15rem;
    }
    .page-khuyen-mai__card-text {
        font-size: 0.85rem;
    }
    /* List Styles */
    .page-khuyen-mai__list {
        margin: 15px auto 25px;
    }
    .page-khuyen-mai__list-item {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    /* Steps Grid */
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr; /* Single column for steps on mobile */
        gap: 20px;
    }
    .page-khuyen-mai__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .page-khuyen-mai__step-title {
        font-size: 1.2rem;
    }
    .page-khuyen-mai__step-text {
        font-size: 0.9rem;
    }
    /* Tips Section */
    .page-khuyen-mai__tips-grid {
        grid-template-columns: 1fr; /* Single column for tips on mobile */
        gap: 20px;
    }
    .page-khuyen-mai__tip-item {
        padding: 20px;
    }
    .page-khuyen-mai__tip-title {
        font-size: 1.1rem;
    }
    .page-khuyen-mai__tip-text {
        font-size: 0.9rem;
   }}