/* =========================================
   PUBLISHER HERO SECTION STYLING
   ========================================= */
.publisher-hero {
    background-color: #f8f9fa;
    position: relative;
    font-family: "Plus Jakarta Sans", sans-serif;
    overflow-x: hidden;
    width: 100%;

    background-image:
        radial-gradient(
            circle at 10% 20%,
            rgba(255, 255, 255, 0.8) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(230, 230, 230, 0.4) 0%,
            transparent 50%
        ),
        linear-gradient(
            135deg,
            rgb(255, 255, 255) 0%,
            rgba(248, 249, 250, 0.534) 60%,
            rgba(255, 255, 255, 0.027) 100%
        ),
        var(--hero-bg); /* <-- Pastikan baris ini ada di paling bawah tumpukan background */

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Garis Lengkung Emas (Background Ornamen) */
.publisher-bg-lines::before,
.publisher-bg-lines::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.publisher-bg-lines::before {
    width: 600px;
    height: 600px;
    left: -200px;
    bottom: -100px;
    border-width: 1.5px 0 0 1.5px;
}
.publisher-bg-lines::after {
    width: 800px;
    height: 800px;
    right: -250px;
    top: -150px;
    border-width: 0 1.5px 1.5px 0;
}

/* =========================================
   TEKS, TIPOGRAFI & TOMBOL
   ========================================= */
.publisher-logo-img {
    height: 75px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.publisher-title {
    font-family: "Playfair Display", "Merriweather", serif; /* Font Serif */
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.text-primary-dark {
    color: #0b1b3d !important;
}

.publisher-desc {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Tombol Kustom */
.publisher-btn-dark {
    background-color: #0b1b3d;
    color: #ffffff;
    border: 1px solid #0b1b3d;
    transition: all 0.3s ease;
}
.publisher-btn-dark:hover {
    background-color: #152c5c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 27, 61, 0.2);
}

.publisher-btn-outline {
    background-color: transparent;
    color: #0b1b3d;
    border: 1px solid #0b1b3d;
    transition: all 0.3s ease;
}
.publisher-btn-outline:hover {
    background-color: rgba(11, 27, 61, 0.05);
    color: #0b1b3d;
}

/* =========================================
   PODIUM MARMER
   ========================================= */
.publisher-podium {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120px;
    background: #fdfdfd;
    border-radius: 50%;
    box-shadow:
        0 10px 0 #e6e6e6,
        /* Ketebalan podium */ 0 15px 15px rgba(0, 0, 0, 0.1),
        /* Bayangan jatuh ke lantai */ inset 0 -10px 20px rgba(0, 0, 0, 0.03),
        /* Bayangan kedalaman */ inset 0 2px 5px rgba(255, 255, 255, 1); /* Highlight cahaya */
    z-index: 1;
    background-image:
        linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.01) 25%,
            transparent 25%,
            transparent 75%,
            rgba(0, 0, 0, 0.01) 75%,
            rgba(0, 0, 0, 0.01)
        ),
        linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.01) 25%,
            transparent 25%,
            transparent 75%,
            rgba(0, 0, 0, 0.01) 75%,
            rgba(0, 0, 0, 0.01)
        );
    background-size: 20px 20px;
}

/* =========================================
   WRAPPER BUKU 3D
   ========================================= */
.publisher-books-wrapper {
    perspective: 1000px; /* Perspektif untuk efek 3D */
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Bagian bawah buku sejajar */
    padding-bottom: 20px;
}

/* Pengaturan Umum Buku (Proporsi & 3D) */
.publisher-book-3d {
    position: relative;
    transform-style: preserve-3d; /* Render efek 3D */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -15px 25px 30px rgba(0, 0, 0, 0.25);
    /* Mengunci rasio persis seperti buku fisik 15.5 x 23 cm */
    aspect-ratio: 15.5 / 23;
}

/* Cover Depan (Tempat gambar cover nanti) */
.book-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 2px 5px 5px 2px;
    overflow: hidden;
    z-index: 2; /* Cover di depan lembaran kertas */
}

/* Sisi Kiri (Tulang Buku / Spine) */
.book-spine {
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    transform-origin: right center;
    transform: rotateY(-90deg); /* Ditekuk ke belakang 90 derajat */
    border-radius: 3px 0 0 3px;
    box-shadow:
        inset 3px 0 8px rgba(255, 255, 255, 0.2),
        inset -2px 0 5px rgba(0, 0, 0, 0.4);
}

