/* --- Vertical Article List Layout --- */
.vertical-articles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-list-item {
    display: flex;
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
}

.article-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.article-list-image {
    width: 35%;
    min-width: 35%;
    position: relative;
    overflow: hidden;
    /* Aspect ratio control can be added here if needed, but height: 100% on img usually works with flex stretch */
}

/* Ensure the image fills the container properly */
.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    min-height: 200px; /* Force minimum height so image doesn't collapse if content is short */
}

.article-list-item:hover .article-list-image img {
    transform: scale(1.05);
}

.article-list-content {
    width: 65%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.article-list-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

/* Fallback for var usage if main css is somehow not loading vars (unlikely but safe) */
.article-list-content h3 {
    color: #1e293b; /* Fallback for blue-dark */
}
:root {
    --blue-dark: #1e3a8a; /* Ensure definition if missing in scope */
}

.article-list-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b; /* Fallback for grey */
    color: var(--grey);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-weight: 600;
    color: #2563eb; /* Fallback */
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.article-list-item:hover .read-more-link i {
    transform: translateX(4px);
}

/* Category Badge Positioning within List Item */
.article-list-image .category-badge {
    top: 1rem;
    left: 1rem;
    right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .article-list-item {
        flex-direction: column;
    }
    .article-list-image, .article-list-content {
        width: 100%;
        min-width: 100%;
    }
    .article-list-image {
        height: 200px;
    }
    .article-list-content {
        padding: 1.5rem;
    }
}
