/* News Module Styles */

/* News Index Page */
.news-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.news-item.featured {
    border: 2px solid #ffc107;
}

.news-img {
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.category-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.news-info {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #6c757d;
}

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

.news-info h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-info h4 a:hover {
    color: #007bff;
}

.news-info p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* News Detail Page */
.news-detail {
    padding: 60px 0;
}

.news-featured-image img {
    width: 100%;
    border-radius: 10px;
}

.news-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-weight: 500;
    color: #333;
}

.news-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.news-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
}

.news-body {
    line-height: 1.8;
    color: #333;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-gallery {
    border-top: 1px solid #dee2e6;
    padding-top: 30px;
}

.news-gallery h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Sidebar */
.news-info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.news-info-card h4 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: #007bff;
    margin-top: 2px;
}

.info-item h6 {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
}

.info-item p {
    margin: 0;
    color: #6c757d;
}

.related-news {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.related-news h4 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.related-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.related-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.related-news-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.related-news-info h6 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-info h6 a:hover {
    color: #007bff;
}

.related-news-info small {
    color: #6c757d;
}

/* No News */
.no-news {
    padding: 60px 20px;
    text-align: center;
}

.no-news h3 {
    margin: 20px 0;
    color: #333;
}

.no-news p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* Pagination */
.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .news-meta .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .meta-info {
        justify-content: center;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .news-info-card,
    .related-news {
        margin-top: 30px;
    }
    
    .related-news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-news-item img {
        width: 100%;
        height: 150px;
    }
} 