/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

.faq-section {
    position: relative;
    background-color: #ffffff;
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'Roboto', sans-serif;
    color: #111;
    overflow: hidden;
}

/* Faint grid background */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    opacity: 0.8;
}

.faq-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header */
.faq-header {
    text-align: center;
    margin-bottom: 30px;
}

.faq-subtitle {
    color: #0d6efd;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 10px 0 0 0;
}

/* Pill Navigation / Categories */
.faq-categories-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.faq-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 6px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 2px 5px rgba(255,255,255,0.9);
    flex-wrap: wrap;
    gap: 5px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 17.6px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    position: relative;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.category-item:hover {
    color: #0f172a;
    background: #f0f6ff;
}

.category-item.active {
    color: #0f172a;
    font-weight: 600;
    background: #f0f6ff;
}

.category-divider {
    width: 4px;
    height: 4px;
    background-color: #94a3b8;
    border-radius: 50%;
    margin: 0 10px;
}

/* FAQ Cards */
.pane-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 10px;
}

.pane-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.pane-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.pane-subtitle {
    font-size: 15px;
    color: #475569;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.faq-card {
    background: rgba(236, 246, 255, 0.85); /* Light blue tint */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04), inset 0 2px 4px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.faq-card:hover {
    background: rgba(224, 240, 255, 0.95); /* Slightly deeper light blue on hover */
}

.faq-card-header {
    display: flex;
    align-items: center;
    padding: 22px 24px;
    cursor: pointer;
}

.star-icon {
    font-size: 22px;
    color: #d4a017; /* Golden yellow */
    margin-right: 18px;
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
    color: #001013;
}

.chevron-icon {
    font-size: 18px;
    color: #0d6efd;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-card-body {
    display: none;
    padding: 0 24px 22px 64px; /* Skip the star width */
    color: #001013;
    font-size: 16px;
    line-height: 1.6;
}

.faq-main-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.faq-content {
    flex: 1.2;
    min-width: 0; /* Prevents flex items from overflowing */
}

.faq-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 30px; /* Make the image stick when scrolling */
}

.faq-side-image {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

@media (max-width: 992px) {
    .faq-main-wrapper {
        flex-direction: column;
    }
    
    .faq-image-wrapper {
        margin-top: 30px;
        position: static;
        width: 100%;
    }
    
    .faq-side-image {
        max-width: 100%;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .faq-title {
        font-size: 32px;
    }
    
    .faq-categories {
        border-radius: 16px;
        flex-direction: column;
        padding: 15px;
        width: 100%;
        gap: 10px;
    }

    .category-divider {
        display: none;
    }
    
    .category-item {
        width: 100%;
        text-align: center;
    }
    


    .faq-card-header {
        padding: 16px 20px;
    }

    .faq-question-text {
        font-size: 15px;
    }
    
    .faq-card-body {
        padding: 0 20px 16px 58px;
        font-size: 14px;
    }
}
