/* FAQ Page Styles - Enhanced Design */
:root {
    /* Core colors */
    --main-blue: #0176be;
    --light-blue: #5ab3e1;
    --primary: var(--main-blue);
    --primary-dark: #0c98da;
    --primary-light: var(--light-blue);
    --primary-lighter: #b3d6f1;
    --gradient-primary: linear-gradient(135deg, var(--main-blue), var(--light-blue));
    --gradient-blue: linear-gradient(135deg, var(--light-blue), #b3d6f1);
    --gradient-brand: linear-gradient(90deg, var(--main-blue), var(--light-blue));
    --glass-effect: linear-gradient(135deg, rgba(90,179,225,0.15), rgba(1,118,190,0.05));
    --glass-border: 1px solid rgba(1,118,190,0.18);
    --glass-shadow: 0 8px 32px 0 rgba(1,118,190,0.15);
}

/* Hero Section - Enhanced with wave animation */
.faq-hero {
    background: var(--gradient-brand);
    color: white;
    overflow: hidden;
    position: relative;
    padding: 8rem 0 6rem;
    padding-bottom: 4rem;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 4V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.faq-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,144C672,149,768,203,864,208C960,213,1056,171,1152,149.3C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 1.5rem 0;
    line-height: 1.2;
    color: white;
}

.faq-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: white;
}

/* Background elements */
.bg-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 20s ease-in-out infinite;
}

.circle-1 {
    top: 15%;
    left: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: white;
    animation-delay: 0s;
}

.circle-2 {
    bottom: 15%;
    right: 5%;
    width: 200px;
    height: 200px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: white;
    animation: morph 15s linear infinite alternate;
}

/* Enhanced FAQ Categories */
.faq-categories {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    margin-bottom: 50px;
}

.category-buttons {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: #f8fafc;
    color: #64748b;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn:hover {
    background: rgba(1, 118, 190, 0.08);
    color: var(--main-blue);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 15px rgba(1, 118, 190, 0.2);
}

/* Modern FAQ Items */
.faq-content {
    padding: 0 20px;
    margin-bottom: 3rem;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-brand);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.faq-item.active::before {
    transform: scaleY(1);
}

.faq-question {
    padding: 1.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question span {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    padding-right: 2rem;
    line-height: 1.5;
}

.faq-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle i {
    color: var(--main-blue);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Critical for accordion functionality */
.faq-answer {
    display: none;
    padding: 0 1.75rem 1.75rem;
    animation: fadeDown 0.5s ease forwards;
}

.faq-answer-content {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Enhanced active state styling */
.faq-item.active {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.faq-item.active .faq-question {
    background: #f8fafc;
}

.faq-item.active .faq-toggle {
    background: var(--gradient-brand);
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle i {
    color: #fff;
}

.faq-item.active .faq-answer {
    display: block;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Contact Section */
.faq-contact {
    margin: 70px auto;
    max-width: 700px;
    text-align: center;
    padding: 0 20px;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    font-weight: 800;
}

.contact-desc {
    color: #64748b;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
    font-size: 1.15rem;
    line-height: 1.6;
}

.contact-card:hover .contact-title,
.contact-card:hover .contact-desc {
    color: white;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(1, 118, 190, 0.25);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(1, 118, 190, 0.35);
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-card:hover .contact-btn {
    background: #fff;
    color: #0176be;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* No FAQs message - improved styling */
.no-faqs-message {
    background: #fff;
    border-radius: 16px;
    margin: 2rem auto;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 600px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.no-faqs-icon {
    font-size: 4rem;
    color: var(--light-blue);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

.no-faqs-title {
    font-size: 1.75rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 1rem;
}

.no-faqs-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes floatShape {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    100% {
        border-radius: 70% 30% 50% 50% / 50% 60% 40% 60%;
    }
}

/* RTL Support - Enhanced */
[dir="rtl"] .faq-hero-content {
    text-align: right;
}

[dir="rtl"] .faq-question span {
    padding-right: 0;
    padding-left: 2rem;
}

[dir="rtl"] .faq-toggle {
    transform-origin: center;
}

[dir="rtl"] .faq-item.active .faq-toggle {
    transform: rotate(-180deg);
}

[dir="rtl"] .faq-item::before {
    left: auto;
    right: 0;
    border-radius: 0 4px 4px 0;
}

[dir="rtl"] .contact-btn i {
    transform: scaleX(-1);
}

/* Responsive Adjustments - Improved */
@media (max-width: 992px) {
    .faq-hero {
        padding: 6rem 0 4rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .faq-hero-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 5rem 0 3rem;
    }
    
    .faq-hero-content {
        text-align: center;
    }
    
    .category-buttons {
        padding: 1rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .category-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question span {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
    
    .faq-answer-content {
        font-size: 0.95rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-desc {
        font-size: 1rem;
    }
    
    .contact-btn {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .faq-hero {
        padding: 4rem 0 3rem;
    }
    
    .contact-card {
        padding: 1.75rem 1.25rem;
    }
    
    .faq-item {
        border-radius: 12px;
    }
    
    .faq-toggle {
        width: 35px;
        height: 35px;
    }
}