﻿/* ======================================= Faqs Page Start ======================================= */
/* FAQ Hero Section */
.faq-hero {
    padding: 140px 0 80px;
    color: white;
    text-align: center;
    position: relative;
}

.faq-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.faq-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.faq-hero .breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.faq-hero .breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.faq-hero .breadcrumbs a:hover {
    opacity: 0.8;
}

.faq-hero .breadcrumbs span {
    margin: 0 10px;
    opacity: 0.7;
}

/* FAQ Search Section */
.faq-search-section {
    padding: 50px 0;
    background-color: white;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    display: flex;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#faq-search {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#faq-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 141, 0.1);
}

.search-btn {
    padding: 0 25px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--hover-accent);
}

.search-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.tag {
    padding: 5px 12px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 122, 141, 0.2);
}

/* FAQ Categories Section */
.faq-categories {
    padding: 80px 0;
    background-color: #f8fafc;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    gap: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 141, 0.2);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.category-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.count {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .faq-hero {
        padding: 120px 0 60px;
    }
    
    .faq-categories {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2.2rem;
    }
    
    .faq-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    #faq-search {
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .search-btn {
        border-radius: 6px;
        padding: 12px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 100px 0 50px;
    }
    
    .faq-hero h1 {
        font-size: 1.8rem;
    }
    
    .search-tags {
        justify-content: flex-start;
    }
    
    .category-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Enhanced FAQ Accordion Styling */
.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 122, 141, 0.1);
    background: white;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 122, 141, 0.3);
    box-shadow: 0 5px 20px rgba(0, 122, 141, 0.1);
}

.faq-question {
    width: 100%;
    padding: 22px 30px;
    text-align: left;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(0, 122, 141, 0.03);
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: rgba(0, 122, 141, 0.1);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
    opacity: 0;
}

.faq-question i {
    color: var(--accent);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(250, 252, 253, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.faq-answer p:first-child {
    padding-top: 15px;
}

.faq-answer ol, .faq-answer ul {
    margin: 0 0 15px 20px;
    padding: 0;
}

.faq-answer li {
    margin-bottom: 10px;
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.text-link:hover {
    color: var(--hover-accent);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--hover-accent);
    transition: width 0.3s ease;
}

.text-link:hover::after {
    width: 100%;
}

/* FAQ Category Styling */
.faq-category {
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 122, 141, 0.15);
}

.faq-category-title i {
    color: var(--accent);
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-question {
        padding: 18px 25px;
    }
    
    .faq-answer {
        padding: 0 25px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 25px 20px;
    }
    
    .faq-category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .faq-question i {
        font-size: 0.8rem;
    }
    
    .faq-answer p, .faq-answer li {
        font-size: 0.9rem;
    }
    
    .faq-category-title {
        font-size: 1.2rem;
        gap: 12px;
    }
    
    .faq-category-title i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}