/* ==========================================================================
   Demo Three — FAQ (faq.html)
   Loaded after home.css + common.css, before responsive.css
   ========================================================================== */
.faq-search {
    max-width: 640px;
    margin: 0 auto 50px;
}

.faq-search .pg-search {
    box-shadow: var(--pg-shadow);
}

.faq-search input {
    padding: 16px 22px;
    font-size: 15px;
}

.faq-search button {
    padding: 0 26px;
    font-size: 16px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.faq-aside {
    position: sticky;
    top: var(--pg-sticky-top);
    display: grid;
    gap: 24px;
}

.faq-nav ul {
    list-style: none;
}

.faq-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--pg-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--pg-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-nav a i {
    width: 18px;
    color: var(--pg-accent);
}

.faq-nav a:hover {
    background: var(--pg-accent-soft);
    color: var(--pg-accent);
}

.faq-help {
    background: var(--pg-dark);
    border-color: var(--pg-dark);
    color: #fff;
    text-align: center;
}

.faq-help-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
}

.faq-help h3 {
    margin-bottom: 8px;
    font-family: var(--pg-head-font);
    font-size: 20px;
}

.faq-help p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.faq-group {
    margin-bottom: 44px;
    scroll-margin-top: calc(var(--pg-sticky-top) + 20px);
}

.faq-group:last-child {
    margin-bottom: 0;
}

.faq-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 24px;
    color: var(--pg-dark);
}

.faq-group-title span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--pg-accent-soft);
    color: var(--pg-accent);
    font-size: 18px;
}

@media (max-width: 991.98px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .faq-aside {
        grid-template-columns: minmax(0, 1fr);
        order: 2;
    }

    .faq-layout {
        display: flex;
        flex-direction: column;
    }

    .faq-groups {
        width: 100%;
    }

    .faq-group-title {
        font-size: 20px;
    }
}
