*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI', sans-serif;
}

/* Navbar */

.navbar-custom{
    position:absolute;
    top:0;
    width:100%;
    z-index:1000;
    padding:20px 60px;
}

.navbar-custom .brand{
    color:white;
    font-size:22px;
    font-weight:bold;
}

.navbar-custom ul{
    list-style:none;
    display:flex;
    gap:30px;
    margin:0;
}

.navbar-custom a{
    color:white;
    text-decoration:none;
    font-size:20px;
}

.nav-active{
    background:rgba(255,255,255,0.3);
    padding:10px 20px;
    border-radius:30px;
}

/* Hero */

.hero{
    height:100vh;
    background:url('../images/sekolah.jpg');
    background-size:cover;
    background-position:center;
    position:relative;
}

.hero::before{
    content:'';
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.35);
}

.hero-content{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding-top:80px;
}

.hero-title{
    font-size:60px;
    font-weight:700;
    line-height:1.2;
    text-shadow:4px 4px 10px black;
}

/* Search */

.search-box{
    width:900px;
    max-width:90%;
    margin-top:40px;
}

.search-box input{
    height:65px;
    font-size:24px;
}

.search-box button{
    width:180px;
    font-size:28px;
}

.kategori-section{
    padding:80px 0;
    background:#f7f7f7;
}

.section-title{
    font-size:48px;
    font-weight:bold;
    margin-bottom:40px;
}

.kategori-card{
    background:#d9d9d9;
    border-radius:20px;
    text-align:center;
    padding:30px;
    transition:.3s;
}

.kategori-card:hover{
    transform:translateY(-5px);
}

.kategori-card img{
    width:170px;
    margin-bottom:20px;
}

.kategori-card h4{
    font-size:24px;
}

.location-section{
    padding:80px 0;
    background:#f5f5f5;
}

.location-card{
    background:#cfcfcf;
    border-radius:20px;
    overflow:hidden;
}

.alamat-box{
    padding:20px;
}

.alamat-box h4{
    font-weight:bold;
}

.map-icon{
    font-size:250px;
    opacity:.15;
}

.footer{
    background:#3d3d3d;
    color:white;
    padding:60px 0 20px;
}

.footer h3{
    font-weight:bold;
    margin-bottom:20px;
}

.footer-list{
    list-style:none;
    padding:0;
}

.footer-list li{
    margin-bottom:10px;
}

.footer hr{
    margin-top:40px;
    margin-bottom:20px;
    border-color:#666;
}

/* =======================
   LOGIN PAGE
======================= */

.login-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f5f5f5;
}

.login-card{
    width:420px;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.login-tabs{
    display:flex;
    justify-content:space-between;
    margin-bottom:30px;
}

.tab-btn{
    width:50%;
    border:none;
    background:none;
    padding:10px;
    font-size:18px;
    border-bottom:3px solid transparent;
}

.tab-btn.active{
    border-bottom:3px solid #bdbdbd;
}

.btn-login{
    width:100%;
    background:#4a7c59;
    color:white;
    border:none;
    padding:12px;
    border-radius:10px;
}

/* LOGIN SECTION */

.login-section{
    padding:80px 0;
    background:#f7f7f7;
}

.login-container{
    max-width:500px;
    margin:auto;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 0 15px rgba(0,0,0,.08);
}

.login-tabs{
    display:flex;
    margin-bottom:30px;
}

.login-tab{
    flex:1;
    text-align:center;
    padding:15px;
    cursor:pointer;
    font-weight:600;
    border-bottom:3px solid transparent;
}

.login-tab.active{
    border-bottom:3px solid #bdbdbd;
}

.login-btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#5f7d5f;
    color:white;
    font-size:18px;
}

.login-link{
    margin-top:20px;
    text-align:center;
}

/* ==============================
   HASIL PENCARIAN BERANDA
============================== */

.landing-search-results{
    padding:50px 0;
    background:#f5f7fb;
}

.landing-search-results .container{
    max-width:1200px;
}

.landing-search-heading{
    margin-bottom:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.landing-search-heading h2{
    margin:0 0 5px;
    font-size:30px;
    font-weight:700;
}

.landing-search-heading p{
    margin:0;
    color:#6b7280;
}

.landing-book-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:22px;
}

.landing-book-card{
    width:100%;
    max-width:270px;
    overflow:hidden;
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 22px rgba(0,0,0,.08);
    transition:.2s;
}

.landing-book-card:hover{
    transform:translateY(-4px);
    box-shadow:0 11px 27px rgba(0,0,0,.12);
}

.landing-book-cover{
    width:100%;
    height:280px;
    padding:14px;
    overflow:hidden;
    background:#edf2f9;
}

