.content-card {
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card .card-body {
    flex: 1 0 auto;
}

.custom-topic .card-body {
    padding-top: 0.5rem;
}

.content-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    /* Ensure titles can wrap properly without breaking layout */
    word-break: break-word;
}

.article-title-link {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.article-title-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.content-card .card-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.content-card .card-text {
    margin-bottom: 1rem;
}

.content-card .card-footer {
    background-color: transparent;
    padding: 0.5rem 1rem;
}

.content-card img {
    border-radius: 0.5rem;
}

.custom-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}