/* ============================================================
   FAQ Page — Dedicated Styles & Interactive Accordions
   ============================================================ */

.faq-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5D1F1A 0%, #802A24 40%, #A63A32 100%);
    padding: 90px 20px 70px;
    text-align: center;
}

.faq-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 80%, rgba(255, 153, 51, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 90% 20%, rgba(230, 168, 23, 0.12) 0%, transparent 50%);
}

.faq-hero::before,
.faq-hero::after {
    content: '🙏';
    position: absolute;
    font-size: 32px;
    opacity: 0.15;
    animation: floatParticle 7s ease-in-out infinite;
}

.faq-hero::before {
    top: 20%;
    left: 12%;
    animation-delay: 0s;
}

.faq-hero::after {
    content: '🕉️';
    bottom: 20%;
    right: 12%;
    animation-delay: 3.5s;
    font-size: 38px;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    animation: heroSlideIn 0.8s ease both;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 50px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgePulse 3s ease-in-out infinite;
}

.faq-hero-badge .material-symbols-outlined {
    font-size: 16px;
    color: var(--saffron);
}

.faq-hero-title {
    color: white;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filters */
.faq-categories-container {
    background: var(--temple-white);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 67px;
    z-index: 90;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.03);
}

.faq-categories {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.faq-category-btn {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: var(--shadow-soft);
}

.faq-category-btn .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s;
}

.faq-category-btn:hover {
    background: var(--sandal-cream);
    color: var(--text-heading);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.faq-category-btn.active {
    background: var(--saffron-gradient);
    color: white;
    border-color: var(--saffron);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.3);
}

.faq-category-btn.active .material-symbols-outlined {
    color: white;
    transform: scale(1.1);
}

/* FAQ Content Layout */
.faq-content-section {
    padding: 50px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-group {
    margin-bottom: 48px;
    animation: fadeIn 0.5s ease both;
}

.faq-group-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sandal-cream);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-group-title .material-symbols-outlined {
    color: var(--kumkum-red);
    font-size: 26px;
}

/* Accordion Item Card */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(230, 168, 23, 0.15);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.03);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-item:hover {
    border-color: rgba(255, 153, 51, 0.35);
    box-shadow: 0 8px 30px rgba(255, 153, 51, 0.08);
}

.faq-question-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question-text {
    line-height: 1.5;
    transition: color 0.3s;
}

.faq-item.active {
    border-color: var(--saffron);
    box-shadow: 0 10px 35px rgba(255, 153, 51, 0.12);
    background: var(--ivory);
}

.faq-item.active .faq-question-btn {
    color: var(--text-heading);
}

.faq-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sandal-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kumkum-red);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-item.active .faq-icon-wrap {
    background: var(--saffron);
    color: white;
    transform: rotate(180deg);
}

.faq-icon-wrap .material-symbols-outlined {
    font-size: 20px;
}

/* Accordion Answer Transition */
.faq-answer-pane {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
    border-top: 1px solid rgba(230, 168, 23, 0.08);
    padding-top: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search bar styling */
.faq-search-wrapper {
    max-width: 600px;
    margin: -25px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.faq-search-box {
    background: white;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    padding: 6px 6px 6px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.1);
    transition: all 0.3s;
}

.faq-search-box:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 12px 40px rgba(255, 153, 51, 0.15);
    transform: translateY(-2px);
}

.faq-search-input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--text-main);
}

.faq-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.faq-search-btn {
    background: var(--saffron-gradient);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-search-btn:hover {
    transform: scale(1.05);
}

/* Empty state styling */
.faq-empty-state {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.faq-empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 12px;
}

.faq-empty-text {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive adjustment */
@media (max-width: 640px) {
    .faq-hero {
        padding: 60px 16px 50px;
    }
    .faq-categories-container {
        top: 55px; /* Matches mobile header height */
        padding: 12px 8px;
    }
    .faq-categories {
        gap: 8px;
    }
    .faq-category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    .faq-content-section {
        padding: 30px 14px 60px;
    }
    .faq-question-btn {
        padding: 16px 18px;
        font-size: 14.5px;
    }
    .faq-answer-content {
        padding: 0 18px 18px;
        font-size: 13.5px;
    }
    .faq-group-title {
        font-size: 19px;
        margin-bottom: 18px;
    }
}
