/* Section Container */
.homepage-forum-section {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header & View All Link */
.forum-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.forum-header-bar h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-view-all-link {
    font-size: 13.5px;
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forum-view-all-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Empty State */
.forum-empty-msg {
    background: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

/* Forum Thread List Wrapper */
.forum-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Thread Card */
.forum-item-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.forum-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left-color: #0056b3;
    border-top-color: #cbd5e1;
    border-right-color: #cbd5e1;
    border-bottom-color: #cbd5e1;
}

/* Card Header (Category, Author, Time) */
.forum-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-item-author-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0284c7;
    text-transform: uppercase;
}

.author-text {
    font-size: 12.5px;
    color: #64748b;
}

.author-text strong {
    color: #334155;
}

.forum-time-stamp {
    font-size: 12px;
    color: #94a3b8;
}

/* Title & Content */
.forum-item-title {
    margin: 4px 0 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.forum-item-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.forum-item-title a:hover {
    color: #0056b3;
}

.forum-item-excerpt {
    margin: 0;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    word-break: break-word;
}

/* Card Footer (Views, Attachments, Status) */
.forum-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}

.forum-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-has-image {
    color: #16a34a;
    font-weight: 500;
}

/* Status Badges */
.status-pill {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11px;
    display: inline-block;
}

.status-pill.pending {
    color: #d97706;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.status-pill.resolved {
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .forum-item-card {
        padding: 12px 14px;
    }
    
    .forum-item-title {
        font-size: 14px;
    }
}