/* =========================================================
   FAQ PAGE TEMPLATE
   ========================================================= */

.page-template-template-faq,
.page-template-template-faq * {
    box-sizing: border-box;
}

.page-template-template-faq {
    overflow-x: hidden;
}

.page-template-template-faq .site-content .ast-container > .main-section {
    width: 100%;
}

.page-template-template-faq .main-section,
.page-template-template-faq .main-section > .main {
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   FAQ SEARCH FORM
   ========================================================= */

#faq-search-form form {
    position: relative;
    width: 100%;
    height: 60px;
    max-width: 540px;
    margin: 30px auto 0;
}

#faq-search-form form input[type="search"] {
    width: 100%;
    height: 60px;
    padding: 0 90px 2px 26px;
    border: 1px solid #fff;
    border-radius: 30px;
    outline: 0;
    background-color: #fff;
    color: #231f20;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1;
}

#faq-search-form form input[type="search"]:focus {
    border-color: #555;
    background-color: #fff;
}

#faq-search-form form button[type="submit"] {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: 60px;
    height: 60px;
    padding: 10px;
    border: 0;
    outline: 0;
    background-color: transparent;
    background-image: url('/wp-content/themes/astra-child/assets/img/search.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
    font-size: 0;
    line-height: 0;
}

#faq-search-form form button[type="submit"]:hover,
#faq-search-form form button[type="submit"]:focus {
    background-image: url('/wp-content/themes/astra-child/assets/img/search-hover.svg');
}

/* Keep the theme's global button hover/focus color (red) off the search icon */
#faq-search-form form button[type="submit"],
#faq-search-form form button[type="submit"]:hover,
#faq-search-form form button[type="submit"]:focus,
#faq-search-form form button[type="submit"]:active {
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* =========================================================
   FAQ MAIN LAYOUT
   ========================================================= */

.page-template-template-faq section.faq {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 24px;
}

.page-template-template-faq section.faq.faq-with-sidebar {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}

.page-template-template-faq .faq-content-area {
    min-width: 0;
}

/* =========================================================
   FAQ SIDEBAR / LABELS - MY ACCOUNT STYLE
   ========================================================= */

.page-template-template-faq .faq-sidebar {
    position: static;
    top: auto;
    background: #fff;
}

.page-template-template-faq .faq-sidebar-title {
    display: none;
}

.page-template-template-faq .faq-label-nav {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e5e5e5;
}

.page-template-template-faq .faq-label-link,
.page-template-template-faq .faq-label-link:visited {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 14px 18px 14px 24px;
    border-bottom: 1px solid #e5e5e5;
    border-left: 3px solid transparent;
    background: #fff;
    color: #2b3340;
    font: 500 0.95rem/1.35rem 'montserrat';
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-template-template-faq .faq-label-link:hover {
    color: #006cb4;
    background: #f8fbfd;
}

.page-template-template-faq .faq-label-link.active {
    border-left-color: #006cb4;
    background: #fff;
    color: #006cb4;
    font-weight: 600;
}

/* =========================================================
   FAQ SECTION TITLES
   ========================================================= */

.page-template-template-faq section.faq > .title,
.page-template-template-faq .faq-content-area > .title {
    max-width: 960px;
    margin: 0 auto 15px;
}

.page-template-template-faq section.faq > .title h2,
.page-template-template-faq .faq-content-area > .title h2 {
    margin: 0 0 25px;
    color: #231f20;
    font: 600 1.25rem/1.875rem 'montserrat';
}

/* Existing Elementor title tweak */
#content > div > section > main > div > section.elementor-section.elementor-top-section.elementor-element.elementor-element-4635023d.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default > div > div > div > div > h2 {
    margin-right: 40px !important;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */

.page-template-template-faq section.faq .items {
    width: 100%;
}

.page-template-template-faq section.faq .items .item {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 3px solid #d9d9d9;
}

.page-template-template-faq section.faq .items .item:last-of-type {
    border-bottom: 3px solid #d9d9d9;
}

.page-template-template-faq section.faq .items .item .title {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
    padding-right: 40px;
    cursor: pointer;
}

.page-template-template-faq section.faq .items .item .title h3 {
    width: 100%;
    margin: 0;
    color: #006cb4;
    font: 600 16px 'montserrat';
}

.page-template-template-faq section.faq .items .item .title::after {
    content: '+';
    position: absolute;
    top: -10px;
    right: 0;
    color: #006cb4;
    font-size: 2.8125rem;
    line-height: 1;
}

.page-template-template-faq section.faq .items .item.active .title::after {
    content: '-';
}

.page-template-template-faq section.faq .items .item.active .title h3 {
    color: #231f20;
}

.page-template-template-faq section.faq .items .item .content {
    display: none;
    max-width: 940px;
    margin: 8px auto 0;
    color: #231f20;
}

.page-template-template-faq section.faq .items .item.active .content {
    display: block;
}

/* =========================================================
   FAQ PAGINATION
   ========================================================= */

.page-template-template-faq .faq-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 50px 0 20px;
}