.landing-book-cover img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    border-radius:10px;
}

.landing-book-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#dfe7f2;
    color:#58739d;
    font-size:58px;
}

.landing-book-info{
    padding:16px;
}

.landing-book-category{
    display:inline-block;
    margin-bottom:8px;
    padding:4px 10px;
    border-radius:20px;
    background:#e9efff;
    color:#2864dd;
    font-size:12px;
    font-weight:600;
}

.landing-book-info h3{
    margin:0 0 7px;
    font-size:18px;
    font-weight:700;
}

.landing-book-info p{
    margin:0 0 15px;
    color:#6b7280;
}

.landing-book-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:13px;
    font-weight:600;
}

.book-available{
    color:#198754;
}

.book-unavailable{
    color:#dc3545;
}

.landing-search-empty{
    grid-column:1 / -1;
    padding:55px 20px;
    text-align:center;
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 22px rgba(0,0,0,.07);
}

.landing-search-empty i{
    display:block;
    margin-bottom:12px;
    color:#8795aa;
    font-size:46px;
}

@media(max-width:1100px){
    .landing-book-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }
}

@media(max-width:800px){
    .landing-book-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:550px){
    .landing-search-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .landing-book-grid{
        grid-template-columns:1fr;
    }
}

/* ======================================
   RESPONSIVE HALAMAN PUBLIK MYPUSTAKA
====================================== */

@media (max-width: 991px) {

    html,
    body{
        max-width:100%;
        overflow-x:hidden;
    }

    .hero{
        min-height:100vh;
        height:auto;
        padding:0 24px 50px;
        background-size:cover;
        background-position:center center;
    }

    .navbar-custom{
        width:100%;
        padding:18px 0;
        align-items:flex-start;
        gap:18px;
    }

    .navbar-custom .brand{
        flex-shrink:0;
        font-size:20px;
        white-space:nowrap;
    }

    .navbar-custom ul{
        margin:0;
        padding:0;
        display:flex;
        flex-wrap:wrap;
        justify-content:flex-end;
        gap:8px;
    }

    .navbar-custom ul li a{
        display:block;
        padding:7px 11px;
        font-size:14px;
        white-space:nowrap;
    }

    .hero-content{
        width:100%;
        min-height:calc(100vh - 90px);
        padding:90px 0 45px;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    }

    .hero-title{
        width:100%;
        max-width:900px;
        margin:0 auto 30px;
        padding:0 10px;
        font-size:48px;
        line-height:1.15;
        text-align:center;
    }

    .search-box{
        width:100%;
        max-width:760px;
        margin:0 auto;
    }

    .search-box form,
    .search-box .input-group{
        width:100%;
    }

    .search-box input{
        min-width:0;
        height:56px;
        font-size:17px;
    }

    .search-box button{
        min-width:125px;
        height:56px;
        padding:0 24px;
    }

    .kategori-section,
    .location-section,
    .landing-search-results{
        padding-left:20px;
        padding-right:20px;
    }

    .location-card iframe{
        width:100%;
    }
}

@media (max-width: 767px) {

    .hero{
        min-height:100svh;
        padding:0 14px 35px;
        background-position:center center;
    }

    .navbar-custom{
        flex-direction:column;
        align-items:center;
        padding-top:14px;
        gap:10px;
    }

    .navbar-custom .brand{
        font-size:18px;
    }

    .navbar-custom ul{
        width:100%;
        justify-content:center;
        gap:4px 6px;
    }

    .navbar-custom ul li a{
        padding:6px 8px;
        font-size:12px;
    }

    .hero-content{
        min-height:calc(100svh - 125px);
        padding:55px 0 30px;
    }

    .hero-title{
        margin-bottom:24px;
        padding:0;
        font-size:34px;
        line-height:1.17;
    }

    .hero-title br{
        display:none;
    }

    .search-box .input-group{
        display:flex;
        flex-wrap:nowrap;
    }

    .search-box input{
        height:50px;
        font-size:15px;
    }

    .search-box button{
        min-width:95px;
        height:50px;
        padding:0 15px;
        font-size:15px;
    }

    .section-title{
        font-size:28px;
        text-align:center;
    }

    .kategori-card{
        height:100%;
    }

    .kategori-card img{
        max-width:120px;
        height:auto;
    }

    .location-section .row{
        row-gap:30px;
    }

    .location-card iframe{
        height:280px;
    }

    .map-icon{
        font-size:80px;
    }

    .landing-search-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .landing-book-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .landing-book-card{
        max-width:none;
    }
}

