/* style/promotions.css */

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    background-color: #F0F8FF; /* Light blue background for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #FFFFFF; /* White text on dimmed background image */
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 8px;
}

.page-promotions__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

.page-promotions__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* General Section Styles */
.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section:nth-of-type(even) {
    background-color: #F9F9F9; /* Alternate background for sections */
}

.page-promotions__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

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

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

.page-promotions__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

/* How to Claim Section */
.page-promotions__how-to-claim .page-promotions__text-block {
    margin-bottom: 30px;
}

.page-promotions__steps-list {
    list-style-type: decimal;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding-left: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-promotions__steps-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-promotions__steps-list strong {
    color: #26A9E0;
}

.page-promotions__how-to-claim-cta {
    margin-top: 30px;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions .page-promotions__text-block {
    margin-bottom: 30px;
}

.page-promotions__terms-list {
    list-style-type: disc;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding-left: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

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

.page-promotions__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    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;
    background-color: #F5F5F5;
    cursor: pointer;
    font-size: 1.2em;
    color: #26A9E0;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

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

.page-promotions__faq-answer p {
    margin: 0;
    color: #555555;
    text-align: left;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
}

.page-promotions__final-cta-section .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__final-cta-section .page-promotions__section-title::after {
    background-color: #FFFFFF;
}

.page-promotions__final-cta-section .page-promotions__text-block {
    color: #FFFFFF;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-promotions__btn-primary:hover {
    background-color: #D36C00;
    border-color: #D36C00;
    transform: translateY(-2px);
}

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

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
        padding-bottom: 40px;
    }
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__text-block,
    .page-promotions__steps-list,
    .page-promotions__terms-list,
    .page-promotions__faq-answer p {
        font-size: 0.95em;
    }
    .page-promotions__card-grid {
        gap: 20px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-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;
    }
    /* Ensure content area images are not too small */
    .page-promotions__card-image {
        min-width: 200px !important;
        min-height: 150px !important; /* Adjusted min-height for card images on mobile if needed, but still >= 200px rule applies to actual displayed size */
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__hero-image {
        width: 100% !important;
        height: auto !important; /* Adjust hero image height on mobile */
        max-height: 400px; /* Limit hero image height on mobile */
        object-fit: cover;
    }
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__final-cta-section {
        padding: 60px 15px;
    }
}

/* Ensure content area images are not too small as per rules */
.page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
}
/* General image styling to ensure minimum sizes are respected for content images */
.page-promotions img:not(.page-promotions__hero-image) { /* Exclude hero image for specific width/height handling */
    width: auto;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Still responsive */
}

/* Specific styling for the social image placeholder, ensuring it also adheres to minimum size if rendered as content */
img[src*="[GALLERY:social"] {
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
    max-width: 100%;
}