/* ==========================================================================
   FAQ Page Styles - Facilitrs
   ========================================================================== */

/* Hero Section
   ========================================================================== */
.faq-hero {
    background-color: #FAFAFA;
    padding: 60px 0 80px;
    text-align: center;
}

.faq-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3a3a55;
    margin-bottom: 1.5rem;
}

.faq-hero__description {
    font-size: 1.125rem;
    color: #3a3a55;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar
   ========================================================================== */
.faq-search {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search__input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

.faq-search__input:focus {
    outline: none;
    border-color: #4A4A6B;
    box-shadow: 0 0 0 3px rgba(74, 74, 107, 0.1);
}

.faq-search__button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #4A4A6B;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.faq-search__button:hover {
    background-color: #3a3a55;
}

.faq-search__button:active {
    transform: scale(0.98);
}

/* Main FAQ Content Layout
   ========================================================================== */
.faq-content {
    padding: 60px 0;
    background-color: #ffffff;
    min-height: 100vh;
}

.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Table of Contents (Sticky)
   ========================================================================== */
.faq-toc {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.faq-toc__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
}

.faq-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-toc__item {
    margin-bottom: 0.75rem;
}

.faq-toc__link {
    display: block;
    padding: 0.625rem 0;
    padding-left: 1rem;
    font-size: 1rem;
    color: #666666;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.faq-toc__link:hover {
    color: #333333;
    padding-left: 1.25rem;
}

.faq-toc__link.active {
    color: #000000;
    font-weight: 600;
    border-left-color: #308E98;
    padding-left: 1.25rem;
}

/* FAQ Main Content
   ========================================================================== */
.faq-main {
    max-width: 900px;
    min-height: 100vh;
}

.faq-categories {
    margin-bottom: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
    scroll-margin-top: 140px;
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-category__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Accordion Items
   ========================================================================== */
.faq-accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-accordion-item.hidden {
    display: none;
}

.faq-accordion-button {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-accordion-button:not(.collapsed) {
    background-color: #f9fafb;
    color: #4A4A6B;
}

.faq-accordion-button:hover {
    background-color: #f9fafb;
}

.faq-accordion-button:focus {
    box-shadow: none;
    outline: 2px solid #4A4A6B;
    outline-offset: -2px;
}

.faq-accordion-body {
    padding: 1.5rem;
    background-color: #ffffff;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.faq-link-more {
    display: inline-block;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4A9B9F;
    text-decoration: none;
    transition: color 0.2s;
}

.faq-link-more:hover {
    color: #3a7b7f;
    text-decoration: underline;
}

.faq-meta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.faq-meta small {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Support Box
   ========================================================================== */
.faq-support-box {
    background-color: #4A4A6B;
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.faq-support-box__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-support-box__text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.faq-support-box__button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4A4A6B;
    background-color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-support-box__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #4A4A6B;
}

/* CTA Section
   ========================================================================== */
.faq-cta {
    background-color: #4A4A6B;
    padding: 80px 0;
    text-align: center;
}

.faq-cta__title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.faq-cta__description {
    font-size: 1.125rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta__button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #4A4A6B;
    background-color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #4A4A6B;
}

/* Final CTA Section
   ========================================================================== */
.faq-final-cta {
    background-color: #F5F5F5;
    padding: 80px 0;
    text-align: center;
}

.faq-final-cta__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #3a3a55;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.faq-final-cta__button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #3a3a55;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.faq-final-cta__button:hover {
    border-color: #4A4A6B;
    color: #4A4A6B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-toc {
        position: static;
        border-bottom: 2px solid #e5e7eb;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .faq-toc__list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .faq-toc__item {
        margin-bottom: 0;
    }

    .faq-toc__link {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 6px;
    }

    .faq-toc__link.active {
        border-left: none;
        border-bottom-color: #308E98;
        background-color: #f9fafb;
    }

    .faq-hero__title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .faq-hero {
        padding: 40px 0 60px;
    }

    .faq-hero__title {
        font-size: 1.75rem;
    }

    .faq-hero__description {
        font-size: 1rem;
    }

    .faq-search {
        flex-direction: column;
    }

    .faq-search__button {
        width: 100%;
    }

    .faq-content {
        padding: 40px 0;
    }

    .faq-category__title {
        font-size: 1.5rem;
    }

    .faq-accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-accordion-body {
        padding: 1rem;
    }

    .faq-cta,
    .faq-final-cta {
        padding: 60px 0;
    }

    .faq-cta__title,
    .faq-final-cta__title {
        font-size: 1.5rem;
    }

    .faq-support-box {
        padding: 1.5rem;
    }
}
