/* Your original CSS styles with minor updates */
.quran-academy-faq-plugin * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.quran-academy-faq-plugin {
    --primary: #1a5e63;
    --secondary: #2d8f85;
    --accent: #f1c40f;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #666;
    --border: #eaeaea;
}

.faq-plugin-container {
    max-width: 100%;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 0 auto;
}

.faq-plugin-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    text-align: center;
}

.faq-plugin-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-plugin-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.faq-plugin-search {
    padding: 20px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-right: 45px;
    border-color: #eaeaea !important;
    color: #333333 !important;
    background-color: #222 !important;
   
   
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 94, 99, 0.1);
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.faq-plugin-body {
    padding: 0 6px 20px;
}

.faq-category-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-category-tab {
    padding: 8px 20px;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.faq-plugin-search-categories {
       display: block
;
    flex-direction: row-reverse;
    justify-content: space-between;
}
.faq-category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.faq-category-tab:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.faq-items-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
    margin-left: 15px;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.3s ease;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 15px;
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-plugin-footer {
    padding: 20px;
    text-align: center;
    background: var(--light);
    border-top: 1px solid var(--border);
}

.faq-plugin-footer p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.contact-btn:hover {
    background: white;
    color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    display: none;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.4s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .faq-plugin-header {
        padding: 20px;
    }
    
    .faq-plugin-header h2 {
        font-size: 1.5rem;
    }
    
    .faq-category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-category-tab {
        width: 100%;
        text-align: center;
    }
    
    .faq-item {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 1rem;
    }
}