/* Industry News Bar Styles */
.industry-news-bar {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    position: relative;
}

.industry-news-bar::before,
.industry-news-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
}

.industry-news-bar::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.industry-news-bar::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

.news-ticker {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    height: 24px;
}

.news-ticker-content {
    display: inline-flex;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
    height: 100%;
}

.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

.news-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    white-space: nowrap;
    height: 100%;
}

.news-item .date {
    color: #3c72fc;
    font-weight: 600;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 2px solid #ddd;
    font-size: 14px;
}

.news-item .title {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    line-height: 1;
}

.news-item .title:hover {
    color: #3c72fc;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .industry-news-bar {
        padding: 10px 0;
    }
    
    .news-item .date,
    .news-item .title {
        font-size: 13px;
    }
    
    .news-item {
        margin-right: 30px;
    }
}

/* News Grid Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.news-card .image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .image img {
    transform: scale(1.1);
}

.news-card .content {
    padding: 20px;
}

.news-card .category {
    color: #3c72fc;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-card .title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card .excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card .read-more {
    color: #3c72fc;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.news-card .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-card .read-more:hover i {
    transform: translateX(5px);
}

/* RTL Support */
.rtl .news-item .date {
    margin-right: 0;
    margin-left: 15px;
    padding-right: 0;
    padding-left: 15px;
    border-right: none;
    border-left: 2px solid #ddd;
}

.rtl .news-card .read-more i {
    margin-left: 0;
    margin-right: 5px;
    transform: scaleX(-1);
}

.rtl .news-card .read-more:hover i {
    transform: translateX(-5px) scaleX(-1);
}
