/* style/promotions.css */

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

.page-promotions {
    background-color: var(--page-promotions-bg);
    color: var(--page-promotions-text-main); /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--page-promotions-deep-green); /* Ensure a background for the section */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: var(--page-promotions-text-main);
}

.page-promotions__main-title {
    color: var(--page-promotions-gold);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Subtle glow */
    /* No fixed font-size for H1, relying on responsive clamp */
}

.page-promotions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-details {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping initially */
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--page-promotions-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-promotions-gold);
}

.page-promotions__btn-secondary:hover {
    background: var(--page-promotions-gold);
    color: var(--page-promotions-deep-green); /* Dark text on hover */
    transform: translateY(-2px);
}

.page-promotions__btn-details {
    background: var(--page-promotions-deep-green);
    color: var(--page-promotions-text-main);
    border: 1px solid var(--page-promotions-border);
    font-size: 0.9em;
}

.page-promotions__btn-details:hover {
    background: var(--page-promotions-border);
    color: var(--page-promotions-text-main);
    transform: translateY(-1px);
}

.page-promotions__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-promotions-gold);
}

.page-promotions__intro-section,
.page-promotions__how-to-join,
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-promotions__featured-promos,
.page-promotions__terms,
.page-promotions__cta-bottom {
    padding: 60px 0;
    background-color: var(--page-promotions-bg); /* Dark background */
    color: var(--page-promotions-text-main); /* Light text for dark background */
}

.page-promotions__text-main {
    color: var(--page-promotions-text-main);
}

.page-promotions__text-secondary {
    color: var(--page-promotions-text-secondary);
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__promo-card {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-promotions-text-main);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--page-promotions-gold);
}

.page-promotions__card-title a {
    color: var(--page-promotions-gold);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-description {
    font-size: 0.95em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 30px;
    counter-reset: step-counter;
}

.page-promotions__step-item {
    background-color: #f9f9f9;
    border-left: 5px solid var(--page-promotions-deep-green);
    padding: 25px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--page-promotions-deep-green);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: #111111;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-promotions__step-item p {
    color: #555555;
}

.page-promotions__step-item a {
    color: var(--page-promotions-deep-green);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__step-item a:hover {
    text-decoration: underline;
}

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
    background-color: #ffffff;
    border-color: var(--page-promotions-deep-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-promotions-deep-green);
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

.page-promotions__cta-bottom {
    text-align: center;
}

.page-promotions__cta-bottom .page-promotions__btn-primary {
    margin-top: 20px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        max-width: 768px;
    }
    .page-promotions__main-title {
        font-size: 2.5em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-promotions__hero-image {
        height: 400px;
        margin-bottom: 20px;
    }
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Using clamp for H1 font size */
        margin-bottom: 15px;
    }
    .page-promotions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important; /* Ensure full width on mobile */
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

    .page-promotions__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-promotions__intro-section,
    .page-promotions__how-to-join,
    .page-promotions__faq-section,
    .page-promotions__featured-promos,
    .page-promotions__terms,
    .page-promotions__cta-bottom {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__promo-image {
        height: 180px; /* Adjust height for mobile card images */
    }
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-promotions__hero-image {
        height: 250px;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__promo-card {
        margin-bottom: 20px;
    }
    .page-promotions__step-item::before {
        top: -10px;
        left: 15px;
        font-size: 0.8em;
    }
    .page-promotions__step-title {
        font-size: 1.3em;
    }
}