body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

.faq {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.faq h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.faq-question {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: fit-content;
}

.faq-question:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.faq-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.faq-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-content {
    background: #fff;
    padding: 20px 25px 25px 25px;
}

.faq-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-content a {
    color: #3498db;
    text-decoration: none;
}

.faq-content a:hover {
    text-decoration: underline;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

.dark-mode .faq h1 {
    color: #fff;
}

.dark-mode .faq-question {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-mode .faq-question:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.dark-mode .faq-header {
    background: #2c3e50;
}

.dark-mode .faq-header:hover {
    background: #34495e;
}

.dark-mode .faq-question.active .faq-header {
    background: #34495e;
    border-bottom: 1px solid #4a4a4a;
}

.dark-mode .faq-header h2 {
    color: #fff;
}

.dark-mode .faq-content {
    background: #2c3e50;
}

.dark-mode .faq-content p {
    color: #ecf0f1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq {
        margin: 30px auto;
        padding: 0 15px;
    }

    .faq h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .faq h1::after {
        width: 60px;
        bottom: -10px;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-header {
        padding: 15px 20px;
    }

    .faq-header h2 {
        font-size: 1rem;
    }

    .faq-content {
        padding: 15px 20px 20px 20px;
    }

    .faq-content p {
        font-size: 0.9rem;
    }
}

/* Tablet Layout */
@media (min-width: 769px) and (max-width: 1080px) {
    .faq {
        margin: 50px auto;
        padding: 0 25px;
    }

    .faq h1 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .faq-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .faq-header h2 {
        font-size: 1.05rem;
    }

    .faq-content p {
        font-size: 0.92rem;
    }
}

/* Print Styles */
@media print {
    .faq-question {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .faq-header {
        background: #fff !important;
    }

    .faq-content {
        max-height: none !important;
    }

    .faq h1::after {
        display: none;
    }
}