/* =====================================================
   PERPUSTAKAAN DIGITAL
   STYLE.CSS
===================================================== */

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#f5f7fa;

    color:#333;

    font-size:15px;

    line-height:1.8;

}

/* LINK */

a{

    text-decoration:none;

    transition:.3s;

}

img{

    max-width:100%;

    display:block;

}

/* CONTAINER */

.container{

    max-width:1200px;

}

/* =====================================================
   HEADER
===================================================== */

.header{

    background:#ffffff;

    margin-top:20px;

    margin-bottom:25px;

    border-radius:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 30px;

}

/* =====================================================
   LOGO
===================================================== */

.logo{

    display:flex;

    align-items:center;

}

.logo img{

    width:58px;

    margin-right:15px;

}

.logo h2{

    font-size:28px;

    color:#255d2d;

    font-weight:700;

    margin-bottom:3px;

}

.logo p{

    color:#777;

    font-size:13px;

    margin:0;

}

/* =====================================================
   MENU
===================================================== */

.menu{

    display:flex;

    align-items:center;

}

.menu ul{

    list-style:none;

    display:flex;

    align-items:center;

    margin:0;

    padding:0;

}

.menu ul li{

    margin-left:28px;

}

.menu ul li a{

    color:#444;

    font-weight:600;

    font-size:15px;

    position:relative;

}

/* Hover */

.menu ul li a:hover{

    color:#2e7d32;

}

/* Active */

.menu ul li a.active{

    color:#2e7d32;

}

/* Garis bawah */

.menu ul li a::after{

    content:"";

    position:absolute;

    width:0;

    height:3px;

    left:50%;

    bottom:-8px;

    background:#2e7d32;

    transition:.3s;

    transform:translateX(-50%);

}

.menu ul li a:hover::after{

    width:100%;

}

.menu ul li a.active::after{

    width:100%;

}

/* =====================================================
   LOGIN BUTTON
===================================================== */

.btn-login{

    background:#2e7d32;

    color:#fff;

    padding:10px 22px;

    border-radius:8px;

    margin-left:30px;

    font-weight:600;

}

.btn-login:hover{

    background:#255d2d;

    color:#fff;

}

/* =====================================================
   STICKY HEADER
===================================================== */

.header{

    position:sticky;

    top:15px;

    z-index:999;

}
/* =====================================================
   HERO SLIDER
===================================================== */

.hero{

    margin-bottom:70px;

}

.carousel{

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.12);

}

.carousel-item{

    position:relative;

    height:600px;

}

.carousel-item img{

    width:100%;

    height:600px;

    object-fit:cover;

}

/* Overlay */

.carousel-item::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.45);

    z-index:1;

}

/* Caption */

.carousel-caption{

    position:absolute;

    left:8%;

    right:45%;

    bottom:22%;

    z-index:2;

    text-align:left;

}

.carousel-caption h1{

    font-size:54px;

    font-weight:700;

    color:#fff;

    margin-bottom:20px;

}

.carousel-caption p{

    color:#fff;

    font-size:20px;

    margin-bottom:35px;

}

/* Hero Button */

.hero-btn{

    padding:13px 28px;

    border-radius:8px;

    font-weight:600;

    margin-right:10px;

}

.hero-primary{

    background:#2e7d32;

    color:#fff;

}

.hero-primary:hover{

    background:#255d2d;

    color:#fff;

}

.hero-outline{

    border:2px solid #fff;

    color:#fff;

}

.hero-outline:hover{

    background:#fff;

    color:#333;

}

/* Indicator */

.carousel-indicators button{

    width:12px;

    height:12px;

    border-radius:50%;

}

/* =====================================================
   SECTION
===================================================== */

.section{

    padding:70px 0;

}

.section-title{

    font-size:34px;

    font-weight:700;

    color:#255d2d;

    margin-bottom:10px;

}

.section-line{

    width:70px;

    height:4px;

    background:#2e7d32;

    border-radius:30px;

    margin:15px auto 35px;

}

/* =====================================================
   BERITA
===================================================== */

.news-card{

    border:none;

    border-radius:15px;

    overflow:hidden;

    background:#fff;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.35s;

}

.news-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 35px rgba(0,0,0,.12);

}

