/* style/promotions.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Page specific background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --light-bg-card: #ffffff; /* For cards in light sections */
    --dark-text: #333333; /* For text on light backgrounds */
}

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

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive font size for H2 */
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green); /* Fallback background for hero */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    overflow: hidden;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    padding: 40px 20px 60px;
    text-align: center;
    color: var(--text-main);
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Buttons */
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__cta-buttons--centered {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    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: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-promotions__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-color-page);
    transform: translateY(-2px);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

.page-promotions__btn-large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

/* Section Styles */
.page-promotions__intro-section,
.page-promotions__why-choose-section,
.page-promotions__cta-section {
    padding: 60px 0;
    background-color: var(--background-color-page);
    text-align: center;
}

.page-promotions__dark-section {
    background-color: var(--deep-green); /* Use deep green for dark sections */
    color: var(--text-main);
}

.page-promotions__promotions-grid-section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

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

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

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
}

.page-promotions__promo-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin: 0 20px 10px;
    font-weight: bold;
}

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

/* How to Claim Section */
.page-promotions__claim-guide {
    padding: 60px 0;
    background-color: var(--deep-green);
    text-align: center;
}

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

.page-promotions__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    position: relative;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--button-gradient);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--background-color-page);
}

.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Video Section */
.page-promotions__video-section {
    padding: 60px 0;
    background-color: var(--background-color-page);
    text-align: center;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%; /* Ensure full width on desktop */
    max-width: 100%; /* Ensure full width on desktop */
    box-sizing: border-box;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block; /* Ensure it behaves as a block element */
}

/* Why Choose Section */
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__benefits-list li {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.5;
}

.page-promotions__benefits-list li::before {
    content: '✅'; /* Checkmark icon */
    font-size: 1.5rem;
    color: var(--gold-color);
    flex-shrink: 0;
}

.page-promotions__benefit-highlight {
    color: var(--gold-color);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.page-promotions__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-color);
    background-color: var(--deep-green); /* Slightly darker background for summary */
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
    background-color: color-mix(in srgb, var(--deep-green) 80%, black); /* Slightly darker on hover */
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

.page-promotions__faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    text-align: center;
}

.page-promotions__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 30px 20px 50px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: 1.1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    }
}

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

    .page-promotions__container {
        padding: 0 15px;
    }

    /* All images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image/video/button containers responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Video section specific padding */
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Video element responsive */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Button responsive */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding for text inside button */
        padding-right: 15px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-promotions__hero-content {
        padding: 20px 15px 40px;
    }
    .page-promotions__main-title {
        font-size: 2rem;
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 1rem;
    }
    .page-promotions__promo-card {
        padding-bottom: 15px;
    }
    .page-promotions__promo-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__step-item {
        padding: 25px;
    }
    .page-promotions__step-number {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
        top: -22px;
    }
    .page-promotions__step-title {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    .page-promotions__benefits-list li {
        font-size: 1rem;
        padding: 15px;
    }
    .page-promotions__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__cta-image {
        margin-bottom: 30px;
    }
}