body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Penampung utama untuk bagian berita */
.berita-section {
    padding: 60px 20px; /* Jarak atas-bawah dan kiri-kanan */
    text-align: center; /* Membuat semua konten di dalamnya menjadi di tengah */
    background-color: #ffffff; /* Latar belakang putih seperti di gambar */
}

/* Judul "Berita" */
.section-title {
    font-size: 2.5rem; /* Ukuran font judul */
    font-weight: 700; /* Ketebalan font */
    color: #6b479e ; /* Warna sesuai permintaan Anda */
    margin: 0;
    padding-bottom: 15px; /* Jarak antara teks dan garis bawah */
    display: inline-block; /* Agar garis bawah hanya selebar teks */
    position: relative;
    text-transform: uppercase; /* Membuat teks menjadi kapital (opsional) */
    letter-spacing: 1.5px; /* Jarak antar huruf (opsional) */
}

/* Garis dekoratif di bawah judul */
.section-title::after {
    content: ''; /* Wajib ada untuk pseudo-element */
    position: absolute;
    display: block;
    width: 80px; /* Lebar garis */
    height: 4px; /* Ketebalan garis */
    background-color: #6b479e ; /* Warna garis sama dengan judul */
    border-radius: 2px; /* Membuat ujung garis sedikit melengkung */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Trik untuk menengahkan elemen absolut */
}

/* Menggunakan style yang sama dengan halaman Pendidikan */
.innovation-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

a.card-link {
    text-decoration: none;
    color: inherit;
}

.innovation-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%; /* Membuat semua card memiliki tinggi yang sama */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.innovation-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.innovation-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    object-position: center ; /* <-- TAMBAHKAN BARIS INI */
}

.innovation-item h3, .innovation-item p {
    margin: 15px;
}

.innovation-item h3 {
    color: #6b479e; /* Warna ungu Anda */
    font-size: 1.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Batasi 3 baris */
    -webkit-box-orient: vertical;
}

.innovation-item p {
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
    flex-grow: 1; /* Mendorong konten ke bawah agar rata */
}

/* === CSS Untuk Pagination === */
.pagination-controls {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-top: 20px;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item .page-link {
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    color: #6b479e; /* Warna ungu Anda */
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.page-item .page-link:hover {
    color: #fff;
    background-color: #835fb6;
    border-color: #835fb6;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #6b479e; /* Warna ungu Anda */
    border-color: #6b479e;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* === PERBAIKAN UNTUK MOBILE KECIL === */
@media (max-width: 360px) {
    .innovation-wrapper {
        /* Kurangi padding di sisi kiri-kanan agar konten lebih lega */
        padding: 20px 10px;
    }

    .innovation-grid {
        /* Ubah grid agar selalu 1 kolom penuh di layar kecil */
        grid-template-columns: 1fr;
    }

    .innovation-item h3 {
        /* Sedikit kecilkan ukuran font judul agar tidak terlalu besar */
        font-size: 1.1em;
        overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Batasi 3 baris */
    -webkit-box-orient: vertical;
    }
}

/* Kontainer utama untuk seluruh bagian */
        .school-life-section {
            width: 90%;
            max-width: 1200px;
            margin: 40px auto;
            text-align: center;
            padding: 20px;
        }

        .school-life-section .main-title {
            font-size: 2.5em;
            color: #6b479e ;
            font-weight: 700;
            margin-bottom: 15px;
        }
        .school-life-section-1 {
            width: 90%;
            max-width: 1200px;
            margin: 40px auto;
            text-align: center;
            padding: 20px;
        }

        .school-life-section-1 .main-title-1 {
            font-size: 2.5em;
            color: #6b479e ;
            font-weight: 700;
            margin-bottom: 5px;
            padding-bottom: 5px;
        }

        .school-life-section .intro-text {
            font-size: 1.1em;
            color: #555;
            max-width: 800px;
            margin: 0 auto 2px auto;
            line-height: 1.6;
        }


        /* Import Font (opsional, bisa diganti) */


.article-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;

}

/* === Pengaturan Gambar & Overlay === */
.image-wrapper, .carousel-wrapper {
    position: relative;
    width: 100%;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.shs-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px; /* Sesuaikan ukuran logo */
    background-color: rgb(255, 255, 255);
    padding: 8px;
    border-radius: 4px;
}

.date-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: #6b479e ; /* Warna ungu sesuai permintaan */
    color: #ffffff;
    padding: 10px 15px;
    text-align: center;
    line-height: 1.2;
    border-radius: 4px;
}

/* .date-overlay .day-month {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
}

.date-overlay .year {
    display: block;
    font-size: 0.8em;
} */

.date-overlay .day-month {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
}

.date-overlay .year {
    display: block;
    font-size: 1.1em;
}

/* === Pengaturan Konten Artikel === */
.content-wrapper {
    padding: 25px 30px;
}

.category-tag {
    display: inline-block;
    font-size: 0.9em;
    font-weight: 700;
    color: #6b479e ; /* Warna ungu */
    border-bottom: 2px solid #6b479e ; /* Warna ungu */
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.content-wrapper p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 1.5em;
    text-align: justify;
}

.content-wrapper p:first-of-type {
    font-size: 1.1em; /* Paragraf pertama sedikit lebih besar */
}

.content-wrapper p strong {
    color: #111;
}

.content-wrapper p em {
    color: #555;
    font-style: italic;
}

.credits {
    font-size: 0.9em !important;
    color: #666;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 20px;
    text-align: left !important;
}

@media (max-width: 820px) {
    
    .article-container {
        /* Ini adalah perbaikan utamanya.
           Memberi jarak 20px atas-bawah dan 15px kiri-kanan
           agar card tidak lagi menempel di tepi layar. */
        margin: 20px 15px;
        
        /* Menghapus radius dan shadow di layar kecil agar terlihat
           lebih bersih dan menyatu dengan halaman. */
        border-radius: 0;
        box-shadow: none;
    }

    .content-wrapper {
        /* Sedikit mengurangi jarak di dalam konten agar lebih pas */
        padding: 25px 15px;
    }

    .date-overlay {
        /* Menyesuaikan ukuran dan posisi tanggal */
        bottom: 5px;
        left: 5px;
        padding: 6px 10px;
    }

    .date-overlay .day-month {
        font-size: 1.2em;
    }

    .date-overlay .year {
        font-size: 0.8em;
    }

    /* .date-overlay .day-month {
        font-size: 1.5em;
    }

    .date-overlay .year {
        font-size: 0.9em;
    } */
}