/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity, as body is default white */
}

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for smaller screens */
    box-sizing: border-box;
}

.page-promotions__section-title {
    font-size: 2.8em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    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;
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for mobile */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-large {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

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

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

/* Small button variant for cards */
.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-promotions__btn-small:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Large button variant */
.page-promotions__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Why Choose Us Section */
.page-promotions__why-choose-us {
    background-color: #f9f9f9;
}

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

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

.page-promotions__feature-icon {
    width: 300px; /* Min size */
    height: 200px; /* Min size */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Current Promotions Section */
.page-promotions__current-promotions {
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-promotions__current-promotions .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__current-promotions .page-promotions__section-description {
    color: #f0f0f0;
}

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

.page-promotions__promotion-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for white card background */
}

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

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

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

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

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: #f0f8f0; /* Light green background */
}

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

.page-promotions__step-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-promotions__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__step-text a {
    color: #C30808; /* Register link color */
    text-decoration: none;
    font-weight: bold;
}

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

.page-promotions__how-to-claim-cta {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-promotions__how-to-claim-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-promotions__terms-conditions .page-promotions__section-description {
    text-align: left;
    margin-bottom: 20px;
}

.page-promotions__terms-conditions .page-promotions__btn-secondary {
    margin-top: 30px;
    background-color: transparent;
    color: #017439;
    border-color: #017439;
}

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

/* FAQ Section */
.page-promotions__faq {
    background-color: #f9f9f9;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #C30808; /* Toggle icon color */
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change to 'x' or rotate for '-' */
    color: #017439;
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-promotions__faq-answer p {
    margin-bottom: 0;
    line-height: 1.5;
}

.page-promotions__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__faq-answer a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-promotions__cta-final {
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 80px 20px;
}

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

.page-promotions__cta-final .page-promotions__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-promotions__main-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small,
    .page-promotions__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__why-choose-us,
    .page-promotions__current-promotions,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq,
    .page-promotions__cta-final,
    .page-promotions__promotion-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 */
    }
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__feature-icon {
        width: 200px; /* Adjusted to min 200px */
        height: 150px; /* Adjusted to min 200px */
    }
    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__how-to-claim-image {
        max-width: 100%;
    }
    .page-promotions__step-item {
        padding-top: 50px;
    }
    .page-promotions__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        top: -20px;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__feature-icon {
        width: 200px; /* Adjusted to min 200px */
        height: 150px; /* Adjusted to min 200px */
    }
}