/* public/css/pages/news-list.css — from pages/news.blade.php */

.news-page {
    padding-bottom: 60px;
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
}

.breadcrumbs__item a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs__item a:hover {
    color: #f0cf4c;
}

.breadcrumbs__sep {
    margin: 0 8px;
    color: #d1d5db;
    font-size: 10px;
}

.breadcrumb_last {
    color: #1a1a1a;
    font-weight: 500;
}

/* Шапка с заголовком и conversion */
._block-group__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

._block-group__head-left {
    width: 70%;
    padding-right: 20px;
}

._block-title-wrapper {
    margin-bottom: 12px;
}

._block-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.aluminumrolled__listing-products-shown {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}

.aluminumrolled__listing-products-shown span {
    font-weight: 600;
    color: #1a1a1a;
}

/* Описание */
.aluminumrolled__listing-descr {
    margin-top: 16px;
}

.aluminumrolled__listing-descr-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    max-height: 75px;
    overflow: hidden;
    position: relative;
}

.aluminumrolled__listing-descr-content.expanded {
    max-height: none;
}

.aluminumrolled__listing-descr-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.aluminumrolled__listing-descr-content.expanded::after {
    display: none;
}

.aluminumrolled__listing-descr-content p {
    margin: 0 0 12px;
}

.aluminumrolled__listing-descr-content p:last-child {
    margin-bottom: 0;
}

.aluminumrolled__listing-descr-content ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.aluminumrolled__listing-descr-content li {
    margin-bottom: 4px;
}

.aluminumrolled__listing-descr-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 12px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
}

.aluminumrolled__listing-descr-toggle:hover {
    color: #f0cf4c;
}

/* Conversion блок */
.conversion {
    width: 30%;
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
}

.conversion ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.conversion ul li {
    font-size: 12px;
    color: #374151;
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.conversion ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 11px;
}

.conversion__bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
}

.conversion__online {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.conversion__online-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.conversion__online p {
    font-size: 12px;
    color: #374151;
    margin: 0;
}

.conversion__contacts {
    display: flex;
    gap: 8px;
    align-items: center;
}

.conversion__contacts a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
}

.conversion__contacts a:hover {
    background: #f0cf4c;
}

/* Адаптивность conversion */
@media (max-width: 991px) {
    ._block-group__head-left {
        width: 60%;
    }
    
    .conversion {
        width: 40%;
    }
    
    ._block-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    ._block-group__head {
        flex-direction: column;
    }
    
    ._block-group__head-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .conversion {
        width: 100%;
    }
    
    ._block-title {
        font-size: 20px;
    }
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.news-card__img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.news-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card__content {
    padding: 20px;
}

.news-card__date {
    font-size: 12px;
    color: #f0cf4c;
    font-weight: 500;
    margin-bottom: 8px;
}

.news-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card__title {
    color: #f0cf4c;
}

.news-card__excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

/* Двухколоночный layout: контент + сайдбар */
.news-layout {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 260px);
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

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

.news-page .news-single-sidebar {
    position: sticky;
    top: 24px;
    min-width: 0;
}

.news-sidebar-widget {
    background: #fafbfc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #eef0f2;
}

.news-sidebar-widget:last-child {
    margin-bottom: 0;
}

.news-sidebar-widget__title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.news-sidebar-widget__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-widget__list li {
    margin-bottom: 6px;
}

.news-sidebar-widget__list li:last-child {
    margin-bottom: 0;
}

.news-sidebar-widget__list a {
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    padding: 6px 0;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.news-sidebar-widget__list a:hover {
    color: #b8860b;
    background: rgba(240, 207, 76, 0.08);
}

.news-sidebar-widget__list .count {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.news-sidebar-widget__date {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
