/* style/promotions.css */

/* --- General Styles for Page Promotions --- */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text 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: 40px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* --- Color Contrast Classes (Intelligent Selection) --- */
.page-promotions__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* Light text for dark background */
}

.page-promotions__light-bg {
    background-color: #FFFFFF; /* Auxiliary color / White background */
    color: #333333; /* Dark text for light background */
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Slightly dim image for text readability */
}

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

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

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

/* --- Buttons --- */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    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, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login button background */
    color: #000000; /* Overridden to black for WCAG AA contrast with #C30808 */
    border: 2px solid #C30808;
    margin-top: 20px;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff; /* White text on hover for better contrast */
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color for text */
    border: 2px solid #017439;
    margin-top: 15px;
}

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

/* --- Overview Section --- */
.page-promotions__overview-section {
    padding: 80px 0;
}

/* --- Types Section --- */
.page-promotions__types-section {
    padding: 80px 0;
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark body bg */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for card background */
}

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure image fills card width */
    min-height: 200px; /* Minimum size */
}

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

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

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

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__steps-list li {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #017439; /* Brand color highlight */
    border-radius: 5px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-promotions__steps-list li strong {
    color: #ffffff;
}

/* --- Why Choose Section --- */
.page-promotions__why-choose-section {
    padding: 80px 0;
}

.page-promotions__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__feature-list li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #C30808; /* Secondary highlight color */
    border-radius: 5px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-promotions__feature-list li strong {
    color: #ffffff;
}

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

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Darker card background for FAQ */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    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: #017439; /* Brand color for question background */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

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

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

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

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

    .page-promotions__card-title {
        font-size: 1.5em;
    }
}

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

    .page-promotions__hero-section {
        padding: 80px 0;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
    }

    .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__container {
        padding: 0 15px; /* Add padding to container for mobile */
    }

    .page-promotions__grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
    }

    /* 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;
    }
    
    /* Buttons responsiveness */
    .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;
        padding-right: 15px;
    }
    
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    
    /* FAQ adjustments */
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__text-block,
    .page-promotions__steps-list li,
    .page-promotions__feature-list li,
    .page-promotions__faq-question,
    .page-promotions__faq-answer p {
        font-size: 0.95em;
    }
}

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