/* style/faq.css */

/* Base styles for the page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #121212 (dark), so text should be light */
    background-color: transparent; /* Main content sections will have specific backgrounds */
}

/* Header offset - applied to the first main section to prevent content from being hidden under the fixed header */
.page-faq__hero-section {
    padding-top: var(--header-offset, 120px); /* This handles the header offset */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    overflow: hidden;
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for prominence */
    font-weight: bold;
}

.page-faq__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* Call to action buttons */
.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

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

.page-faq__section-title--white {
    color: #ffffff;
}

.page-faq__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #333333;
}

.page-faq__paragraph--white {
    color: #ffffff;
}

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

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

.page-faq__faq-item details {
    border: none;
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand primary color for summary background */
    color: #ffffff; /* White text for summary */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none; /* Hide default marker */
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-question {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

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

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or use '−' */
}
.page-faq__faq-item[open] summary {
    border-bottom: 1px solid #e0e0e0; /* Separator when open */
    background-color: #017439; /* Keep brand color */
    color: #ffffff;
}

.page-faq__faq-answer {
    padding: 25px;
    font-size: 1em;
    background-color: #fefefe;
    color: #333333;
    border-top: none;
}

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

.page-faq__sub-title {
    font-size: 1.3em;
    color: #017439;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-faq__ordered-list,
.page-faq__unordered-list {
    margin-left: 25px;
    margin-bottom: 15px;
    list-style-position: outside;
}

.page-faq__ordered-list li,
.page-faq__unordered-list li {
    margin-bottom: 8px;
    color: #333333;
}

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

/* Image in content */
.page-faq__image-in-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Video Section */
.page-faq__video-section {
    background-color: #121212; /* Dark background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-faq__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video container */
    margin: 0 auto 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-faq__video {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    cursor: pointer; /* Indicate clickable */
}

.page-faq__cta-buttons--center {
    justify-content: center;
}

/* Contact CTA */
.page-faq__contact-cta {
    background-color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
    color: #333333;
}

.page-faq__contact-cta .page-faq__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

.page-faq__contact-cta .page-faq__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-faq__contact-cta .page-faq__btn-secondary {
    background-color: transparent;
    color: #017439;
    border-color: #017439;
}

.page-faq__contact-cta .page-faq__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__faq-item summary {
        font-size: 1.05em;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.95em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-faq__content-area,
    .page-faq__video-section,
    .page-faq__contact-cta {
        padding: 30px 15px;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__paragraph {
        font-size: 0.95em;
    }
    .page-faq__faq-item summary {
        font-size: 1em;
        padding: 12px 18px;
    }
    .page-faq__faq-answer {
        padding: 18px;
    }
    .page-faq__sub-title {
        font-size: 1.2em;
    }

    /* Mobile image responsiveness */
    .page-faq img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Mobile video responsiveness */
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}