
/* News Section on Home Page - Product Card Style */
.news-section {
    padding: 60px 0;
    background: var(--spec-gray-bg);
}

/* Use same grid as featured-products */
.news-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* News card exactly like .cardblock */
.news-card-home {
    background: var(--spec-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Image slider like cardblock */
.news-card-home__image-link {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff;
}

.news-card-home__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Content like cardblock__name */
.news-card-home__content {
    padding: 16px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-home__date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.news-card-home__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--spec-dark);
    line-height: 1.4;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-home__title:hover {
    color: var(--spec-yellow-dark);
}

.news-card-home__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button like cardblock__btn */
.news-card-home__bottom {
    padding: 0 16px 16px;
    margin-top: auto;
}

.news-card-home__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--spec-yellow);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--spec-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.news-card-home__link:hover {
    background: var(--spec-yellow-dark);
}

/* Responsive - like featured-products */
@media (max-width: 1200px) {
    .news-grid-home {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .news-grid-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .news-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .news-grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card-home__image-link {
        height: 200px;
    }
}
