/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for the main content area */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Hero Section - Prominent introductory banner for FAQ page */
.page-faq__hero-section {
    background: linear-gradient(135deg, #FFD700, #000080); /* Brand colors */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff; /* White text on dark/gradient background */
    position: relative;
    overflow: hidden;
}

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

.page-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-faq__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: #FFD700; /* Gold */
    color: #000080; /* Dark blue text on gold */
    border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
    background: #000080; /* Dark blue */
    color: #FFD700; /* Gold text on dark blue */
    border: 2px solid #000080;
}

.page-faq__btn-secondary:hover {
    background: #000066;
    border-color: #000066;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-faq__section {
    padding: 50px 0;
    background-color: #ffffff; /* White background for main FAQ content */
    border-bottom: 1px solid #eeeeee;
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #000080; /* Dark blue title */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-faq__faq-question:hover {
    background: #f0f8ff; /* Light blue tint on hover */
    border-color: #c0d9ed;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #000080; /* Dark blue toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transform: rotate(0deg); /* Initial state for animation */
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: #FFD700; /* Gold when active */
    transform: rotate(45deg); /* Rotate for 'x' or '−' effect */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fdfdfd;
    border-top: 1px dashed #e0e0e0;
    color: #555555;
    font-size: 1em;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

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

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

.page-faq__faq-answer ol {
    list-style-type: decimal;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
}

.page-faq__small-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

/* Call to Action Banner */
.page-faq__cta-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #000080; /* Dark blue background */
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__cta-banner img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    object-fit: cover;
    display: block; /* Ensure no extra space below image */
    min-width: 200px;
    min-height: 200px;
}

.page-faq__cta-content {
    max-width: 700px;
}

.page-faq__cta-title {
    font-size: 2.2em;
    color: #FFD700; /* Gold title */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-faq__cta-text {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #f0f0f0;
}


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

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    }

    .page-faq__hero-section {
        padding: 40px 15px;
    }

    .page-faq__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-faq__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__container {
        padding: 0 15px;
    }

    .page-faq__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    .page-faq__faq-question {
        padding: 15px 20px;
    }

    .page-faq__faq-question h3 {
        font-size: 1em;
    }

    .page-faq__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
        margin-left: 15px;
    }

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

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

    .page-faq__faq-answer ol,
    .page-faq__faq-answer ul {
        margin-left: 20px;
    }

    .page-faq__small-btn {
        padding: 8px 15px;
        font-size: 0.85em;
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__cta-banner {
        padding: 30px 15px;
        border-radius: 8px;
    }

    .page-faq__cta-banner img {
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important;
    }

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

    .page-faq__cta-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* General image responsiveness for all images within .page-faq */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__faq-list,
    .page-faq__hero-buttons,
    .page-faq__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__cta-title {
        font-size: 1.6em;
    }
    .page-faq__cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}