/* List Page Styles */

/* Reuse Product Page Variables if needed, but defining specific ones here */
:root {
    --primary-color: #0056b3;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #eee;
    --card-bg: #fff;
}

/* Use Product Page Layout Classes for Banner, Menu, Breadcrumbs */
/* ...assuming product.css is included in list.html... */

/* List Section Header */
.list-section-header {
    text-align: center; 
    margin-bottom: 30px;
}

.list-section-title {
    font-size: 28px; 
    color: #032D60; 
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .list-section-title {
        font-size: 22px; /* Smaller font on mobile */
    }
    
    .list-section-header {
        margin-bottom: 20px;
    }
}

/* List Grid */
.list-content-section {
    padding: 40px 0;
    min-height: 500px;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .list-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
}

/* List Card */
.list-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.list-card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.list-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.list-card:hover .list-card-img {
    transform: scale(1.05);
}

.list-card-body {
    padding: 20px;
}

.list-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    
    /* 2-line ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    height: 44px; /* Approx 2 lines */
    
    /* 2-line ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-top: 1px solid #f5f5f5; */
    padding-top: 15px;
}

.list-card-date {
    font-size: 12px;
    color: #999;
}

.list-card-date i {
    margin-right: 5px;
}

.list-card-more {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
}
