/* style/faq.css */
/* 
  Page-specific styles for the FAQ page.
  All class names must follow BEM naming convention: .page-faq__element-name
  Styles are scoped to .page-faq.
*/

/* Base styles for the main content area */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #017439, #004d2b); /* Gradient using main brand color */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-faq__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Use specific color for title for attention */
    line-height: 1.2;
}

.page-faq__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Container for sections */
.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.page-faq__section-title {
    font-size: 2.2em;
    color: #FFFF00; /* Use specific color for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Accordion Section (FAQ) */
.page-faq__accordion-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-faq__faq-item {
    background-color: #2a2a2a; /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #005f2f; /* Slightly darker hover for question */
}

.page-faq__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #3a3a3a; /* Answer background */
    color: #e0e0e0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
    color: #e0e0e0;
}

/* Call to Action Section */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #017439, #004d2b);
    color: #ffffff;
}

.page-faq__cta-title {
    font-size: 2.5em;
    color: #FFFF00; /* Specific color for CTA title */
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
    background-color: #C30808; /* Red for primary action like Register/Login */
    color: #FFFF00; /* Yellow for text on red button */
    border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-faq__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header */
    }

    .page-faq__main-title {
        font-size: 2em;
        line-height: 1.3;
    }

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

    .page-faq__hero-content {
        margin-bottom: 30px;
    }

    .page-faq__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }

    .page-faq__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-faq__accordion-section {
        padding: 40px 0;
    }

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

    .page-faq__faq-answer {
        padding: 0 20px;
    }

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px;
    }

    .page-faq__cta-section {
        padding: 60px 15px;
    }

    .page-faq__cta-title {
        font-size: 2em;
    }

    .page-faq__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness (if any, though none currently) */
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}