/* Sisi Kanan (Ketebalan Lembaran Kertas) */
.publisher-book-3d::after {
    content: "";
    position: absolute;
    top: 1%;
    right: -20px;
    width: 20px;
    height: 98%;
    transform-origin: left center;
    transform: rotateY(90deg); /* Ditekuk ke belakang membentuk sisi kanan */
    background-color: #fcfcfc;
    /* Motif garis-garis halus lembaran kertas */
    background-image: repeating-linear-gradient(
        to right,
        #ffffff 0px,
        #ffffff 2px,
        #dcdcdc 3px
    );
    border-radius: 0 3px 3px 0;
}

/* Sisi Atas (Lembaran Kertas Bagian Atas) */
.publisher-book-3d::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 1px;
    width: calc(100% - 2px);
    height: 20px;
    transform-origin: bottom center;
    transform: rotateX(90deg); /* Ditekuk ke belakang membentuk sisi atas */
    background-color: #fcfcfc;
    /* Motif garis-garis halus lembaran kertas */
    background-image: repeating-linear-gradient(
        to top,
        #ffffff 0px,
        #ffffff 2px,
        #dcdcdc 3px
    );
}

/* =========================================
   POSISI & SUDUT BUKU MASING-MASING
   ========================================= */
.book-left {
    width: 150px; /* Tinggi akan menyesuaikan aspect ratio otomatis */
    transform: translateX(40px) translateZ(-60px) rotateY(25deg); /* Serong kanan */
    z-index: 1;
}
.book-left .book-spine {
    background: #1a1a1a;
}

.book-center {
    width: 195px;
    transform: translateZ(20px) rotateY(-15deg); /* Serong kiri agar ketebalan terlihat */
    z-index: 3;
}
.book-center .book-spine {
    background: #19315c;
}

.book-right {
    width: 160px;
    transform: translateX(-30px) translateZ(-40px) rotateY(-25deg); /* Serong tajam */
    z-index: 2;
}
.book-right .book-spine {
    background: #1f2228;
}

/* Efek Hover (Membuka / Mengangkat Buku) */
.publisher-books-wrapper:hover .book-center {
    transform: translateZ(50px) rotateY(-10deg) translateY(-15px);
}
.publisher-books-wrapper:hover .book-left {
    transform: translateX(20px) translateZ(-40px) rotateY(20deg)
        translateY(-10px);
}
.publisher-books-wrapper:hover .book-right {
    transform: translateX(-15px) translateZ(-20px) rotateY(-20deg)
        translateY(-10px);
}

/* =========================================
   BADGE EMAS & INFO BAR BAWAH
   ========================================= */
.publisher-gold-badge {
    position: absolute;
    bottom: -20px;
    right: 50px;
    width: 145px;
    height: 145px;
    background: linear-gradient(135deg, #fcebb6 0%, #e8bc51 50%, #c4942d 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(196, 148, 45, 0.4);
}
.publisher-gold-badge span {
    font-size: 0.65rem;
    color: #3b2800;
}

.publisher-info-bar {
    background-color: #0b1b3d;
}
.publisher-icon-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    flex-shrink: 0;
}
.publisher-icon-box i {
    color: #e8bc51 !important;
}

/* =========================================
   RESPONSIVE DESIGN (Menyesuaikan Skala)
   ========================================= */

@media (max-width: 1199.98px) {
    .publisher-books-wrapper {
        transform: scale(0.9);
        transform-origin: bottom center;
    }
}

@media (max-width: 991.98px) {
    .publisher-title {
        font-size: 2.5rem;
    }
    .publisher-books-wrapper {
        transform: scale(0.85);
        transform-origin: bottom center;
        height: 350px;
        margin-top: 2rem;
    }
    .publisher-podium {
        width: 90%;
        height: 90px;
        bottom: -20px;
    }
    .publisher-gold-badge {
        right: 25%;
        transform: translateX(50%);
        bottom: -30px;
    }
}

@media (max-width: 767.98px) {
    .publisher-books-wrapper {
        transform: scale(0.75);
        height: 320px;
    }
    .publisher-podium {
        height: 80px;
    }
    .publisher-gold-badge {
        width: 130px;
        height: 130px;
        right: 50%;
        transform: translateX(50%);
        bottom: -30px;
    }
    .publisher-gold-badge span {
        font-size: 0.6rem;
    }
}

