/* Reset box-sizing */
* {
    box-sizing: border-box;
}

/* Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-family: sans-serif;
}

/* Tambahkan ini untuk menggeser ke kanan */
.nav-right {
    display: flex;
    align-items: center;
    margin-right: auto;
    gap: 16px;
}

.navbar a {
color: #fff !important;
text-decoration: none;
margin-left: 16px;
font-weight: bold;
}

.navbar a:hover {
text-decoration: underline;
}

/* Burger menu button (mobile only) */
.burger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 4px;
}

.burger div {
width: 25px;
height: 3px;
background-color: white;
transition: 0.3s;
}

/* Navbar links */
.nav-links {
display: flex;
gap: 16px;
}

/* Hide menu on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 56px;
        right: 0;
        width: 100%;
        padding: 12px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

/* Body padding for fixed navbar */
body {
    padding-top: 56px;
}

/* Layout 2 kolom */
.layout {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 24px auto;
    padding: 0 8px;
    gap: 16px;
}

.left-column {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-content,
.comment-section {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
}

.main-content ul {
  list-style: none;
  padding: 0;
}

.main-content ul li {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.main-content ul li a {
  text-decoration: none;
  color: #444;
  display: inline-block;
  background: #f6f6f6;
  padding: 10px;
  min-width: 200px;
  color: #1e88e5;
}

.main-content ul li::before {
  content: "\1F9FE" ; /* Unicode bullet biasa */ 
  font-family: "Font Awesome 5 Free"; /* Sesuaikan dengan versi Font Awesome */
  font-weight: 900; /* 900 untuk fas (solid) */
  font-size: 20px; /* Ukuran lebih kecil dari teks biasa */
  margin-right: 8px;
  color: #373738;
}

.main-content img{
   max-width: 80%;
   height: auto;
   display: block;
   margin: 1em auto;
}
.thumbnail-wrapper img {
  max-width: 70%;
  max-height: 300px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 6px;
  display: block;
  margin: 1em auto;
}
.sidebar {
    flex: 1 1 300px;
    padding: 16px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 8px;
    height: fit-content;
}
.sidebar ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
.sidebar li {
  margin: 5px 0 5px 0;
}
.sidebar i {
  font-size: 25px;
  color: #000;
  margin-right: 10px;
}
/* Input teks biasa */
.comment-section input[type="text"] {
    max-width: 500px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Textarea */
.comment-section textarea {
    max-width: 500px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    resize: vertical; /* Biarkan user resize vertikal saja */
}

/* Style dasar tombol */
.comment-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

/* Efek hover */
.comment-btn:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Efek aktif (saat diklik) */
.comment-btn:active {
    background-color: #0d47a1;
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* Versi block (lebar penuh) */
.comment-btn.block {
    display: block;
    width: 100%;
}

/* Ukuran berbeda */
.comment-btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.comment-btn.large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Bungkus semua komentar */
.comment-list {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}

/* Setiap komentar */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list li {
  background-color: #f1f1f1;
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 700px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-list li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 10px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 8px solid #f1f1f1;
  border-bottom: 6px solid transparent;
}

.comment-list li strong {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 0.95em;
}

.comment-list li time {
  font-size: 0.75em;
  color: #888;
  display: block;
  margin-top: 6px;
}

.comment-list li .comment-text {
  font-size: 0.95em;
  line-height: 1.4;
  word-wrap: break-word;
}


#footer {
    background-color: #222; /* warna gelap, sesuaikan dengan navbar kamu */
    color: #fff;            /* teks putih */
    text-align: center;
    padding: 1em;
    font-size: 0.9em;
    margin-top: 2em;
}
#footer a {
    color: #ccc;            /* warna link abu-abu terang */
    text-decoration: none;
}
#footer a:hover {
    color: #fff;            /* hover lebih terang */
    text-decoration: underline;
}
hr {
  display: none;
}

pre {
    background: #f5f5f5;
    padding: 10px;
    overflow: auto;
    border-radius: 5px;
    font-size: 0.9em;
    max-height: 300px;
    max-width: 500px;
}

code {
    font-family: monospace;
    font-style: italic;              /* Agar miring */
    color: #555;                     /* Warna abu-abu lebih lembut daripada hitam */
}

.post-separator {
    margin: 2em 0;
    height: 1px;
    background: linear-gradient(to right, #ddd, #aaa, #ddd);
}

#notif {
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 16px;
  display: inline-block;
}

#pagination {
  text-align: center;
  margin: 20px auto;
}
@media (min-width: 768px) {
    .main-content {
        flex: 2;
    }

    .sidebar {
        flex: 1;
        margin-top: 0;
    }
}