/* FAQ Page Specific Styles */

/* Hero Section */
.faq-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.faq-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow-md);
}

.search-container button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* FAQ Categories */
.faq-categories {
    padding: 4rem 0;
    background-color: white;
}

.categories-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 0.5rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--grey-light-color);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.category-btn:hover {
    background-color: var(--grey-light-color);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--grey-light-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-toggle {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
    margin-bottom: 1rem;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 1.5rem;
}

.faq-answer pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.faq-answer code {
    font-family: monospace;
    color: var(--primary-color);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question {
    background-color: #f8f9fa;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px; /* Large enough to accommodate content */
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.no-results a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Still Have Questions */
.still-have-questions {
    padding: 4rem 0;
    background-color: var(--grey-light-color);
}

.questions-card {
    background-color: white;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.questions-card h2 {
    margin-bottom: 1rem;
}

.questions-card p {
    margin-bottom: 2.5rem;
    color: var(--grey-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-option h3 {
    margin-bottom: 0.5rem;
}

.contact-option p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-option .btn {
    min-width: 150px;
}

/* Related Resources */
.related-resources {
    padding: 5rem 0;
    background-color: white;
    text-align: center;
}

.related-resources h2 {
    margin-bottom: 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--grey-light-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.resource-card h3 {
    margin-bottom: 1rem;
}

.resource-card p {
    margin-bottom: 1.5rem;
    color: var(--grey-color);
}

.resource-card a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.resource-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.resource-card a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .faq-hero h1 {
        font-size: 2.25rem;
    }
    
    .faq-hero p {
        font-size: 1.1rem;
    }
    
    .questions-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .categories-nav {
        flex-direction: column;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .category-btn {
        width: 100%;
        text-align: center;
        border-radius: 4px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .still-have-questions {
        padding: 3rem 0;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
} 