/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
    background: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

/* Container umum */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Header */
header {
    background: #004080;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 1.8rem;
}

/* Navigasi */
nav {
    background: #0066cc;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: 0.3s;
}

nav a:hover {
    background: #004d99;
}

/* Grid koleksi */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* Kartu koleksi */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #004080;
}

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
}

.card-body a {
    text-align: center;
    background: #0066cc;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.card-body a:hover {
    background: #004d99;
}

/* Detail halaman */
.detail {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.detail h2 {
    margin-bottom: 15px;
    color: #004080;
}

.detail p {
    margin-bottom: 10px;
    color: #444;
}

/* Tombol umum */
.btn {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #004d99;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 8px;
}

.pagination a {
    padding: 8px 12px;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.pagination a:hover {
    background: #004d99;
}

/* Footer */
footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Responsif */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }
    nav a {
        padding: 10px;
        font-size: 0.9rem;
    }
    .card-body h3 {
        font-size: 1rem;
    }
}
