/* Additional CSS untuk memastikan gambar tidak melebihi container */

/* Gambar di dalam konten berita */
.news-detail-content img,
.news-content img,
.about-section img,
.program-detail img {
    max-width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    object-fit: contain;
}

/* Gambar di card berita */
.news-card img,
.news-card-large img {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
}

/* Gambar di galeri */
.gallery-item img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent images from breaking layout */
.news-content img,
.news-detail-content img,
.about-section img {
    width: auto;
    max-width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .news-detail-content img,
    .news-content img {
        max-width: 100% !important;
    }
}

