/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-login-register: #FFFF00;
    --background-color: #FFFFFF;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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.5);
    z-index: 2;
}

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

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

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.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, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
    background-color: darken(var(--button-register), 10%);
    border-color: darken(var(--button-register), 10%);
}

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

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

/* General Section Styling */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.page-promotions__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

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

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-bottom-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__types-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__cta-bottom-section .page-promotions__section-title {
    color: var(--text-light);
}

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

.page-promotions__card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-promotions__card-description {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    font-size: 0.95em;
    text-align: justify;
}

.page-promotions__card-button {
    margin: 0 20px 20px 20px;
    text-align: center;
}

/* How-To-Claim Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

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

.page-promotions__how-to-image {
    display: block;
    margin: 50px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Terms & Conditions Section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__terms-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-light);
}

.page-promotions__terms-list li p {
    margin: 0;
    color: var(--text-light);
}

.page-promotions__terms-list li strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
    text-align: justify;
}

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

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

/* Bottom CTA Section */
.page-promotions__cta-bottom-section .page-promotions__cta-buttons {
    margin-top: 30px;
}

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__promotion-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__paragraph,
    .page-promotions__terms-list li p,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__faq-answer p {
        font-size: 15px;
    }

    /* Image responsiveness */
    .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__cta-buttons,
    .page-promotions__promotion-grid,
    .page-promotions__steps-grid,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__hero-section {
      padding-left: 0;
      padding-right: 0;
    }
    .page-promotions__hero-content {
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-promotions__faq-question,
    .page-promotions__faq-answer {
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-promotions__card-button {
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-promotions__how-to-image {
      padding-left: 0;
      padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}