/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General styling */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Header styling */
header {
    background-color: #ffffff;
    border-bottom: 2px solid #ffcc00;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.title {
    flex-grow: 1; /* Membuat title mengambil ruang yang tersisa */
    text-align: center;
}

.title h1 {
    font-size: 30px;
    color: #007b5e;
    font-weight: bold;
}


.logo img {
    height: 60px;
    width: auto;
    border-radius: 5px;
}


/* Navbar horizontal untuk layar besar */
.navbar-master{
    display: flex;
    justify-content: center;
    background-color: #007b5e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.navbar-master ul {
    display: flex;
    padding: 10px;
    list-style: none;
}

.navbar-master ul li {
    margin: 0 15px;
}

.navbar-master ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-master ul li a:hover {
    color: #ffcc00;
}
.navbar {
    display: flex;
    justify-content: center;
    background-color: #007b5e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    display: flex;
    padding: 10px;
    list-style: none;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #ffcc00;
}

.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none; /* Awalnya disembunyikan, muncul hanya di layar kecil */
}

/* Sidebar untuk perangkat kecil */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 123, 94, 0.9); /* Warna hijau dengan transparansi */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    display: none; /* Awalnya sembunyikan sidebar di layar besar */
}


.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #ffcc00;
    color: black;
}

.sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    color: white;
    cursor: pointer;
}

/* Main content styling */
main {
    flex: 1;
    padding: 20px;
    background-image: url('../images/1.jfif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
}

main h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 20px;
}

main p {
    font-size: 18px;
    color: #fdfdfd;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #007b5e;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #005f46;
}

/* Footer styling */
footer {
    background-color: #007b5e;
    color: white;
    text-align: left;
    padding: 10px 20px;
    width: 100%;
    margin-top: auto;
}

footer p {
    font-size: 14px;
}
@media (min-width: 769px) {
    .title {
        text-align: center; /* Geser ke kiri pada layar besar */
        margin-right: 200px; /* Beri margin hanya di layar besar */
    }
}
/* Responsive styling */
@media (max-width: 768px) {
    .navbar {
        display: none; /* Navbar hilang di perangkat kecil */
    }
    .sidebar {
        display: block; /* Sidebar muncul di layar kecil */
        width: 0; /* Sidebar tertutup pada awalnya */
    }
    .menu-toggle {
        display: block; /* Tombol menu muncul di perangkat kecil */
    }

    .title {
        flex-grow: 1; /* Membuat title mengambil ruang yang tersisa */
        text-align: center;
    }
    
    .title h1 {
        font-size: 18px;
        color: #007b5e;
        font-weight: bold;
    }
    .logo img {
        height: 30px; /* Mengatur tinggi logo untuk perangkat kecil */
        width: auto; /* Membiarkan lebar otomatis untuk mempertahankan proporsi */
    }

    h2 {
        font-size: 20px;
        color: #007b5e;
        margin-bottom: 20px;
        text-align: center;
    }
    
    

    /* Atur ukuran teks di perangkat kecil */
    main h2 {
        font-size: 24px;
    }

    main p {
        font-size: 16px;
    }

    .cta-button {
        font-size: 16px;
        padding: 8px 16px;
    }

    footer {
        background-color: #007b5e; /* Warna footer */
        color: white; /* Warna teks footer */
        text-align: left; /* Rata kiri untuk teks footer */
        padding: 10px 0; /* Padding atas dan bawah untuk footer */
        width: 100%; /* Lebar footer 100% */
        margin-top: auto; /* Mengisi ruang kosong di atas footer */
    }
    
    footer p {
        font-size: 14px; /* Ukuran font untuk teks footer */
        margin: 0; /* Menghilangkan margin untuk footer */
        text-align: center; /* Pusatkan teks footer */
    }
}
