@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

/* Utility class for visually hidden elements (for accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body {
    background: #0A0E1A;
    color: #E0E0E0;
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #3898ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4db8ff;
}

main {
    max-width: 1000px; /* Slightly wider for better content spread */
    margin: 100px auto 60px;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(10, 14, 26, 0) 70%), #0A0E1A;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-header h1 {
    font-size: 2.5rem; /* Reduced for responsiveness */
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, #a7b2ff, #3898ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-header p {
    font-size: 1.1rem;
    color: #C0C0D0; /* Higher contrast */
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

#faq-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#faq-search {
    width: 100%;
    padding: 16px 20px 16px 50px; /* Space for icon */
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    background-color: #161a2c;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#faq-search:focus {
    border-color: #3898ff;
    box-shadow: 0 0 15px rgba(56, 152, 255, 0.2);
}

#faq-search-wrapper::before {
    content: '\f002'; /* Font Awesome magnifying glass */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0b0;
    font-size: 1.2rem;
}

.faq-item {
    background-color: #161a2c;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.faq-item.active {
    border-color: #3898ff;
}

.faq-question {
    font-weight: 600;
    font-size: 1.15rem;
    padding-right: 30px;
    background: none;
    border: none;
    color: #E0E0E0;
    width: 100%;
    text-align: left;
    position: relative;
    cursor: pointer;
}

.faq-question::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: #3898ff;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: none;
    margin-top: 15px;
    padding-right: 30px;
    color: #C0C0D0; /* Higher contrast */
    line-height: 1.6;
    font-size: 1rem;
}

#no-results {
    padding: 30px;
    text-align: center;
    background-color: #161a2c;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#no-results h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

#no-results p {
    color: #C0C0D0;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-header h1 {
        font-size: 2rem;
    }
    .faq-header p {
        font-size: 1rem;
    }
    .faq-item {
        padding: 15px;
    }
    .faq-question {
        font-size: 1rem;
    }
    .faq-answer {
        font-size: 0.95rem;
    }
}