/* Template 8 ONLY — category page FAQs + blogs (two cols, one row) */

body.al_body_template_eight .nest-category-sections {
    background: #fff;
    padding-top: 24px;
    padding-bottom: 40px;
}

body.al_body_template_eight .nest-category-sections__row {
    align-items: flex-start;
}

body.al_body_template_eight .nest-category-sections .nest-faq-heading,
body.al_body_template_eight .nest-category-blogs__title {
    margin: 0 0 24px;
    text-align: left;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}

body.al_body_template_eight .nest-category-sections .nest-faq-wrap {
    margin: 0;
    width: 100%;
}

body.al_body_template_eight .nest-category-sections .faq-accordion {
    width: 100%;
}

body.al_body_template_eight .nest-category-sections .faq-accordion .card {
    background: #f3f3f3 !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    margin-bottom: 14px !important;
    overflow: hidden;
}

body.al_body_template_eight .nest-category-sections .faq-accordion .card-header {
    background: transparent !important;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0 !important;
    border-bottom: 0 !important;
}

body.al_body_template_eight .nest-category-sections .faq-accordion .card-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    flex: 1 1 auto;
    line-height: 1.4;
    text-align: left;
}

body.al_body_template_eight .nest-category-sections .faq-accordion .card-header .icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0 !important;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #111;
    font-weight: 400;
    transition: none;
    transform: none !important;
}

body.al_body_template_eight .nest-category-sections .faq-accordion .card-header .icon::before {
    content: "+";
    font-family: inherit;
    font-weight: 400;
}

body.al_body_template_eight .nest-category-sections .faq-accordion .card-header:not(.collapsed) .icon::before {
    content: "−";
}

body.al_body_template_eight .nest-category-sections .faq-accordion .card-body {
    padding: 0 18px 16px;
    color: #555;
    line-height: 1.7;
    font-size: 14px;
    background: transparent;
    text-align: left;
}

/* Blogs header */
body.al_body_template_eight .nest-category-blogs__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

body.al_body_template_eight .nest-category-blogs__title {
    margin: 0;
}

body.al_body_template_eight .nest-category-blogs__more {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6f8f7f;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.al_body_template_eight .nest-category-blogs__more:hover {
    color: var(--theme-deafult);
}

body.al_body_template_eight .nest-category-blogs__list {
    overflow: visible;
}

/* Compact Nest blog cards inside half-width column */
body.al_body_template_eight .nest-category-blogs .nest-category-blog-card.blog-card {
    width: 100% !important;
    height: auto !important;
}

body.al_body_template_eight .nest-category-blogs .nest-category-blog-card .blog-img-container {
    height: 180px !important;
}

/* ---- Category / shared Nest page sections ("Why Choose…") ----
   homepage.css is home-only; these styles must live here for category pages. */

body.al_body_template_eight .nest-page-sections {
    background: #fff;
    padding-top: 12px;
    padding-bottom: 8px;
}

body.al_body_template_eight .nest-page-sections .nest-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 28px;
}

body.al_body_template_eight .nest-page-sections .nest-section-heading__line {
    flex: 1 1 auto;
    max-width: 120px;
    height: 1px;
    background: #d9d9d9;
}

body.al_body_template_eight .nest-page-sections .nest-section-heading__title {
    margin: 0;
    flex: 1 1 auto;
    max-width: 820px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    text-align: center;
    white-space: normal;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-card,
body.al_body_template_eight .nest-page-sections .page-dynamic-section-card {
    background: #fff !important;
    border: 1px solid #e6ece9 !important;
    border-radius: 20px !important;
    box-shadow:
        0 2px 4px rgba(37, 61, 78, 0.03),
        0 10px 28px rgba(37, 61, 78, 0.07) !important;
    overflow: hidden;
    margin-bottom: 24px !important;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-card .card-body,
body.al_body_template_eight .nest-page-sections .page-dynamic-section-card .card-body {
    padding: 28px 32px !important;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose,
body.al_body_template_eight .nest-page-sections .nest-page-section-prose .short-content,
body.al_body_template_eight .nest-page-sections .nest-page-section-prose .full-content {
    color: #6b7580;
    font-size: 15px;
    line-height: 1.7;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose p {
    margin-bottom: 14px;
    color: #6b7580;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose h2,
body.al_body_template_eight .nest-page-sections .nest-page-section-prose h3,
body.al_body_template_eight .nest-page-sections .nest-page-section-prose h4 {
    color: #1f3344 !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-top: 22px !important;
    margin-bottom: 10px !important;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose h2 {
    font-size: 20px !important;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose h3 {
    font-size: 17px !important;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose h4 {
    font-size: 16px !important;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose ul,
body.al_body_template_eight .nest-page-sections .nest-page-section-prose ol {
    padding-left: 1.35rem !important;
    margin-bottom: 14px !important;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose li {
    margin-bottom: 6px !important;
    color: #6b7580;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-prose strong,
body.al_body_template_eight .nest-page-sections .nest-page-section-prose b {
    color: #1f3344;
    font-weight: 700;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    color: var(--theme-deafult) !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

body.al_body_template_eight .nest-page-sections .nest-page-section-toggle:hover {
    color: #29a56c !important;
    opacity: 0.95;
}

@media (max-width: 991px) {
    body.al_body_template_eight .nest-category-sections .nest-faq-heading,
    body.al_body_template_eight .nest-category-blogs__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    body.al_body_template_eight .nest-page-sections .nest-section-heading__title {
        font-size: 24px;
    }

    body.al_body_template_eight .nest-page-sections .nest-page-section-card .card-body,
    body.al_body_template_eight .nest-page-sections .page-dynamic-section-card .card-body {
        padding: 22px 20px !important;
    }
}

@media (max-width: 767px) {
    body.al_body_template_eight .nest-category-sections .nest-faq-heading,
    body.al_body_template_eight .nest-category-blogs__title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    body.al_body_template_eight .nest-category-sections .faq-accordion .card-header {
        padding: 14px 16px;
    }

    body.al_body_template_eight .nest-category-sections .faq-accordion .card-header h5 {
        font-size: 14px;
    }

    body.al_body_template_eight .nest-category-sections .faq-accordion .card-body {
        padding: 0 16px 14px;
        font-size: 14px;
    }

    body.al_body_template_eight .nest-category-blogs .nest-category-blog-card .blog-img-container {
        height: 160px !important;
    }

    body.al_body_template_eight .nest-page-sections .nest-section-heading {
        gap: 12px;
        margin-bottom: 20px;
    }

    body.al_body_template_eight .nest-page-sections .nest-section-heading__line {
        max-width: 40px;
    }

    body.al_body_template_eight .nest-page-sections .nest-section-heading__title {
        font-size: 20px;
    }

    body.al_body_template_eight .nest-page-sections .nest-page-section-card .card-body,
    body.al_body_template_eight .nest-page-sections .page-dynamic-section-card .card-body {
        padding: 18px 16px !important;
    }
}
