/* style/promotions.css */

/* Base Styles for Promotions Page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px; /* Minimum height for hero */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #017439, #005f2c); /* Gradient background for hero */
    color: #ffffff;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

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

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

.page-promotions__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

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

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

.page-promotions__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-promotions__btn-tertiary {
    background-color: #017439; /* Brand color */
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-promotions__btn-tertiary:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

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

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

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__feature-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Types Section */
.page-promotions__types-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Even darker background */
    color: #ffffff;
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions__promo-card .page-promotions__card-title {
    font-size: 1.5em;
    color: #017439;
    padding: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-promotions__promo-card .page-promotions__card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Ensures buttons align at bottom */
}

.page-promotions__promo-card .page-promotions__btn-tertiary {
    align-self: flex-start;
    margin: 0 20px 20px 20px;
}

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

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

.page-promotions__step-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__step-icon {
    width: 200px; /* Min size for display */
    height: 200px; /* Min size for display */
    object-fit: contain;
    margin: 0 auto 20px auto;
    border-radius: 5px;
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 30px auto;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    font-size: 1em;
    color: #f0f0f0;
}

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

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

/* Hide default marker for details/summary */
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-promotions__faq-item summary {
    list-style: none;
}


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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.02); /* Slightly lighter background for answer */
    color: #f0f0f0;
    font-size: 1em;
}

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

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

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

.page-promotions__final-cta-section .page-promotions__text-block {
    color: #ffffff;
}

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

/* Links within text */
.page-promotions a {
    color: #FFFF00; /* Custom font color for register/login */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: #FFD700;
}

/* 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) {
    .page-promotions__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is applied */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile image responsive optimization */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section,
    .page-promotions__promo-card,
    .page-promotions__feature-item,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure .page-promotions itself also prevents overflow */
    .page-promotions {
        overflow-x: hidden !important;
    }

    .page-promotions__step-icon {
        width: 200px;
        height: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ensure no filter on images */
.page-promotions img {
    filter: none !important;
}

/* Links within text contrast */
.page-promotions p a,
.page-promotions li a,
.page-promotions__faq-answer a {
    color: #FFFF00; /* Custom font color for register/login */
    text-decoration: underline;
}
.page-promotions p a:hover,
.page-promotions li a:hover,
.page-promotions__faq-answer a:hover {
    color: #FFD700;
}

/* Headers contrast */
.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
    color: #ffffff; /* Default to white for dark background */
}
.page-promotions__section-title, .page-promotions__feature-title, .page-promotions__card-title, .page-promotions__step-title {
    color: #017439; /* Specific titles use brand green */
}
.page-promotions__hero-title {
    color: #ffffff; /* Hero title explicitly white */
}
.page-promotions__faq-question {
    color: #ffffff; /* FAQ question explicitly white */
}