.faqheader {
    text-align: center;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 0.8s forwards;
    margin-top: 20px;
}

.faqheader h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: normal;
    padding-bottom: 10px;
    color: #fff;
    ;
}

.faqheader p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2rem;
    color: #fff;
    margin: 0;
}

.search-container {
    position: relative;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
    padding-bottom: 20px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 16px 25px;
    padding-left: 55px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.search-icon {
    position: absolute;
    top: 37%;
    right: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
}

.faq-categories {
    display: flex;
    justify-content: left;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.3s;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.faq-categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 10px 20px;
    margin: 0 8px;
    border: none;
    border-radius: 30px;
    background-color: white;
    color: #64748b;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.category-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.category-btn.active {
    background-color: #e7237c;
    color: white;
    /* border-color: #3b82f6; */
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.25);
}

.faq-container {
    width: 91%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.4s;
    margin: 0 auto 20px auto;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    background-color: white;
    transition: background 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: #f8faff;
}

.faq-item.active .faq-question {
    color: #2563eb;
    background: #f0f7ff;
}

.faq-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 10px;
    text-transform: uppercase;
    background-color: #f1f5f9;
    color: #64748b;
}

.faq-tag.cloud {
    background-color: #e0f2fe;
    color: #0284c7;
}

.faq-tag.security {
    background-color: #fee2e2;
    color: #b91c1c;
}

.faq-tag.service {
    background-color: #ecfccb;
    color: #4d7c0f;
}

.faq-tag.pricing {
    background-color: #fef3c7;
    color: #b45309;
}

.faq-tag.support {
    background-color: #e0e7ff;
    color: #4338ca;
}

.question-text {
    flex: 1;
    padding-right: 20px;
    display: flex;
    align-items: center;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
    color: #64748b;
}

.faq-item.active .faq-toggle {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    color: #475569;
    line-height: 1.6;
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 5px 30px 30px;
    opacity: 1;
    transform: translateY(0);
    background: #fff;
    color: #1f0159;
}

.highlight {
    color: #d81c6f;
    font-weight: 600;
}

.answer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-link {
    color: #d81c6f;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.answer-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 50px;
    color: #64748b;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

.footer p {
    margin-bottom: 20px;
}

.contact-btn {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.contact-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@media screen and (max-width: 768px) {
    .faq-container {
        width: 100%;
    }

    .faqheader p {
        font-size: 12px;
    }

    .faqheader h2 {
        font-size: 24px;
    }

    .faqcontainer {
        width: 90%;
        margin: 0 auto;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .faq-categories {
        justify-content: flex-start;
        padding-bottom: 15px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 5px 20px 20px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #f1f5f9;
    }

    .header h1 {
        color: #f1f5f9;
    }

    .header p {
        color: #94a3b8;
    }

    .faq-item {
        background-color: #fff;
        border-bottom-color: #334155;
    }

    .faq-question {
        color: #1f0158;
    }

    .faq-question:hover {
        background: #d81c6f;
        color: #fff;
    }

    .faq-item.active .faq-question {
        color: #fff;
        background: #d81c6f;
    }

    .faq-toggle {
        background-color: #334155;
        color: #94a3b8;
    }

    .faq-answer {
        color: #cbd5e1;
    }

    .search-input {
        background-color: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }

    .search-input:focus {
        border-color: #3b82f6;
    }

    .category-btn {
        color: #1f0159;
        border-color: #334155;
    }

    .category-btn:hover {
        background-color: #e7237c;
        color: #f1f5f9;
    }
}

.pagination-container {
    text-align: center;
}

button.pagination-btn.active {
    background: #d81c6f;
    border: none;
    height: 20px;
    width: 20px;
    color: #fff;
}
button.pagination-btn {
    width: 20px;
    margin: 0  2px;
}
button.pagination-btn.next-btn,
button.pagination-btn.prev-btn {
    width: 65px;
}
