/* berita_sekolah/style.css */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.news-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.category-label {
    background-color: #007BFF;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 0 0 6px 0;
    display: inline-block;
    margin-top: -8px;
    margin-left: -8px;
    position: relative;
    z-index: 1;
}

.news-title {
    font-size: 20px;
    margin: 16px;
    margin-bottom: 8px;
    color: #333;
}

.news-title a {
    text-decoration: none;
    color: inherit;
}

.news-title a:hover {
    color: #007BFF;
}

.news-summary {
    font-size: 14px;
    color: #666;
    margin: 0 16px 16px 16px;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px 16px;
    font-size: 12px;
    color: #999;
}

.date {
    font-style: italic;
}

.comments {
    color: #aaa;
}
