/*
 * FAQ Template styles for Richfolds.
 * Loaded only by the FAQ Page Template.
 */

.rf-fq1-hero {
    position: relative;
    min-height: 0;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/about_banner-1-scaled.webp');
    background-position: bottom;
    background-size: auto, cover;
    background-repeat: no-repeat;
    text-align: center;
    box-shadow: 0 2px 5px #0003;
}

.rf-fq1-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(8, 18, 27, 0.38), rgba(8, 18, 27, 0.38)),
        linear-gradient(rgba(8, 18, 27, 0.18), rgba(8, 18, 27, 0.48));
}

.rf-fq1-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 9rem 1.5rem 6rem;
}

.rf-fq1-content {
    width: min(100%, 820px);
    margin: 0 auto;
}

.rf-fq1-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #ffbf4e;
    margin-bottom: 2rem;
}

.rf-fq1-kicker::before,
.rf-fq1-kicker::after {
    content: "";
    width: 42px;
    height: 1px;
    background-color: rgba(255, 191, 78, 0.88);
}

.rf-fq1-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1;
    text-transform: uppercase;
    color: #ffbf4e;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.rf-fq1-decor-line {
    background-color: #0000;
    background-image: linear-gradient(to right, transparent, #ffbf4e 50%, transparent);
    width: 35%;
    height: 2px;
    margin: 1.2rem auto 0;
    padding-bottom: 0;
    box-shadow: 0 1px 6px #00000061;
}

.rf-fq-page {
    padding-top: 3rem;
    padding-bottom: 0;
}

.rf-fq-page__body > :first-child {
    margin-top: 0;
}

.rf-fq-page__body > :last-child {
    margin-bottom: 0;
}

.rf-fq2-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-fq2-boxed-container {
        max-width: 1240px;
    }
}

.rf-fq2-section {
    padding: 96px 0 120px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/wave-scaled.webp');
    background-position: center;
    background-size: cover;
}

.rf-fq2-list {
    background: #fff;
    border: 1px solid #d8deea;
    border-radius: 12px;
    overflow: hidden;
}

.rf-fq2-item {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.rf-fq2-item + .rf-fq2-item {
    border-top: 1px solid #e7ebf1;
}

.rf-fq2-question {
    position: relative;
    padding: 28px 72px 28px 38px;
    list-style: none;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1.35;
    color: #20242d;
    transition: color 0.2s ease;
}

.rf-fq2-question::-webkit-details-marker {
    display: none;
}

.rf-fq2-question::after {
    content: "\f107";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    color: #7b86a3;
    transition: transform 0.2s ease, color 0.2s ease;
}

.rf-fq2-item[open] .rf-fq2-question {
    color: #17425e;
}

.rf-fq2-item[open] .rf-fq2-question::after {
    transform: translateY(-50%) rotate(180deg);
    color: #17425e;
}

.rf-fq2-answer {
    padding: 0 38px 28px;
}

.rf-fq2-answer p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
}

@media (max-width: 767px) {
    .rf-fq1-hero {
        height: 78vh;
    }

    .rf-fq1-inner {
        padding: 7.5rem 1.25rem 4.5rem;
    }

    .rf-fq1-kicker {
        font-size: 0.8rem;
        letter-spacing: 0.24em;
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .rf-fq1-kicker::before,
    .rf-fq1-kicker::after {
        width: 28px;
    }

    .rf-fq1-title {
        font-size: 38px;
    }

    .rf-fq1-decor-line {
        width: min(78%, 260px);
    }

    .rf-fq-page {
        padding-top: 2rem;
    }

    .rf-fq2-section {
        padding: 72px 0 80px;
    }

    .rf-fq2-boxed-container {
        padding: 0 20px;
    }

    .rf-fq2-question {
        padding: 22px 54px 22px 20px;
        font-size: 18px;
    }

    .rf-fq2-question::after {
        right: 20px;
        font-size: 12px;
    }

    .rf-fq2-answer {
        padding: 0 20px 22px;
    }

    .rf-fq2-answer p {
        font-size: 16px;
        line-height: 1.7;
    }
}
