:root{
    --primary:#0d6efd;
    --secondary:#198754;
    --light:#f8f9fa;
    --dark:#212529;
}
html{
    scroll-behavior:smooth;
}
body{
    font-family:'Segoe UI',sans-serif;
    background:#f5f7fa;
    overflow-x:hidden;
}

section{
    scroll-margin-top:90px;
}

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f1f5f9;
    border-radius:20px;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        #0d6efd,
        #198754
    );
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(
        180deg,
        #0b5ed7,
        #157347
    );
}

.input-group-text{
    background:#f8f9fa;
    border-right:none;
}

.input-group .form-control{
    border-left:none;
}

.input-group .form-control:focus{
    box-shadow:none;
}

.navbar{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(0,0,0,.15);
    backdrop-filter:blur(10px);
}

.navbar .nav-link,
.navbar-brand{
    color:#fff !important;
}

.navbar .nav-link{
    font-weight:500;
    margin:0 5px;
}

.navbar .nav-link:hover{
    color:#0d6efd;
}

.navbar .btn{
    font-weight:600;
}

.navbar-logo{
    width:40px;
    height:40px;
    object-fit:contain;
}

.navbar-brand{
    text-decoration:none;
}

.navbar-brand div{
    line-height:1.1;
}

@media (max-width:576px){

    .navbar-logo{
        width:40px;
        height:40px;
    }

    .navbar-brand .fw-bold{
        font-size:20px;
    }

    .swiper-slide{
        display:flex;
        justify-content:center;
    }

    .koleksi-section .card{
        width:260px;
        margin:auto;
    }

    .cover-slide{
        width:300px;
        height:320px;
        margin:10px 0 auto;
        object-fit:contain;
        padding:0;
    }

    .koleksi-section .card-body h6,
    .koleksi-section .card-body p,
    .koleksi-section .card-body .badge{
        margin-left:10px;
    }

     .swiper-nav{
        padding:0 50px;
    }
}

.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    overflow:hidden;
}

.hero-video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    animation:zoomVideo 20s linear infinite alternate;
}

@keyframes zoomVideo{
    from{
        transform:scale(1);
    }
    to{
        transform:scale(1.1);
    }
}

.hero-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(
        rgba(13,110,253,.45),
        rgba(25,135,84,.45)
    );
    z-index:2;
}

.hero{
    position:relative;
    min-height:100vh;
    overflow:hidden;
}

.ebook-cover{
    height:320px;
    object-fit:cover;
}

@media (min-width:1200px){

    .col-xl-custom{
        width:20%;
    }

}

@media (max-width:991px){

    .ebook-cover{
        height:280px;
    }

}

@media (max-width:767px){

    .ebook-cover{
        height:240px;
    }

    .card-body{
        padding:12px;
    }

    .card-body h6{
        font-size:14px;
        min-height:38px;
    }

}

@media (max-width:576px){

    .ebook-cover{
        height:220px;
    }

    .card-body h6{
        font-size:13px;
    }

    .btn{
        font-size:12px;
    }

}

.video-control{
    position:absolute;
    right:25px;
    bottom:25px;
    z-index:10;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,.9);
    color:#0d6efd;

    box-shadow:0 5px 15px rgba(0,0,0,.2);

    transition:.3s;
}

.video-control:hover{
    transform:scale(1.08);
}

.video-control i{
    font-size:18px;
}
.hero-content{
    position:relative;
    z-index:3;
    color:white;
}

.hero-subtitle{
    display:block;
    font-size:18px;
    margin-bottom:15px;
    opacity:.9;
}

.hero-content h1{
    font-size:3rem;
    font-weight:800;
    margin-bottom:20px;
}

.hero-content p{
    font-size:1.25rem;
    max-width:700px;
    margin-bottom:20px;
}

.hero-search{
    max-width:900px;
}

.hero-search .input-group{
    flex-wrap:nowrap;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.2);
}

.hero-search .input-group-text{
    border:none;
    background:#fff;
    padding:0 20px;
}

.hero-search .form-control{
    border:none;
    min-height:60px;
}

.hero-search .btn{
    min-width:150px;
    border-radius:0;
    font-weight:600;
}

@media (max-width:576px){

    .hero-search .input-group-text{
        padding:0 12px;
    }

    .hero-search .form-control{
        min-height:50px;
        font-size:14px;
    }

    .hero-search .btn{
        min-width:90px;
        padding:0 15px !important;
        font-size:14px;
    }

}

.section-title{
    font-weight:700;
    margin-bottom:30px;
    text-align:center;
}

