/* ====================================================
   Dedicated FAQ Page - Juniors Children's Clinic
   ==================================================== */

.faq-page-section {
    padding: 50px 0; /* 50px 0px padding */
    background-color: var(--section-bg);
    position: relative;
    width: 100%;
}

/* Header */
.faq-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

/* Primary Color Badge */
.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(160, 0, 0, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 7px 18px;
    border-radius: var(--radius-xl);
    margin-bottom: 14px;
    border: 1px solid rgba(160, 0, 0, 0.22);
}

.faq-badge-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary-color);
    border-radius: var(--radius-round);
}

/* Global 5rem heading override */
.faq-page-section h2.faq-main-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.faq-main-title span {
    color: var(--primary-color);
}

.faq-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Main FAQ Container */
.faq-content-wrapper {
    max-width: 920px;
    margin: 0 auto;
}

/* Category Headings */
.faq-category-block {
    margin-bottom: 35px;
}

.faq-category-title {
    font-size: 1.45rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.faq-category-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

/* Accordion Group */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Base FAQ Card */
.faq-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: none !important;
    animation: none !important;
}

/* Left Accent Highlight */
.faq-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item-card:hover {
    border-color: rgba(160, 0, 0, 0.35);
    box-shadow: var(--shadow-md);
}

.faq-item-card[open] {
    border-color: rgba(160, 0, 0, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.faq-item-card[open]::before {
    opacity: 1;
}

/* Summary Header */
.faq-item-card summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.25s ease;
}

.faq-item-card summary::-webkit-details-marker {
    display: none;
}

.faq-q-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.faq-q-num {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-q-text {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--primary-font);
    color: var(--heading-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Toggle Arrow Icon */
.faq-arrow-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--radius-round);
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-arrow-btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

/* Open State Header Elements */
.faq-item-card[open] summary {
    background: rgba(249, 250, 251, 0.7);
}

.faq-item-card[open] .faq-q-num {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.faq-item-card[open] .faq-q-text {
    color: var(--primary-color);
}

.faq-item-card[open] .faq-arrow-btn {
    background: rgba(160, 0, 0, 0.08);
    color: var(--primary-color);
    border-color: rgba(160, 0, 0, 0.25);
}

.faq-item-card[open] .faq-arrow-btn svg {
    transform: rotate(180deg);
}

/* Answer Body */
.faq-answer-body {
    padding: 0 24px 22px 72px;
    background: rgba(249, 250, 251, 0.7);
    border-top: 1px dashed rgba(229, 231, 235, 0.8);
}

.faq-answer-body p {
    margin: 16px 0 0 0 !important;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-light);
}

/* Bottom "Still Have Questions" Box */
.faq-support-box {
    margin-top: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-support-box h3 {
    font-size: 1.45rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 10px;
}

.faq-support-box p {
    color: var(--text-light);
    font-size: 0.96rem;
    max-width: 580px;
    margin-bottom: 22px;
    line-height: 1.6;
}

.faq-support-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.faq-contact-btn:hover {
    background: var(--secondary-color);
}

.faq-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.faq-whatsapp-btn:hover {
    background: #1EBE5D;
}

.faq-contact-btn svg,
.faq-whatsapp-btn svg {
    width: 18px;
    height: 18px;
}

/* ====================================================
   Responsiveness
   ==================================================== */
@media (max-width: 640px) {
    .faq-page-section {
        padding: 40px 0;
    }

    .faq-header {
        margin-bottom: 30px;
    }

    .faq-item-card summary {
        padding: 16px;
        gap: 12px;
    }

    .faq-q-title-wrap {
        gap: 10px;
    }

    .faq-q-num {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.76rem;
    }

    .faq-q-text {
        font-size: 0.98rem;
    }

    .faq-arrow-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .faq-answer-body {
        padding: 0 16px 18px 16px;
    }

    .faq-support-box {
        padding: 26px 18px;
    }

    .faq-support-actions {
        width: 100%;
        flex-direction: column;
    }

    .faq-contact-btn,
    .faq-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}