/* CMPortal Q&A Tab Styles
 * :root variables defined in cmportal.css:
 * --accent, --dark, --light-gray, --border, --white
 */

.qa-container {
    max-width: 1000px;
    margin: 0 auto;
}

.qa-header {
    margin-bottom: 40px;
    text-align: center;
}

.qa-header h2 {
    color: var(--dark);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.qa-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.qa-section {
    margin-bottom: 50px;
}

.qa-section-title {  /* RENAMED from .section-title */
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.qa-card {
    border: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
    background: #fafafa;
}

.qa-card:hover {
    border-left-color: #667eea;
    background: var(--white);
}

.qa-card.open {
    border-left-color: #667eea;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.08);
}

.qa-card-header {  /* RENAMED from .card-header */
    background: transparent;
    color: var(--dark);
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qa-card-header::before {
    content: "›";
    font-size: 20px;
    color: #999;
    transition: transform 0.2s, color 0.2s;
    width: 16px;
}

.qa-card:hover .qa-card-header::before {
    color: #667eea;
}

.qa-card.open .qa-card-header::before {
    transform: rotate(90deg);
    color: #667eea;
}

.qa-card-body {  /* RENAMED from .card-body */
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
}

.qa-card.open .qa-card-body {
    padding: 0 20px 20px 48px;
    max-height: 2000px;
}

.qa-answer-content {  /* RENAMED from .answer-content */
    background: transparent;
    padding: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.qa-answer-content strong {
    color: var(--dark);
    font-weight: 600;
}

.qa-answer-content p {
    margin-bottom: 12px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .qa-header h2 {
        font-size: 24px;
    }
    
    .qa-section-title {
        font-size: 18px;
    }
    
    .qa-card-header {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .qa-card.open .qa-card-body {
        padding: 0 16px 16px 36px;
    }
}