
/**
 * Modern FAQ Component Styles
 * Clean, accessible, and responsive FAQ design
 */

/* ==================================
   FAQ Section
   ================================== */
.section-faq-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* FAQ Header */
.faq-header {
    margin-bottom: 3rem;
}

.faq-header .title-section {
    font-size: 2.5rem;
    font-weight: 700;
    color: #173744;
    margin-bottom: 1rem;
}

.faq-header .desc-section {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ==================================
   FAQ Category Filters
   ================================== */
.faq-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.faq-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.faq-filter-btn:hover {
    color: #173744;
    background: #f8f9fa;
}

.faq-filter-btn.active {
    background: #173744;
    color: white;
    box-shadow: 0 4px 12px rgba(23, 55, 68, 0.2);
}

.faq-filter-btn span {
    position: relative;
}

/* ==================================
   FAQ Accordion
   ================================== */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item-modern {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* FAQ Question */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    background: #173744;
    color: white;
}

.faq-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: inherit;
    flex: 1;
    padding-right: 1rem;
}

/* FAQ Icon */
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
}

.faq-icon .icon-minus {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.faq-question.active .faq-icon .icon-minus {
    opacity: 1;
}

.faq-question.active .faq-icon .icon-plus {
    opacity: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    border-top: 1px solid #e9ecef;
}

.faq-content {
    padding: 2rem;
    color: #495057;
    line-height: 1.7;
}

/* FAQ Content Types */
.faq-text-content {
    margin-bottom: 1rem;
}

.faq-text-content p {
    margin-bottom: 1rem;
}

.faq-text-content ul,
.faq-text-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-text-content li {
    margin-bottom: 0.5rem;
}

.faq-text-content strong {
    color: #173744;
}

.faq-image-content {
    margin: 1.5rem 0;
    text-align: center;
}

.faq-image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Video Content */
.faq-video-content {
    margin: 1.5rem 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video-iframe {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
}

.video-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================================
   FAQ Empty State
   ================================== */
.faq-empty-state {
    padding: 4rem 2rem;
    color: #6c757d;
}

.faq-empty-state svg {
    color: #dee2e6;
    margin-bottom: 1rem;
}

.faq-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ==================================
   FAQ CTA
   ================================== */
.faq-cta {
    margin-top: 4rem;
}

.faq-cta-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #173744 0%, #2c5266 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(23, 55, 68, 0.2);
}

.faq-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-cta-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.faq-cta .btn-default {
    background: white;
    color: #173744;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-cta .btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* ==================================
   Responsive Design
   ================================== */
@media (max-width: 768px) {
    .section-faq-modern {
        padding: 60px 0;
    }
    
    .faq-header .title-section {
        font-size: 2rem;
    }
    
    .faq-filter-tabs {
        flex-direction: column;
        border-radius: 12px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .faq-filter-btn {
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-title {
        font-size: 1rem;
    }
    
    .faq-content {
        padding: 1.5rem;
    }
    
    .faq-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .faq-cta-title {
        font-size: 1.5rem;
    }
    
    .faq-cta-desc {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .faq-header .title-section {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-content {
        padding: 1rem;
    }
}

/* ==================================
   Animations
   ================================== */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
.faq-question:focus {
    outline: 2px solid #173744;
    outline-offset: 2px;
}

.faq-filter-btn:focus {
    outline: 2px solid #173744;
    outline-offset: 2px;
}

