.news-grid-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 60px 0;
    position: relative;
}

.news-grid-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(13,110,253,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(13,110,253,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(13,110,253,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.container {
    position: relative;
    z-index: 2;
}

.page-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.page-intro h1 {
    color: #0d6efd;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(13,110,253,0.2);
}

.page-intro .lead {
    font-size: 1.3rem;
    color: #495057;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 1);
}

.news-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #f0f2f5, #e1e8ed);
}

.news-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-card-image::after {
    opacity: 1;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1.1);
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.2);
}

.news-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,0.8) 100%);
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
    flex: 1;
}

.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-title a:hover {
    color: #0d6efd;
    transform: translateY(-1px);
}

.news-card-footer {
    margin-top: auto;
    padding-top: 20px;
}

.btn-read-more {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-read-more:hover::before {
    left: 100%;
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.4);
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

.alert-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    color: #1a202c;
}

.alert-info i {
    color: #0d6efd;
}

@media (max-width: 768px) {
    .page-intro h1 {
        font-size: 2.5rem;
    }
    
    .page-intro .lead {
        font-size: 1.1rem;
    }
    
    .news-card-content {
        padding: 25px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-grid-container {
        padding: 40px 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
