/* FAQ Section Styles - Modern Accordion Design */
.faq-section {
    margin: 40px 0;
    padding: 0;
    max-width: 100%;
}
.faq-item {
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.faq-item.active {
    border-color: #0073aa;
}
.faq-question {
    margin: 0;
    padding: 20px 60px 20px 20px;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    background: #f8f9fa;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
}
.faq-item.active .faq-question {
    background: #0073aa;
    color: #ffffff;
}
.faq-item.active .faq-question:hover {
    background: #005a87;
}

/* Toggle Arrow Icon */
.faq-question::after {
    font-family: "dashicons";
    content: "\f347"; /* Down arrow */
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: #0073aa;
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
    color: #ffffff;
}

/* Answer Container */
.faq-answer {
    margin: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #ffffff;
}
.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 2000px;
}

/* Answer Content */
.faq-answer-content {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}
.faq-answer-content::before {
    content: "A";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: #ffffff;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.85em;
    font-weight: bold;
    float: left;
}
.faq-answer p {
    margin: 0 0 12px 0;
    color: #495057;
    line-height: 1.7;
    font-size: 0.95em;
}
.faq-answer p:last-child {
    margin-bottom: 0;
    text-align: right !important;
}

/* Loading State */
.faq-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Numbered Questions */
.faq-item[data-index]::before {
    content: attr(data-index);
    position: absolute;
    left: -15px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #6c757d;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        margin: 30px 0;
    } 
    .faq-question {
        padding: 15px 50px 15px 15px;
        font-size: 1em;
    }
    .faq-question::after {
        right: 15px;
        font-size: 20px;
    } 
    .faq-item.active .faq-answer {
        padding: 15px;
    }
    .faq-answer-content {
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    .faq-item {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 10px;
    }
    .faq-answer {
        max-height: none !important;
        padding: 15px !important;
    }
    .faq-question::after {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .faq-section {
        color: #e0e0e0;
    }
    
    .faq-item {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .faq-question {
        background: #3a3a3a;
        color: #e0e0e0;
    }
    
    .faq-item.active .faq-question {
        background: #0073aa;
    }
    
    .faq-answer {
        background: #2d2d2d;
    }
    
    .faq-answer-content {
        background: #3a3a3a;
        border-left-color: #0073aa;
    }
    
    .faq-answer p {
        color: #c0c0c0;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.4s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }



/* dark mode */

.dark_mode .faq-item.active .faq-question {
    background: #232328;
}
.dark_mode .faq-answer p {
    color: #f5e9d3;
}
.dark_mode .faq-answer {
    background: #000000;
}
.dark_mode .faq-answer-content {
    background: #2e2e2e;
}
.dark_mode .faq-question {
    background: #393939;
    color: white;
}