/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* A very light grey for main content area */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section:nth-of-type(even) {
    background-color: #ffffff;
}

.page-promotions__section-title {
    font-size: 32px;
    color: #26A9E0; /* Primary color for titles */
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-promotions__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Removed padding-top: var(--header-offset, 120px); - Handled by shared.css on body */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #26A9E0, #a8dcf8); /* Gradient background with primary color */
    color: #ffffff; /* White text for dark/gradient background */
    overflow: hidden;
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    background: #ff8c00; /* Slightly darker orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-promotions__cta-button--large {
    padding: 22px 55px;
    font-size: 24px;
    margin-top: 40px;
}

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

.page-promotions__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-promotions__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-promotions__card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-promotions__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary:hover {
    background: #1e87c0;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0;
    text-decoration: none;
    border: 2px solid #26A9E0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Image Gallery in Cashback Section */
.page-promotions__image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-promotions__image-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Dark Section for CTA Bottom */
.page-promotions__dark-section {
    background: #26A9E0;
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin-top: 60px;
}

.page-promotions__dark-section .page-promotions__section-title {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.page-promotions__dark-section .page-promotions__text-block {
    color: #f0f0f0;
}


/* FAQ Section */
.page-promotions__faq {
    background-color: #f8f8f8;
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-promotions__faq-question:active {
    background: #eeeeee;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__section-title {
        font-size: 28px;
    }
    .page-promotions__text-block {
        font-size: 16px;
    }
    .page-promotions__card-title {
        font-size: 22px;
    }
    .page-promotions__card-text {
        font-size: 15px;
    }
    .page-promotions__cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-promotions__cta-button--large {
        padding: 18px 45px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        /* padding-top is handled by shared.css on body */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-image img {
        border-radius: 8px;
    }
    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-promotions__text-block {
        font-size: 15px;
    }
    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding: 20px;
        min-height: auto;
    }
    .page-promotions__card img {
        height: 200px; /* Adjust fixed height for mobile cards */
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-text {
        font-size: 14px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-promotions__image-gallery img {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-promotions__dark-section {
        padding: 40px 15px;
        margin-top: 40px;
    }

    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all content images are responsive and don't overflow */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}

/* Ensure no filter is used for images */
.page-promotions img {
    filter: none;
}