/* style/promotions.css */

/* Base Styles */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Ensures consistency with body background */
}

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

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

.page-promotions__section-title {
    font-size: 36px;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__section-title--white {
    color: #FFFFFF;
}

.page-promotions__section-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

.page-promotions__section-subtitle--white {
    color: #f0f0f0;
}

.page-promotions__text-content {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.page-promotions__text-center {
    text-align: center;
}

/* Links within content */
.page-promotions a {
    color: #017439; /* Primary color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-promotions a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-register,
.page-promotions__btn-login {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__cta-button {
    background: #017439; /* Primary brand color */
    color: #FFFFFF;
    margin-top: 30px;
}

.page-promotions__cta-button:hover {
    background: #005f2e; /* Darker shade of primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary {
    background: #017439;
    color: #FFFFFF;
    margin-top: 20px;
}

.page-promotions__btn-primary:hover {
    background: #005f2e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-promotions__btn-register {
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    margin-top: 30px;
    margin-right: 15px; /* Spacing between register and login buttons */
}

.page-promotions__btn-register:hover {
    background: #a30606; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-login {
    background: #C30808; /* Custom color for login */
    color: #FFFF00; /* Custom font color for login */
    margin-top: 30px;
}

.page-promotions__btn-login:hover {
    background: #a30606; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image base styles */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent border-radius for images */
    object-fit: cover;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #005f2e); /* Gradient background for hero */
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 0; /* Image itself doesn't need radius if container has it */
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
}

.page-promotions__hero-title {
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-promotions__intro-section {
    background-color: #f8f8f8;
}

/* Featured Promotions Grid */
.page-promotions__featured-promos {
    background-color: #FFFFFF; /* Light background for cards */
}

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

.page-promotions__promo-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-promotions__guide-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-promotions__guide-content {
    flex: 1;
}

.page-promotions__guide-image {
    flex: 1;
    text-align: center;
}

.page-promotions__guide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions__guide-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333333;
}

.page-promotions__guide-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

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

/* Why Choose Us Section */
.page-promotions__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-promotions__dark-section .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__dark-section .page-promotions__section-subtitle {
    color: #f0f0f0;
}

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

.page-promotions__benefit-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__benefit-title {
    font-size: 22px;
    color: #FFFF00; /* Yellow for highlights */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__benefit-description {
    font-size: 15px;
    color: #f0f0f0;
}

.page-promotions__why-choose-us-image {
    text-align: center;
    margin-top: 40px;
}

.page-promotions__why-choose-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Terms and Conditions Section */
.page-promotions__terms-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333333;
}

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

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

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* 🚨 Ensure it expands */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border-radius: 5px; /* Apply radius to question part */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    border: none; /* Remove border from question if item has it */
}

.page-promotions__faq-item.active .page-promotions__faq-question {
    border-bottom: 1px solid #e0e0e0; /* Add bottom border when active */
    border-radius: 5px 5px 0 0; /* Adjust radius for active question */
}

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

.page-promotions__faq-question:active {
    background: #eeeeee;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #017439; /* Primary color for FAQ questions */
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Rotate for minus sign visual */
}

/* Final CTA Section */
.page-promotions__final-cta {
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
    text-align: center;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__hero-title {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-promotions__guide-layout {
        flex-direction: column;
    }
    .page-promotions__guide-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__section-padding {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-promotions__section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }
    .page-promotions__hero-image img {
        border-radius: 0;
    }

    .page-promotions__promo-card img {
         /* Adjust card image height for mobile */
    }

    /* Buttons responsiveness */
    .page-promotions__cta-button,
    .page-promotions__btn-primary,
    .page-promotions__btn-register,
    .page-promotions__btn-login {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
        margin-right: 0 !important; /* Remove right margin for single column */
        margin-bottom: 15px; /* Add bottom margin for stacking */
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0; /* Remove gap if stacking */
    }
    .page-promotions__btn-register {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-promotions__btn-login {
        margin-top: 0;
    }

    /* FAQ mobile */
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-promotions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }

    /* Ensure content containers are correctly sized */
    .page-promotions__intro-section,
    .page-promotions__featured-promos,
    .page-promotions__guide-section,
    .page-promotions__why-choose-us,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}