/* News Center Styles */
.news-hero {
    background-color: #003366; /* Deep Tech Blue */
    background-image: linear-gradient(135deg, rgba(0,51,102,0.9) 0%, rgba(0,86,179,0.8) 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.news-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.news-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.news-hero.mh {
    margin-top: 120px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.news-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

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

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

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-meta i {
    color: #007bff;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-card:hover .news-title {
    color: #007bff;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1; /* Pushes button down */
}

.news-more {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: auto;
}

.news-more i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.news-card:hover .news-more i {
    transform: translateX(3px);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.news-pagination a, .news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 10px;
}

.news-pagination a:hover, .news-pagination a.active, .news-pagination span.current, .news-pagination a.page-num-current, .news-pagination span.page-num-current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.news-pagination span.page-item-current { 
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* News Detail Styles */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
    background: #fff;
}

.news-article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.news-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    gap: 20px;
}

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

.news-article-meta i {
    color: #007bff;
}

.news-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
}

.news-article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.news-article-content h2, 
.news-article-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #2c3e50;
    font-weight: 600;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-article-content blockquote {
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid #eee;
    gap: 30px;
}

.news-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.news-nav-link:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-nav-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-nav-title {
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-nav-link:hover .news-nav-title,
.news-nav-link:hover .news-nav-label {
    color: #007bff;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-hero {
        padding: 50px 20px;
    }
    
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .news-article-title {
        font-size: 1.8rem;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
}