/* FAQ Page Specific Styles */
.page-faqs {
    --faq-accent: #0097bc;
    --faq-accent-dark: #007a96;
    --faq-bg: #f8fafb;
    --faq-card-bg: #ffffff;
    --faq-text: #1a1a2e;
    --faq-muted: #64748b;
    --faq-border: #e2e8f0;
}

/* Hero Enhancement */
.page-faqs .hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #0097bc 0%, #007a96 50%, #006580 100%);
    position: relative;
    overflow: hidden;
}

.page-faqs .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, 1%) rotate(1deg);
    }

    66% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
}

.page-faqs .hero .container {
    position: relative;
    z-index: 2;
    min-height: auto;
    display: block;
    text-align: center;
}

.page-faqs .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-faqs .hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

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

.hero-search input {
    width: 100%;
    padding: 1.1rem 1.5rem 1.1rem 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-search input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.hero-search svg {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* FAQ Container */
.faq-container {
    padding: 4rem 0 5rem;
    background: var(--faq-bg);
}

.faq-container .container {
    max-width: 1100px;
}

/* Category Navigation */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.faq-category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--faq-border);
    border-radius: 100px;
    background: #ffffff;
    color: var(--faq-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.faq-category-btn:hover {
    border-color: var(--faq-accent);
    color: var(--faq-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 151, 188, 0.15);
}

.faq-category-btn.active {
    background: linear-gradient(135deg, var(--faq-accent) 0%, var(--faq-accent-dark) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 151, 188, 0.35);
}

.faq-category-btn svg {
    width: 18px;
    height: 18px;
}

.faq-category-btn:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--faq-border);
}

.faq-section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--faq-accent) 0%, var(--faq-accent-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 151, 188, 0.3);
}

.faq-section-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.faq-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--faq-text);
    margin: 0;
    letter-spacing: -0.02em;
}

/* FAQ Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--faq-card-bg);
    border-radius: 16px;
    border: 1px solid var(--faq-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(0, 151, 188, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: var(--faq-accent);
    box-shadow: 0 8px 30px rgba(0, 151, 188, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 151, 188, 0.03);
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--faq-text);
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.faq-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--faq-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--faq-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--faq-accent);
}

.faq-item.active .faq-toggle svg {
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

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

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--faq-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer-inner a {
    color: var(--faq-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer-inner a:hover {
    color: var(--faq-accent-dark);
}

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.faq-no-results.show {
    display: block;
}

.faq-no-results svg {
    width: 64px;
    height: 64px;
    color: var(--faq-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.faq-no-results h3 {
    font-size: 1.25rem;
    color: var(--faq-text);
    margin-bottom: 0.5rem;
}

.faq-no-results p {
    color: var(--faq-muted);
}

/* CTA Section */
.faq-cta {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(0, 151, 188, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 151, 188, 0.1) 0%, transparent 50%);
}

.faq-cta .container {
    position: relative;
    z-index: 2;
}

.faq-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.faq-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.faq-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta .btn-primary {
    background: var(--faq-accent);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-cta .btn-primary:hover {
    background: var(--faq-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 151, 188, 0.4);
}

.faq-cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Quick Stats - removed from page */

/* Responsive */
@media (max-width: 768px) {
    .page-faqs .hero {
        padding: 4rem 0 3rem;
    }

    .faq-categories {
        gap: 0.5rem;
    }

    .faq-categories {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .faq-category-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
    }

    .faq-category-btn svg {
        display: none;
    }

    .faq-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer-inner {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Hide sections based on filter */
.faq-section.hidden {
    display: none;
}

.faq-item.hidden {
    display: none;
}