/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #121212; /* Inherited from shared.css body background */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --button-register-color: #C30808;
    --button-login-color: #C30808;
    --button-font-color: #FFFF00;
}

.page-promotions {
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-promotions__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjust top padding to account for fixed header */
    padding-top: var(--header-offset, 120px);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--light-text-color);
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link {
    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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background-color: var(--button-register-color); /* Custom color for register */
    color: var(--button-font-color); /* Custom font color for register/login */
    border: 2px solid var(--button-register-color);
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-promotions__btn-link {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

.page-promotions__intro-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    padding: 60px 0;
    color: var(--dark-text-color);
}

.page-promotions__intro-section .page-promotions__section-title,
.page-promotions__how-to-claim-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__offers-section,
.page-promotions__terms-section,
.page-promotions__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-promotions__offers-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__cta-bottom-section .page-promotions__section-title {
    color: var(--secondary-color);
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--light-text-color);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

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

.page-promotions__step-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark-text-color);
}

.page-promotions__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__step-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-promotions__terms-list {
    list-style: disc inside;
    margin-bottom: 30px;
    padding-left: 20px;
    font-size: 1.1em;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

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

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--dark-text-color);
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    padding-right: 10px;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--dark-text-color);
}

/* Responsive adjustments */
@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 {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 500px;
    }

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

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

    .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,
    .page-promotions__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__container,
    .page-promotions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__card,
    .page-promotions__step-item {
        padding: 20px;
    }

    .page-promotions__grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }
    
    .page-promotions__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }

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

    .page-promotions__terms-list {
        padding-left: 15px;
        font-size: 1em;
    }
    
    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

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