/* Reset dan Pengaturan Dasar */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    scroll-behavior: smooth; /* Efek scroll halus */
}

/* Definisi Animasi */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Kontainer Utama Landing Page */
.landing-container {
    display: flex;
    width: 100%;
    height: 100vh; /* Tinggi tetap seukuran layar */
    overflow: hidden;
}

/* Pengaturan Bagian Kiri (Visual/Foto) */
.left-section {
    flex-basis: 55%;
    height: 100%;
    animation: fadeIn 1.5s ease-out; /* Terapkan animasi */
}

.photo-placeholder {
    width: 100%;
    height: 100%;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pengaturan Bagian Kanan (Informasi) */
.right-section {
    flex-basis: 45%;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    box-sizing: border-box;
}

/* Navigasi dan Tombol Login */
.main-nav {
    text-align: right;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out 0.8s; /* Terapkan animasi dengan delay */
    animation-fill-mode: backwards; /* Agar style tetap ada sebelum animasi mulai */
}

.login-button {
    text-decoration: none;
    color: white;
    background-color: #007BFF;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #0056b3;
}

/* Konten Utama (Judul dan Deskripsi) */
.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.school-name, .school-tagline, .description {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: backwards;
}

.school-name { animation-delay: 0.2s; }
.school-tagline { animation-delay: 0.4s; }
.description { animation-delay: 0.6s; }


.school-name {
    font-size: 38px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.school-tagline {
    font-size: 24px;
    font-weight: 400;
    color: #34495e;
    margin: 10px 0 30px 0;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #7f8c8d;
    max-width: 450px;
}

/* --- BAGIAN BERITA TERBARU --- */
.news-section {
    padding: 80px 60px;
    background-color: #ffffff;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom */
    gap: 40px; /* Jarak antar kartu */
    max-width: 1200px;
    margin: 0 auto; /* Pusatkan grid */
}

.news-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden; /* Agar gambar tidak keluar dari border-radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px); /* Efek mengangkat saat di-hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 10px 0;
}

.news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: #007BFF;
    font-weight: 600;
    font-size: 15px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Penyesuaian untuk layar kecil (Responsive Design) */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr; /* 1 kolom untuk tablet */
    }
}
@media (max-width: 768px) {
    .landing-container {
        flex-direction: column;
    }
    .right-section, .news-section {
        padding: 30px;
    }
    .main-nav {
        margin-bottom: 40px;
    }
    .school-name {
        font-size: 32px;
        white-space: normal; /* Biarkan teks wrap di mobile */
    }
}