/* RESET */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #005a87;
    padding: 15px 0;
    text-align: center;
}

.header-container {
    display: flex;
    align-items: center; /* Sejajarkan secara vertikal */
    justify-content: center; /* Tengahkan elemen */
    gap: 15px; /* Kasih jarak antara logo & tulisan */
}

.header-logo {
    width: 60px; /* Atur ukuran logo */
    height: auto;
}

header h1 {
    color: white;
    font-size: 2rem;
    margin: 0;
}
/* NAVIGASI MENU */
nav {
    background: #007bb5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: rgb(238, 230, 230);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links li a:hover {
    background: #005a87;
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    top: 100%;
    left: 0;
    width: 150px;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    color: black;
    padding: 10px;
}

.nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

/* MENU TOGGLE (HP) */
.menu-toggle {
    display: none;
    font-size: 14px;
    color: rgb(250, 245, 245);
    cursor: pointer;
}
.hero .content {
    position: relative;
    z-index: 2;
    color: rgb(245, 241, 241);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.marquee-container {
    padding: 8px 0; /* Tetap kasih padding biar nggak mepet */
    text-align: center;
    position: relative;
    z-index: 10;
    background: none; /* Hapus background */
}

.marquee-container marquee {
    font-size: 1rem; /* Ukuran tetap kecil */
    font-weight: bold;
    color: #333; /* Warna teks tetap jelas */
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
}
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full layar */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Transparan hitam */
    z-index: 1;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Biar gambar tetap rapi dan elegan */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero .content {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}
/* INFO TERBARU */
.info-terbaru {
    padding: 20px;
    text-align: center;
    background: white;
}

.info-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    width: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.info-item:hover {
    transform: scale(1.05);
}
/* Jurnal dan RPP */
.jurnal-rpp {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.jurnal-rpp h2 {
    font-size: 2rem;
    color: #003366;
}

.jurnal-rpp p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.document-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.document-item {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.document-item h3 {
    color: #003366;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.document-item p {
    color: #555;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #00509e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #003366;
}
/* Berita Terkini */
.berita {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.berita h2 {
    font-size: 2rem;
    color: #003366;
}

.news-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-item {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.news-item img {
    width: 100%;
    border-radius: 10px;
}

.news-item h3 {
    color: #003366;
    font-size: 1.5rem;
    margin-top: 10px;
}

.news-item p {
    color: #555;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #00509e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}
/* Styling untuk bagian Link Terkait */
.link-terkait {
    background-color: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    margin-top: 20px;
    border-top: 3px solid #00509e;
}

.link-terkait h2 {
    font-size: 24px;
    color: #00509e;
    margin-bottom: 15px;
}

.links-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.link-item {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00509e;
    color: rgb(243, 235, 235);
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.link-item:hover {
    background-color: #e40d31;
}

.btn:hover {
    background: #003366;
}


/* FOOTER */
footer {
    background: #005a87;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* RESPONSIVE (HP) */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 250px;
    }

    .hero-background img {
        height: 250px;
    }

    .hero-caption {
        font-size: 1.5rem;
        width: 90%;
    }

    .info-container {
        flex-direction: column;
        align-items: center;
    }
}
