/* ================================================================
   FAQ block (Q&A) — shared by Home / Introduction / Dentist / Price / Contact
   Added: 2026-11-02
   Depends on: base.css (brand blue #02509b, text #0E2837 / #5E6366)
   Unit note: px is used deliberately (base.css uses a 62.5% root font-size on
   desktop and a JS-driven root size on mobile, so rem would render differently)
   ================================================================ */

.faq-sec {
    position: relative;
    padding: 90px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f8fd 55%, #ffffff 100%);
    scroll-margin-top: 130px;
}

.faq-sec * {
    box-sizing: border-box;
}

.faq-sec__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- head ---------- */
.faq-sec__head {
    text-align: center;
    margin-bottom: 42px;
}

.faq-sec__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #02509b;
}

.faq-sec__title {
    margin: 12px 0 0;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
    color: #0e2837;
    letter-spacing: 0.01em;
}

.faq-sec__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: #02509b;
}

.faq-sec__sub {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 15px;
    line-height: 1.75;
    color: #6b7785;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ---------- list ---------- */
.faq-list {
    max-width: 980px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #e4edf6;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(2, 80, 155, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

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

.faq-item:hover {
    border-color: #bcd6ee;
    box-shadow: 0 10px 26px rgba(2, 80, 155, 0.09);
}

.faq-item[open] {
    border-color: #9fc4e8;
}

/* ---------- question row ---------- */
.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:hover .faq-q__text {
    color: #02509b;
}

.faq-mark {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 8px;
    background: #e8f2fb;
    color: #02509b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-mark {
    background: #02509b;
    color: #ffffff;
}

.faq-q__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: #0e2837;
    text-align: left;
    /* base.css sets word-break:break-all globally; that splits Arabic words
       mid-word. Keep breaks at word boundaries and only fall back for long
       unbreakable strings. */
    word-break: normal;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

.faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 3px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #02509b;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* ---------- answer ---------- */
.faq-a {
    padding: 0 26px 24px 66px;
}

.faq-a p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.85;
    color: #5e6366;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
}

.faq-a p + p {
    margin-top: 10px;
}

.faq-a strong {
    color: #0e2837;
    font-weight: 600;
}

.faq-a ul {
    margin: 10px 0 0;
    padding-left: 18px;
    list-style: disc;
}

.faq-a li {
    font-size: 15.5px;
    line-height: 1.85;
    color: #5e6366;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
}

.faq-a a {
    color: #02509b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 1024px) {
    .faq-sec {
        padding: 70px 0 80px;
    }

    .faq-sec__title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .faq-sec {
        padding: 52px 0 60px;
        scroll-margin-top: 90px;
    }

    .faq-sec__inner {
        padding: 0 16px;
    }

    .faq-sec__head {
        margin-bottom: 28px;
    }

    .faq-sec__title {
        font-size: 23px;
    }

    .faq-sec__title::after {
        width: 48px;
        margin-top: 12px;
    }

    .faq-sec__sub {
        margin-top: 12px;
        font-size: 14px;
    }

    .faq-item {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .faq-q {
        gap: 10px;
        padding: 16px 16px;
    }

    .faq-mark {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .faq-q__text {
        font-size: 15px;
        line-height: 1.55;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
    }

    .faq-icon::before {
        width: 12px;
    }

    .faq-icon::after {
        height: 12px;
    }

    .faq-a {
        padding: 0 16px 18px 50px;
    }

    .faq-a p,
    .faq-a li {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* ================================================================
   RTL support (Arabic page). Applied only under [dir="rtl"];
   the badge/icon order flips automatically with flex, so only the
   answer indent and text alignment need mirroring.
   ================================================================ */
[dir="rtl"] .faq-q__text {
    text-align: right;
}

[dir="rtl"] .faq-a {
    padding: 0 66px 24px 26px;
}

[dir="rtl"] .faq-a p,
[dir="rtl"] .faq-a li {
    text-align: right;
}

[dir="rtl"] .faq-a ul {
    padding-left: 0;
    padding-right: 18px;
}

@media screen and (max-width: 768px) {
    [dir="rtl"] .faq-a {
        padding: 0 50px 18px 16px;
    }
}
