/* css/news.css - News page specific styles */

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
    max-width: none;
}

.news-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2069ab 0%, #1a5a96 100%);
    border-radius: 16px 16px 0 0;
}
.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(32, 105, 171, 0.15);
    border-color: rgba(32, 105, 171, 0.3);
}
.news-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.news-card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover .news-card-image img {
    transform: scale(1.08);
}
.news-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}
.news-card-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}
.news-card-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(32, 105, 171, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}
.news-card-link {
    display: inline-flex;
    align-items: center;
    color: #2069ab;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}
.news-card-link:hover {
    color: #1a5a96;
    transform: translateX(4px);
}
.news-card-link svg {
    transition: transform 0.3s ease;
}
.news-card-link:hover svg {
    transform: translateX(4px);
}

/* News detail page styles */
#news-content p {
    margin-bottom: 25px;
    text-align: justify;
}
#news-content p:last-child {
    margin-bottom: 0;
}
#news-title {
    text-align: justify;
}

@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 24px;
    }
}
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .news-card-image {
        height: 200px;
    }
}