@media (max-width: 575.98px) {
    .publisher-title {
        font-size: 2.1rem;
    }
    .publisher-logo-img {
        height: 60px;
    }
    .publisher-books-wrapper {
        transform: scale(0.95);
        transform-origin: bottom center;
        height: 290px;
        margin-top: -10px;
    }
    .publisher-podium {
        width: 95%; /* Menyesuaikan agar marmer terekspos rapi */
        height: 65px;
        bottom: -15px;
    }
    .publisher-gold-badge {
        width: 105px;
        height: 105px;
        right: 25%;
        transform: translateX(50%);
        bottom: -15px;
    }
    .publisher-gold-badge span {
        font-size: 0.55rem;
    }
    .publisher-info-bar .row > div {
        margin-bottom: 0.5rem;
    }
}

.publisher-modern-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.publisher-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    background-color: #ffffff !important;
}

/* Kunci warna teks H6 agar tetap gelap (text-dark) saat di-hover */
.publisher-modern-card:hover h6 {
    color: #212529 !important;
}

/* Kunci warna teks small agar tetap abu-abu (text-muted) saat di-hover */
.publisher-modern-card:hover small {
    color: #6c757d !important;
}

/* Kunci warna icon agar tetap biru saat card di-hover */
.publisher-modern-card:hover .publisher-icon-box-blue {
    color: #0b1b3d !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* 2. Warna Biru untuk Background Icon */
.publisher-icon-box-blue {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0b1b3d !important;
}

/* 3. Logic Tampilan Desktop (Hide item > 5) */
@media (min-width: 768px) {
    #publisherScopeContainer .col:nth-child(n + 6) {
        display: none;
    }

    #publisherScopeContainer.show-all .col:nth-child(n + 6) {
        display: block;
        animation: publisherFadeIn 0.4s ease-out;
    }
}

@keyframes publisherFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    #publisherScopeContainer {
        display: grid !important;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 0.5rem);
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
        /* Perbaikan Bug Terpotong Kiri: Paksa mulai dari kiri di Mobile */
        justify-content: start !important;
    }

    #publisherScopeContainer > .col {
        width: 100% !important;
        padding: 0;
        scroll-snap-align: start;
        height: 100%;
    }

    #publisherScopeContainer::-webkit-scrollbar {
        display: none;
    }

    #publisherScopeContainer {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Tambahan CSS Khusus untuk Section Ini */
.publisher-transition-hover {
    transition: all 0.3s ease;
}
.publisher-transition-hover:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Gunakan class card yang sudah dibuat di tahap sebelumnya */
.publisher-modern-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.publisher-modern-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.publisher-parallax-section {
    position: relative;
    /* Kombinasi Overlay Gelap Transparan & Gambar Background */
    background-image:
        linear-gradient(rgba(11, 27, 61, 0.55), rgba(11, 27, 61, 0.45)),
        url("https://images.unsplash.com/photo-1481627834876-b7833e8f5570?q=80&w=1920&auto=format&fit=crop");

    /* Efek Parallax */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* Jarak atas dan bawah */
    padding: 5rem 0;
}

/* Tipografi Teks Statistik (Extra Bold & Bold Putih) */
.publisher-stat-number {
    color: #ffffff !important;
    font-weight: 800 !important; /* Extra Bold */
    font-size: 2.5rem; /* Ukuran lebih besar agar menonjol */
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3); /* Bayangan teks agar tidak menyatu dengan background */
}

.publisher-stat-text {
    color: #ffffff !important;
    font-weight: 700 !important; /* Bold */
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.publisher-bg-cream {
    background-color: #f0f5fa;
    border-top: 1px solid #e1e9f2;
    border-bottom: 1px solid #e1e9f2;
}

/* Styling Kartu Paket */
.publisher-pkg-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.publisher-pkg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.publisher-pkg-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37; /* Gold */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.75rem;
}

/* List Fasilitas */
.publisher-pkg-list li {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: start;
    gap: 8px;
}
.publisher-pkg-list li i {
    color: #198754; /* Success Green */
    margin-top: 3px;
    font-size: 0.8rem;
}

