/* style/promotions.css */

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

/* Base styles for the page content, ensuring contrast with body background #08160F (dark) */
.page-promotions {
    background-color: var(--color-background);
    color: var(--color-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
    color: var(--color-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-promotions h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-gold);
}

.page-promotions h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.4;
    font-weight: 600;
}

.page-promotions p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

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

.page-promotions a:hover {
    text-decoration: underline;
    color: var(--color-glow);
}

/* Sections */
.page-promotions__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--color-divider);
}

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

.page-promotions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit image height */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__main-title {
    color: var(--color-gold);
    margin-bottom: 20px;
}

.page-promotions__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    color: var(--color-text-secondary);
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--color-glow);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-text {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-promotions__btn-text:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

/* Grid Container for Promotions */
.page-promotions__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.page-promotions__card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__card-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Steps Container */
.page-promotions__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__step-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 10px var(--color-glow);
}

.page-promotions__step-title {
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__step-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Terms Grid */
.page-promotions__terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--color-border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__terms-title {
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__terms-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Benefits Grid */
.page-promotions__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__benefit-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__benefit-title {
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__benefit-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
    background-color: rgba(34, 199, 104, 0.1);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
}

.page-promotions__faq-answer {
    padding: 15px 25px;
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--color-divider);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: none;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Image & Video Responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-promotions video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__hero-section {
        padding-bottom: 40px;
    }

    .page-promotions__hero-image-wrapper {
        max-height: 300px;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }

    .page-promotions__description {
        font-size: 1rem;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-promotions__grid-container,
    .page-promotions__steps-container,
    .page-promotions__terms-grid,
    .page-promotions__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__card,
    .page-promotions__step-card,
    .page-promotions__terms-item,
    .page-promotions__benefit-item {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

    .page-promotions__faq-list {
        margin-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
    }

    /* Mobile specific image/video responsive styles */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__hero-content,
    .page-promotions__cta-buttons,
    .page-promotions__grid-container,
    .page-promotions__steps-container,
    .page-promotions__terms-grid,
    .page-promotions__benefits-grid,
    .page-promotions__faq-list,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    .page-promotions__video-section {
        padding-top: 10px !important; /* Small top padding for video */
    }
}