/* FAQs Page Specific Styles */

/* Hero Section */
.faqs-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-features .feature-item i {
    font-size: 1.2rem;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.search-box .input-group {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box .input-group-text {
    border: none;
    padding: 0.75rem 1rem;
}

.search-box .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
    border: none;
}

.search-box .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
}

/* FAQ Categories Section */
.faq-categories {
    background-color: #ffffff;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.category-card.active {
    border-color: var(--primary-color);
    background: rgba(218, 161, 76, 0.05);
}

.category-icon {
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(218, 161, 76, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

.category-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.category-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* FAQ Content Section */
.faq-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.faq-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-section h3 {
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Accordion Styling */
.accordion-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-item:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(218, 161, 76, 0.1);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23daa14c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23daa14c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: var(--text-light);
    line-height: 1.6;
}

.accordion-body p {
    margin-bottom: 0;
}

/* Contact Support Section */
.contact-support {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b98b4e 100%);
    color: white;
}

.contact-support .main-heading {
    color: white !important;
}

.contact-support .paragraph {
    color: rgba(255,255,255,0.9) !important;
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .faqs-hero-section {
        padding: 60px 0;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .contact-support .text-lg-end {
        text-align: center !important;
        margin-top: 2rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .main-heading {
        font-size: 2rem !important;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .search-box .input-group {
        border-radius: 25px;
    }
    
    .search-box .btn {
        border-radius: 0 25px 25px 0;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .faqs-hero-section {
        padding: 40px 0;
    }
    
    .hero-features .feature-item {
        justify-content: center;
    }
    
    .search-box .form-control {
        font-size: 0.9rem;
    }
    
    .category-card .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .category-icon {
        padding: 0.8rem;
    }
    
    .category-icon i {
        font-size: 2rem;
    }
    
    .faq-section {
        padding: 1rem;
    }
    
    .faq-section h3 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b98b4e;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Category Card Hover Effects */
.category-card:hover h5 {
    color: var(--primary-color);
}

.category-card .badge {
    transition: all 0.3s ease;
}

.category-card:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Accordion Button Animations */
.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: rgba(218, 161, 76, 0.05);
    transform: translateX(5px);
}

.accordion-button:not(.collapsed):hover {
    background: rgba(218, 161, 76, 0.15);
}

/* Search Box Animations */
.search-box .input-group {
    transition: all 0.3s ease;
}

.search-box .input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-box .form-control {
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    transform: scale(1.02);
}

/* Button Hover Effects */
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 161, 76, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Category Icon Animations */
.category-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

/* Staggered Animation for Cards */
.category-card:nth-child(1) { transition-delay: 0.1s; }
.category-card:nth-child(2) { transition-delay: 0.2s; }
.category-card:nth-child(3) { transition-delay: 0.3s; }
.category-card:nth-child(4) { transition-delay: 0.4s; }

/* FAQ Section Animations */
.faq-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.faq-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion Item Animations */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Search Results Animation */
.search-results {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.search-results.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category Card Active State */
.category-card.active .category-icon {
    background: rgba(218, 161, 76, 0.3);
    transform: scale(1.1);
}

.category-card.active h5 {
    color: var(--primary-color);
}

/* FAQ Section Staggered Animation */
.faq-section:nth-child(1) { transition-delay: 0.1s; }
.faq-section:nth-child(2) { transition-delay: 0.2s; }
.faq-section:nth-child(3) { transition-delay: 0.3s; }
.faq-section:nth-child(4) { transition-delay: 0.4s; }

/* Image Hover Effects */
.faqs-hero-section img {
    transition: all 0.3s ease;
}

.faqs-hero-section img:hover {
    transform: scale(1.02);
}

/* Content Fade In Animation */
.faq-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.faq-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Search Box Focus Animation */
.search-box .input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Category Card Content Animation */
.category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion Content Animation */
.accordion-collapse {
    transition: all 0.3s ease;
}

.accordion-collapse.show {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Highlight Animation */
.search-highlight {
    background: rgba(218, 161, 76, 0.2);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    animation: highlight 0.5s ease;
}

@keyframes highlight {
    0% {
        background: rgba(218, 161, 76, 0.4);
    }
    100% {
        background: rgba(218, 161, 76, 0.2);
    }
} 