/* FAQStyles.css */

.faq-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background-color: #ffffff;
    position: relative;
}

.faq-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.faq-question {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #fcfdfd;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: #f7f9f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    background-color: #fff;
    padding: 0 30px;
}

.faq-answer p {
    color: var(--text-sec);
    line-height: 1.8;
    padding-bottom: 25px;
    font-size: 0.95rem;
}


.faq-item.active {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(20, 229, 209, 0.08);
}

.faq-item.active .faq-answer {
    max-height: 200px; 
    padding-top: 5px;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
}

.faq-item.active .faq-icon {
    background: var(--primary-cyan);
    color: white;
    transform: rotate(45deg);
}

.faq-container-wrapper {
    position: relative;
    width: 100%;
}

.faq-faded-item {
    pointer-events: none; 
    user-select: none;
}

.faq-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px; 
    height: 100px; 
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 40%, 
        transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    border-radius: 0 0 15px 15px;
}

.see-all-faq {
    pointer-events: auto;
    background: #ffffff;
    color: var(--text-main);
    padding: 12px 35px;
    min-width: 180px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid #e3e6e5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: -15px; 
}

@media (max-width: 768px) {
    .faq-container, .faq-fade-overlay {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .see-all-faq {
        min-width: 150px;
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

