/* =========================================
   PRESTASI HERO SECTION STYLING (UPDATED)
   ========================================= */
.prestasi-hero1 {
    background-color: #f4f7f6; /* Warna latar belakang terang yang bersih */
    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.9) 0%,
            transparent 50%
        ),
        linear-gradient(
            135deg,
            rgb(255, 255, 255) 0%,
            rgba(248, 249, 250, 0.5) 100%
        );
}

.prestasi-hero {
    background-color: #f8f9fa;
    position: relative;
    font-family: "Plus Jakarta Sans", sans-serif;

    /* Kunci section agar ornamen tidak melebarkan layar */
    overflow-x: hidden;
    width: 100%;

    /* Kombinasi Overlay Transparan & Gambar Dummy Perpustakaan */
    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%
        ),
        url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1920&q=80");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* =========================================
   EFEK GLOW LIGHT BERJALAN PADA GAMBAR/LOGO
   ========================================= */
.prestasi-glow-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden; /* Mencegah cahaya keluar dari batas wrapper */
    background-color: transparent; /* Sesuaikan jika logo butuh background putih */
}

/* Membuat garis cahaya */
.prestasi-glow-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;

    animation: light-sweep 4s infinite ease-in-out;
}

@keyframes light-sweep {
    0% {
        left: -150%;
    }
    85% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* =========================================
   KEUNGGULAN / WHY CHOOSE US SECTION
   ========================================= */

/* Warna Teks Khusus */
.prestasi-text-green {
    color: #198754 !important; /* Hijau (bisa diganti kode HEX lain jika ingin lebih tua/muda) */
}

.prestasi-text-gold {
    color: #d4af37 !important; /* Gold */
}

/* Box Icon Hijau */
.prestasi-icon-box-green {
    width: 60px;
    height: 60px;
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    transition: all 0.3s ease;
}

/* Box Icon Gold */
.prestasi-icon-box-gold {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
    transition: all 0.3s ease;
}

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

.prestasi-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Membalik warna Icon saat Card di-hover (Opsional, agar interaktif) */
.prestasi-modern-card:hover .prestasi-icon-box-green {
    color: #ffffff !important;
    background-color: #198754 !important;
}

.prestasi-modern-card:hover .prestasi-icon-box-gold {
    color: #ffffff !important;
    background-color: #d4af37 !important;
}

/* =========================================
   PROGRAM UNGGULAN SECTION STYLING
   ========================================= */
.prestasi-featured-programs {
    background-color: #fcfdfe;
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* Header Title & Ornamen Garis Emas */
.featured-main-title {
    font-family: "Playfair Display", "Merriweather", serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b1b3d;
    margin-bottom: 0.5rem;
}

.featured-title-divider {
    width: 60px;
    height: 3px;
    background-color: #e59d24; /* Warna garis emas */
    margin: 0 auto;
    border-radius: 2px;
}

/* Card Container */
.featured-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

/* Gambar Latar Belakang Kartu */
.featured-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    transition: transform 0.6s ease;
    z-index: 1;
}

.featured-card:hover .featured-card-bg {
    transform: scale(1.05);
}

/* Overlay Transparan Bergradien (Kiri Gelap Pekat -> Kanan Transparan) */
.featured-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Variasi Warna Gradient Masing-Masing Kartu */
.card-osn .featured-card-overlay {
    background: linear-gradient(
        90deg,
        rgba(3, 37, 51, 0.98) 0%,
        rgba(3, 37, 51, 0.92) 50%,
        rgba(3, 37, 51, 0.3) 85%,
        transparent 100%
    );
}

.card-ptn .featured-card-overlay {
    background: linear-gradient(
        90deg,
        rgba(196, 110, 10, 0.98) 0%,
        rgba(196, 110, 10, 0.9) 52%,
        rgba(196, 110, 10, 0.3) 85%,
        transparent 100%
    );
}

.card-akademik .featured-card-overlay {
    background: linear-gradient(
        90deg,
        rgba(8, 38, 79, 0.98) 0%,
        rgba(8, 38, 79, 0.9) 52%,
        rgba(8, 38, 79, 0.3) 85%,
        transparent 100%
    );
}

/* =========================================
   INFORMASI KEMITRAAN (ALUR & TNC) STYLING
   ========================================= */
.prestasi-page-header {
    background: linear-gradient(135deg, #0b1b3d 0%, #152c5c 100%);
    border-bottom: 4px solid #007c8a; /* Aksen Teal */
}

/* --- TNC SECTION (Syarat & Ketentuan) --- */
.prestasi-tnc-wrapper {
    background-color: #ffffff;
}

/* Sticky Sidebar Navigasi */
.prestasi-sticky-sidebar {
    position: sticky;
    top: 150px; /* Jarak dari atas layar saat di-scroll */
}

.prestasi-tnc-nav li {
    margin-bottom: 0.75rem;
}

.prestasi-tnc-nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding-left: 15px;
    border-left: 2px solid #eaeaea;
}

.prestasi-tnc-nav a:hover,
.prestasi-tnc-nav a:active {
    color: #007c8a; /* Teal */
    border-left-color: #007c8a;
    padding-left: 20px; /* Sedikit animasi geser */
}

/* Konten Teks */
.prestasi-tnc-content {
    color: #333333;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tnc-section {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #eaeaea;
}

.tnc-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Custom Lists */
.custom-bullet-list {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.custom-bullet-list li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: none;
}

.custom-bullet-list li::before {
    content: "•";
    color: #0b1b3d; /* Warna biru gelap */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.custom-check-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.custom-check-list li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: none;
}

.custom-check-list li::before {
    content: "\f00c"; /* FontAwesome Check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #198754; /* Success Green */
    position: absolute;
    left: -1.5rem;
    top: 2px;
    font-size: 0.9rem;
}

/* =========================================
   STYLING TOMBOL HERO (PRESTASI BUTTONS)
   ========================================= */
.prestasi-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Tombol Primary (Teal) */
.prestasi-btn-primary {
    background-color: #007c8a;
    color: #ffffff !important;
    border: 1px solid #007c8a;
}
.prestasi-btn-primary:hover {
    background-color: #005f6b;
    border-color: #005f6b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 138, 0.3);
}

/* Tombol Outline (Gelap) */
.prestasi-btn-outline {
    background-color: transparent;
    color: #0b1b3d !important;
    border: 1.5px solid #0b1b3d;
}
.prestasi-btn-outline:hover {
    background-color: #0b1b3d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 27, 61, 0.2);
}

/* =========================================
   PERBAIKAN FLOATING CTA BAR & HELPER CLASSES
   ========================================= */
.mt-n5 {
    margin-top: -3rem !important; /* Menarik CTA Bar ke atas agar overlap dengan border bawah Hero */
}

/* Border separator yang hanya muncul di layar besar */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}
/* Tipografi di dalam Card */
.program-code {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.program-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 1rem;
    max-width: 85%;
}

