/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --button-text-color: #FFFF00;
    --dark-bg-color: #0a0a0a;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --card-bg-light: #ffffff;
    --card-border-color: #e0e0e0;
}

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

.page-promotions__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.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__hero-section {
    position: relative;
    padding: 100px 0 60px 0;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: var(--dark-bg-color);
}

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

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

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 2;
    color: var(--light-text-color);
}

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

.page-promotions__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text-color);
}

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

.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, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--register-button-bg);
    color: var(--button-text-color);
    border: 2px solid var(--register-button-bg);
}

.page-promotions__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: rgba(195, 8, 8, 0.2);
    transform: translateY(-2px);
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--light-text-color);
}

.page-promotions__overview .page-promotions__section-title {
    color: var(--light-text-color);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__card {
    background-color: var(--card-bg-light);
    color: var(--dark-text-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 450px; /* Ensure cards have a minimum height */
    box-sizing: border-box;
}

.page-promotions__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__card-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: var(--register-button-bg);
}

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

.page-promotions__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-link:hover {
    background-color: #005a2e;
}

.page-promotions__specific-promotions .page-promotions__section-title {
    color: var(--light-text-color);
}

.page-promotions__promo-category {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    color: var(--light-text-color);
}

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

.page-promotions__category-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-promotions__category-title a:hover {
    color: var(--button-text-color);
}

.page-promotions__category-text {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-promotions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    text-align: left;
}

.page-promotions__list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 6px;
}

.page-promotions__how-to-claim .page-promotions__section-title {
    color: var(--dark-text-color);
}

.page-promotions__how-to-claim .page-promotions__text-block {
    color: var(--dark-text-color);
}

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

.page-promotions__step-item {
    background-color: var(--card-bg-light);
    color: var(--dark-text-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: left;
}

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

.page-promotions__step-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-promotions__step-title a:hover {
    color: var(--register-button-bg);
}

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

.page-promotions__terms .page-promotions__section-title {
    color: var(--light-text-color);
}

.page-promotions__terms .page-promotions__text-block {
    color: var(--light-text-color);
}

.page-promotions__terms .page-promotions__list {
    list-style: decimal;
    color: var(--light-text-color);
}

.page-promotions__terms .page-promotions__list li {
    font-size: 1em;
}

.page-promotions__faq .page-promotions__section-title {
    color: var(--dark-text-color);
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--card-bg-light);
    color: var(--dark-text-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.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: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: #f5f5f5;
    border-bottom: 1px solid var(--card-border-color);
    border-radius: 8px 8px 0 0;
}

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

.page-promotions__faq-question .page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--dark-text-color);
}

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

.page-promotions__cta-bottom {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-promotions__cta-bottom .page-promotions__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.page-promotions__cta-bottom .page-promotions__cta-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Ensure all images maintain original color */
.page-promotions img {
    filter: none; /* No CSS filter to change image colors */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }

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

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

    .page-promotions__card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header for mobile */
        padding-bottom: 40px;
    }

    .page-promotions__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .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;
        padding: 15px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.95em;
    }

    .page-promotions__grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card {
        min-height: auto;
        padding: 25px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

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

    .page-promotions__category-title {
        font-size: 1.6em;
    }

    .page-promotions__steps-list {
        grid-template-columns: 1fr;
    }

    .page-promotions__step-item {
        padding: 25px;
    }

    .page-promotions__step-title {
        font-size: 1.3em;
    }

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

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

    .page-promotions__cta-bottom {
        padding: 60px 0;
    }

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

    .page-promotions__cta-bottom .page-promotions__cta-text {
        font-size: 1em;
    }

    .page-promotions__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Image/Video/Container responsive rules for mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-category,
    .page-promotions__faq-list,
    .page-promotions__steps-list,
    .page-promotions__cta-buttons,
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions__hero-section .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct padding-top on mobile */
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }

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

    .page-promotions__cta-bottom .page-promotions__cta-title {
        font-size: 1.6em;
    }
}