* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.search-container {
    position: relative;
    margin-bottom: 30px;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1.05rem;
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    font-family: inherit;
    color: #333;
    outline: none;
}

.search-input:focus {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.6;
}

.no-results {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.qa-item.hidden {
    display: none;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qa-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    user-select: none;
}

.question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding-right: 15px;
}

.toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.toggle-btn.active {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.answer-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.answer-container.active {
    max-height: 2000px;
    padding: 24px 28px;
}

.answer-text {
    color: #2c3e50;
    line-height: 1.75;
    font-size: 1.05rem;
    font-weight: 400;
    text-align: left;
    letter-spacing: 0.01em;
    word-spacing: 0.05em;
    margin: 0;
}

.answer-text p {
    margin: 0 0 1em 0;
}

.answer-text p:last-child {
    margin-bottom: 0;
}

.answer-text strong {
    font-weight: 600;
    color: #1a252f;
}

.answer-text em {
    font-style: italic;
    color: #34495e;
}

.error-message {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-message p {
    color: #e74c3c;
    margin: 10px 0;
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .question-header {
        padding: 15px;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .answer-container.active {
        padding: 18px 20px;
    }
    
    .answer-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .search-input {
        padding: 14px 45px 14px 18px;
        font-size: 1rem;
    }
    
    .search-icon {
        right: 15px;
        font-size: 1.1rem;
    }
}
