/* FAQ Section Styling */

.faq-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafa 100%);
}

/* Section Introduction */
.faq-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.faq-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.faq-section .section-description {
    font-size: 1.125rem;
    color: #406463;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Card */
.faq-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f8f8;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* FAQ Item */
.faq-item {
    border-bottom: 1px solid #f0f8f8;
}

.faq-item:last-child {
    border-bottom: none;
}

/* FAQ Question (Details Summary) */
.faq-question {
    cursor: pointer;
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.faq-question:hover {
    background: #f8fafa;
    color: #406463;
}

/* Hide default details marker */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* FAQ Arrow Icon */
.faq-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: #406463;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
    color: #34495e;
}

/* FAQ Answer */
.faq-answer {
    padding: 0 2rem 1.75rem 2rem;
    color: #34495e;
    line-height: 1.6;
    font-size: 1rem;
    animation: fadeInDown 0.3s ease-out;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Animation for answer reveal */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Headers (for grouping FAQs) */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem 2rem;
    background:  #406463;
    color: #ffffff;
    border-radius: 1rem;
    display: inline-block;
    width: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
    text-align: center;
}


/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-section .section-description {
        font-size: 1rem;
    }
    
    .faq-card {
        margin-bottom: 1.5rem;
        border-radius: 1rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .faq-category-title {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    
}

@media (max-width: 480px) {
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .faq-arrow {
        width: 1rem;
        height: 1rem;
        margin-left: 0.75rem;
    }
    
    .faq-category-title {
        font-size: 1.1rem;
        padding: 0.625rem 1.25rem;
    }
}

/* Animation for FAQ items */
@media (prefers-reduced-motion: no-preference) {
    .faq-card {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .faq-card:nth-child(1) { animation-delay: 0.1s; }
    .faq-card:nth-child(2) { animation-delay: 0.2s; }
    .faq-card:nth-child(3) { animation-delay: 0.3s; }
}

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