/* FAQ Section Start */
.faq-section {
    width: 100vw;
    min-height: 100vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 30;
    top: 0;
    left: 0;
    padding: 10vh 2em;
    background-color: black;
    box-shadow: 0px 2px 10px 10px rgba(0, 0, 0, 0.5);
}
.faq-section::before
{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: linear-gradient(10deg, var(--starry-bg-color), rgba(83, 77, 249, 0.25));
}

.faq-section .container {
    position: relative;
    z-index: 1;
    max-width: 50vw;
    width: 100%;
    margin: 0 auto;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 3em;
    opacity: 0;
    transform: translateY(50px);
}

.faq-section .section-header h1 {
    font-size: 3em;
    font-weight: 700;
    color: white;
    margin-bottom: 1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.faq-section .section-header .sub-title {
    font-size: 1.5em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1em;
    font-weight: 400;
}

.faq-section .section-header .description {
    font-size: 1.1em;
    color: rgba(255,255,255,0.8);
    max-width: 50vw;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Filters */
.faq-section .category-filters {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 2em;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.faq-section .category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8em 1.5em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    position: relative;
    overflow: hidden;
}

.faq-section .category-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;
}

.faq-section .category-btn:hover::before {
    left: 100%;
}

.faq-section .category-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.faq-section .category-btn.active {
    background: rgba(255,255,255,0.95);
    color: var(--starry-bg-color);
    border-color: white;
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* FAQ Container */
.faq-section .faq-container {
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    margin-top: 4em;
    max-width: 50vw;
    margin-bottom: 3em;
}

.faq-section .faq-item {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    margin-bottom: 1em;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    background-clip: padding-box;
}

.faq-section .faq-item:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.faq-section .faq-item.active {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.faq-section .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-section .faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.6s;
}

.faq-section .faq-item:hover::before {
    left: 100%;
}

.faq-section .question-content {
    display: flex;
    align-items: center;
    gap: 1.5em;
    flex: 1;
}

.faq-section .question-icon {
    width: 60px;
    height: 60px;
    background: var(--starry-bg-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    box-shadow: 0 5px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.faq-section .faq-item:hover .question-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(102, 126, 234, 0.4);
}

.faq-section .question-content h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--starry-bg-color);
    margin: 0;
    transition: all 0.3s ease;
}

.faq-section .faq-item:hover .question-content h3 {
    color: rgba(102, 126, 234, 0.8);
}

.faq-section .expand-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    color: var(--starry-bg-color);
    transition: all 0.4s ease;
}

.faq-section .faq-item.active .expand-icon {
    background: var(--starry-bg-color);
    color: white;
    transform: rotate(180deg);
}

.faq-section .faq-answer {
    overflow: hidden;
    height: 0px;
    padding: 0;
    color: rgba(44, 62, 80, 0.8);
    background: white;
    transition: all 0.3s ease;
}

.faq-section .answer-content {
    padding: 0 2em 2em;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease 0.2s;
}


.faq-section .answer-content p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin: 1em 0 0;
}

/* Search Box */
.faq-section .faq-search {
    margin-bottom: 3em;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.faq-section .search-container {
    position: relative;
    max-width: 50vw;
    margin: 0 auto 1em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-section .search-container i.fa-search {
    position: absolute;
    left: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(102, 126, 234, 0.6);
    font-size: 1.1em;
    z-index: 1;
}

.faq-section #faq-search-input {
    width: 100%;
    padding: 1em 1em 1em 4em;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    font-size: 1.1em;
    color: var(--starry-bg-color);
    transition: all 0.3s ease;
    outline: none;
}

.faq-section #faq-search-input:focus {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: white;
}

.faq-section .search-clear {
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(102, 126, 234, 0.6);
    font-size: 1.1em;
    opacity: 0;
    transition: all 0.3s ease;
}

.faq-section .search-clear.visible {
    opacity: 1;
}

.faq-section .search-clear:hover {
    color: var(--starry-bg-color);
}

