/* ============================================
   NEWS LISTING PAGE - CINVICO STYLE
   ============================================ */

.news-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

/* ============================================
   NEWS LIST - HORIZONTAL CARDS
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-blue, #1a56a0);
}

/* Card Image */
.news-card-image {
    flex: 0 0 280px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.news-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}

/* Card Content */
.news-card-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

/* Meta Info */
.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: #6c757d;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-card-meta i {
    font-size: 0.875rem;
    color: var(--primary-blue, #1a56a0);
}

/* Title */
.news-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-card-title a {
    color: #1a2b3c;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: var(--primary-blue, #1a56a0);
}

/* Excerpt */
.news-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #495057;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Read More Button */
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue, #1a56a0);
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.news-read-more:hover {
    color: var(--accent-yellow, #f5a623);
    gap: 10px;
}

.news-read-more i {
    transition: transform 0.2s ease;
}

.news-read-more:hover i {
    transform: translateX(4px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.news-empty {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.news-empty .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-empty .empty-icon i {
    font-size: 2.5rem;
    color: #adb5bd;
}

.news-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 10px;
}

.news-empty p {
    color: #6c757d;
    margin: 0 0 24px;
}

/* ============================================
   PAGINATION
   ============================================ */
.news-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.news-pagination .pagination {
    gap: 6px;
}

.news-pagination .page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #495057;
    background: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.news-pagination .page-link:hover {
    background: var(--primary-blue, #1a56a0);
    border-color: var(--primary-blue, #1a56a0);
    color: #fff;
}

.news-pagination .page-item.active .page-link {
    background: var(--primary-blue, #1a56a0);
    border-color: var(--primary-blue, #1a56a0);
    color: #fff;
}

.news-pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
}

/* ============================================
   SIDEBAR
   ============================================ */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.widget-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a2b3c;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue, #1a56a0);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.widget-title i {
    color: var(--primary-blue, #1a56a0);
}

/* Search Form */
.search-form .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.search-form .form-control {
    border-radius: 6px 0 0 6px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    font-size: 0.9375rem;
}

.search-form .form-control:focus {
    border-color: var(--primary-blue, #1a56a0);
    box-shadow: none;
}

.search-form .btn {
    border-radius: 0 6px 6px 0;
    padding: 10px 16px;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #f1f3f5;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #495057;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.category-list a:hover,
.category-list li.active a {
    color: var(--primary-blue, #1a56a0);
}

.category-list li.active a {
    font-weight: 600;
}

.category-list .cat-count {
    background: #f1f3f5;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 28px;
    text-align: center;
}

.category-list li.active .cat-count,
.category-list a:hover .cat-count {
    background: var(--primary-blue, #1a56a0);
    color: #fff;
}

/* Latest Posts */
.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-post-item {
    display: flex;
    gap: 12px;
}

.latest-post-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-post-item:hover .latest-post-thumb img {
    transform: scale(1.1);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.latest-post-info {
    flex: 1;
    min-width: 0;
}

.latest-post-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
}

.latest-post-info h4 a {
    color: #343a40;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.latest-post-info h4 a:hover {
    color: var(--primary-blue, #1a56a0);
}

.latest-post-date {
    font-size: 0.75rem;
    color: #868e96;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-post-date i {
    font-size: 0.7rem;
}

/* Sidebar Products */
.sidebar-products {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-product-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.sidebar-product-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-product-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.sidebar-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-product-item:hover .sidebar-product-thumb img {
    transform: scale(1.1);
}

.sidebar-product-info {
    flex: 1;
    min-width: 0;
}

.sidebar-product-info h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.sidebar-product-info h4 a {
    color: #343a40;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.sidebar-product-info h4 a:hover {
    color: var(--primary-blue, #1a56a0);
}

.sidebar-product-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #dc3545;
}

.sidebar-product-price.contact {
    color: var(--primary-blue, #1a56a0);
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-blue, #1a56a0) 0%, #0d3a7a 100%);
    border: none;
    text-align: center;
}

.sidebar-cta .cta-content i {
    font-size: 2.5rem;
    color: var(--accent-yellow, #f5a623);
    margin-bottom: 12px;
}

.sidebar-cta h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.sidebar-cta p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px;
}

.sidebar-cta .cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-yellow, #f5a623);
    color: #1a2b3c;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-cta .cta-phone:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .news-section {
        padding: 30px 0 50px;
    }

    .news-sidebar {
        position: static;
        margin-top: 40px;
    }

    .news-card-image {
        flex: 0 0 220px;
        height: 160px;
    }

    .news-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .news-card {
        flex-direction: column;
    }

    .news-card-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .news-card-content {
        padding: 16px 18px;
    }

    .news-card-meta {
        gap: 12px;
        font-size: 0.75rem;
    }

    .news-card-title {
        font-size: 1.125rem;
    }

    .news-card-excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }

    .news-pagination .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .news-list {
        gap: 16px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-empty {
        padding: 40px 20px;
    }
}
