/* style/khuyen-mai.css */

/* Variables for consistent colors */
:root {
    --page-khuyen-mai-bg: #08160F;
    --page-khuyen-mai-card-bg: #11271B;
    --page-khuyen-mai-text-main: #F2FFF6;
    --page-khuyen-mai-text-secondary: #A7D9B8;
    --page-khuyen-mai-border: #2E7A4E;
    --page-khuyen-mai-glow: #57E38D;
    --page-khuyen-mai-gold: #F2C14E;
    --page-khuyen-mai-divider: #1E3A2A;
    --page-khuyen-mai-deep-green: #0A4B2C;
    --page-khuyen-mai-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-khuyen-mai-button-hover-gradient: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-khuyen-mai {
    background-color: var(--page-khuyen-mai-bg);
    color: var(--page-khuyen-mai-text-main); /* Light text on dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-khuyen-mai__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.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.5em;
    color: var(--page-khuyen-mai-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-khuyen-mai__section-title--light {
    color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__section-description {
    font-size: 1.1em;
    color: var(--page-khuyen-mai-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__section-description--light {
    color: var(--page-khuyen-mai-text-main);
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    color: var(--page-khuyen-mai-text-main);
    text-align: center;
    overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Adjust as needed for visual balance */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-khuyen-mai__hero-content {
    position: relative; /* Ensure content is above image if z-index is used, but here they are stacked */
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--page-khuyen-mai-card-bg); /* Use card background for content block */
    border-radius: 10px;
    margin-top: -150px; /* Pull content up over the image, but not covering text */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-50px); /* Adjust to make it appear above the image */
}

.page-khuyen-mai__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--page-khuyen-mai-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-khuyen-mai__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-khuyen-mai-text-secondary);
}

.page-khuyen-mai__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
    background: var(--page-khuyen-mai-button-gradient);
    color: var(--page-khuyen-mai-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
    background: var(--page-khuyen-mai-button-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-khuyen-mai__btn-secondary {
    background-color: transparent;
    color: var(--page-khuyen-mai-text-main);
    border: 2px solid var(--page-khuyen-mai-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: var(--page-khuyen-mai-border);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Content Grid */
.page-khuyen-mai__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-khuyen-mai__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-khuyen-mai__text-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-khuyen-mai__image-wrapper {
    flex: 1;
    text-align: center;
    min-width: 0; /* Allow flex item to shrink */
}

.page-khuyen-mai__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    object-fit: cover;
}

.page-khuyen-mai__image-caption {
    font-size: 0.9em;
    color: var(--page-khuyen-mai-text-secondary);
    margin-top: 10px;
    text-align: center;
}

.page-khuyen-mai__feature-list,
.page-khuyen-mai__info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-khuyen-mai__feature-list li,
.page-khuyen-mai__info-list li {
    background-color: var(--page-khuyen-mai-card-bg);
    border: 1px solid var(--page-khuyen-mai-border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__feature-list li::before,
.page-khuyen-mai__info-list li::before {
    content: '✅';
    font-size: 1.2em;
    color: var(--page-khuyen-mai-glow);
    flex-shrink: 0;
    margin-top: 2px;
}

.page-khuyen-mai__feature-list strong,
.page-khuyen-mai__info-list strong {
    color: var(--page-khuyen-mai-gold);
}

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

.page-khuyen-mai__promo-card {
    background-color: var(--page-khuyen-mai-card-bg);
    border: 1px solid var(--page-khuyen-mai-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.page-khuyen-mai__promo-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

.page-khuyen-mai__promo-title {
    font-size: 1.5em;
    color: var(--page-khuyen-mai-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-khuyen-mai__promo-text {
    font-size: 1em;
    color: var(--page-khuyen-mai-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__promo-btn {
    width: 100%;
    margin-top: auto; /* Push button to bottom */
}

/* How to Claim */
.page-khuyen-mai__how-to-claim {
    background-color: var(--page-khuyen-mai-deep-green); /* Use a deeper green for contrast section */
}

.page-khuyen-mai__steps-list {
    list-style: none;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.page-khuyen-mai__steps-list li {
    background-color: var(--page-khuyen-mai-card-bg);
    border: 1px solid var(--page-khuyen-mai-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 60px; /* Space for step number */
    color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: var(--page-khuyen-mai-gold);
    color: var(--page-khuyen-mai-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-khuyen-mai__step-title {
    font-size: 1.3em;
    color: var(--page-khuyen-mai-gold);
    margin-bottom: 5px;
}

.page-khuyen-mai__step-text {
    font-size: 0.95em;
    color: var(--page-khuyen-mai-text-secondary);
}

.page-khuyen-mai__cta-bottom-small {
    text-align: center;
    margin-top: 40px;
}

/* Terms and Conditions */
.page-khuyen-mai__terms-conditions a {
    color: var(--page-khuyen-mai-gold);
    text-decoration: underline;
}

.page-khuyen-mai__terms-conditions a:hover {
    color: var(--page-khuyen-mai-glow);
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    background-color: var(--page-khuyen-mai-deep-green); /* Dark background for FAQ */
    counter-reset: faq-counter;
}

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