/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color, #333333); /* Dark text for default light body background */
    padding-bottom: 60px; /* General bottom padding */
    min-height: 80vh; /* Ensure content takes up sufficient height */
    background-color: #f8f8f8; /* Light background for the main content area */
}

/* CSS variables for consistent colors */
:root {
    --main-color: #0A2342;
    --accent-color: #FFD700;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
}

/* Hero Section */
.page-faq__hero-section {
    background-color: var(--main-color, #0A2342); /* Deep blue background */
    color: #ffffff; /* White text on dark background */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden; /* To contain the image if it overflows */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Minimum height for hero */
}

.page-faq__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Ensure text is above image layer */
}

.page-faq__hero-title {
    font-size: 2.8em; /* Adjusted for 50-60 chars */
    color: var(--accent-color, #FFD700); /* Gold for emphasis */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-faq__hero-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin: 0 10px 20px 10px;
    min-width: 180px; /* Ensure button minimum width */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-button--primary {
    background-color: var(--accent-color, #FFD700); /* Gold button */
    color: var(--main-color, #0A2342); /* Dark blue text */
    border: 2px solid var(--accent-color, #FFD700);
}

.page-faq__hero-button--primary:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: var(--main-color, #0A2342);
    transform: translateY(-2px);
}

.page-faq__hero-button--secondary {
    background-color: transparent;
    color: #ffffff; /* White text */
    border: 2px solid #ffffff;
}

.page-faq__hero-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

/* Accordion Section */
.page-faq__accordion-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-faq__accordion-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.page-faq__section-title {
    font-size: 2.2em;
    color: var(--main-color, #0A2342);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-faq__accordion-item {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.page-faq__accordion-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-faq__accordion-header {
    background-color: var(--light-bg, #f9f9f9);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    margin: 0;
}

.page-faq__accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--main-color, #0A2342);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-button:hover,
.page-faq__accordion-button[aria-expanded="true"] {
    background-color: #f0f0f0;
}

.page-faq__accordion-question {
    flex-grow: 1;
}

.page-faq__accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    margin-left: 15px;
    flex-shrink: 0;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color, #FFD700); /* Gold icon */
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.page-faq__accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.page-faq__accordion-button[aria-expanded="true"] .page-faq__accordion-icon::after {
    transform: translateX(-50%) rotate(90deg); /* Rotate to hide vertical line */
}

.page-faq__accordion-content {
    padding: 0 25px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__accordion-content p {
    padding: 15px 0;
    margin: 0;
    color: #555555;
    font-size: 1em;
}

.page-faq__accordion-content p a {
    color: var(--main-color, #0A2342);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-faq__accordion-content p a:hover {
    color: var(--accent-color, #FFD700);
}

.page-faq__content-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure images are at least 200px wide */
    min-height: 200px; /* Ensure images are at least 200px tall */
    object-fit: cover; /* Maintain aspect ratio */
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: var(--main-color, #0A2342); /* Deep blue background */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: 2.5em;
    color: var(--accent-color, #FFD700);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-faq__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin: 0 10px 20px 10px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button--primary {
    background-color: var(--accent-color, #FFD700);
    color: var(--main-color, #0A2342);
    border: 2px solid var(--accent-color, #FFD700);
}

.page-faq__cta-button--primary:hover {
    background-color: #e6c200;
    color: var(--main-color, #0A2342);
    transform: translateY(-2px);
}

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

.page-faq__cta-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
        padding-bottom: 40px;
        min-height: 350px;
    }

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

    .page-faq__hero-description {
        font-size: 1em;
    }

    .page-faq__hero-button {
        display: block;
        margin: 15px auto;
        width: 80%;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }

    .page-faq__section-description {
        font-size: 1em;
    }

    .page-faq__accordion-button {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-faq__accordion-content p {
        padding: 10px 0;
        font-size: 0.95em;
    }

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

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

    .page-faq__cta-button {
        display: block;
        margin: 15px auto;
        width: 80%;
    }

    /* Mobile overflow prevention for images */
    .page-faq__content-image,
    .page-faq__hero-image {
        max-width: 100% !important;
        height: auto !important;
    }

    .page-faq__accordion-section, .page-faq__cta-section {
        padding: 20px 10px;
    }

    .page-faq__accordion-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__hero-button,
    .page-faq__cta-button {
        width: 90%;
    }
}