/* --- Core UI/UX --- */
.qhsea-hub-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Post Box & Forms */
.qhsea-post-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.qhsea-post-box h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 16px;
}

.qhsea-post-box input[type="text"],
.qhsea-post-box select.qhsea-select,
.qhsea-post-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.qhsea-post-box input[type="text"]:focus,
.qhsea-post-box select:focus,
.qhsea-post-box textarea:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
}

/* File Attachment Box (NEW) */
.qhsea-attachment-wrap {
    background: #edf2f7;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    border: 1px dashed #a0aec0;
}

.qhsea-attachment-wrap label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

/* Buttons */
.qhsea-btn {
    display: inline-block;
    background-color: #0056b3; 
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.qhsea-btn:hover {
    background-color: #004494;
    color: #ffffff;
}

.qhsea-btn.outline {
    background-color: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
    margin-left: 10px;
}

.qhsea-btn.outline:hover {
    background-color: #f0f4f8;
}

.qhsea-btn.small { 
    padding: 6px 12px; 
    font-size: 0.85rem; 
}

/* Topic Feed & Cards */
.feed-title {
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.qhsea-topic-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qhsea-topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.qhsea-topic-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
    margin-bottom: 6px;
}

.qhsea-topic-title:hover {
    text-decoration: underline;
}

.qhsea-topic-meta {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.6;
}

.qhsea-topic-stats {
    text-align: center;
    background: #f7fafc;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
    min-width: 65px;
}

.stat-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
}

/* Category Badges */
.qhsea-badge {
    display: inline-block;
    background-color: #edf2f7;
    color: #4a5568;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Dynamic User Certification Badges (NEW) */
.qhsea-user-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    display: inline-block;
}

.badge-fellow { background: #fef08a; color: #854d0e; border: 1px solid #facc15; }
.badge-manager { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-professional { background: #e0e7ff; color: #3730a3; }
.badge-trainer { background: #ffedd5; color: #9a3412; }
.badge-field { background: #f1f5f9; color: #475569; }
.badge-associate { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }

/* Verified Professional Directory Grid (NEW) */
.qhsea-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.qhsea-directory-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.qhsea-directory-card:hover {
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.dir-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.dir-name {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #1a202c;
    font-weight: 600;
}

.dir-badge {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

/* Success & Error Notices */
.qhsea-notice.success {
    background-color: #c6f6d5;
    color: #22543d;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.qhsea-notice.error {
    background-color: #fed7d7;
    color: #822727;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Mobile Responsiveness (NEW) */
@media (max-width: 600px) {
    .qhsea-topic-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .qhsea-topic-stats {
        margin-top: 15px;
        width: 100%;
        box-sizing: border-box;
    }
}