/* blog.css */

.blog-hero {
    background: linear-gradient(135deg, var(--cfn-dark-green) 0%, var(--npt-black) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #e2e8f0;
}

.social-links-hero .btn-white {
    border-color: white;
    color: white;
}

.social-links-hero .btn-white:hover {
    background-color: white;
    color: var(--cfn-dark-green);
}

.news-section {
    padding: 60px 20px 100px;
    background-color: #f8fafc;
    min-height: 50vh;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-green-hover);
    border-color: rgba(3, 166, 60, 0.2);
}

.news-image {
    height: 200px;
    background-color: #cbd5e1;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--npt-black);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-link {
    color: var(--cfn-green);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Push to bottom */
}

.news-link:hover {
    color: var(--cfn-dark-green);
    gap: 12px; /* Slide arrow */
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--cfn-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}