.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #ffffff; /* Explicitly white background */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Consistent with body padding handled by shared.css */
    text-align: center;
    overflow: hidden;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    line-height: 0; /* Remove extra space below img */
}

.page-khuyen-mai__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for desktop */
}

.page-khuyen-mai__hero-content {
    max-width: 900px;
    margin: 30px auto 60px;
    padding: 0 15px;
}

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

.page-khuyen-mai__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #555555;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

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

.page-khuyen-mai__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

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

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

.page-khuyen-mai__btn-secondary--white { /* Specific for dark background sections */
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}
.page-khuyen-mai__btn-secondary--white:hover {
    background-color: #f0f8ff;
    color: #26A9E0;
    border-color: #f0f8ff;
}

/* General Section Styles */
.page-khuyen-mai__overview-section,
.page-khuyen-mai__how-to-claim,
.page-khuyen-mai__terms-conditions,
.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for these sections */
}

.page-khuyen-mai__dark-bg {
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff; /* White text on brand background */
}

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

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

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

.page-khuyen-mai__text-block {
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555555;
}

.page-khuyen-mai__text-block--white {
    color: #ffffff;
}

.page-khuyen-mai__text-center {
    text-align: center;
}

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

.page-khuyen-mai__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-khuyen-mai__promo-card .page-khuyen-mai__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #26A9E0;
    margin: 20px 15px 10px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-khuyen-mai__promo-card p {
    font-size: 0.95rem;
    color: #666666;
    padding: 0 15px 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto; /* Push link to bottom */
    padding-bottom: 20px;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-link:hover {
    text-decoration: underline;
}

/* Detailed Promos Section */
.page-khuyen-mai__detailed-promos {
    padding: 80px 0;
}

.page-khuyen-mai__promo-category {
    margin-bottom: 60px;
}

.page-khuyen-mai__category-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-khuyen-mai__promo-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__promo-item img {
    width: 40%; /* Image takes 40% width */
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 250px; /* Minimum width for image */
}

.page-khuyen-mai__promo-content {
    padding: 30px;
    width: 60%; /* Content takes 60% width */
    color: #ffffff;
}

.page-khuyen-mai__promo-heading {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-khuyen-mai__promo-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-khuyen-mai__promo-details {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.page-khuyen-mai__promo-details li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #f0f0f0;
}

.page-khuyen-mai__promo-details li strong {
    color: #ffffff;
}

/* How To Claim Section */
.page-khuyen-mai__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-khuyen-mai__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__step-card img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element */
}

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

.page-khuyen-mai__step-card p {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 25px;
}

.page-khuyen-mai__btn-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.page-khuyen-mai__btn-link:hover {
    color: #1a8cc7;
    border-color: #1a8cc7;
}

/* Terms and Conditions Section */
.page-khuyen-mai__terms-list {
    list-style: disc;
    padding-left: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555555;
    font-size: 1rem;
}

.page-khuyen-mai__terms-list li {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
    max-width: 900px;
    margin: 50px 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 {
    font-size: 1rem;
    color: #555555;
}


/* Final CTA Section */
.page-khuyen-mai__final-cta {
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyen-mai__promo-item img {
        min-width: 200px;
    }
}

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

    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px; /* Keep consistent small top padding */
    }
    .page-khuyen-mai__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
        height: auto !important; /* Ensure height adjusts */
        width: 100% !important;
    }
    .page-khuyen-mai__hero-content {
        margin: 20px auto 40px;
        padding: 0 15px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-khuyen-mai__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Styles */
    .page-khuyen-mai__overview-section,
    .page-khuyen-mai__how-to-claim,
    .page-khuyen-mai__terms-conditions,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__detailed-promos,
    .page-khuyen-mai__final-cta {
        padding: 40px 0;
    }
    .page-khuyen-mai__container {
        padding: 0 15px; /* Ensure content is within padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-khuyen-mai__text-block {
        font-size: 0.95rem;
        margin-bottom: 30px;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-khuyen-mai img { /* Universal image responsive rule */
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Promo Grid (Overview) */
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
        margin-top: 30px;
    }
    .page-khuyen-mai__promo-card {
        padding-bottom: 20px;
    }
    .page-khuyen-mai__promo-card img {
         /* Adjust height for mobile */
    }
    .page-khuyen-mai__promo-card .page-khuyen-mai__card-title {
        font-size: 1.2rem;
        margin: 15px 10px 8px;
    }
    .page-khuyen-mai__promo-card p {
        padding: 0 10px 15px;
    }
}