/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #FFFFFF;
    --login-button-color: #EA7C07;
}

.page-promotions {
    color: var(--dark-text-color); /* Body background is light, so use dark text */
    background-color: var(--secondary-color);
}

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

.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top spacing, body handles main offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly over the image for visual flow */
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background for readability */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions__hero-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--dark-text-color);
}

.page-promotions__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
}

.page-promotions__section-description {
    font-size: 1.05em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--dark-text-color);
}

.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.page-promotions__promotions-grid {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

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

.page-promotions__card {
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Add border for contrast */
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--dark-text-color);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-promotions__how-to-claim .page-promotions__section-title {
    color: var(--light-text-color);
}

.page-promotions__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-promotions__faq-item {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid transparent;
}

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

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

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

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

.page-promotions__cta-section-bottom {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
}

.page-promotions__cta-section-bottom .page-promotions__section-title,
.page-promotions__cta-section-bottom .page-promotions__section-description {
    color: var(--light-text-color);
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    
    .page-promotions__hero-image {
        max-height: 400px;
    }

    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 15px;
        max-width: 95%;
    }

    .page-promotions__hero-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__overview-section,
    .page-promotions__promotions-grid,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__cta-section-bottom {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-promotions__card-grid,
    .page-promotions__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-promotions__card-title {
        font-size: 1.2em;
    }

    .page-promotions__card-text {
        font-size: 0.9em;
    }

    .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 {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

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

/* Dark background for sections that need it */
.page-promotions__dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__section-description,
.page-promotions__dark-bg .page-promotions__card-title,
.page-promotions__dark-bg .page-promotions__card-text {
    color: var(--light-text-color);
}

/* Light background for sections that need it */
.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__card-title {
    color: var(--primary-color);
}

.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__card-text {
    color: var(--dark-text-color);
}