/* ====== Ponpes Buku Style ====== */

/* Container Title (halaman katalog) */
.ponpes-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 40px;
    text-align: center;
    color: #2c3e50;
}

/* Grid Layout */
.buku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* Card Style */
.buku-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.buku-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Thumbnail */
.buku-thumb img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Info Section */
.buku-info {
    padding: 15px;
    text-align: center;
}
.buku-title {
    font-size: 1.05rem;
    margin: 10px 0;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    min-height: 2.6em; /* biar rata tinggi */
}
.buku-title a {
    text-decoration: none;
    color: inherit;
}
.buku-title a:hover {
    color: #007c3d;
}

/* Harga */
.harga {
    font-size: 0.95rem;
    font-weight: bold;
    color: #007c3d;
    margin: 6px 0 12px;
}

/* Button */
.buku-btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    background: #007c3d;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s;
}
.buku-btn:hover {
    background: #005f2b;
}

/* Cover buku tetap proporsional */
.card-img-top {
    height: 260px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

/* ===== Detail Buku ===== */
.ponpes-buku-single {
    max-width: 800px;
    margin: 40px auto;
}
.single-buku-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}
.buku-cover {
    margin: 20px 0;
    text-align: center;
}
.detail-cover {
    border-radius: 8px;
    max-width: 260px;
    height: auto;
}
.buku-content {
    margin: 20px 0;
    line-height: 1.6;
}
.harga {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 20px 0;
    color: #007c3d;
}
.back-btn-wrap {
    margin: 30px 0;
}
.kembali-btn {
    background: #0d6b3c;
}
.kembali-btn:hover {
    background: #14894e;
}

/* ====== Cari Buku ====== */
.buku-search-form {
    margin-bottom: 20px;
}

.buku-search-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.buku-search-btn,
.buku-reset-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.buku-search-btn {
    background: #0073aa;
    color: #fff;
}

.buku-reset-btn {
    background: #aaa;
    color: #fff;
}

