/* =================================================================
   FAQ PAGE STYLES
   ================================================================= */

/* Background Elements */
.f-page {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Background Elements */
.c-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 22vw;
    font-size: 25vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    white-space: nowrap;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.f-page {
    background: var(--color-bg);
    color: var(--color-text);
}

.abs-blur-circ-1 {
    width: 300px;
    height: 300px;
    position: absolute;
    background-color: var(--color-primary);
    top: 20%;
    left: 20%;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

/* Hero */
.f-hero {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.f-hero .tagline {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.f-hero .title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
}

.f-hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Search Bar (Shared style with Blog but scoped) */
.f-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.f-search-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px 20px 60px;
    border-radius: 100px;
    color: var(--color-text);
    font-size: 1.1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.f-search-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(138, 66, 255, 0.15);
}

.f-search-wrapper i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.3rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.f-search-wrapper input:focus+i {
    color: var(--color-primary);
}

mark {
    background: rgba(138, 66, 255, 0.3);
    color: white;
    padding: 0 2px;
    border-radius: 2px;
}

/* Content Layout */
.f-content {
    padding: 60px 0 140px;
}

.f-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
}

/* Sidebar */
.f-sidebar {
    position: sticky;
    top: 120px;
}

.f-nav-sticky .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.f-nav-sticky ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.f-nav-sticky a {
    display: block;
    padding: 10px 20px;
    border-radius: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.f-nav-sticky a:hover,
.f-nav-sticky a.active {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.05);
}

.f-nav-sticky a.active {
    background: rgba(138, 66, 255, 0.1);
    color: var(--color-primary-light);
    border-color: rgba(138, 66, 255, 0.2);
}

/* FAQ Feed */
.f-group {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
    /* For smooth anchor scrolling */
}

.group-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

/* Accordion Items */
.f-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.f-item:last-child {
    border-bottom: none;
}

.f-item__trigger {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    gap: 20px;
    transition: color 0.3s ease;
}

.f-item__trigger:hover,
.f-item.active .f-item__trigger {
    color: var(--color-primary-light);
}

.f-item__icon {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.f-item.active .f-item__icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.f-item__content {
    height: 0;
    overflow: hidden;
}

.f-item__inner {
    padding: 0 0 30px;
}

.f-item__inner p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 90%;
    margin-bottom: 20px;
}

/* Feedback Section */
.f-item__feedback {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
}

.f-item__feedback .label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.feedback-btns {
    display: flex;
    gap: 10px;
}

.feedback-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--color-text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feedback-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.feedback-success {
    color: var(--color-accent);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s ease;
}

/* ============================================
   TRUST PROTOCOL (REVIEWS) SECTION
   ============================================ */
.f-trust {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.f-trust__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    gap: 40px;
}

.f-trust__header .tagline {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.f-trust__header .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.f-trust__header .subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: 20px;
    max-width: 500px;
}

.header-stats {
    display: flex;
    gap: 40px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box .num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-box .lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* --- Dynamic Testimonial Slider --- */
.testimonial-slider-container {
    position: relative;
    margin-top: 60px;
}

.testimonial-slider {
    overflow: visible; /* Allow shadows/glows to bleed */
    padding-bottom: 40px;
}

.c-testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.c-testimonial-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 66, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-primary-light);
    opacity: 0.5;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
}

.c-testimonial-card .text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 30px;
    flex-grow: 1;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.client-info .avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.client-info .details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.client-info .details span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.c-testimonial-card .rating {
    display: flex;
    gap: 4px;
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding: 0 10px;
}

.slider-nav {
    display: flex;
    gap: 15px;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.slider-progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 0;
    transition: width 0.3s linear;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* CTA Section */
.f-cta {
    padding: 0 0 120px;
}

.f-cta__box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
}

.f-cta__box h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.f-cta__box p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Hero CTA Button (Ported) */
.hero-primary-cta {
    font-size: 1rem;
    padding: 16px 32px;
    color: #f9f9f9;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(138, 66, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(138, 66, 255, 0.4);
}

@media (max-width: 1024px) {
    .f-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .f-sidebar {
        display: block;
        position: sticky;
        top: 90px;
        /* Below header */
        z-index: 10;
        background: rgba(5, 8, 22, 0.9);
        backdrop-filter: blur(10px);
        margin: 0 -24px;
        padding: 15px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .f-nav-sticky .nav-label {
        display: none;
    }

    .f-nav-sticky ul {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 10px;
    }

    .f-nav-sticky a {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .f-nav-sticky a.active {
        background: var(--color-primary);
        color: white;
        border-color: var(--color-primary);
    }

    .f-cta__box {
        padding: 40px 24px;
    }

    .f-trust__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
}

/* Responsive Overrides for FAQ Page */
@media (max-width: 1024px) {
    .f-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .f-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 20px;
        position: relative;
        top: 0;
        height: auto;
    }

    .f-nav-sticky {
        position: static;
    }

    .f-nav-sticky ul {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
    }

    .f-nav-sticky ul::-webkit-scrollbar {
        height: 4px;
    }

    .f-nav-sticky ul::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .f-nav-sticky ul li a {
        white-space: nowrap;
        padding: 8px 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        display: block;
    }

    .f-nav-sticky ul li a.active {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: #fff;
    }
}

@media (max-width: 768px) {
    .f-hero .title {
        font-size: 2.8rem;
    }

    .f-search-wrapper {
        width: 100%;
        padding: 15px;
    }

    .f-trust__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 30px;
    }

    .f-cta__box {
        padding: 40px 20px;
        text-align: center;
    }
}