.news-card img{

    height:230px;

    width:100%;

    object-fit:cover;

}

.news-card .card-body{

    padding:22px;

}

.news-card small{

    color:#888;

}

.news-card h5{

    font-size:20px;

    font-weight:600;

    margin-top:12px;

    margin-bottom:15px;

}

.news-card p{

    color:#666;

    font-size:15px;

}

.news-card .btn{

    border-radius:8px;

    padding:10px 20px;

}

/* Tombol Lihat Semua */

.btn-outline-success{

    border-radius:8px;

    padding:12px 28px;

    font-weight:600;
}

/* =====================================================
   GALERI
===================================================== */

.gallery{

    overflow:hidden;

    border-radius:15px;

    background:#fff;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.3s;

}

.gallery:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 30px rgba(0,0,0,.12);

}

.gallery img{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:.5s;

}

.gallery:hover img{

    transform:scale(1.08);

}

/* =====================================================
   KONTAK
===================================================== */

.contact-box{

    background:#fff;

    padding:35px;

    border-radius:15px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    height:100%;

}

.contact-box h4{

    font-weight:700;

    color:#255d2d;

    margin-bottom:25px;

}

.contact-box p{

    margin-bottom:18px;

    color:#555;

    font-size:15px;

}

.contact-box i{

    width:28px;

    color:#2e7d32;

}

/* =====================================================
   GOOGLE MAPS
===================================================== */

iframe{

    width:100%;

    height:420px;

    border:none;

    border-radius:15px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

/* =====================================================
   FOOTER
===================================================== */

footer{

    margin-top:70px;

    background:#255d2d;

    color:#fff;

    padding:50px 0 20px;

}

.footer-title{

    font-size:20px;

    font-weight:700;

    margin-bottom:20px;

}

footer p{

    color:#e6e6e6;

    font-size:15px;

    margin-bottom:10px;

}

footer a{

    color:#fff;

}

footer a:hover{

    color:#ffd54f;

}

.social{

    margin-top:20px;

}

.social a{

    display:inline-block;

    width:42px;

    height:42px;

    line-height:42px;

    text-align:center;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    margin-right:10px;

    font-size:18px;

    transition:.3s;

}

.social a:hover{

    background:#fff;

    color:#255d2d;

}

footer hr{

    margin:35px 0 20px;

    border-color:rgba(255,255,255,.15);

}

/* =====================================================
   BUTTON
===================================================== */

.btn{

    border-radius:8px;

    font-weight:600;

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:992px){

.header .container{

    flex-direction:column;

    text-align:center;

}

.logo{

    margin-bottom:20px;

}

.menu{

    width:100%;

    justify-content:center;

}

.menu ul{

    flex-wrap:wrap;

    justify-content:center;

}

.menu ul li{

    margin:8px 12px;

}

.btn-login{

    margin-left:15px;

}

.carousel-item{

    height:500px;

}

.carousel-item img{

    height:500px;

}

.carousel-caption{

    right:10%;

    left:10%;

    bottom:18%;

}

.carousel-caption h1{

    font-size:40px;

}

.carousel-caption p{

    font-size:18px;

}

}

@media(max-width:768px){

.header{

    margin:10px;

}

.header .container{

    padding:20px;

}

.logo{

    flex-direction:column;

}

.logo img{

    margin-right:0;

    margin-bottom:10px;

}

.logo h2{

    font-size:24px;

}

.logo p{

    font-size:13px;

}

.menu ul{

    flex-direction:column;

}

.menu ul li{

    margin:10px 0;

}

.btn-login{

    margin:15px 0 0;

}

.carousel-item{

    height:400px;

}

.carousel-item img{

    height:400px;

}

.carousel-caption{

    left:8%;

    right:8%;

    bottom:15%;

    text-align:center;

}

.carousel-caption h1{

    font-size:30px;

}

.carousel-caption p{

    font-size:15px;

}

.hero-btn{

    display:block;

    width:100%;

    margin-bottom:10px;

}

.section{

    padding:50px 0;

}

.section-title{

    font-size:28px;

}

.news-card img{

    height:210px;

}

.gallery img{

    height:200px;

}

iframe{

    height:300px;

}

}
/* =====================================================
   BERITA TERBARU
===================================================== */

.news-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);

    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}

