/* style/promotions.css */

/* Common styles for the page */
.page-promotions {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: var(--background-color, #f0f2f5);
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    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;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #017439; /* Brand primary color for hero */
    overflow: hidden;
}

.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;
    opacity: 0.3;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-promotions__btn-center {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-promotions__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

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

.page-promotions__feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__feature-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions__feature-text {
    font-size: 1.1em;
    color: #555;
}

/* Promotion Types Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    text-align: left;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.page-promotions__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

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

/* Guide Steps */
.page-promotions__guide.page-promotions__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-promotions__guide .page-promotions__section-title,
.page-promotions__guide .page-promotions__section-description {
    color: #ffffff;
}

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

.page-promotions__step-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.page-promotions__step-number {
    background: #C30808;
    color: #FFFF00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

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

.page-promotions__guide-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Terms & Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
}

.page-promotions__terms-list li {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333333;
}

.page-promotions__terms-list li strong {
    color: #017439;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    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: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.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: #555555;
    background-color: #ffffff;
}

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

.page-promotions__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

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

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

.page-promotions__cta-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 50px auto 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__section-description {
        font-size: 1em;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__features-grid,
    .page-promotions__promo-grid,
    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Content containers responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__promo-card,
    .page-promotions__guide-image,
    .page-promotions__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsive */
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .page-promotions__btn-center {
        margin-left: 0;
        margin-right: 0;
    }

    .page-promotions__promo-content {
        padding: 15px;
    }

    .page-promotions__promo-image {
        height: 200px;
    }

    .page-promotions__faq-question,
    .page-promotions__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 15px;
    }
    .page-promotions__terms-list li {
        padding: 15px;
    }
}

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

/* Dark background for sections with brand color */
.page-promotions__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__section-description {
    color: #ffffff;
}

.page-promotions__dark-section .page-promotions__card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__dark-section .page-promotions__card-title {
    color: #ffffff;
}

.page-promotions__dark-section .page-promotions__card-text {
    color: #f0f0f0;
}

.page-promotions__dark-section .page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

.page-promotions__dark-section .page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
    border-color: #f0f0f0;
}