/* Outfit Font Integration */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Section-specific styles */
#faq-section {
    padding: 50px 0px 50px;
    background-color: #ffffff;
    width: 100%;
    overflow: hidden;
}

#faq-section .faq-inner {
    max-width: 800px;
    margin: 0px auto;
    padding: 0px 25px;
    width: 100%;
    box-sizing: border-box;
}

#faq-section .faq-title {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #222222;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#faq-section .faq-item {
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
    margin: 0px;
    overflow: hidden;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* Hide default details marker */
#faq-section .faq-item summary {
    list-style: none;
}

#faq-section .faq-item summary::-webkit-details-marker {
    display: none;
}

#faq-section .faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 0px;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #050303;
    list-style: none;
    outline: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    gap: 20px;
}

#faq-section .faq-question:hover {
    color: #333333;
}

#faq-section .faq-question:hover .faq-icon {
    background-color: #333333;
    transform: scale(1.05);
}

/* Plus/Minus Icon - Filled background with smooth transitions */
#faq-section .faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #222222;
    position: relative;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    margin-top: 2px;
}

#faq-section .faq-icon::before,
#faq-section .faq-icon::after {
    content: '';
    position: absolute;
    background: #ffffff;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 1px;
}

/* Horizontal line (always visible) */
#faq-section .faq-icon::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 2px;
}

/* Vertical line (hidden when open) */
#faq-section .faq-icon::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* When open, hide vertical line smoothly and add rotation */
#faq-section .faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
}

#faq-section .faq-item[open] .faq-icon::before {
    transform: translate(-50%, -50%) rotate(180deg);
}

#faq-section .faq-item[open] .faq-icon {
    background-color: #333333;
}

#faq-section .faq-answer {
    padding: 0px 0px 25px;
    color: #333333;
    max-width: 85%;
    overflow: hidden;
    opacity: 0;
    max-height: 0px;
    transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    transform: translateY(-15px);
}

#faq-section .faq-item[open] .faq-answer {
    opacity: 1;
    max-height: 1200px;
    transform: translateY(0);
    animation: slideDownSmooth 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

#faq-section .faq-answer p {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#faq-section .faq-item[open] .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

#faq-section .faq-item[open] .faq-answer p:nth-child(1) {
    transition-delay: 0.2s;
}

#faq-section .faq-item[open] .faq-answer p:nth-child(2) {
    transition-delay: 0.3s;
}

#faq-section .faq-item[open] .faq-answer p:nth-child(3) {
    transition-delay: 0.4s;
}

#faq-section .faq-answer p:last-child {
    margin-bottom: 0px;
}

/* Smooth slide down animation */
@keyframes slideDownSmooth {
    0% {
        opacity: 0;
        max-height: 0px;
        transform: translateY(-15px);
    }
    30% {
        opacity: 0.3;
    }
    60% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        max-height: 1200px;
        transform: translateY(0px);
    }
}

/* Smooth slide up animation */
@keyframes slideUpSmooth {
    0% {
        opacity: 1;
        max-height: 1200px;
        transform: translateY(0px);
    }
    40% {
        opacity: 0.6;
    }
    70% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        max-height: 0px;
        transform: translateY(-15px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    #faq-section {
        padding: 40px 0px 40px;
    }

    #faq-section .faq-inner {
        padding: 0px 20px;
    }
    
    #faq-section .faq-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    #faq-section .faq-question {
        padding: 20px 0px;
        font-size: 18px;
        line-height: 1.3;
        gap: 15px;
    }
    
    #faq-section .faq-answer {
        padding: 0px 0px 20px;
        max-width: 90%;
    }

    #faq-section .faq-answer p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

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

    #faq-section .faq-icon::before {
        width: 10px;
        height: 2px;
    }

    #faq-section .faq-icon::after {
        width: 2px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    #faq-section .faq-inner {
        padding: 0px 15px;
    }

    #faq-section .faq-title {
        font-size: 20px;
    }

    #faq-section .faq-question {
        padding: 15px 0px;
        font-size: 16px;
        gap: 12px;
    }

    #faq-section .faq-answer p {
        font-size: 14px;
    }

    #faq-section .faq-icon {
        width: 24px;
        height: 24px;
    }

    #faq-section .faq-icon::before {
        width: 8px;
        height: 1.5px;
    }

    #faq-section .faq-icon::after {
        width: 1.5px;
        height: 8px;
    }
}