body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
}

/* Navbar atas tetap */
nav.top-nav {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav.top-nav li {
    margin: 0 1rem;
}

nav.top-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

/* Tombol Hamburger */
.hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* User menu */
.user-menu {
    position: relative;
    right: 50px;
}

.user-menu button {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0p;
    background-color: #444;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-dropdown ul {
    display: flex;
    flex-direction: column; /* Pastikan elemen ditampilkan vertikal */
    gap: 10px; /* Memberikan jarak antar item */
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-dropdown li {
    margin: 0; /* Menghapus margin default */
    width: auto;
    min-width: 100px;
}

.user-dropdown a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.user-dropdown a:hover {
    text-decoration: underline;
}

.user-menu.active .user-dropdown {
    display: block;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #222;
    color: #fff;
    padding: 20px;
    height: 100vh;
    position: fixed;
    top: 70px;        /* Menyesuaikan dengan tinggi navbar */
    left: 0;
    transition: transform 0.3s ease; /* Animasi untuk efek muncul */
}

/* Sidebar tersembunyi di mobile */
.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.sidebar a:hover {
    color: #fff;
}

/* Layout utama */
.main-content {
    display: flex;
    flex: 1;
    margin-top: 70px; /* Menghindari tumpang tindih dengan navbar tetap */
}

/* Container artikel */
.container {
    margin-left: 270px; /* Menyesuaikan dengan lebar sidebar */
    padding: 20px;
    background: #fff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    width: 100%;
    max-width: calc(100% - 290px);
    box-sizing: border-box;
}
.container.expanded {
    margin-left: 20px;
    max-width: calc(100% - 40px);
}

h1 {
    font-family: 'Playfair Display', serif;
    color: #333;
}

img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Khusus untuk gambar di dalam .article */
.article img {
    width: auto !important;
    max-width: 400px !important;
    height: auto !important;
    max-height: 400px !important;
}


p {
    color: #555;
}

.author {
    font-style: italic;
    margin-top: 20px;
    color: #888;
}

/* Media query untuk tampilan mobile */
@media screen and (max-width: 768px) {
    .hamburger {
        display: inline-block; /* Tampilkan tombol hamburger di mobile */
    }

    .user-menu {
        position: relative;
        right: 0px;
    }

    .sidebar {
        position: fixed;
        width: 200px;
        height: 100%;
        top: 70px;
        left: 0;
        z-index: 1050; /* Lebih tinggi dari card */
    }

    .container {
        margin-left: 0;
        margin-top: 0;
        padding: 10px;
        max-width: 100%;
        border-radius: 0;
    }

    .main-content {
        flex-direction: column;
    }
}
/* Styling Footer */
.footer {
    background-color: #333; /* Warna latar belakang gelap */
    color: #fff; /* Warna teks putih */
    padding: 20px 15px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    text-decoration: none;
    color: #ffcc00; /* Warna tautan emas */
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff; /* Warna saat hover */
}