.program-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 78%;
}

/* Link Navigasi Bawah "Selengkapnya ->" */
.program-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.program-link:hover {
    transform: translateX(5px);
}

/* Penyesuaian Warna Teks Khusus Tiap Kartu */
.text-cyan {
    color: #00bcd4 !important;
}
.link-cyan {
    color: #26c6da !important;
}

.text-white {
    color: #ffffff !important;
}
.link-white {
    color: #ffffff !important;
}

.text-light-blue {
    color: #4da6ff !important;
}
.link-light-blue {
    color: #69b4ff !important;
}

/* Responsif Mobile & Layar Kecil */
@media (max-width: 767.98px) {
    .featured-card {
        height: 380px;
    }

    .featured-card-overlay {
        padding: 2rem 1.5rem;
    }

    .program-code {
        font-size: 2rem;
    }

    .program-title {
        font-size: 1.05rem;
        max-width: 90%;
    }

    .program-desc {
        font-size: 0.8rem;
        max-width: 88%;
    }
}

/* Tipografi & Warna Utama */
.text-primary-dark {
    color: #0b1b3d !important; /* Biru Dongker */
}

.text-teal {
    color: #007c8a !important; /* Hijau Kebiruan (Teal) */
}

.text-teal-light {
    color: #48c4ce !important; /* Highlight Teal Terang */
}

.text-orange {
    color: #f28b00 !important; /* Oranye dari logo */
}

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