/* Tombol Beli */
.publisher-btn-pkg {
    background-color: #0b1b3d;
    color: #ffffff;
    border-radius: 50rem;
    transition: all 0.3s ease;
}
.publisher-btn-pkg:hover {
    background-color: #d4af37;
    color: #ffffff;
}

/* -----------------------------------------
       LOGIC RESPONSIVE & GRID
       ----------------------------------------- */

/* DESKTOP & TABLET: Tampilkan 1 Baris (Max 4 item), Sembunyikan Sisanya */
@media (min-width: 768px) {
    /* Sembunyikan item ke-5 dan seterusnya */
    #publisherPackageContainer .col:nth-child(n + 5) {
        display: none;
    }
    /* Tampilkan saat class 'show-all' aktif */
    #publisherPackageContainer.show-all .col:nth-child(n + 5) {
        display: block;
        animation: publisherFadeIn 0.5s ease-out;
    }
}

@keyframes publisherFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE: Tampilkan 1 Baris Saja, Scroll Horizontal (1 Data dominan) */
@media (max-width: 767.98px) {
    #publisherPackageContainer {
        display: grid !important;
        grid-template-rows: 1fr; /* Hanya 1 baris */
        grid-auto-flow: column;
        /* Lebar 85% agar kartu sebelah terlihat sedikit untuk indikasi bisa di-scroll */
        grid-auto-columns: 85%;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem;
        justify-content: start !important;
        margin-left: 0;
        margin-right: 0;
    }

    #publisherPackageContainer > .col {
        width: 100% !important;
        padding: 0;
        scroll-snap-align: center; /* Fokus ke tengah saat di-scroll */
        height: 100%;
    }

    #publisherPackageContainer::-webkit-scrollbar {
        display: none; /* Sembunyikan scrollbar agar rapi */
    }
    #publisherPackageContainer {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.publisher-book-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.publisher-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* 2. Rasio Gambar Cover Buku Standar A5 (15.5 x 23) */
.publisher-cover-box {
    aspect-ratio: 15.5 / 23;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

/* Tombol Kustom */
.publisher-btn-outline {
    color: #0b1b3d;
    border: 1px solid #0b1b3d;
    transition: all 0.3s ease;
}
.publisher-btn-outline:hover {
    background-color: #0b1b3d;
    color: #ffffff;
}

/* 3. Logic Tampilan Desktop (Tampil Hanya 5 Buku / 1 Baris) */
@media (min-width: 992px) {
    #publisherBookCatalog .col:nth-child(n + 6) {
        display: none; /* Sembunyikan buku ke-6 dan seterusnya di layar besar */
    }
}

/* 4. Logic Tampilan Mobile (Scroll Horizontal) */
@media (max-width: 767.98px) {
    #publisherBookCatalog {
        display: grid !important;
        grid-template-rows: 1fr;
        grid-auto-flow: column;
        /* Lebar diset 45% agar card selanjutnya terlihat ngintip (bisa digeser) */
        grid-auto-columns: calc(45% - 0.5rem);
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        justify-content: start !important;
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
    }

    #publisherBookCatalog > .col {
        width: 100% !important;
        padding: 0;
        scroll-snap-align: start;
        height: 100%;
    }

    #publisherBookCatalog::-webkit-scrollbar {
        display: none;
    }

    #publisherBookCatalog {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Lebar mobile yang sangat kecil */
@media (max-width: 450px) {
    #publisherBookCatalog {
        grid-auto-columns: calc(55% - 0.5rem);
    }
}

.modern-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    background-color: #ffffff !important;
}

.modern-card:hover h6 {
    color: #212529 !important;
}

.modern-card:hover small {
    color: #6c757d !important;
}

.modern-card:hover .icon-box-blue {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.icon-box-blue {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

@media (min-width: 768px) {
    #scopeContainer .col:nth-child(n + 6) {
        display: none;
    }

    #scopeContainer.show-all .col:nth-child(n + 6) {
        display: block;
        animation: fadeIn 0.4s ease-out;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    #scopeContainer {
        display: grid !important;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 0.5rem);
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
    }

    #scopeContainer > .col {
        width: 100% !important;
        padding: 0;
        scroll-snap-align: start;
        height: 100%;
    }

    #scopeContainer::-webkit-scrollbar {
        display: none;
    }

    #scopeContainer {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* =========================================
   PUBLISHER LAYANAN KUSTOM STYLING
   ========================================= */
