/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    background-color: #017439; /* Brand color for hero background */
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    margin: 10px;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-promotions__btn-primary:hover {
    background-color: #005a2e; /* Darker shade for hover */
    border-color: #005a2e;
}

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

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Custom button styles for Register/Login if needed, using the specific colors */
.page-promotions__register-button {
    background-color: #C30808; /* Red */
    color: #FFFF00; /* Yellow */
    border: 2px solid #C30808;
}
.page-promotions__register-button:hover {
    background-color: #a30606;
    border-color: #a30606;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    background-color: #1a1a1a; /* Dark background for contrast */
    padding: 80px 0;
    color: #ffffff;
}

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

.page-promotions__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark card */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__feature-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
}

.page-promotions__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__why-choose-section .page-promotions__section-image {
    display: block;
    margin: 50px auto 0 auto;
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Promotion Types Section */
.page-promotions__promo-types-section {
    background-color: #f8f8f8; /* Light background */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-promotions__promo-types-section .page-promotions__section-title {
    color: #333333;
}

.page-promotions__promo-types-section .page-promotions__section-intro {
    color: #555555;
}

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

.page-promotions__promo-card {
    background-color: #ffffff; /* White card background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-card-title {
    font-size: 1.6em;
    color: #017439; /* Brand color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__promo-card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

.page-promotions__promo-card .page-promotions__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
    color: #ffffff;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    background-color: #1a1a1a; /* Dark background */
    padding: 80px 0;
    color: #ffffff;
}

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

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439; /* Brand color */
    margin-bottom: 15px;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

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

.page-promotions__step-description a {
    color: #FFFF00; /* Use custom color for links in dark sections */
    text-decoration: underline;
}

.page-promotions__step-description a:hover {
    color: #ffe000;
}

.page-promotions__how-to-claim-section .page-promotions__section-image {
    display: block;
    margin: 50px auto 0 auto;
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    background-color: #f8f8f8; /* Light background */
    padding: 80px 0;
    color: #333333;
}

.page-promotions__terms-section .page-promotions__section-title {
    color: #333333;
}

.page-promotions__terms-section .page-promotions__section-intro {
    color: #555555;
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444444;
}

.page-promotions__terms-item strong {
    color: #017439; /* Brand color for emphasis */
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #1a1a1a; /* Dark background */
    padding: 80px 0;
    color: #ffffff;
}

.page-promotions__faq-section .page-promotions__section-title {
    color: #ffffff;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove marker for Webkit browsers */
}

.page-promotions__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439; /* Brand color for toggle icon */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−";
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    background-color: #f8f8f8; /* Light background */
    padding: 80px 0;
    text-align: center;
    color: #333333;
}

.page-promotions__cta-final-section .page-promotions__section-title {
    color: #333333;
}

.page-promotions__cta-final-section .page-promotions__section-intro {
    color: #555555;
}

.page-promotions__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
}

/* Images and Videos Responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-promotions video,
.page-promotions__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__section-intro {
        font-size: 0.95em;
    }

    .page-promotions__features-grid,
    .page-promotions__promo-card-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 20px;
    }

    .page-promotions__promo-card-image {
        height: 200px; /* Adjust image height for mobile cards */
    }

    .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; /* Add some padding for text within button */
        padding-right: 15px;
        margin: 5px 0 !important; /* Stack buttons vertically and remove horizontal margin */
    }
    
    .page-promotions__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    /* Mobile image responsiveness (important for content area images) */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !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;
    }
    
    .page-promotions__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-promotions__hero-image,
.page-promotions__why-choose-section .page-promotions__section-image,
.page-promotions__promo-card-image,
.page-promotions__how-to-claim-section .page-promotions__section-image {
    min-width: 200px;
    min-height: 200px;
}

/* Image filter restriction */
.page-promotions img {
    filter: none; /* Prohibit CSS filters that change image color */
}

/* Text link styles */
.page-promotions a {
    color: #017439; /* Default link color for light backgrounds */
    text-decoration: none;
}
.page-promotions a:hover {
    text-decoration: underline;
}

.page-promotions__dark-bg a {
    color: #FFFF00; /* Yellow for links on dark backgrounds */
}
.page-promotions__dark-bg a:hover {
    color: #ffe000;
}