/* 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 handled by shared.css */
}

/* Container for consistent spacing */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Headings */
.page-promotions__hero-title,
.page-promotions__section-title {
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* Ensure white text for dark backgrounds */
}

.page-promotions__hero-title {
    font-size: 3.2em;
    text-align: center;
    color: #FFFF00; /* Special color for hero title */
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    color: #017439; /* Brand color for section titles on light backgrounds */
}

.page-promotions__dark-bg .page-promotions__section-title {
    color: #ffffff; /* White text for section titles on dark backgrounds */
}

.page-promotions__card-title,
.page-promotions__feature-title,
.page-promotions__step-title,
.page-promotions__terms-title,
.page-promotions__faq-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #017439; /* Brand color for sub-titles on light backgrounds */
}

.page-promotions__dark-bg .page-promotions__card-title,
.page-promotions__dark-bg .page-promotions__feature-title,
.page-promotions__dark-bg .page-promotions__step-title,
.page-promotions__dark-bg .page-promotions__terms-title,
.page-promotions__dark-bg .page-promotions__faq-title {
    color: #ffffff; /* White text for sub-titles on dark backgrounds */
}

/* Paragraphs and text */
.page-promotions__hero-description,
.page-promotions__section-description,
.page-promotions__feature-text,
.page-promotions__card-text,
.page-promotions__step-text,
.page-promotions__terms-text,
.page-promotions__faq-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #f0f0f0; /* Light grey for text on dark backgrounds */
}

.page-promotions__light-bg .page-promotions__hero-description,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__feature-text,
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__step-text,
.page-promotions__light-bg .page-promotions__terms-text,
.page-promotions__light-bg .page-promotions__faq-text {
    color: #333333; /* Dark grey for text on light backgrounds */
}

/* Sections */
.page-promotions__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand color as background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-promotions__overview-section,
.page-promotions__categories-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 60px 0;
}

.page-promotions__light-bg {
    background-color: #ffffff; /* White background */
}

.page-promotions__dark-bg {
    background-color: #0d0d0d; /* Body background color from shared.css */
}

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

.page-promotions__cta-buttons--centered {
    text-align: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-promotions__btn-primary:hover {
    background-color: #a30606;
    color: #fff;
}

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

.page-promotions__dark-bg .page-promotions__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

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

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

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

.page-promotions__feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark body background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 400px; /* Example size */
    height: 300px; /* Example size */
    object-fit: cover;
}

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

.page-promotions__card {
    background-color: #ffffff; /* White background for cards */
    color: #333333; /* Dark text for cards */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 600px; /* Example size */
    height: 400px; /* Example size */
    object-fit: cover;
}

.page-promotions__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

/* Steps list */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-item a {
    color: #017439;
    text-decoration: underline;
}

/* Terms list */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #FFFF00;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__terms-item a {
    color: #FFFF00;
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    color: #333333; /* Dark text for FAQ items */
}

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

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

.page-promotions__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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: #ffffff;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

/* Image responsiveness and minimum size */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

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

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

    .page-promotions__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min width */
        min-height: 200px !important; /* Enforce min height */
    }

    /* Mobile video responsiveness (if any, though none currently in HTML) */
    .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__feature-item,
    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        padding: 15px;
        box-sizing: border-box;
    }

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

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

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

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__card-title,
    .page-promotions__feature-title,
    .page-promotions__step-title,
    .page-promotions__terms-title,
    .page-promotions__faq-title {
        font-size: 1.1em;
    }
}

/* Ensure link colors on dark backgrounds are visible */
.page-promotions__dark-bg a {
    color: #FFFF00; /* Yellow for links on dark background */
}
.page-promotions__dark-bg a:hover {
    color: #FFD700; /* Slightly darker yellow on hover */
}