/* faq.css */

/* FAQ Hero Section */
.faq-hero {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.3), rgba(231, 111, 81, 0.3)),
                url("images/hybrid.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    margin-top: 76px;
    position: relative;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.faq-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    color: white;
}

.faq-hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.faq-hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* FAQ Container */
.faq-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* FAQ Sidebar */
.faq-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2d3436;
}

.faq-categories {
    list-style: none;
    margin-bottom: 40px;
}

.faq-categories li {
    margin-bottom: 10px;
}

.faq-categories a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-categories a:hover,
.faq-categories a.active {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    color: #e76f51;
    font-weight: 500;
}

.faq-contact {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.faq-contact h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2d3436;
}

.faq-contact p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.3);
}

/* FAQ Content */
.faq-content {
    max-width: 900px;
}

.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    font-size: 28px;
    color: #2d3436;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-section h2 i {
    color: #f4a261;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    color: #e76f51;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 1000px;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #2d3436;
}

/* Responsive Design */
@media (max-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr;
        padding: 0 30px;
    }
    
    .faq-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .faq-hero h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .faq-container {
        padding: 0 20px;
        margin: 40px auto;
    }
    
    .faq-hero {
        min-height: 300px;
        margin-top: 66px;
    }
    
    .faq-hero h2 {
        font-size: 28px;
    }
    
    .faq-hero p {
        font-size: 16px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .faq-section h2 {
        font-size: 24px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 0 16px;
        margin: 30px auto;
    }
    
    .faq-hero {
        padding: 40px 16px;
        min-height: 250px;
        margin-top: 60px;
    }
    
    .faq-hero h2 {
        font-size: 24px;
    }
    
    .faq-hero p {
        font-size: 15px;
    }
    
    .faq-sidebar {
        padding: 20px;
    }
    
    .faq-categories a {
        padding: 10px 14px;
    }
    
    .faq-contact {
        padding: 20px;
    }
}