/*
 * Phase 2 W4 - FAQ local redesign
 * Scope: /faq/ only
 */
.page-faq {
    --faq-ink: #1c2b3e;
    --faq-gray: #5d5d5d;
    --faq-line: #e5e0d8;
    --faq-green: #7bb1a5;
    --faq-green-soft: rgba(123, 177, 165, 0.12);
    --faq-orange: #f8a01a;
}

.page-faq .faq-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.page-faq .faq-main {
    padding-bottom: 10rem;
}

.page-faq .faq-intro {
    margin: 2rem auto 6rem;
    font-size: 1.05rem;
    line-height: 2.05;
}

.page-faq .faq-section-heading {
    margin-bottom: 2rem;
}

.page-faq .faq-section-label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--faq-gray);
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.page-faq .faq-section-heading h2,
.page-faq .faq-unresolved h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.4;
}

.page-faq .faq-section-heading p,
.page-faq .faq-unresolved p {
    margin-top: 0.8rem;
    color: #666b70;
    font-weight: 700;
    line-height: 1.85;
}

.page-faq .faq-quick {
    margin-bottom: 7rem;
}

.page-faq .faq-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-faq .faq-quick-card {
    display: grid;
    min-height: 8.8rem;
    align-content: center;
    gap: 0.55rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(93, 93, 93, 0.16);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(28, 43, 62, 0.05);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-faq .faq-quick-card:hover,
.page-faq .faq-quick-card:focus-visible {
    border-color: rgba(123, 177, 165, 0.7);
    box-shadow: 0 12px 28px rgba(28, 43, 62, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.page-faq .faq-quick-code {
    color: var(--faq-green);
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.page-faq .faq-quick-card strong {
    color: #111;
    font-size: 1.05rem;
    line-height: 1.5;
}

.page-faq .faq-quick-card > span:last-child {
    color: #777b7e;
    font-size: 0.82rem;
    font-weight: 800;
}

.page-faq .faq-category {
    scroll-margin-top: 7rem;
    margin-bottom: 7rem;
}

.page-faq .faq-category > h2 {
    margin-bottom: 2.4rem;
}

.page-faq details > summary {
    min-height: 4.2rem;
}

.page-faq details > summary:focus-visible {
    outline: 3px solid rgba(123, 177, 165, 0.55);
    outline-offset: 4px;
    border-radius: 0.35rem;
}

.page-faq .faq-answer-link {
    margin: -0.2rem 0 1.8rem 5.5rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--faq-green);
    background: var(--faq-green-soft);
}

.page-faq .faq-answer-link > span {
    display: block;
    margin-bottom: 0.3rem;
    color: #568d82;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.page-faq .faq-answer-link a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--faq-ink);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.6;
    text-decoration: none;
}

.page-faq .faq-answer-link a:hover,
.page-faq .faq-answer-link a:focus-visible {
    color: #4f8c80;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.page-faq .faq-related-pages {
    margin: 1rem 0 7rem;
}

.page-faq .faq-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-faq .faq-related-card {
    display: flex;
    min-height: 12.5rem;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid rgba(28, 43, 62, 0.12);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.76);
    color: #111;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-faq .faq-related-card-primary {
    border-color: rgba(123, 177, 165, 0.42);
    background: rgba(123, 177, 165, 0.09);
}

.page-faq .faq-related-card:hover,
.page-faq .faq-related-card:focus-visible {
    border-color: rgba(123, 177, 165, 0.72);
    box-shadow: 0 12px 28px rgba(28, 43, 62, 0.09);
    transform: translateY(-2px);
    outline: none;
}

.page-faq .faq-related-card > span {
    color: var(--faq-green);
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.page-faq .faq-related-card strong {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.page-faq .faq-related-card p {
    margin-top: 0.7rem;
    color: #6b6f72;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.75;
}

.page-faq .faq-representative {
    margin: 5rem 0 6rem;
    padding: 4rem 0;
}

.page-faq .faq-profile-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 1.4rem;
    color: var(--faq-ink);
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
}

.page-faq .faq-profile-link:hover,
.page-faq .faq-profile-link:focus-visible {
    color: var(--faq-orange);
    outline: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.page-faq .faq-unresolved {
    margin: 0 0 5rem;
    padding: 2.2rem 2.5rem;
    border-left: 4px solid var(--faq-orange);
    border-radius: 0 1rem 1rem 0;
    background: rgba(248, 160, 26, 0.06);
}

.page-faq .faq-bottom-cta {
    margin-top: 5rem;
}

@media (max-width: 767px) {
    .page-faq .faq-hero {
        padding-top: 7.5rem;
        padding-bottom: 3.8rem;
    }

    .page-faq .faq-main {
        padding-bottom: 7rem;
    }

    .page-faq .faq-intro {
        margin-top: 1rem;
        margin-bottom: 4.25rem;
        font-size: 0.95rem;
        line-height: 1.95;
    }

    .page-faq .faq-quick {
        margin-bottom: 4.75rem;
    }

    .page-faq .faq-quick-grid,
    .page-faq .faq-related-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .page-faq .faq-quick-card {
        min-height: 0;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.8rem;
        padding: 1rem 1.05rem;
    }

    .page-faq .faq-quick-card strong {
        font-size: 0.95rem;
    }

    .page-faq .faq-category {
        scroll-margin-top: 5.5rem;
        margin-bottom: 4.8rem;
    }

    .page-faq .faq-category > div:first-child {
        margin-bottom: 1.4rem;
    }

    .page-faq .faq-category > h2 {
        margin-bottom: 1.7rem;
        font-size: 1.65rem;
        line-height: 1.5;
    }

    .page-faq details > summary {
        min-height: 4rem;
        padding-top: 1.35rem !important;
        padding-bottom: 1.35rem !important;
    }

    .page-faq details > summary > div {
        gap: 0.85rem !important;
    }

    .page-faq details > summary h3 {
        margin-top: 0.15rem !important;
        font-size: 1rem !important;
        line-height: 1.65 !important;
    }

    .page-faq details > summary .font-en.text-4xl,
    .page-faq details > div > .font-en.text-4xl {
        font-size: 1.9rem !important;
    }

    .page-faq details > div[class*="pl-12"] {
        gap: 0.8rem !important;
        padding-left: 0 !important;
        padding-bottom: 1.35rem !important;
    }

    .page-faq details > div[class*="pl-12"] .text-gray-700 {
        margin-top: 0.1rem !important;
        font-size: 0.9rem !important;
        line-height: 1.9 !important;
    }

    .page-faq .faq-answer-link {
        margin: 0 0 1.35rem;
        padding: 0.75rem 0.85rem;
    }

    .page-faq .faq-related-pages {
        margin-bottom: 4.75rem;
    }

    .page-faq .faq-related-card {
        min-height: 0;
        padding: 1.2rem 1.25rem;
    }

    .page-faq .faq-representative {
        margin: 3.5rem 0 4.5rem;
        padding: 2.2rem 0;
    }

    .page-faq .faq-representative img {
        width: 6.5rem !important;
        height: 6.5rem !important;
    }

    .page-faq .faq-unresolved {
        margin-bottom: 3.5rem;
        padding: 1.5rem 1.35rem;
    }

    .page-faq .faq-bottom-cta {
        margin-top: 3.5rem;
    }

    .page-faq .faq-bottom-cta > div {
        padding: 2.5rem 1.4rem !important;
    }

    .page-faq .faq-bottom-cta h3 {
        margin-bottom: 1.5rem !important;
        font-size: 1.65rem !important;
        line-height: 1.5 !important;
    }

    .page-faq .faq-bottom-cta p {
        margin-bottom: 2rem !important;
        font-size: 0.92rem !important;
    }

    .page-faq .faq-bottom-cta a {
        display: flex !important;
        min-height: 52px;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 0.95rem 1rem !important;
        font-size: 0.95rem !important;
        letter-spacing: 0.08em !important;
    }
}

@media (max-width: 359px) {
    .page-faq .faq-quick-card {
        grid-template-columns: 1fr auto;
    }

    .page-faq .faq-quick-code {
        grid-column: 1 / -1;
    }

    .page-faq details > summary {
        padding-right: 0.2rem !important;
    }

    .page-faq details > summary svg {
        width: 20px;
        height: 20px;
    }
}