.stats-card{
    background:white;
    border-radius:15px;
    padding:25px;
    text-align:center;
    transition:.3s;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.stats-card:hover{
    transform:translateY(-5px);
}

.stats-card i{
    font-size:2rem;
    color:var(--primary);
}

.bukuSwiper{
    padding-bottom:20px;
}

.swiper-nav{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:20px;
}

/* BUTTON STYLE */
.swiper-button-next,
.swiper-button-prev{
    position:static !important;
    width:46px;
    height:46px;
    margin:0 !important;

    background:#fff;
    border-radius:50%;
    box-shadow:0 6px 18px rgba(0,0,0,.12);

    display:flex;
    align-items:center;
    justify-content:center;

    color:#1e293b !important;
    transition:.25s ease;
}

/* HOVER EFFECT */
.swiper-button-next:hover,
.swiper-button-prev:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.swiper-button-next::after,
.swiper-button-prev::after{
    display:none;
}

.swiper-button-next i,
.swiper-button-prev i{
    font-size:22px;
    color:#1e293b;
}

.cover-slide{
    width:100%;
    height:320px;
    object-fit:contain;
    object-position:center;
    background:#fff;
    padding:15px 2px 2px 2px;
}

.search-box{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.koleksi-section{
   background:linear-gradient(
        135deg,
        #0d6efd 0%,
        #198754 100%
    );
}

.search-box{
    background:#fff;
    padding:25px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.search-box .form-control{
    border-radius:12px 0 0 12px;
    border:none;
}

.search-box .btn{
    border-radius:0 12px 12px 0;
    padding-left:25px;
    padding-right:25px;
}

.search-wrapper{
    position:relative;
    flex:1 1 auto;
}

.search-wrapper .form-control{
    padding-right:45px;
}

.clear-search{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:none;
    color:#999;
    display:none;
    cursor:pointer;
    z-index:10;
}

.clear-search:hover{
    color:#dc3545;
}

.layanan-section{
    background:linear-gradient(
        135deg,
        #0d6efd 0%,
        #198754 100%
    );
}

.layanan-section .section-title{
    color:white;
}

.card-body{
    padding:15px 8px;
}

.koleksi-section .card-body{
    padding:12px;
    display:flex;
    flex-direction:column;
}

.koleksi-section h6{
    font-size:14px;
    line-height:1.3;
    min-height:36px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;

    margin-bottom:4px;
}

.koleksi-section .text-muted{
    font-size:12px;
    margin-bottom:8px !important;
}

.koleksi-section .badge{
    margin-top:auto;
    align-self:flex-start;
    padding:4px 8px;
    font-size:11px;
}

.layanan-card{
    background:white;
    border-radius:20px;
    padding:30px;
    text-align:center;
    height:100%;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
}

.layanan-card:hover{
    transform:translateY(-8px);
}

.layanan-card i{
    font-size:3rem;
    color:#0d6efd;
}

#kontak{
    scroll-margin-top:80px;
}
.footer{
    background:linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );
    color:#fff;
    padding:70px 0 25px;
}

.footer-title{
    font-weight:700;
    margin-bottom:20px;
}

.footer-text{
    color:rgba(255,255,255,.8);
    line-height:1.8;
}

.footer-menu{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-menu li{
    margin-bottom:10px;
}

.footer-menu a{
    color:rgba(255,255,255,.8);
    text-decoration:none;
    transition:.3s;
}

.footer-menu a:hover{
    color:#ffc107;
    padding-left:5px;
}

.social-links{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.social-links a{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.1);
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.social-links a:hover{
    background:#ffc107;
    color:#000;
    transform:translateY(-3px);
}

.footer-divider{
    margin:20px 0 20px;
    border-color:rgba(255,255,255,.15);
}

.counter{
    font-size:2rem;
    font-weight:bold;
}

.footer-web{
    font-size: 15px;
}

.footer-logo{
    width:65px;
    height:65px;
    object-fit:contain;
}

@media (max-width:576px){
    .stats-card{
        padding:15px;
    }

    .hero-content{
        text-align: center;
    }

    .hero-content h1{
        font-size: 28px;
    }
    .hero-content p{
        font-size: 16px;
    }

    .stats-card i{
        font-size:1.5rem;
    }

    .counter{
        font-size:1.5rem;
    }

    .stats-card p{
        font-size:.85rem;
        margin-bottom:0;
    }

    .informasi-kontak {
        font-size: 15px;
        color:rgba(255,255,255,.8);
    }

    .footer-logo{
        width:50px;
        height:50px;
    }

    .footer-web{
        font-size: 14px;
    }

}