/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-red: #C30808;
    --accent-yellow: #FFFF00;
    --dark-text: #333333;
    --light-text: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #ffffff;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Apply header offset to the main section */
    color: var(--light-text);
}

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

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

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

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

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

/* General Section Styles */
.page-promotions__intro-section,
.page-promotions__claim-guide,
.page-promotions__faq-section {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    padding: 60px 0;
}

.page-promotions__promotion-types,
.page-promotions__terms-conditions,
.page-promotions__cta-final {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-promotions__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.page-promotions__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

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

.page-promotions__card {
    background: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--light-text);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-promotions__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 0.95em;
    line-height: 1.5;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide List */
.page-promotions__guide-list {
    list-style: none;
    counter-reset: guide-counter;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__guide-item {
    counter-increment: guide-counter;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
    font-size: 1.1em;
    text-align: left;
}

.page-promotions__guide-item::before {
    content: counter(guide-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-promotions__guide-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__guide-item a:hover {
    text-decoration: underline;
}

/* Terms List */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 40px;
    margin-top: 40px;
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-promotions__terms-item a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__terms-item a:hover {
    color: var(--accent-yellow);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--card-bg-light);
    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: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--dark-text);
    background-color: var(--secondary-color);
    border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid transparent; /* Hide border when open */
}

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

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

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

.page-promotions__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__faq-answer a:hover {
    text-decoration: underline;
}

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

.page-promotions__btn-primary {
    background-color: var(--accent-red); /* #C30808 */
    color: var(--light-text); /* #FFFFFF for contrast */
    border: 2px solid var(--accent-red);
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--accent-red), 10%);
    border-color: darken(var(--accent-red), 10%);
}

.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);
}

.page-promotions__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    margin-top: auto; /* Push to bottom of flex container */
}

.page-promotions__btn-small:hover {
    background-color: darken(var(--secondary-color), 5%);
}

.page-promotions__cta-buttons,
.page-promotions__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* 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) {
    .page-promotions__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__intro-section, 
    .page-promotions__promotion-types, 
    .page-promotions__claim-guide, 
    .page-promotions__terms-conditions, 
    .page-promotions__faq-section, 
    .page-promotions__cta-final {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Image responsiveness */
    .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;
    }
    /* Button 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__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container,
    .page-promotions__cta-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column !important; /* Force vertical stacking for buttons */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section {
        height: 400px;
    }
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__guide-item {
        font-size: 1em;
        padding-left: 45px;
    }
    .page-promotions__guide-item::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    .page-promotions__terms-list {
        padding-left: 20px;
    }
    .page-promotions__terms-item {
        font-size: 0.95em;
    }
}