﻿/* =========================================================
   FAQ Page
   blog-hero uses the global style
========================================================= */

.faq-page {
    width: 100%;
    padding: 72px 0 82px;
    overflow: hidden;
}


/* =========================================================
   FAQ Heading
========================================================= */

.faq-heading {
    margin: 0 auto 42px;
    text-align: center;
}

.faq-heading-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #309a63;
    font-size: 13px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.faq-heading-label i {
    font-size: 17px;
}

.faq-heading h2 {
    margin: 0;
    color: #17251e;
    font-size: 36px;
    line-height: 1.35;
    font-weight: 800;
}

.faq-heading > p {
    max-width: 800px;
    margin: 17px auto 0;
    color: #637168;
    font-size: 15px;
    line-height: 1.85;
}


/* =========================================================
   FAQ Accordion
========================================================= */

.faq-list {
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #d8e8df;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(48, 154, 99, 0.06);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    border-color: rgba(48, 154, 99, 0.35);
}

.faq-item.active {
    border-color: rgba(48, 154, 99, 0.48);
    box-shadow: 0 14px 36px rgba(48, 154, 99, 0.11);
}

.faq-question {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: none;
    background: #ffffff;
    color: #17251e;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-question > span {
    flex: 1;
    color: #17251e;
    font-family: myFirstFont1;
    font-size: 17px;
    line-height: 1.55;
    font-weight: normal;
}

.faq-question > i {
    width: 34px;
    height: 34px;
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #309a63;
    background: #eef8f2;
    font-size: 13px;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.faq-item.active .faq-question {
    background: #f8fcfa;
}

.faq-item.active .faq-question > span {
    color: #23784c;
}

.faq-item.active .faq-question > i {
    color: #ffffff;
    background: #309a63;
}

.faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer-content {
    padding: 0 22px 23px;
    border-top: 1px solid #e5eee9;
}

.faq-answer-content p {
    margin: 17px 0 0;
    color: #5f6d65;
    font-size: 15px;
    line-height: 1.85;
}

.faq-answer-content p:first-child {
    margin-top: 18px;
}


/* =========================================================
   FAQ Contact
========================================================= */

.faq-contact {
    position: relative;
    overflow: hidden;
    display: grid;
    margin: 48px auto 0;
    padding: 38px 40px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #23784c 0%,
            #309a63 100%
        );
    box-shadow: 0 20px 48px rgba(48, 154, 99, 0.2);
}

.faq-contact::before {
    content: "";
    position: absolute;
    top: -130px;
    right: 120px;
    width: 280px;
    height: 280px;
    border: 48px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.faq-contact-icon,
.faq-contact-content,
.faq-contact-actions {
    position: relative;
    z-index: 2;
}

.faq-contact-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 27px;
}

.faq-contact-content {
    min-width: 0;
}

.faq-contact-content > span {
    display: block;
    margin-bottom: 4px;
    color: #cef2dd;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.faq-contact-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.4;
    font-weight: 800;
}

.faq-contact-content p {
    max-width: 650px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.75;
}

.faq-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.faq-contact-primary,
.faq-contact-secondary {
    min-width: 180px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.faq-contact-primary {
    border: 1px solid #ffffff;
    color: #23784c;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.faq-contact-primary:hover {
    color: #185d3a;
    background: #f3fff8;
    transform: translateY(-2px);
}

.faq-contact-secondary {
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.faq-contact-secondary:hover {
    border-color: #ffffff;
    color: #23784c;
    background: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   Tablet
========================================================= */

@media screen and (max-width: 992px) {

    .faq-page {
        padding: 62px 0 70px;
    }

    .faq-heading h2 {
        font-size: 32px;
    }

    .faq-contact {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .faq-contact-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        padding-left: 90px;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media screen and (max-width: 768px) {

    .faq-page {
        padding: 48px 0 54px;
    }

    .faq-heading {
        margin-bottom: 30px;
    }

    .faq-heading-label {
        margin-bottom: 11px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .faq-heading h2 {
        font-size: 27px;
        line-height: 1.35;
    }

    .faq-heading > p {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.8;
    }

    .faq-item {
        margin-bottom: 11px;
        border-radius: 12px;
    }

    .faq-question {
        min-height: 64px;
        gap: 14px;
        padding: 15px 16px;
    }

    .faq-question > span {
        font-size: 15px;
        line-height: 1.5;
    }

    .faq-question > i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 11px;
    }

    .faq-answer-content {
        padding: 0 16px 18px;
    }

    .faq-answer-content p {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.8;
    }

    .faq-contact {
        display: block;
        margin-top: 34px;
        padding: 28px 22px;
        border-radius: 15px;
    }

    .faq-contact-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 17px;
        font-size: 22px;
    }

    .faq-contact-content h2 {
        font-size: 22px;
    }

    .faq-contact-content p {
        font-size: 13px;
    }

    .faq-contact-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin-top: 22px;
        padding-left: 0;
    }

    .faq-contact-primary,
    .faq-contact-secondary {
        width: 100%;
        min-width: 0;
    }

}