.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
    border: 1px solid #e3e7ef;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 0;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-form button {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    cursor: pointer;
}

.search-form i {
    font-size: 16px;
    color: #777;
}

.search-form:focus-within {
    border-color: #2f6bff;
    box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.1);
}

.category-list {
    list-style: none; /* hilangin bullet */
    margin: 0;
    padding: 0;
}

.category-list li + li {
    margin-top: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e5e9f2;
    padding: 10px 14px;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-list a span {
    color: #6b7280;
    font-size: 13px;
}

.category-list a:hover {
    background: #eef4ff;
    border-color: #3366ff;
    color: #1d4ed8;
}

/* Container tiap post */
.post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e6e6;
}

/* Gambar kecil sidebar */
.post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

/* Bungkus teks */
.post-item div {
    flex: 1;
}

/* Judul */
.post-item h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.post-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.post-item h4 a:hover {
    color: #0d6efd; /* ganti sesuai theme */
}

/* Tanggal */
.post-item time {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Opsional: kasih efek saat hover */
.post-item:hover img {
    transform: scale(1.02);
}

.gallery-card {
    width: 100%;
    /* Mengunci rasio foto 1:1 (kotak) atau 4:3 agar sejajar ke samping */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f8f9fa;
    position: relative;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto otomatis terpotong rapi di tengah tanpa gepeng */
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

