/**
 * FAQ Section Styles (SEO-Friendly)
 * Brand: medicalcounseling.in
 */

/* ===================================
   FAQ Section
   =================================== */
.medical-faq-section {
    padding: 80px 0;
    background: var(--pure-white);
    position: relative;
}

/* Section Header */
.medical-faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.medical-faq-header .section-badge {
    display: inline-block;
    background: rgba(15, 61, 100, 0.1);
    color: var(--medical-navy);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.medical-faq-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 16px;
}

.medical-faq-header h2 span {
    color: var(--medical-green);
}

.medical-faq-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* FAQ Container */
.medical-faq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* FAQ Image */
.medical-faq-image {
    position: sticky;
    top: 100px;
}

.medical-faq-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* FAQ List */
.medical-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FAQ Item */
.medical-faq-item {
    background: var(--pure-white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.medical-faq-item:hover {
    border-color: var(--medical-green);
    box-shadow: 0 8px 20px rgba(15, 61, 100, 0.08);
}

.medical-faq-item.active {
    border-color: var(--medical-green);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.12);
}

/* FAQ Question */
.medical-faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--medical-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.medical-faq-question:hover {
    color: var(--medical-green);
}

.medical-faq-item.active .medical-faq-question {
    color: var(--medical-green);
}

.medical-faq-question-text {
    flex: 1;
    line-height: 1.4;
}

.medical-faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1) 0%, rgba(15, 61, 100, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.medical-faq-icon i {
    font-size: 16px;
    color: var(--medical-green);
    transition: transform 0.3s ease;
}

.medical-faq-item.active .medical-faq-icon {
    background: var(--medical-green);
}

.medical-faq-item.active .medical-faq-icon i {
    color: var(--pure-white);
    transform: rotate(180deg);
}

/* FAQ Answer */
.medical-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.medical-faq-item.active .medical-faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

.medical-faq-answer-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.medical-faq-answer-content p {
    margin-bottom: 12px;
}

.medical-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.medical-faq-answer-content ul,
.medical-faq-answer-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.medical-faq-answer-content li {
    margin-bottom: 8px;
}

/* CTA Section */
.medical-faq-cta {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(15, 61, 100, 0.05) 0%, rgba(46, 139, 87, 0.05) 100%);
    border-radius: 16px;
    border: 2px dashed var(--border-light);
}

.medical-faq-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 12px;
}

.medical-faq-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.medical-faq-cta-btn {
    padding: 14px 32px;
    background: var(--medical-green);
    color: var(--pure-white);
    border: 2px solid var(--medical-green);
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.medical-faq-cta-btn:hover {
    background: var(--medical-green-dark);
    border-color: var(--medical-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4);
    color: var(--pure-white);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    .medical-faq-section {
        padding: 60px 0;
    }

    .medical-faq-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .medical-faq-image {
        position: relative;
        top: 0;
        order: -1;
    }

    .medical-faq-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .medical-faq-header h2 {
        font-size: 32px;
    }

    .medical-faq-header p {
        font-size: 16px;
    }

    .medical-faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }

    .medical-faq-icon {
        width: 28px;
        height: 28px;
    }

    .medical-faq-icon i {
        font-size: 14px;
    }

    .medical-faq-item.active .medical-faq-answer {
        padding: 0 20px 16px 20px;
    }

    .medical-faq-answer-content {
        font-size: 14px;
    }

    .medical-faq-cta {
        padding: 32px 24px;
    }

    .medical-faq-cta h3 {
        font-size: 24px;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medical-faq-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.medical-faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.medical-faq-item:nth-child(2) {
    animation-delay: 0.15s;
}

.medical-faq-item:nth-child(3) {
    animation-delay: 0.2s;
}

.medical-faq-item:nth-child(4) {
    animation-delay: 0.25s;
}

.medical-faq-item:nth-child(5) {
    animation-delay: 0.3s;
}

.medical-faq-item:nth-child(6) {
    animation-delay: 0.35s;
}

.medical-faq-item:nth-child(7) {
    animation-delay: 0.4s;
}

.medical-faq-item:nth-child(8) {
    animation-delay: 0.45s;
}

.medical-faq-item:nth-child(9) {
    animation-delay: 0.5s;
}

.medical-faq-item:nth-child(10) {
    animation-delay: 0.55s;
}