/**
 * Doctor profile — FAQ section (premium accordion)
 *
 * @package aldoctorz-theme
 */

.doctor-faq-wrap {
    padding: 0;
    margin-top: 1.25rem;
}

.doctor-faq {
    --dfaq-ink: #0a305e;
    --dfaq-ink-soft: #1e3a5f;
    --dfaq-muted: #64748b;
    --dfaq-accent: #34c3db;
    --dfaq-page-bg: #f1f5f9;
    --dfaq-panel-radius: 20px;
    --dfaq-item-radius: 14px;
    background: var(--dfaq-page-bg);
    border-radius: var(--dfaq-panel-radius);
}

.doctor-faq__panel {
    background: #fff;
    border-radius: 13px;
    margin-bottom: 1.25rem;
    border: 1px solid #e6ecf0;
    padding: 1.35rem 1.25rem 1.45rem;
    animation: doctorFaqIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .doctor-faq__panel {
        animation: none;
    }
}

@keyframes doctorFaqIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-faq__header {
    margin-bottom: 1.1rem;
}

.doctor-faq__title {
    margin: 0 0 0.4rem;
    text-align: start;
}

[dir="rtl"] .doctor-faq__title {
    text-align: right;
}

.doctor-faq__title-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
}

.doctor-faq__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #397296;
    font-size: 28px;
}

.doctor-faq__title-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #606267;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.doctor-faq__lead {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dfaq-muted);
    line-height: 1.55;
}

.doctor-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.doctor-faq__item {
    border: 1px solid #e6ecf0;
    border-radius: var(--dfaq-item-radius);
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.doctor-faq__item.is-open {
    border-color: rgba(52, 195, 219, 0.45);
    box-shadow: 0 4px 18px rgba(10, 48, 94, 0.06);
}

.doctor-faq__question-heading {
    margin: 0;
}

.doctor-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: start;
    color: var(--dfaq-ink);
    font: inherit;
    line-height: 1.45;
}

[dir="rtl"] .doctor-faq__trigger {
    text-align: right;
}

.doctor-faq__trigger:hover,
.doctor-faq__trigger:focus-visible {
    background: rgba(52, 195, 219, 0.06);
}

.doctor-faq__trigger:focus-visible {
    outline: 2px solid var(--dfaq-accent);
    outline-offset: -2px;
}

.doctor-faq__question-text {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dfaq-ink);
}

.doctor-faq__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(52, 195, 219, 0.12);
    color: var(--dfaq-accent);
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.doctor-faq__item.is-open .doctor-faq__icon {
    transform: rotate(180deg);
    background: rgba(52, 195, 219, 0.2);
    color: var(--dfaq-ink);
}

.doctor-faq__collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctor-faq__item.is-open .doctor-faq__collapse {
    grid-template-rows: 1fr;
}

.doctor-faq__collapse-inner {
    overflow: hidden;
    min-height: 0;
}

.doctor-faq__answer {
    padding: 0 1rem 1rem;
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--dfaq-muted);
}

.doctor-faq__answer p {
    margin: 0 0 0.65rem;
}

.doctor-faq__answer p:last-child {
    margin-bottom: 0;
}

.doctor-faq__answer ul,
.doctor-faq__answer ol {
    margin: 0 0 0.65rem;
    padding-inline-start: 1.25rem;
}

.doctor-faq__answer a {
    color: var(--dfaq-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doctor-faq__answer a:hover,
.doctor-faq__answer a:focus-visible {
    color: var(--dfaq-ink);
}

@media (max-width: 575px) {
    .doctor-faq__panel {
        padding: 1.1rem 0.9rem 1.2rem;
    }

    .doctor-faq__trigger {
        padding: 0.85rem 0.85rem;
    }

    .doctor-faq__answer {
        padding: 0 0.85rem 0.9rem;
    }
}