/* ===================================
   News Card Styles - Shared Component
   =================================== */

section.news-stories {
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background-color: #f9f9f9;
}

.news-stories div.container {
    margin: 0 auto;
    padding: 2rem 2rem;
    max-width: 1200px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 25em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-header {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-logo {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-logo img {
    max-width: 100%;
    max-height: 100%;
}

.news-content {
    padding: 1.5rem;
    padding-top: 1.8rem;
}

.news-content h3 {
    margin-top: 0;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-header {
        height: 130px;
    }

    .news-stories div.container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-stories div.container {
        padding: 2rem 1rem;
    }

    .news-content {
        padding: 1.2rem;
    }

    .news-header {
        height: 120px;
    }
}

@media (min-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
