/* FAQ Styling */
.faq-hero {
    height: 70vh;
    background: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url('../images/truck-background.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 80px;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-main-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.typing-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    min-height: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.faq-search-hero {
    max-width: 800px;
    margin: 2rem auto 0;
    position: relative;
    width: 100%;
}

.faq-search-hero input {
    width: 100%;
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.faq-search-hero input:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 1);
}

.faq-search-hero i {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.faq-item {
    background-color: var(--primary-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--secondary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 2rem;
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer-content {
    padding: 1.5rem 0;
    color: var(--text-color);
    line-height: 1.7;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-search {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
}

.faq-search i {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-category {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.faq-category:hover, 
.faq-category.active {
    background-color: var(--accent-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.no-results {
    text-align: center;
    padding: 3rem;
    display: none;
    background-color: var(--primary-color);
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.no-results h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }
.faq-item:nth-child(9) { animation-delay: 0.9s; }
.faq-item:nth-child(10) { animation-delay: 1.0s; }
.faq-item:nth-child(11) { animation-delay: 1.1s; }
.faq-item:nth-child(12) { animation-delay: 1.2s; }
.faq-item:nth-child(13) { animation-delay: 1.3s; }
.faq-item:nth-child(14) { animation-delay: 1.4s; }
.faq-item:nth-child(15) { animation-delay: 1.5s; }

@media (max-width: 768px) {
    .faq-hero {
        height: 60vh;
        margin-top: 100px;
    }
    
    .hero-main-content h2 {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .faq-search-hero input {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .faq-answer-content {
        padding: 1rem 0;
    }
    
    .faq-categories {
        gap: 0.5rem;
    }
    
    .faq-category {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}