/* style/promotions.css */
.page-promotions {
    color: #ffffff; /* Default text color for dark body background */
}

.page-promotions__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background: linear-gradient(135deg, #017439, #005a2d);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

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

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

.page-promotions__intro-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

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

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

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: inherit; /* Inherits color from parent section */
}

.page-promotions__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: inherit;
}

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

.page-promotions__card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no CSS filter is applied */
    max-width: 100%;
    display: block;
}

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

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

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background-color: #005a2d;
}

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

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

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #C30808; /* Custom color for steps */
    color: #FFFF00; /* Custom font color for steps */
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.page-promotions__step-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__step-button:hover {
    background-color: #005a2d;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-promotions__list-item {
    background-color: #f0f0f0;
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333333;
}

.page-promotions__btn-center {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-section {
    padding: 60px 20px;
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

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

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

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

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 20px;
}

.page-promotions__faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-promotions__cta-section {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.page-promotions__cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #555555;
}

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

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding: 80px 15px 50px;
    }
    .page-promotions__main-title {
        font-size: 2.2em;
    }
    .page-promotions__intro-text {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button,
    .page-promotions__step-button,
    .page-promotions__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__step-title {
        font-size: 1.5em;
    }
    .page-promotions__list-item {
        font-size: 1em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 15px;
    }
    .page-promotions__cta-title {
        font-size: 2em;
    }
    .page-promotions__cta-description {
        font-size: 1em;
    }
    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__cta-section,
    .page-promotions__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

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

/* Ensure no CSS filter on images */
.page-promotions img {
    filter: none;
}

/* Content area images CSS dimensions lower bound */
.page-promotions__grid img, .page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* For any img within .page-promotions that is not specifically styled to be smaller than 200px */
.page-promotions :not(.shared-header):not(.shared-footer) img {
    min-width: 200px;
    min-height: 200px;
}