/* style/promotions.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    margin-top: -100px; /* Pull content up over image slightly for better flow, but not overlapping text */
    background-color: var(--bg-color); /* Ensure content background for readability */
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-promotions__intro-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions__cta-buttons--center {
    justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-card {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-promotions__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-promotions__overview-section,
.page-promotions__how-to-claim,
.page-promotions__why-vn365,
.page-promotions__cta-section {
    padding: 80px 0;
}

.page-promotions__dark-section {
    background-color: var(--deep-green-color);
}

.page-promotions__featured-promotions {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.page-promotions__promotion-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-promotions__card-title {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-promotions__card-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: block;
}

.page-promotions__btn-card {
    margin-top: auto;
    align-self: flex-start;
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(34, 199, 104, 0.3);
}

.page-promotions__btn-card:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.5);
}

.page-promotions__how-to-claim-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-promotions__how-to-claim-steps {
    flex: 1;
    min-width: 300px;
}

.page-promotions__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.page-promotions__step-item {
    counter-increment: step-counter;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-main);
    position: relative;
    padding-left: 50px;
}

.page-promotions__step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--text-main);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(34, 199, 104, 0.5);
}

.page-promotions__how-to-claim-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-promotions__how-to-claim-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-promotions__why-vn365-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap-reverse;
}

.page-promotions__why-vn365-text {
    flex: 1;
    min-width: 300px;
}

.page-promotions__benefits-list {
    list-style: none;
    padding-left: 0;
}

.page-promotions__benefit-item {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.page-promotions__benefit-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.page-promotions__why-vn365-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-promotions__why-vn365-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-promotions__faq-list {
    margin-top: 50px;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.4);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
    outline: none;
}

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
    margin-top: 10px;
    padding-top: 20px;
}

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

/* Content area images min-width check */
.page-promotions__how-to-claim-image,
.page-promotions__why-vn365-image,
.page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-promotions__hero-content {
        margin-top: -80px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__intro-text {
        font-size: 1.1rem;
    }
    .page-promotions__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-promotions__how-to-claim-content,
    .page-promotions__why-vn365-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__how-to-claim-image-wrapper,
    .page-promotions__why-vn365-image-wrapper {
        order: -1; /* Image first on smaller screens */
    }
    .page-promotions__section-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-promotions__intro-text {
        font-size: 1rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-card {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__overview-section,
    .page-promotions__featured-promotions,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__why-vn365,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: 1.4rem;
    }
    .page-promotions__step-item,
    .page-promotions__benefit-item {
        font-size: 1rem;
    }
    .page-promotions__how-to-claim-content,
    .page-promotions__why-vn365-content {
        gap: 20px;
    }
    .page-promotions__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }
    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__how-to-claim-image-wrapper,
    .page-promotions__why-vn365-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__video-section { /* No video in this page, but keeping for completeness */
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        margin-top: -40px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }
}