/* style/resources-promotion-faq.css */

/* Base styles for the page content wrapper */
.page-resources-promotion-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the overall page, assuming dark body bg */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

/* Hero Section - Dark background */
.page-resources-promotion-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #017439; /* Main brand color for hero */
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Minimum height for hero section */
}

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

.page-resources-promotion-faq__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-resources-promotion-faq__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-promotion-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources-promotion-faq__btn-primary,
.page-resources-promotion-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-promotion-faq__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #ffffff; /* Adjusted for contrast: white text on red button */
    border: 2px solid #C30808;
}

.page-resources-promotion-faq__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-resources-promotion-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Content Area - Light background */
.page-resources-promotion-faq__content-area {
    background-color: #ffffff; /* Explicitly white background for content */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-resources-promotion-faq__section-title {
    font-size: 2.5em;
    color: #017439; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-promotion-faq__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-promotion-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-resources-promotion-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources-promotion-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Brand color for question */
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> */
    -webkit-touch-callout: none; /* Disable callout on iOS */
    -webkit-user-select: none; /* Disable text selection on iOS */
    -khtml-user-select: none; /* Disable text selection on Safari */
    -moz-user-select: none; /* Disable text selection on Firefox */
    -ms-user-select: none; /* Disable text selection on IE/Edge */
    user-select: none; /* Standard property */
}

.page-resources-promotion-faq__faq-question:hover {
    background-color: #e5e5e5;
}

.page-resources-promotion-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}
.page-resources-promotion-faq__faq-question::marker {
    display: none; /* Hide default marker for <summary> */
}

.page-resources-promotion-faq__faq-qtext {
    flex-grow: 1;
}

.page-resources-promotion-faq__faq-toggle {
    font-size: 1.5em;
    margin-left: 10px;
    color: #017439;
}

.page-resources-promotion-faq__faq-answer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 1.1em;
    color: #555555;
    background-color: #ffffff;
}

.page-resources-promotion-faq__faq-answer p {
    margin-bottom: 15px;
    color: #555555;
}

.page-resources-promotion-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-resources-promotion-faq__faq-answer a {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
}

.page-resources-promotion-faq__faq-answer a:hover {
    color: #005f2e;
}

/* CTA Section at the bottom */
.page-resources-promotion-faq__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-top: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-promotion-faq__cta-title {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

.page-resources-promotion-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-resources-promotion-faq__cta-description a {
    color: #017439;
    text-decoration: underline;
}
.page-resources-promotion-faq__cta-description a:hover {
    color: #005f2e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-promotion-faq__main-title {
        font-size: 2.5em;
    }
    .page-resources-promotion-faq__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-promotion-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

    .page-resources-promotion-faq__main-title {
        font-size: 2em;
    }

    .page-resources-promotion-faq__intro-text {
        font-size: 1em;
    }

    .page-resources-promotion-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-promotion-faq__btn-primary,
    .page-resources-promotion-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-promotion-faq__content-area {
        padding: 40px 0;
    }

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

    .page-resources-promotion-faq__paragraph,
    .page-resources-promotion-faq__faq-answer p {
        font-size: 0.95em;
    }

    .page-resources-promotion-faq__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }

    .page-resources-promotion-faq__faq-answer {
        padding: 15px;
    }

    .page-resources-promotion-faq__cta-section {
        padding: 40px 15px;
    }

    .page-resources-promotion-faq__cta-title {
        font-size: 1.8em;
    }

    .page-resources-promotion-faq__cta-description {
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-resources-promotion-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure containers for images/content don't overflow */
    .page-resources-promotion-faq__container,
    .page-resources-promotion-faq__hero-section,
    .page-resources-promotion-faq__content-area,
    .page-resources-promotion-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-promotion-faq__image {
      margin-left: 0;
      margin-right: 0;
    }
}

@media (max-width: 480px) {
    .page-resources-promotion-faq__main-title {
        font-size: 1.8em;
    }
    .page-resources-promotion-faq__section-title {
        font-size: 1.5em;
    }
    .page-resources-promotion-faq__faq-question {
        font-size: 1em;
    }
    .page-resources-promotion-faq__cta-title {
        font-size: 1.5em;
    }
}