/* style/promotions.css */

/* Variables from custom palette */
:root {
    --page-promotions-card-bg: #11271B;
    --page-promotions-background: #08160F;
    --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 {
    color: var(--page-promotions-text-main); /* Default text color for dark background */
    background-color: var(--page-promotions-background); /* Default background color */
}

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

.page-promotions__dark-bg {
    background-color: var(--page-promotions-background);
    color: var(--page-promotions-text-main);
}

.page-promotions__light-bg {
    background-color: #ffffff; /* Using white for light background for contrast with dark text */
    color: #333333; /* Dark text for light background */
}

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--page-promotions-text-main);
    margin-bottom: 20px;
    /* Using clamp for responsive font-size */
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box;
}

.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 {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-border);
    color: #ffffff;
}

.page-promotions__btn-link {
    background-color: transparent;
    color: var(--page-promotions-gold);
    border: 1px solid var(--page-promotions-gold);
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-promotions__btn-link:hover {
    background-color: var(--page-promotions-gold);
    color: var(--page-promotions-background);
}

.page-promotions__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* General Sections */
.page-promotions__overview-section,
.page-promotions__types-section,
.page-promotions__guide-section,
.page-promotions__benefits-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 80px 0;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherits from section's color for contrast */
}

.page-promotions__text-block {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: inherit;
}

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

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

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

.page-promotions__promo-card {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.page-promotions__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
}

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

/* Steps Grid */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-card {
    background-color: #ffffff; /* Light background for step cards */
    color: #333333; /* Dark text for light background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #11A84E;
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Benefits Section */
.page-promotions__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__benefit-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.page-promotions__benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
}

.page-promotions__benefit-description {
    font-size: 0.95rem;
    color: var(--page-promotions-text-secondary);
    line-height: 1.5;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    color: #333333; /* Dark text for light background */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #11A84E; /* Brand color for questions */
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-answer .page-promotions__btn-link {
    margin-top: 15px;
    display: inline-block;
}

/* Bottom CTA */
.page-promotions__cta-bottom-section {
    text-align: center;
    padding: 100px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
}

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

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__benefits-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 50px 0;
    }

    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__benefit-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

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

    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* Image responsive rules */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Desktop specific width for video container, ensures width:100% is present */
.page-promotions__video-container {
    width: 100%;
    max-width: 1200px;
}