.page-template-template-faq .faq-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #0072bc;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.page-template-template-faq .faq-pagination .page-numbers.current {
    background: #e1251b;
    color: #fff;
}

.page-template-template-faq .faq-pagination a.page-numbers:hover {
    color: #e1251b;
}

.page-template-template-faq .faq-pagination .prev,
.page-template-template-faq .faq-pagination .next {
    min-width: 42px;
}

.page-template-template-faq .faq-pagination .faq-page-arrow {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-top: 5px solid #0072bc;
    border-left: 5px solid #0072bc;
}

.page-template-template-faq .faq-pagination .faq-page-prev {
    transform: rotate(-45deg);
}

.page-template-template-faq .faq-pagination .faq-page-next {
    transform: rotate(135deg);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .page-template-template-faq section.faq.faq-with-sidebar {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 35px;
    }

    .page-template-template-faq section.faq .items .item .title h3 {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .page-template-template-faq section.faq .items .item .title::after {
        font-size: 2.5rem;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .page-template-template-faq .site-content .ast-container,
    .page-template-template-faq .main-section,
    .page-template-template-faq .main-section > .main {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden;
    }

    .page-template-template-faq section.faq,
    .page-template-template-faq section.faq.faq-with-sidebar {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 35px 0 50px;
        padding: 0 24px;
        overflow-x: hidden;
    }

    .page-template-template-faq .faq-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0 0 36px;
        overflow: visible;
    }

    .page-template-template-faq .faq-sidebar-title {
        display: none;
    }

    .page-template-template-faq .faq-label-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .page-template-template-faq .faq-label-link,
    .page-template-template-faq .faq-label-link:visited {
        display: inline-flex;
        flex: 0 1 auto;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        max-width: 100%;
        padding: 10px 16px;
        border: 1px solid #d9d9d9;
        border-radius: 24px;
        background: #fff;
        color: #006cb4;
        font: 700 0.875rem/1.2rem 'montserrat';
        text-align: center;
        text-decoration: none;
        white-space: normal;
        word-break: break-word;
    }

    .page-template-template-faq .faq-label-link:hover,
    .page-template-template-faq .faq-label-link.active {
        border-color: #006cb4;
        background: #006cb4;
        color: #fff;
    }

    .page-template-template-faq .faq-content-area,
    .page-template-template-faq section.faq .items,
    .page-template-template-faq section.faq .items .item,
    .page-template-template-faq section.faq .items .item .title,
    .page-template-template-faq section.faq .items .item .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .page-template-template-faq .faq-content-area > .title h2,
    .page-template-template-faq section.faq > .title h2 {
        margin-bottom: 14px;
        font-size: 0.9375rem;
        line-height: 1.375rem;
    }

    .page-template-template-faq section.faq .items .item {
        padding: 18px 0;
    }

    .page-template-template-faq section.faq .items .item .title {
        padding-right: 32px;
    }

    .page-template-template-faq section.faq .items .item .title h3 {
        font-size: 0.95rem;
        line-height: 1.45rem;
    }

    .page-template-template-faq section.faq .items .item .title::after {
        top: 0;
        right: 0;
        font-size: 1.75rem;
    }

    .page-template-template-faq section.faq .items .item .content {
        margin-top: 10px;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .page-template-template-faq .faq-pagination {
        gap: 20px;
        margin-top: 35px;
    }
}