.news-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 22px;
}

.news-card h5 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card p {
    color: #666;
    line-height: 1.7;
}

.news-card .btn {
    border-radius: 25px;
    padding: 8px 18px;
}

.news-no-image {
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f2;

    font-size: 50px;
    color: #6b8f71;
}
/* =====================================================
   DETAIL BERITA
===================================================== */

.berita-detail {
    background: #f8faf8;
}

.detail-berita-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.detail-berita-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    color: #234d2b;
    margin-bottom: 20px;
}

.detail-berita-content {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
}

.detail-berita-content p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {

    .detail-berita-title {
        font-size: 28px;
    }

    .detail-berita-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .detail-berita-image {
        max-height: 300px;
    }

}

/* =====================================================
   GALERI HOMEPAGE
===================================================== */

.gallery-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);

    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 18px 20px;
    background: #fff;
}

.gallery-info h5 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #234d2b;
}

.gallery-info p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}
.gallery-card
.gallery-card img
.gallery-info

/* =====================================================
   PROFIL PERPUSTAKAAN
===================================================== */

.profil-section {
    background: #fff;
}

.profil-image {
    overflow: hidden;
    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);
}

.profil-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

.profil-image:hover img {
    transform: scale(1.04);
}

.profil-section h2 {
    color: #234d2b;
    font-weight: 700;
    margin-bottom: 20px;
}

.profil-section p {
    color: #666;
    line-height: 1.8;
}

.profil-highlight {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.profil-highlight > div {
    display: grid;
    grid-template-columns: 45px 1fr;
    column-gap: 12px;
    align-items: center;
}

.profil-highlight i {
    grid-row: span 2;
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf6ef;
    color: #2d6a38;
}

.profil-highlight strong {
    color: #234d2b;
}

.profil-highlight span {
    color: #777;
    font-size: 14px;
}

.profil-box {
    padding: 30px;
    background: #f8faf8;
    border-radius: 16px;

    border: 1px solid #e8eee9;

    transition: all 0.3s ease;
}

.profil-box:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.07);
}

.profil-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e9f4eb;
    color: #2d6a38;

    font-size: 22px;

    margin-bottom: 18px;
}

.profil-box h3 {
    color: #234d2b;
    font-weight: 700;
}

.profil-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.profil-box li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

@media (max-width: 768px) {

    .profil-image img {
        height: 300px;
    }

    .profil-box {
        padding: 25px;
    }

}
/* =====================================================
   KONTAK
===================================================== */

.kontak-section {
    background: #f8faf8;
}

.kontak-info,
.kontak-form,
.kontak-map {
    background: #fff;
    border-radius: 18px;
    padding: 30px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);
}

.kontak-info h3,
.kontak-form h3,
.kontak-map h3 {
    color: #234d2b;
    font-weight: 700;
    margin-bottom: 12px;
}

.kontak-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-top: 25px;
}

.kontak-icon {
    min-width: 48px;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf6ef;
    color: #2d6a38;

    font-size: 18px;
}

.kontak-item h5 {
    margin-bottom: 5px;
    color: #234d2b;
    font-weight: 700;
}

.kontak-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.kontak-form .form-label {
    font-weight: 600;
    color: #444;
}

.kontak-form .form-control {
    border: 1px solid #dfe6e1;
    border-radius: 10px;
    padding: 12px 15px;
}

.kontak-form .form-control:focus {
    border-color: #5b8f63;

    box-shadow:
        0 0 0 0.2rem
        rgba(45, 106, 56, 0.12);
}

.kontak-form textarea {
    resize: vertical;
}

.kontak-form .btn {
    border-radius: 25px;
    padding: 10px 22px;
}

.kontak-map {
    padding: 30px;
}

.map-title {
    margin-bottom: 20px;
}

.map-title p {
    margin-bottom: 0;
}

.map-container {
    overflow: hidden;
    border-radius: 14px;
}

.map-container iframe {
    display: block;
}


@media (max-width: 768px) {

    .kontak-info,
    .kontak-form,
    .kontak-map {
        padding: 22px;
    }

    .kontak-item {
        margin-top: 20px;
    }

    .map-container iframe {
        height: 300px;
    }

}