/* FAQ Page (Resource Center) Styles */

/* Page Background */
body {
    background: #f5f5f5;
}

/* News Header Style */
.news-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(91, 54, 162, 0.05), rgba(153, 41, 234, 0.05));
}

.news-header h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
}

/* Banner Section - Legacy Support */
.resource-banner {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to right, #e7e3ff 0%, #d8fbff 50%, #e0e9fc 100%);
    overflow: hidden;
}

.banner-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(129, 185, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(253, 176, 210, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(183, 190, 248, 0.15) 0%, transparent 60%);
}

.banner-title {
    position: relative;
    text-align: center;
    font-size: 52px;
    font-weight: 600;
    color: #2e2e2e;
    margin-top: 71px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 30px 0 40px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
    font-weight: 400;
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Resource Layout */
.resource-section {
    padding: 0 0 80px;
    background: #f5f5f5;
}

.resource-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.resource-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-section:hover {
    box-shadow: 0 2px 16px rgba(88, 8, 251, 0.12);
}

.sidebar-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-section-header:hover {
    background: rgba(153, 41, 234, 0.02);
}

.sidebar-section.active .sidebar-section-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.3px;
}

.sidebar-section.active .section-title {
    color: white;
}

.section-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    width: 24px;
    height: 24px;
}

.sidebar-section.active .section-arrow {
    color: white;
    transform: rotate(180deg);
}

.sidebar-section-content {
    display: none;
    padding: 0;
    background: white;
}

.sidebar-section.active .sidebar-section-content {
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
}

.sidebar-link {
    font-size: 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.05);
    border-left-color: #7c3aed;
}

/* Main Content */
.resource-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FAQ Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.02);
}

.faq-item.active .faq-question {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-icon {
    font-size: 16px;
    color: #1f2937;
    opacity: 1;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-weight: 400;
}

.faq-item.active .faq-icon {
    opacity: 1;
}

.faq-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
}

.faq-toggle {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toggle-line {
    position: absolute;
    background: #6b7280;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-line-h {
    width: 18px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.toggle-line-v {
    width: 2px;
    height: 18px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.faq-item.active .toggle-line-v {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

.faq-item.active .toggle-line {
    background: #6b7280;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px 0 56px;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 16px 24px 24px 56px;
}

.faq-answer p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Old Styles - Keep for compatibility */
.faq-sidebar {
    background: white;
    border-radius: 21px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.sidebar-link {
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 15px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.sidebar-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.product-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: white;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Main Content */
.faq-main {
    background: white;
    border-radius: 21px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Search Box */
.faq-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.faq-search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 54, 162, 0.1);
}

.faq-search-btn {
    padding: 16px 24px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-category {
    display: none;
}

.faq-category[data-product="all"] {
    display: block;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title svg {
    color: var(--primary-color);
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(91, 54, 162, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question .faq-icon path {
    stroke: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 0 24px 20px 24px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 48px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* FAQ CTA */
.faq-cta {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 21px;
    text-align: center;
    color: white;
}

.faq-cta h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.faq-cta p {
    font-size: 16px;
    margin: 0 0 24px 0;
    opacity: 0.9;
}

.faq-cta .btn {
    background: white;
    color: var(--primary-color);
}

.faq-cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }

    .faq-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .faq-header {
        padding: 60px 0 40px;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .faq-subtitle {
        font-size: 15px;
        padding: 0 16px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-sidebar {
        position: static;
        width: 100%;
        max-height: none;
    }
    
    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-item {
        flex: 0 0 auto;
    }

    .faq-main {
        padding: 20px 16px;
    }

    .faq-search-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .faq-search-box input {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .faq-search-box button {
        width: 100%;
    }

    .category-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .faq-item {
        padding: 16px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .faq-answer {
        font-size: 14px;
        padding: 12px 0;
    }

    .faq-cta {
        padding: 24px 16px;
        margin: 40px 16px;
    }

    .faq-cta h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .faq-cta p {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

/* Resource Center Mobile Responsive */
@media (max-width: 1024px) {
    .resource-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .resource-sidebar {
        order: 2;
        max-width: 100%;
    }
    
    .resource-main {
        order: 1;
    }
    
    .news-header h1 {
        font-size: 42px;
    }
    
    .breadcrumb {
        font-size: 15px;
        padding: 24px 0 32px;
    }
    
    .sidebar-section {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 40px 0 30px;
    }
    
    .news-header h1 {
        font-size: 32px;
    }
    
    .breadcrumb {
        font-size: 14px;
        padding: 20px 0 24px;
    }
    
    .breadcrumb .separator {
        margin: 0 8px;
    }
    
    .resource-layout {
        gap: 32px;
    }
    
    .sidebar-section {
        border-radius: 10px;
    }
    
    .sidebar-section-header {
        padding: 20px 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .sidebar-nav {
        gap: 0;
        padding: 12px 0;
    }
    
    .sidebar-link {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    .faq-item {
        border-radius: 10px;
    }
    
    .faq-question {
        gap: 14px;
        padding: 18px 20px;
    }
    
    .faq-icon {
        font-size: 14px;
    }
    
    .faq-text {
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 0 20px 0 48px;
    }
    
    .faq-item.active .faq-answer {
        padding: 14px 20px 20px 48px;
    }
    
    .faq-answer p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .news-header h1 {
        font-size: 28px;
    }
    
    .breadcrumb {
        font-size: 13px;
        padding: 16px 0 20px;
        line-height: 1.6;
    }
    
    .breadcrumb .separator {
        margin: 0 6px;
    }
    
    .resource-layout {
        gap: 24px;
    }
    
    .sidebar-section {
        border-radius: 8px;
    }
    
    .sidebar-section-header {
        padding: 16px 18px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .section-arrow {
        width: 20px;
        height: 20px;
    }
    
    .sidebar-nav {
        gap: 0;
        padding: 10px 0;
    }
    
    .sidebar-link {
        font-size: 14px;
        padding: 9px 18px;
    }
    
    .faq-item {
        border-radius: 8px;
    }
    
    .faq-question {
        gap: 12px;
        padding: 16px 18px;
    }
    
    .faq-icon {
        font-size: 13px;
    }
    
    .faq-text {
        font-size: 14px;
    }
    
    .faq-toggle {
        width: 16px;
        height: 16px;
    }
    
    .toggle-line-h {
        width: 16px;
    }
    
    .toggle-line-v {
        height: 16px;
    }
    
    .faq-answer {
        padding: 0 18px 0 42px;
    }
    
    .faq-item.active .faq-answer {
        padding: 12px 18px 18px 42px;
    }
    
    .faq-answer p {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.5;
    }
}
@media (max-width: 576px) {
    .faq-title {
        font-size: 24px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .faq-cta h3 {
        font-size: 20px;
    }
}