.publisher-bg-dark-blue {
    background: linear-gradient(135deg, #0b1b3d 0%, #152c5c 100%);
    color: #ffffff;
}

.publisher-text-gold {
    color: #d4af37 !important;
}

.publisher-bg-gold-light {
    background-color: rgba(212, 175, 55, 0.15) !important;
    color: #d4af37 !important;
}

.publisher-badge-gold {
    background-color: #d4af37;
    color: #0b1b3d;
    font-weight: 700;
}

.publisher-kti-card {
    border: 2px solid #0b1b3d;
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.publisher-kti-card:hover {
    box-shadow: 0 15px 30px rgba(11, 27, 61, 0.15);
}

.publisher-price-box {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.publisher-price-box:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #d4af37;
}

.publisher-price-box.gold {
    background-color: #ffffff;
    border: 1px solid #d4af37;
}

.publisher-modern-card:hover h6.publisher-text-gold {
    color: #d4af37 !important;
}

/* =========================================
   PUBLISHER FULL BOOK CATALOG SECTION
   ========================================= */

.publisher-catalog-section {
    background-color: #f8f9fa;
    padding: 3rem 0 5rem 0;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.publisher-section-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0b1b3d;
}

/* =========================================
   SEARCH BAR & FILTER UI
   ========================================= */
.publisher-search-wrapper {
    position: relative;
    width: 100%;
}

.publisher-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.publisher-search-input:focus {
    border-color: #0b1b3d;
    box-shadow: 0 0 0 0.25rem rgba(11, 27, 61, 0.1);
    outline: none;
}

.publisher-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #6c757d;
}

.publisher-filter-btn {
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    border-radius: 50rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap; /* Mencegah teks turun ke bawah */
}

.publisher-filter-btn:hover,
.publisher-filter-btn.active {
    background-color: #0b1b3d;
    color: #ffffff;
    border-color: #0b1b3d;
}

/* Menyembunyikan scrollbar pada filter kategori agar rapi */
.publisher-filter-container::-webkit-scrollbar {
    display: none;
}
.publisher-filter-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   CARD BUKU & EFEK HOVER
   ========================================= */
.publisher-book-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.publisher-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Rasio Gambar Cover Buku Standar A5 */
.publisher-cover-box {
    aspect-ratio: 15.5 / 23;
    width: 100%;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.publisher-book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.publisher-book-card:hover .publisher-book-img {
    transform: scale(1.05);
}

.publisher-badge-floating {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.publisher-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.publisher-book-category {
    font-size: 0.75rem;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.publisher-book-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0b1b3d;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publisher-book-author {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: auto;
}

.publisher-price-container {
    margin-top: 1rem;
}

.publisher-price-normal {
    font-size: 0.8rem;
    color: #adb5bd;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.publisher-price-final {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0b1b3d;
}

.publisher-btn-cart {
    width: 100%;
    background-color: transparent;
    color: #0b1b3d;
    border: 1px solid #0b1b3d;
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.publisher-btn-cart:hover {
    background-color: #0b1b3d;
    color: #ffffff;
}

/* =========================================
   LOGIC RESPONSIVE GRID (FULL VERTICAL)
   ========================================= */

/* Desktop & Tablet Besar: Grid 5 Kolom */
@media (min-width: 992px) {
    .publisher-catalog-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (Portrait): Grid 3 atau 4 Kolom */
@media (min-width: 768px) and (max-width: 991.98px) {
    .publisher-catalog-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobile: Grid 2 Kolom ke bawah (Vertical Scroll) */
@media (max-width: 767.98px) {
    .publisher-catalog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem; /* Jarak diperkecil agar tidak terlalu renggang di HP */
    }

    /* Penyesuaian Font Size Khusus Mobile (Agar Muat di 2 Kolom) */
    .publisher-card-body {
        padding: 0.75rem;
    }
    .publisher-book-category {
        font-size: 0.65rem;
    }
    .publisher-book-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    .publisher-book-author {
        font-size: 0.7rem;
    }
    .publisher-price-normal {
        font-size: 0.7rem;
        display: block; /* Harga coret diturunkan agar rapi */
        margin-right: 0;
    }
    .publisher-price-final {
        font-size: 1rem;
    }
    .publisher-btn-cart {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    .publisher-badge-floating {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}
