/* Modern Card Design - List View */
#ajax-posts,
#saved-posts-container {
    display: flex !important;
    flex-direction: column;
    gap: 20px !important;
    margin-bottom: 40px;
    max-width: 900px;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    width: 100%;
}

.content-card:hover {
    border-color: #2c5282;
    box-shadow: 0 8px 24px rgba(44, 82, 130, 0.12);
    transform: translateY(-2px);
}

.content-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.content-card .card-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px;
}

.content-card .card-image {
    flex-shrink: 0;
    width: 220px;
    height: 145px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.content-card .card-image-placeholder {
    color: #d1d5db;
}

.content-card .card-content {
    flex: 1;
    padding: 0;
    min-width: 0;
}

.content-card .card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-align: left !important;
}

.content-card:hover .card-title {
    color: #2c5282;
}

.content-card .card-excerpt {
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    flex-wrap: wrap;
}

.content-card .card-footer-left {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.content-card .card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.content-card .card-date svg {
    flex-shrink: 0;
}

.content-card .card-read-link {
    color: #2c5282;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.content-card .card-read-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.content-card:hover .card-read-link {
    gap: 8px;
}

.content-card:hover .card-read-link svg {
    transform: translateX(2px);
}

/* Responsive - Large screens (1200px+) */
@media (min-width: 1200px) {
    .content-card .card-image {
        width: 240px;
        height: 160px;
    }
}

/* List/Grid view - no extra margin needed (entry-content already has padding) */
@media (min-width: 1440px) {
    .documents-list #ajax-posts,
    .documents-grid #ajax-posts {
        margin-left: 0;
    }
}

/* Fix pill badge text wrapping */
.content-card .pill-inner {
    white-space: nowrap;
}

.content-card .pill-text {
    white-space: nowrap;
    height: auto;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .content-card {
        max-width: 100%;
    }

    .content-card .card-inner {
        flex-direction: column;
    }

    .content-card .card-image {
        width: 100%;
        height: 200px;
    }
}
