/* style/promotions.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-promotions {
    background-color: var(--color-background);
    color: var(--color-text-main); /* Default text color for the main content area */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: var(--color-deep-green); /* Example background for hero section container */
    overflow: hidden; /* Ensure no overflow from image */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Adjusted H1 font size with clamp */
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 20px; /* Default padding for content inside container */
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__section-title--light {
    color: var(--color-text-main);
}

.page-promotions__section-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__section-description--light {
    color: var(--color-text-main);
}

/* Content Block (image and text side-by-side) */
.page-promotions__content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__content-block--reverse {
    flex-direction: row-reverse;
}

.page-promotions__content-image {
    width: 50%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.page-promotions__text-content {
    width: 50%;
    color: var(--color-text-main);
}

.page-promotions__text-content p {
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--color-text-main);
}

.page-promotions__text-content strong {
    color: var(--color-gold);
}

.page-promotions__ordered-list,
.page-promotions__unordered-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 0;
    color: var(--color-text-main);
}

.page-promotions__ordered-list li,
.page-promotions__unordered-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-promotions__ordered-list li strong {
    color: var(--color-gold);
}

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

.page-promotions__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-card-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__promo-card-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Call to Action Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--color-deep-green);
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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;
    color: var(--color-text-main);
    text-align: left;
}

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

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* For <summary> tag */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    background-color: var(--color-card-bg);
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

.page-promotions__faq-answer strong {
    color: var(--color-gold);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
    background-color: var(--color-deep-green);
    padding: 80px 20px;
}

.page-promotions__cta-bottom .page-promotions__container {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--color-border);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__content-block {
        flex-direction: column;
        gap: 30px;
    }
    .page-promotions__content-block--reverse {
        flex-direction: column; /* Keep column for reverse on tablet */
    }
    .page-promotions__content-image,
    .page-promotions__text-content {
        width: 100%;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

    /* All containers with images/content */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__promo-card,
    .page-promotions__content-block,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    /* Specific padding for hero/video section */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .page-promotions__cta-button,
    .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;
        padding-right: 15px;
    }
    
    .page-promotions__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        overflow: hidden !important;
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
    }

    .page-promotions__promo-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section {
        padding: 20px 10px;
    }
    .page-promotions__section {
        padding: 30px 10px;
    }
    .page-promotions__container {
        padding: 0 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.3em, 8vw, 1.8em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.2em, 7vw, 1.8em);
    }
    .page-promotions__description {
        font-size: 0.9em;
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__promo-card-title {
        font-size: 1.2em;
    }
    .page-promotions__promo-card-text {
        font-size: 0.85em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }
}