/* style/promotions.css */
/* Base styles for the promotions page, ensuring contrast and responsiveness */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container for main content, ensuring proper width and padding */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__container--center {
    text-align: center;
}

/* Section styling */
.page-promotions__hero-section,
.page-promotions__overview-section,
.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-final-section {
    padding: 60px 0;
    box-sizing: border-box;
}

/* Specific top padding for the first section, relying on body for header offset */
.page-promotions__hero-section {
    padding-top: 10px; /* Small decorative top padding */
}

/* Titles */
.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
    font-weight: 700;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-promotions__card-title,
.page-promotions__step-title,
.page-promotions__terms-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: #26A9E0;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Text blocks */
.page-promotions__text-block {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333333;
}

.page-promotions__text-block--white {
    color: #FFFFFF;
}

.page-promotions__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555555;
}

/* Hero Section Specifics */
.page-promotions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #FFFFFF; /* Light background for hero */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image wrapper */
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__cta-buttons--center {
    justify-content: center;
    text-align: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center; /* Center text in button */
}

.page-promotions__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border-color: #26A9E0;
}

.page-promotions__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-promotions__btn-primary--white-text {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-promotions__btn-primary--white-text:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #1e87c2;
}

.page-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

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

.page-promotions__btn-secondary--white-border {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-promotions__btn-secondary--white-border:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

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

.page-promotions__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0; /* Add border for contrast */
    color: #333333;
}

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

.page-promotions__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as block */
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__card-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

/* How-To Steps */
.page-promotions__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-promotions__step-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #e0e0e0;
}

.page-promotions__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: #26A9E0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px; /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(38, 169, 224, 0.4);
}

.page-promotions__step-item div {
    flex-grow: 1;
}

.page-promotions__step-text {
    font-size: 1rem;
    color: #555555;
}

/* Terms & Conditions List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
}

.page-promotions__terms-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.page-promotions__terms-text {
    font-size: 1rem;
    color: #555555;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #333333; /* Dark text for FAQ questions/answers */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #26A9E0; /* Brand color for FAQ questions */
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

.page-promotions__faq-answer {
    padding: 15px 25px;
    font-size: 1rem;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #e0e0e0; /* Visual separator */
}

/* Dark Background Section */
.page-promotions__cta-final-section {
    background-color: #26A9E0; /* Brand color as background */
    color: #FFFFFF;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding: 40px 0;
    }

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

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-promotions__description,
    .page-promotions__text-block,
    .page-promotions__card-text,
    .page-promotions__step-text,
    .page-promotions__terms-text,
    .page-promotions__faq-text {
        font-size: 1rem;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 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__step-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-promotions__container for overall layout */
    }

    .page-promotions__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-promotions__step-item::before {
        margin-bottom: 15px;
    }

    .page-promotions__step-item div {
        text-align: left; /* Keep text left-aligned within its block */
        width: 100%;
    }

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

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

@media (max-width: 480px) {
    .page-promotions__hero-section {
        padding-top: 5px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
    }
    .page-promotions__cta-buttons {
        gap: 10px;
    }
}

/* Ensure images don't have filters */
.page-promotions img {
    filter: none !important;
}