/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-register-bg: #C30808;
    --button-register-text: #FFFF00;
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Hero Section */
.page-promotions__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background: var(--primary-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.page-promotions__hero-section .page-promotions__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-promotions__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--text-light);
}

.page-promotions__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text wraps within button */
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-register-text);
    border: 2px solid var(--button-register-bg);
}

.page-promotions__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

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

/* Introduction Section */
.page-promotions__introduction {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-promotions__introduction .page-promotions__section-title,
.page-promotions__introduction .page-promotions__text-block {
    color: var(--text-dark);
}

/* Promotions Grid */
.page-promotions__promotions-grid {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.page-promotions__promotions-grid .page-promotions__section-title,
.page-promotions__promotions-grid .page-promotions__section-subtitle {
    color: var(--text-light);
}

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

.page-promotions__card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-align: center;
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-promotions__card .page-promotions__btn-primary {
    margin-top: auto;
    width: 100%;
}

/* How To Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__text-block {
    color: var(--text-dark);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__steps-list li {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__steps-list li strong {
    color: var(--primary-color);
}

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

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

.page-promotions__video-section .page-promotions__section-title,
.page-promotions__video-section .page-promotions__section-subtitle {
    color: var(--text-light);
}

.page-promotions__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer; /* Indicate clickable video */
}

.page-promotions__video-caption {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 15px;
}

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

.page-promotions__faq-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-subtitle {
    color: var(--text-dark);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #e8f5e9; /* Light green for question background */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #d4edda;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: var(--primary-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
}

.page-promotions__faq-item:not([open]) .page-promotions__faq-answer {
    display: none;
}

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

.page-promotions__faq-item summary {
    list-style: none;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__section-subtitle {
    color: var(--text-light);
}

.page-promotions__cta-final .page-promotions__cta-buttons {
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.15em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__section-subtitle {
        font-size: 1.1em;
    }
    .page-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section .page-promotions__container {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__hero-image-wrapper {
        order: -1; /* Image above text on mobile */
        margin-bottom: 30px;
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        gap: 10px;
    }
    .page-promotions__btn-primary, .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-subtitle {
        font-size: 1em;
    }
    .page-promotions__text-block, .page-promotions__steps-list li, .page-promotions__card-description, .page-promotions__faq-answer {
        font-size: 0.95em;
    }

    /* Mobile image adaptation */
    .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__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: hidden !important;
    }
    
    /* Mobile video adaptation */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
    .page-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__btn-primary, .page-promotions__btn-secondary {
        font-size: 1em;
        padding: 10px 15px;
    }
}