/* style/faq.css */

/* Base styles for the FAQ page content, ensuring it respects header offset and uses appropriate text color */
.page-faq {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensures content starts below the fixed header */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

/* Hero Section Styling */
.page-faq__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #0A2463; /* Main brand color for hero background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    padding: 80px 20px; /* Adjust padding as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.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: 0;
}

.page-faq__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.page-faq__primary-button,
.page-faq__secondary-button,
.page-faq__button-inline {
    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, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    min-width: 200px; /* Ensure buttons are not too small */
}

.page-faq__primary-button {
    background-color: #FFD700; /* Auxiliary color */
    color: #0A2463; /* Main color for text */
    border: 2px solid #FFD700;
}

.page-faq__primary-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-faq__secondary-button {
    background-color: transparent;
    color: #FFD700; /* Auxiliary color */
    border: 2px solid #FFD700;
}

.page-faq__secondary-button:hover {
    background-color: #FFD700;
    color: #0A2463;
    transform: translateY(-2px);
}

/* Content Area Styling */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-faq__section-heading {
    font-size: 2.5em;
    color: #0A2463; /* Main color */
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Auxiliary color */
    border-radius: 2px;
}

.page-faq__faq-list {
    display: grid;
    gap: 30px;
}

.page-faq__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Indicates it's interactive for accordion */
}

.page-faq__faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    font-size: 1.5em;
    color: #0A2463; /* Main color */
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 30px; /* Space for an eventual icon */
    position: relative;
}

.page-faq__faq-question::after {
    content: '+'; /* Plus icon for closed state */
    position: absolute;
    right: 0;
    font-size: 1.2em;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-question::after {
    content: '-'; /* Minus icon for open state */
    transform: rotate(180deg);
}

.page-faq__faq-answer {
    font-size: 1.1em;
    color: #555555;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    padding-top: 0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 500px; /* Adjust based on expected content length */
    opacity: 1;
    padding-top: 20px;
}

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

.page-faq__faq-answer img {
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    width: 100%; /* Default to 100% width for responsiveness */
    max-width: 600px; /* Max width for content images */
    height: auto;
    min-width: 200px; /* Minimum display size */
    min-height: 200px; /* Minimum display size */
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__button-inline {
    background-color: #0A2463; /* Main color */
    color: #FFD700; /* Auxiliary color */
    border: 2px solid #0A2463;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__button-inline:hover {
    background-color: #FFD700;
    color: #0A2463;
    border-color: #FFD700;
}

/* Call to Action Section */
.page-faq__call-to-action {
    background-color: #0A2463; /* Main color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

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

.page-faq__cta-heading {
    font-size: 2.8em;
    color: #FFD700; /* Auxiliary color */
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-heading {
        font-size: 2.8em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
    }
    .page-faq__section-heading {
        font-size: 2em;
    }
    .page-faq__faq-question {
        font-size: 1.3em;
    }
    .page-faq__cta-heading {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 20px;
    }
    .page-faq__main-heading {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-actions {
        flex-direction: column;
    }
    .page-faq__primary-button,
    .page-faq__secondary-button {
        width: 100%;
        max-width: 300px;
    }
    .page-faq__content-area {
        padding: 40px 15px;
    }
    .page-faq__section-heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-faq__faq-item {
        padding: 20px 25px;
    }
    .page-faq__faq-question {
        font-size: 1.2em;
        padding-right: 25px;
    }
    .page-faq__faq-answer {
        font-size: 0.95em;
    }
    .page-faq__faq-answer img {
        max-width: 100% !important; /* Ensure images don't overflow */
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    /* Ensure content area itself does not cause overflow */
    .page-faq__content-area {
        overflow-x: hidden;
    }
    .page-faq__hero-container {
        max-width: 100%; /* Prevent overflow if text is too long on small screens */
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .page-faq__main-heading {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__section-heading {
        font-size: 1.6em;
    }
    .page-faq__faq-question {
        font-size: 1em;
    }
    .page-faq__cta-heading {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
}