/*
 * News Page Template Styles
 * Prefix: heifood-news-
 */

/* Page Header */
.heifood-news-header {
    background: linear-gradient(135deg, #2c5530 0%, #4caf50 100%);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.heifood-news-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.heifood-news-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

/* Filters Section */
.heifood-news-filters {
    padding: 40px 20px;
    background: #f8f9fa;
}

.heifood-filters-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Search Box */
.heifood-search-box form {
    position: relative;
    display: flex;
}

.heifood-search-input {
    flex: 1;
    padding: 14px 50px 14px 20px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.heifood-search-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.heifood-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.heifood-search-btn:hover {
    color: #4caf50;
}

/* Category Filter */
.heifood-category-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.heifood-category-select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* News List Section */
.heifood-news-list-section {
    padding: 60px 20px;
}

/* News Grid */
.heifood-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* News Card */
.heifood-news-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.heifood-news-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Thumbnail */
.heifood-news-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.heifood-news-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.heifood-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.heifood-news-card:hover .heifood-news-image {
    transform: scale(1.05);
}

/* Content */
.heifood-news-content {
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
}

/* Meta Info */
.heifood-news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.heifood-news-date,
.heifood-news-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.heifood-news-date svg,
.heifood-news-category svg {
    color: #4caf50;
}

/* Title */
.heifood-news-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.heifood-news-card-title a {
    color: #2c5530;
    text-decoration: none;
    transition: color 0.3s ease;
}

.heifood-news-card-title a:hover {
    color: #4caf50;
}

/* Excerpt */
.heifood-news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
}

/* Tags */
.heifood-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.heifood-news-tag {
    padding: 4px 12px;
    font-size: 13px;
    color: #4caf50;
    background: #e8f5e9;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.heifood-news-tag:hover {
    background: #4caf50;
    color: #fff;
}

/* Read More */
.heifood-news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #4caf50;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.heifood-news-readmore:hover {
    gap: 10px;
}

/* Pagination */
.heifood-news-pagination {
    display: flex;
    justify-content: center;
}

.heifood-news-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.heifood-news-pagination li {
    margin: 0;
}

.heifood-news-pagination a,
.heifood-news-pagination span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.heifood-news-pagination a:hover {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

.heifood-news-pagination .current {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

/* Empty State */
.heifood-news-empty {
    text-align: center;
    padding: 80px 20px;
}

.heifood-news-empty svg {
    margin-bottom: 24px;
}

.heifood-news-empty h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 12px 0;
}

.heifood-news-empty p {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
}

.heifood-btn-back {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #4caf50;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.heifood-btn-back:hover {
    background: #2c5530;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .heifood-news-card {
        grid-template-columns: 1fr;
    }
    
    .heifood-news-thumbnail {
        height: 250px;
        min-height: auto;
    }
    
    .heifood-news-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .heifood-news-header {
        padding: 40px 20px;
    }
    
    .heifood-news-title {
        font-size: 32px;
    }
    
    .heifood-news-subtitle {
        font-size: 16px;
    }
    
    .heifood-filters-wrapper {
        grid-template-columns: 1fr;
    }
    
    .heifood-news-list-section {
        padding: 40px 20px;
    }
    
    .heifood-news-card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .heifood-news-title {
        font-size: 26px;
    }
    
    .heifood-news-content {
        padding: 20px;
    }
    
    .heifood-news-pagination a,
    .heifood-news-pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}
