/* --- HEADER --- */
.faq-header {
    background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.8)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.faq-header h1 { font-size: 3rem; margin-bottom: 10px; }
.breadcrumb { color: #ccc; }

/* --- SEARCH SECTION --- */
.faq-search-section {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.search-box-wrapper h2 { color: var(--primary); margin-bottom: 20px; font-size: 2rem; }

.faq-search-input {
    position: relative;
}

.faq-search-input input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    font-size: 1.1rem;
    border: 2px solid #eee;
    border-radius: 50px;
    outline: none;
    transition: 0.3s;
}

.faq-search-input i {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: var(--gray); font-size: 1.2rem;
}

.faq-search-input input:focus {
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(16, 196, 92, 0.1);
}

/* --- FAQ LAYOUT --- */
.faq-layout {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar width fixed */
    gap: 40px;
}

/* Sidebar (Categories) */
.faq-sidebar h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 15px; padding-left: 10px; border-left: 4px solid var(--secondary); }

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-btn {
    text-align: left;
    padding: 12px 15px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.cat-btn:hover, .cat-btn.active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: translateX(5px);
}

/* Accordion Content */
.faq-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.03); }

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    transition: 0.3s;
}

.faq-question i { color: var(--secondary); transition: 0.3s; }

/* Active State */
.faq-item.active { border-color: var(--secondary); }
.faq-item.active .faq-question { background: rgba(16, 196, 92, 0.05); color: var(--secondary); }
.faq-item.active .faq-question i { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px; /* Open honay par padding wapis */
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; gap: 30px; }
    
    /* Mobile Sidebar becomes Horizontal Scroll */
    .category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .cat-btn {
        white-space: nowrap; /* Text tootay na */
        flex-shrink: 0;
    }

    .cat-btn:hover, .cat-btn.active { transform: translateX(0) translateY(-3px); }
    
    .search-box-wrapper h2 { font-size: 1.5rem; }
}