/* News Articles Styles */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
}

.news-article {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-article:hover .news-image img {
    transform: scale(1.03);
}

.news-placeholder-image {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 20px;
}

.news-placeholder-image i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.news-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.news-date, .news-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.news-read-more:hover {
    color: #0056b3;
    gap: 12px;
}

/* News Detail Styles */
.news-detail-page {
    padding: 40px 0 60px;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-detail-title {
    color: #0c4da2;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #666;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.news-detail-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-image-single {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(12, 77, 162, 0.1);
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.news-detail-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.news-detail-content h2 {
    color: #0c4da2;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f7ff;
}

.news-detail-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.news-detail-content li {
    margin-bottom: 10px;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0c4da2;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.back-to-news:hover {
    background: #0a3d8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 77, 162, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .news-article {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 auto;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .news-detail-content {
        padding: 25px 20px;
        font-size: 1rem;
    }
    
    .news-detail-image {
        height: 200px;
    }
    
    .news-detail-image-single {
        height: 250px;
    }
}