.faq-section {
    position: relative;
    overflow: hidden;
}
.dark-mode .faq-section {
    background: var(--dark-bg);
}

/* Section Header */
.faq-header {
    position: relative;
    z-index: 2;
}

.faq-badge {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.faq-badge:hover {
    transform: translateY(-2px);
}

.faq-badge-line {
    background: linear-gradient(to bottom, #22c55e, #059669);
    width: 0.25rem;
    height: 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.faq-badge-text {
    color: #22c55e;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.faq-title {
    color: #059669;
    position: relative;
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #059669 0%, #22c55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.faq-title::after {
    content: "";
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.375rem;
    background: linear-gradient(90deg, #22c55e, #059669);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.faq-header:hover .faq-title::after {
    width: 8rem;
}

.faq-description {
    color: #4b5563;
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 48rem;
    margin: 0 auto;
}

/* FAQ Items */
.faq-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to right, #ffffff, #f8fafc);
}
.dark-mode .faq-item {
    background: none;
    border: 1px solid gray;
}
.dark-mode .faq-item span {
    color: var(--dark-top-heading);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1),
        0 4px 8px -4px rgba(0, 0, 0, 0.06);
}

.faq-question {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-question:hover {
    background-color: rgba(34, 197, 94, 0.05);
}

.faq-question.active {
    background-color: rgba(34, 197, 94, 0.1);
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}

.faq-question:hover .faq-icon-wrapper {
    background: rgba(34, 197, 94, 0.2);
}

.faq-question.active .faq-icon-wrapper {
    background: rgba(34, 197, 94, 0.3);
}

.faq-icon {
    color: #22c55e;
    transition: all 0.3s ease;
}

.faq-answer {
    transition: all 0.3s ease;
    background: linear-gradient(
        to bottom,
        rgba(34, 197, 94, 0.02),
        transparent
    );
}

.faq-answer-content {
    position: relative;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .faq-section {
        padding: 3rem 1.5rem;
    }

    .faq-title {
        font-size: 2.75rem;
    }

    .faq-description {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .faq-item {
        margin: 0.75rem 0;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 2.5rem 1rem;
    }

    .faq-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .faq-badge {
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .faq-badge-line {
        height: 1.5rem;
    }

    .faq-badge-text {
        font-size: 0.875rem;
    }

    .faq-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .faq-title::after {
        width: 4rem;
        height: 0.25rem;
    }

    .faq-description {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
    }

    .faq-item {
        margin: 0.5rem 0;
        border-radius: 0.75rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
    }

    .faq-question-text {
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    .faq-icon-wrapper {
        width: 28px;
        height: 28px;
    }

    .faq-icon {
        font-size: 0.875rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }

    .faq-answer-content {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 2rem 0.75rem;
    }

    .faq-badge {
        padding: 0.375rem 0.75rem;
    }

    .faq-badge-line {
        height: 1.25rem;
        width: 0.2rem;
    }

    .faq-badge-text {
        font-size: 0.8125rem;
    }

    .faq-title {
        font-size: 1.75rem;
    }

    .faq-title::after {
        width: 3rem;
        height: 0.2rem;
    }

    .faq-description {
        font-size: 0.9375rem;
    }

    .faq-item {
        margin: 0.375rem 0;
        border-radius: 0.5rem;
    }

    .faq-question {
        padding: 0.75rem;
    }

    .faq-question-text {
        font-size: 0.875rem;
        padding-right: 2rem;
    }

    .faq-icon-wrapper {
        width: 24px;
        height: 24px;
    }

    .faq-icon {
        font-size: 0.75rem;
    }

    .faq-answer {
        padding: 0 0.75rem 0.75rem;
    }

    .faq-answer-content {
        font-size: 0.8125rem;
    }
}
@media (max-width: 350px) {
            .faq-question-text {
        font-size: 11px;
        padding-right: 5px;
    }
    .faq-answer-content{
        padding:10px 5px;
        font-size: 10px;
    }
}

/* Animation for FAQ items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.5s 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;
}
.faq-item:nth-child(6) {
    animation-delay: 0.6s;
}

