.news-section {
    padding: 40px 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    color: var(--site-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--site-color);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    margin-top: auto;
    color: var(--site-color);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: gap 0.3s ease;
}

.news-read-more:hover {
    gap: 12px;
    color: var(--site-color-dark);
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.news-pagination a,
.news-pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.news-pagination a:hover,
.news-pagination span.current {
    background-color: var(--site-color);
    border-color: var(--site-color);
    color: #fff;
}

.news-detail-layout {
    display: flex;
    gap: 40px;
}

.news-detail-content {
    flex: 1;
}

.news-sidebar {
    width: 350px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .news-detail-layout {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }
}

.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--site-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-meta i {
    color: var(--site-color);
}

.news-detail-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.news-detail-main-image img {
    width: 100%;
    display: block;
}

.news-detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.news-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.news-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.news-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-gallery-item:hover img {
    transform: scale(1.05);
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--site-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--site-color);
    border-radius: 2px;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-news-card {
    display: flex;
    gap: 15px;
    text-decoration: none !important;
}

.mini-news-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.mini-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-news-info {
    flex: 1;
}

.mini-news-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.mini-news-card:hover .mini-news-title {
    color: var(--site-color);
}

.mini-news-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.catalog-link i {
    color: var(--site-color);
}

.catalog-link:hover {
    background: var(--site-color);
    color: #fff;
    border-color: var(--site-color);
}

.catalog-link:hover i {
    color: #fff;
}

.social-share-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
}

.si-facebook {
    background: #3b5998;
}

.si-twitter {
    background: #030303;
}

.si-linkedin {
    background: #0077b5;
}

.si-whatsapp {
    background: #25d366;
}

.home-news-section {
    position: relative;
    background-color: #fafafa;
}

.home-news-block {
    margin-bottom: 30px;
}

.home-news-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.6s cubic-bezier(0.16, 0.77, 0.21, 0.99);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.home-news-image-container {
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.home-news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-news-card:hover .home-news-image-container img {
    transform: scale(1.1);
}

.home-news-date {
    position: absolute;
    left: 15px;
    bottom: 15px;
    background: var(--site-color);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.home-news-content {
    padding: 5px 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.home-news-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.home-news-card:hover .home-news-title {
    color: var(--site-color);
}

.home-news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-read-more-container {
    margin-top: auto;
}

.home-news-read-more {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.home-news-read-more i {
    font-size: 12px;
    transition: transform 0.3s;
}

.home-news-card:hover .home-news-read-more {
    color: var(--site-color);
}

.home-news-card:hover .home-news-read-more i {
    transform: translateX(5px);
}

.home-news-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}