@media (max-width: 480px) {

    .hero{
        padding-left:10px;
        padding-right:10px;
    }

    .navbar-custom ul{
        gap:3px;
    }

    .navbar-custom ul li a{
        padding:5px 6px;
        font-size:11px;
    }

    .hero-content{
        padding-top:45px;
    }

    .hero-title{
        font-size:30px;
        line-height:1.18;
    }

    .search-box input{
        font-size:14px;
    }

    .search-box button{
        min-width:82px;
        padding:0 12px;
        font-size:14px;
    }

    .kategori-section,
    .location-section,
    .landing-search-results{
        padding-left:10px;
        padding-right:10px;
    }

    .landing-book-grid{
        grid-template-columns:1fr;
    }

    .landing-book-cover{
        height:260px;
    }

    .location-card iframe{
        height:240px;
    }
}

/* ======================================
   MODE DESKTOP PROPORSIONAL DI HP
====================================== */

@media (max-width: 767px) {

    html,
    body{
        min-width: 1280px;
        overflow-x: auto;
    }

    .hero,
    .kategori-section,
    .location-section,
    .landing-search-results,
    footer{
        min-width: 1280px;
    }

    .container{
        max-width: 1280px;
    }
}

/* =====================================
   BRAND DAN LOGO HALAMAN BERANDA
===================================== */

.hero-brand{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    flex-shrink:0;
}

.hero-brand .brand{
    margin:0;
    color:#fff;
    font-size:25px;
    font-weight:700;
    line-height:1.2;
}

.hero-brand-logos{
    width:150px;
    height:auto;
    margin-top:18px;
    display:block;
    object-fit:contain;
}

@media (max-width:768px){

    .hero-brand{
        align-items:center;
    }

    .hero-brand .brand{
        font-size:20px;
        text-align:center;
    }

    .hero-brand-logos{
        width:125px;
        margin-top:12px;
    }
}

/* =====================================
   LOGO KAMPUS DAN SEKOLAH DI HERO
===================================== */

.navbar-custom{
    width:100%;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
}

.hero-brand,
.hero-nav-right{
    display:flex;
    flex-direction:column;
}

.hero-brand{
    align-items:flex-start;
}

.hero-nav-right{
    align-items:flex-end;
}

.hero-nav-right ul{
    margin:0;
}

.hero-logo{
    display:block;
    height:auto;
    object-fit:contain;
}

.hero-logo-campus{
    width:145px;
    margin-top:18px;
}

.hero-logo-school{
    width:125px;
    margin-top:18px;
    margin-right:10px;
}

@media (max-width:768px){

    .navbar-custom{
        align-items:flex-start;
    }

    .hero-logo-campus{
        width:105px;
        margin-top:12px;
    }

    .hero-logo-school{
        width:160px;
        margin-top:12px;
        margin-right:25px;
    }
}

/* =====================================
   KATEGORI DINAMIS HALAMAN PUBLIK
===================================== */

.kategori-card-link{
    display:block;
    height:100%;
    color:inherit;
    text-decoration:none;
}

.kategori-card-link:hover{
    color:inherit;
}

.kategori-card{
    height:100%;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.kategori-card-link:hover .kategori-card{
    transform:translateY(-6px);
    box-shadow:0 14px 30px rgba(0,0,0,.14);
}

.kategori-total-buku{
    display:block;
    margin-top:7px;
    color:#6c757d;
    font-size:13px;
}

.public-category-section{
    padding:70px 0;
    background:#f6f7fb;
    min-height:500px;
}

.public-category-heading{
    margin-bottom:35px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
}

.public-category-label{
    color:#1f6fff;
    font-size:13px;
    font-weight:700;
    letter-spacing:.8px;
    text-transform:uppercase;
}

.public-category-heading h2{
    margin:5px 0 6px;
    color:#152238;
    font-size:36px;
    font-weight:700;
}

.public-category-heading p{
    margin:0;
    color:#6b7280;
}

.public-book-code{
    display:inline-block;
    margin-bottom:8px;
    padding:4px 9px;
    border-radius:20px;
    background:#eaf1ff;
    color:#1f6fff;
    font-size:11px;
    font-weight:700;
}

.public-book-stock{
    margin-top:12px;
    font-size:13px;
    font-weight:600;
}

.public-book-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e9edf5;
    color:#768197;
    font-size:55px;
}

.public-category-empty{
    grid-column:1 / -1;
    padding:70px 20px;
    text-align:center;
    color:#788397;
}

.public-category-empty i{
    display:block;
    margin-bottom:12px;
    font-size:55px;
}

@media(max-width:767px){

    .public-category-section{
        padding:45px 14px;
    }

    .public-category-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .public-category-heading h2{
        font-size:28px;
    }
}