/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__btn-register,
.page-faq__btn-login {
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-faq__btn-register {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    border: 2px solid #C30808;
}

.page-faq__btn-register:hover {
    background-color: #e00a0a;
    color: #ffffff;
}

.page-faq__btn-login {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: 2px solid #C30808;
}

.page-faq__btn-login:hover {
    background-color: #e00a0a;
    color: #ffffff;
}

/* Content Section */
.page-faq__content-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

.page-faq__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* FAQ List */
.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: #f8f8f8; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand primary color for question background */
    color: #ffffff; /* White text for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-question:hover {
    background-color: #015f2e;
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #333333;
    background-color: #ffffff;
}

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

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

.page-faq__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #015f2e;
}

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
}

/* CTA Section */
.page-faq__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color for CTA background */
    color: #ffffff;
}

.page-faq__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Contact button color */
    color: #FFFF00; /* Contact button font color */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    border: 2px solid #C30808;
}

.page-faq__btn-contact:hover {
    background-color: #e00a0a;
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 0;
    }
    .page-faq__main-title {
        font-size: 2em;
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-register,
    .page-faq__btn-login,
    .page-faq__btn-contact {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-faq__content-section,
    .page-faq__cta-section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }

    /* Mobile specific image, video, button responsive rules */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-section {
      padding-top: 60px;
    }

    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq 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;
    }
    
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
    }
}

/* Ensure contrast for links within content sections */
.page-faq__content-section a {
    color: #017439;
    text-decoration: underline;
}
.page-faq__content-section a:hover {
    color: #015f2e;
}

/* Ensure no filter is applied to images */
.page-faq img {
    filter: none;
}