/* FAQ Page Styles */

/* Article List Hero Section */
.article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.article-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.article-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.article-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-wrapper i {
    color: rgba(255,255,255,0.8);
    margin-left: 20px;
    font-size: 1.2rem;
}

#articleSearch {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 15px 20px;
    font-size: 1.1rem;
    outline: none;
}

#articleSearch::placeholder {
    color: rgba(255,255,255,0.7);
}

#searchBtn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
}

#searchBtn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Quick Links */
.quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.quick-links span {
    font-weight: 600;
    margin-right: 10px;
}

.quick-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.quick-links a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Article Categories */
.article-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-count {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Article List Content */
.article-content {
    padding: 80px 0;
    background: white;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.article-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.article-list {
    max-width: 900px;
    margin: 0 auto;
}

.article-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.article-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.article-image {
    width: 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #888;
}

.article-meta i {
    margin-right: 5px;
}

.article-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
}

.article-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 10px;
    color: #5a6fd8;
}

/* Price Table */
.price-table {
    margin: 20px 0;
    overflow-x: auto;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.price-table tr:hover {
    background: #f8f9fa;
}

/* Member Levels */
.member-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.level-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.level-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.level-item h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.level-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Cost Breakdown */
.cost-breakdown {
    margin: 20px 0;
    overflow-x: auto;
}

.cost-breakdown table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cost-breakdown th,
.cost-breakdown td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cost-breakdown th {
    background: #28a745;
    color: white;
    font-weight: 600;
}

.cost-breakdown tr:nth-child(even) {
    background: #f8f9fa;
}

/* FAQ Navigation */
.faq-nav {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 120px;
    height: fit-content;
    border: 1px solid #eee;
}

.nav-header h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 10px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: #f8f9fa;
    border-left-color: #667eea;
    transform: translateX(5px);
}

/* Contact Support */
.contact-support {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.support-info h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.support-info > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.support-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.support-method {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.support-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.support-method i {
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.support-method h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.support-method p {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 3px;
}

.support-method small {
    color: #999;
    font-size: 0.9rem;
}

/* Support Form */
.support-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.support-form h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .faq-nav {
        position: static;
        order: -1;
    }
    
    .support-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 100px 0 60px;
    }
    
    .faq-hero h1 {
        font-size: 2.5rem;
    }
    
    .faq-hero p {
        font-size: 1.1rem;
    }
    
    .search-box {
        margin: 0 20px 30px;
    }
    
    .quick-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
    }
    
    .support-info h2 {
        font-size: 2rem;
    }
    
    .support-form {
        padding: 30px 20px;
    }
    
    .price-table,
    .cost-breakdown {
        font-size: 0.9rem;
    }
    
    .member-levels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 30px 20px;
    }
    
    .faq-nav {
        padding: 20px;
    }
    
    .support-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .support-method i {
        margin: 0 auto;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}