.faq-section .search-results-count {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    font-weight: 500;
}

/* Help Section */
.faq-section .help-section {
    opacity: 0;
    transform: translateY(40px);
}

.faq-section .help-content {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3em;
    display: flex;
    align-items: center;
    gap: 2em;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.faq-section .help-content:hover {
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.faq-section .help-icon {
    width: 80px;
    height: 80px;
    background: var(--starry-bg-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.faq-section .help-text {
    flex: 1;
}

.faq-section .help-text h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--starry-bg-color);
    margin-bottom: 0.5em;
}

.faq-section .help-text p {
    font-size: 1em;
    color: #666;
    margin: 0;
}

.faq-section .help-actions {
    display: flex;
    gap: 1em;
}

.faq-section .help-btn {
    padding: 1em 2em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-section .help-btn.primary {
    background: var(--starry-bg-color);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.faq-section .help-btn.primary:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.faq-section .help-btn.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--starry-bg-color);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.faq-section .help-btn.secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Floating Particles */
.faq-section .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.faq-section .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgb(255,255,255);
    border-radius: 50%;
}
/* Hidden state for filtering */
.faq-section .faq-item.hidden {
    max-height: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    transform: scale(0.8);
    pointer-events: none;
}


.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 2em;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    background: white;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-question,
.faq-item:hover .faq-answer {
    background: rgba(102, 126, 234, 0.05);
}
/* Prevent text selection during ripple effects */
.faq-section .faq-item,
.faq-section .category-btn,
.faq-section .help-btn {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection in answer content */
.faq-section .answer-content {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.search-clear:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

mark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.faq-tag {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Style for ripple effects */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    z-index: 1;
}

.section-ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    z-index: 0;
}

/* Enhanced button hover states for better ripple visibility */
.faq-section .category-btn {
    transition: all 0.3s ease;
    background-clip: padding-box;
}

.faq-section .category-btn:hover {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
}

.faq-section .help-btn {
    transition: all 0.3s ease;
    background-clip: padding-box;
}

.faq-section .help-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faq-section .faq-item:hover {
    transform: translateY(-2px);
}

/* Search clear button positioning */
.faq-section .search-clear {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
/* Ensure section has proper positioning for background ripples */
.faq-section {
    position: relative;
    overflow: hidden; /* Contains the ripple effects */
}


/* Improved Ripple Effect Animations */

/* Basic ripple animation for buttons and interactive elements */
@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    20% {
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Section-wide ripple animation for background effects */
@keyframes section-ripple-animation {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Subtle pulse animation to active elements */
.faq-section .category-btn.active {
    animation: subtle-pulse 2s infinite;
}
@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255,255,255,0.4);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .faq-section
    {
        padding: 20vh 2em;
    }
    .faq-section .container,
    .faq-section .faq-container {
        max-width: 95vw;
    }
    
    .faq-section .help-content {
        flex-direction: column;
        text-align: center;
    }
    
    .faq-section .help-actions {
        flex-direction: column;
    }
    .faq-section .search-container
    {
        max-width: 95vw;
    }
    .faq-section .category-btn,
    .faq-section .search-results-count,
    .faq-section .help-btn
    {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 8vh 1em;
    }
    
    
    .faq-section .section-header h1 {
        font-size: 2.2em;
    }
    
    .faq-section .section-header .sub-title {
        font-size: 1.2em;
    }
    
    .faq-section .category-filters {
        gap: 0.5em;
    }
    
    .faq-section .category-btn {
        font-size: 0.8em;
        padding: 0.6em 1em;
    }
    
    .faq-section .faq-question {
        padding: 1.5em;
    }
    
    .faq-section .question-content {
        gap: 1em;
    }
    
    .faq-section .question-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .faq-section .question-content h3 {
        font-size: 1.1em;
    }
    
    .faq-section .help-content {
        padding: 2em;
        gap: 1.5em;
    }
    
    .faq-section .help-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
}