/* style/promotions.css */

/* --- General Page Styling --- */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #1a1a2e; /* Inherited from body, dark background */
    color: #ffffff; /* Light text for dark background */
}

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

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

.page-promotions__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

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

/* --- Buttons --- */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    font-size: 1.05em;
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #ffffff; /* Contrast with button background */
    border: 2px solid #C30808;
    margin-right: 15px;
}

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

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

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

.page-promotions__inline-link {
    color: #FFFF00; /* Register/Login font color, but used for inline links */
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__inline-link:hover {
    color: #e02020;
    text-decoration: none;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    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__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

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

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

/* --- Promotions Grid Section --- */
.page-promotions__overview-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

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

.page-promotions__promotion-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for contrast */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min-width for images */
    min-height: 200px; /* Enforce min-height for images */
}

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

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

.page-promotions__card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.page-promotions__card-features li {
    margin-bottom: 10px;
    color: #f0f0f0;
    display: flex;
    align-items: flex-start;
    font-size: 0.95em;
}

.page-promotions__card-features li::before {
    content: '✓';
    color: #FFFF00; /* Use yellow for checkmark for accent */
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Ensure button within card is styled correctly */
.page-promotions__promotion-card .page-promotions__btn-primary {
    width: auto;
    margin-top: auto; /* Push button to the bottom */
    margin-right: 0;
}

/* --- How to Claim Section --- */
.page-promotions__how-to-claim-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: #FFFF00; /* Yellow accent */
    color: #017439; /* Dark text for yellow background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

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

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

/* --- Terms Section --- */
.page-promotions__terms-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    text-align: left;
}

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

.page-promotions__terms-list li {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #f0f0f0;
    font-size: 1em;
}

.page-promotions__terms-list strong {
    color: #ffffff;
    font-weight: bold;
}

/* --- Why Choose Section --- */
.page-promotions__why-choose-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-promotions__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* --- FAQ Section --- */
.page-promotions__faq-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-text {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 20px;
    color: #FFFF00; /* Yellow accent */
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or minus sign */
    color: #C30808; /* Red accent when active */
}

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

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 15px 25px 25px 25px;
}

.page-promotions__faq-answer p {
    margin: 0;
    color: #f0f0f0;
    font-size: 0.95em;
}

/* --- Final CTA Section --- */
.page-promotions__cta-final-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding-bottom: 80px;
}

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

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

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

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

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

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

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

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

    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

    .page-promotions__promotions-grid,
    .page-promotions__steps-grid,
    .page-promotions__benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__promotion-card,
    .page-promotions__step-item,
    .page-promotions__benefit-item,
    .page-promotions__faq-item {
        padding: 25px;
    }

    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Ensure all containing elements for images and content also adapt */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section,
    .page-promotions__promotions-grid,
    .page-promotions__steps-grid,
    .page-promotions__benefits-grid,
    .page-promotions__faq-list,
    .page-promotions__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

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

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        min-width: unset; /* Allow smaller width on tiny screens */
    }
}