/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background, #FFFFFF); /* Inherit from shared, default to white */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
    background: linear-gradient(135deg, #017439, #005a2e); /* Brand green gradient */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

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

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-promotions__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Section Styles */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-promotions__section-title--white {
    color: #ffffff;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 80px 0;
}

/* Featured Promotions Section */
.page-promotions__featured-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-promotions__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #333333;
    transition: transform 0.3s ease;
}

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

.page-promotions__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions__promo-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #017439;
}

.page-promotions__promo-description {
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-promotions__card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 20px;
    justify-content: flex-start;
}

/* Terms & Conditions Section */
.page-promotions__terms-section {
    padding: 80px 0;
}

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

.page-promotions__term-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__term-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 15px;
}

.page-promotions__term-description {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-promotions__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #017439;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-promotions__faq-item.active .page-promotions__faq-question {
    background-color: #e5e5e5;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important;
    padding: 20px 25px;
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-content {
    max-width: 900px;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

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

.page-promotions__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-promotions__btn-primary--card,
.page-promotions__btn-secondary--card {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
}

.page-promotions__btn-primary--center,
.page-promotions__btn-secondary--center {
    display: block;
    margin: 40px auto 0;
    max-width: 300px;
}

/* Custom Colors from Requirements */
.page-promotions .page-promotions__hero-buttons .page-promotions__btn-primary,
.page-promotions .page-promotions__cta-buttons .page-promotions__btn-primary {
    background-color: #C30808;
    border-color: #C30808;
    color: #FFFF00;
}
.page-promotions .page-promotions__hero-buttons .page-promotions__btn-primary:hover,
.page-promotions .page-promotions__cta-buttons .page-promotions__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-promotions__container {
        padding: 0 15px !important;
    }

    /* Fixed header offset for mobile */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__hero-buttons,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Added padding to prevent buttons from touching screen edges */
    }

    .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: 12px 20px; /* Adjust button padding for mobile */
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.95em;
    }

    .page-promotions__promo-image {
        height: 200px;
    }

    .page-promotions__promo-title {
        font-size: 1.3em;
    }

    .page-promotions__card-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px 20px;
    }

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

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

    /* Image responsive adaptions */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__featured-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__promo-card,
    .page-promotions__term-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Ensure specific containers like page-promotions__hero-content also adapt */
    .page-promotions__hero-content,
    .page-promotions__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}