.bg-teal {
    background-color: #007c8a !important;
}

.prestasi-title {
    font-family: "Playfair Display", "Merriweather", serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

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

/* =========================================
   CTA BAR BAWAH (Info Box)
   ========================================= */
.prestasi-cta-bar {
    border-radius: 16px;
}

.border-light-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.prestasi-cta-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.prestasi-cta-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.prestasi-cta-card h6 {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.prestasi-cta-card small {
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.3;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 991.98px) {
    .prestasi-title {
        font-size: 2.25rem;
    }

    .prestasi-cta-bar .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding-bottom: 1rem;
    }

    .prestasi-cta-bar {
        text-align: center;
    }

    .prestasi-cta-card {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .prestasi-title {
        font-size: 1.8rem;
    }
    h2.lh-base {
        font-size: 1.35rem;
    }
}

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

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

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

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

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

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

.prestasi-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 */
.prestasi-modern-card:hover h6 {
    color: #212529 !important;
}

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

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

/* 2. Warna Biru untuk Background Icon */
.prestasi-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) {
    #prestasiScopeContainer .col:nth-child(n + 6) {
        display: none;
    }

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

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

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

@media (max-width: 767.98px) {
    #prestasiScopeContainer {
        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;
    }

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

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

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

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

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

.prestasi-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) */
.prestasi-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 */
}

.prestasi-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);
}

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

/* Styling Kartu Paket */
.prestasi-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;
}

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

.prestasi-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 */
.prestasi-pkg-list li {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: start;
    gap: 8px;
}
.prestasi-pkg-list li i {
    color: #198754; /* Success Green */
    margin-top: 3px;
    font-size: 0.8rem;
}

/* Tombol Beli */
.prestasi-btn-pkg {
    background-color: #0b1b3d;
    color: #ffffff;
    border-radius: 50rem;
    transition: all 0.3s ease;
}
.prestasi-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 */
    #prestasiPackageContainer .col:nth-child(n + 5) {
        display: none;
    }
    /* Tampilkan saat class 'show-all' aktif */
    #prestasiPackageContainer.show-all .col:nth-child(n + 5) {
        display: block;
        animation: prestasiFadeIn 0.5s ease-out;
    }
}

@keyframes prestasiFadeIn {
    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) {
    #prestasiPackageContainer {
        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;
    }

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

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

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

.prestasi-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) */
.prestasi-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 */
.prestasi-btn-outline {
    color: #0b1b3d;
    border: 1px solid #0b1b3d;
    transition: all 0.3s ease;
}
.prestasi-btn-outline:hover {
    background-color: #0b1b3d;
    color: #ffffff;
}

/* 3. Logic Tampilan Desktop (Tampil Hanya 5 Buku / 1 Baris) */
@media (min-width: 992px) {
    #prestasiBookCatalog .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) {
    #prestasiBookCatalog {
        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;
    }

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

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

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

/* Lebar mobile yang sangat kecil */
@media (max-width: 450px) {
    #prestasiBookCatalog {
        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;
    }
}

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

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

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

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

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

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

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

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

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

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

/* =========================================
   prestasi FULL BOOK CATALOG SECTION
   ========================================= */

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

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

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

.prestasi-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;
}

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

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

.prestasi-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 */
}

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

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

/* =========================================
   CARD BUKU & EFEK HOVER
   ========================================= */
.prestasi-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;
}

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

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

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

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

.prestasi-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);
}

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

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

.prestasi-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;
}

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

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

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

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

.prestasi-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;
}

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

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

/* Desktop & Tablet Besar: Grid 5 Kolom */
@media (min-width: 992px) {
    .prestasi-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) {
    .prestasi-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) {
    .prestasi-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) */
    .prestasi-card-body {
        padding: 0.75rem;
    }
    .prestasi-book-category {
        font-size: 0.65rem;
    }
    .prestasi-book-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    .prestasi-book-author {
        font-size: 0.7rem;
    }
    .prestasi-price-normal {
        font-size: 0.7rem;
        display: block; /* Harga coret diturunkan agar rapi */
        margin-right: 0;
    }
    .prestasi-price-final {
        font-size: 1rem;
    }
    .prestasi-btn-cart {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    .prestasi-badge-floating {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}
