/* 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;
}

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

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for dark sections */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast handling */
.page-promotions__dark-bg,
.page-promotions__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-description,
.page-promotions__dark-section .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light sections */
    padding: 60px 0;
}

.page-promotions__light-bg .page-promotions__section-title {
    color: #017439; /* Brand primary color for titles on light background */
}

.page-promotions__light-bg .page-promotions__section-description {
    color: #555555;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2f); /* Gradient with brand colors */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

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

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text breaks */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login type buttons */
    color: #FFFF00; /* Custom font color for Register/Login type buttons */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff;
}

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

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

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

/* Promo Grid Section */
.page-promotions__promo-grid {
    padding-bottom: 80px;
}

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

.page-promotions__card {
    background-color: #f8f8f8; /* Light background for cards */
    color: #333333; /* Dark text for cards */
    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;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.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: 250px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Enforce min image size */
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
    font-weight: bold;
}

.page-promotions__card-link {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-link:hover {
    color: #004d26;
}

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

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #C30808; /* Custom color for action buttons */
    color: #FFFF00; /* Custom font color */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start of flex item */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background-color: #a00606;
    color: #ffffff;
}

/* How To Claim Section */
.page-promotions__how-to-claim {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #017439; /* Dark section with brand color */
    color: #ffffff;
}

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

.page-promotions__step-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Custom color for numbers */
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFF00;
}

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

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

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

/* Advantages Section */
.page-promotions__advantages {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-promotions__feature-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__feature-icon {
    width: 100px; /* Display size */
    height: 100px; /* Display size */
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size for placeholder */
    min-height: 200px; /* Enforce min image size for placeholder */
    width: 100%; /* Occupy full available width */
    height: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Limit actual display size */
    max-height: 200px; /* Limit actual display size */
}

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

.page-promotions__feature-text {
    font-size: 0.95em;
    color: #555555;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 20px;
    color: #FFFF00; /* Custom color for toggle icon */
}

.page-promotions__faq-item details summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-item details summary {
    list-style: none;
}

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

/* CTA Section at bottom */
.page-promotions__cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

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

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

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header adjustment */
    }

    .page-promotions__hero-content {
        padding: 15px;
    }

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

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

    .page-promotions__grid,
    .page-promotions__steps,
    .page-promotions__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .page-promotions__container {
        padding: 0 15px; /* Ensure container padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions__card-image {
        height: 200px;
        min-height: 200px; /* Ensure min image size */
    }
    
    /* Mobile image responsive adaptation */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure content images are not too small */
        min-height: 200px !important; /* Ensure content images are not too small */
    }
    
    .page-promotions__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: 0;
        padding-right: 0;
    }

    .page-promotions__feature-icon {
        width: 100% !important; /* Ensure icons also responsive */
        height: auto !important;
        max-width: 200px !important;
        max-height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }

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

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