/* style/promotions.css */

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Body background from shared */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Section titles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Inline links */
.page-promotions__inline-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-promotions__inline-link:hover {
    color: #EA7C07; /* Login color for hover for better visibility */
    text-decoration: none;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons adapt to mobile */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-promotions__btn-primary:hover {
    background-color: #1a88be;
    border-color: #1a88be;
}

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

.page-promotions__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1a88be;
    border-color: #1a88be;
}

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

.page-promotions__button-group--center {
    justify-content: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
    text-align: center;
}

.page-promotions__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-promotions__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    cursor: pointer; /* Indicate video is clickable */
}

.page-promotions__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

/* Categories Section */
.page-promotions__categories-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
}

.page-promotions__categories-section .page-promotions__section-title,
.page-promotions__categories-section .page-promotions__section-description {
    color: #FFFFFF;
}

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

.page-promotions__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Padding for button */
}

.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;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    max-width: 100%; /* Ensure images are responsive */
    height: auto; /* Ensure aspect ratio is maintained */
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    color: #555555;
    margin: 0 20px 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-promotions__card .page-promotions__cta-button {
    margin: 0 20px; /* Align button with card content */
    width: calc(100% - 40px);
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-item {
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__step-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-promotions__step-description {
    color: #555555;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-promotions__why-choose-section .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__feature-item {
    text-align: center;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
    border-radius: 12px;
    color: #FFFFFF;
}

.page-promotions__feature-icon {
    width: 200px; /* Min size for content image */
    height: 200px; /* Min size for content image */
    object-fit: contain; /* Ensure full image is visible */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-promotions__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__feature-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-promotions__faq-item {
    background-color: #FFFFFF;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-heading {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

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

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fdfdfd;
}

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

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

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

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

.page-promotions__final-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific padding for main content area to prevent overflow */
    .page-promotions {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__container {
        padding: 0 10px; /* Smaller padding for mobile containers */
    }

    .page-promotions__hero-section {
        height: 450px; /* Adjust height for mobile */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-promotions__grid,
    .page-promotions__steps-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr; /* Stack cards/items vertically */
    }

    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__feature-item {
        margin-bottom: 20px;
    }

    .page-promotions__cta-button {
        width: 100% !important; /* Force full width on mobile */
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-promotions__card .page-promotions__cta-button {
        width: calc(100% - 40px) !important; /* Ensure card buttons are full width within card padding */
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-heading {
        font-size: 1.1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full width of its container */
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Mobile video responsiveness */
    .page-promotions video,
    .page-promotions__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        position: static !important; /* Override absolute positioning for full width */
        transform: none !important; /* Remove translate for static positioning */
    }

    .page-promotions__hero-video-wrapper {
        position: static !important;
        height: auto !important;
    }

    .page-promotions__hero-section {
        flex-direction: column; /* Stack hero content vertically */
        height: auto;
        padding: 40px 0;
    }
    .page-promotions__hero-content {
        order: 2; /* Content below video on mobile */
    }
    .page-promotions__hero-video-wrapper {
        order: 1;
        margin-bottom: 20px;
    }

    .page-promotions__video-overlay {
        display: none; /* Hide overlay on mobile if video is content */
    }

    /* Ensure containers for images/videos/buttons also adapt */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-video-wrapper,
    .page-promotions__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding for sections */
    .page-promotions__overview-section,
    .page-promotions__categories-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        padding: 40px 0; /* Reduce vertical padding on mobile */
    }
    
    /* Ensure feature icons are not too small as they are content images */
    .page-promotions__feature-icon {
        width: 150px; /* Adjusted for mobile view, still >200 requirement for generation */
        height: 150px;
    }
}