/*==================================================
KPMIBMR WEBSITE
HOME PAGE
==================================================*/

/*==============================
ROOT
==============================*/

:root{

    --primary:#198754;
    --secondary:#1d3557;
    --white:#ffffff;
    --bg:#f8f9fa;
    --text:#555;
    --border:#e9ecef;
    --shadow:0 15px 35px rgba(0,0,0,.08);

}

/*==============================
HOME SECTION
==============================*/

.home-section{

    padding:100px 0;

}

.home-container{

    width:90%;

    max-width:1200px;

    margin:auto;

}

.home-title{

    text-align:center;

    margin-bottom:60px;

}

.home-title span{

    display:inline-block;

    color:var(--primary);

    font-size:14px;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:15px;

}

.home-title h2{

    font-size:30px;

    color:var(--secondary);

    margin-bottom:18px;

}

.home-title p{

    max-width:720px;

    margin:auto;

    color:var(--text);

    line-height:1.8;

}

/*==============================
CARD
==============================*/

.home-card{

    background:var(--white);

    border-radius:22px;

    box-shadow:var(--shadow);

}


/*=========================================
BERITA & TENTANG
=========================================*/

.berita-tentang{

    padding:90px 0;

    background:#f8fafc;

}

.tentang-card{

    background:#ffffff;

    border-radius:28px;

    padding:50px;

    box-shadow:0 20px 45px rgba(0,0,0,.08);

    margin-bottom:80px;

}

.section-label{

    display:inline-block;

    background:#198754;

    color:#fff;

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    letter-spacing:1px;

    margin-bottom:20px;

    text-transform:uppercase;

}

.tentang-text h2{

    font-size:42px;

    color:#17365D;

    margin-bottom:25px;

    line-height:1.3;

}

.tentang-text p{

    font-size:17px;

    color:#666;

    line-height:1.9;

    text-align:justify;

}


/*=========================================
STATISTIK
=========================================*/

.mini-statistik{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

    margin:45px 0;

}

.mini-card{

    background:#f8fafc;

    border:1px solid #e8ecef;

    border-radius:18px;

    padding:35px 20px;

    text-align:center;

    transition:all .3s ease;

}

.mini-card:hover{

    transform:translateY(-6px);

    box-shadow:0 15px 35px rgba(0,0,0,.10);

    border-color:#198754;

}

.mini-card h3{

    font-size:48px;

    font-weight:700;

    color:#198754;

    margin:0 0 10px;

    line-height:1;

}

.mini-card span{

    display:block;

    color:#666;

    font-size:16px;

    font-weight:600;

    letter-spacing:.5px;

}

.tentang-card .btn-hijau{

    margin-top:10px;

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:14px 28px;

    border-radius:12px;

    font-weight:600;

}


/*=========================================
HEADER BERITA
=========================================*/

.berita-header{

    text-align:center;

    margin-bottom:50px;

}

.berita-header span{

    display:inline-block;

    background:#198754;

    color:#fff;

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;

    margin-bottom:18px;

}

.berita-header h2{

    font-size:40px;

    color:#17365D;

    margin-bottom:15px;

}

.berita-header p{

    max-width:700px;

    margin:auto;

    color:#666;

    line-height:1.8;

}

/*=========================================
GRID BERITA
=========================================*/

.berita-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.berita-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.35s;

    display:flex;

    flex-direction:column;

    height:100%;

}

.berita-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.berita-image{

    overflow:hidden;

}

.berita-image img{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:.4s;

}

.berita-card:hover .berita-image img{

    transform:scale(1.08);

}

.berita-content{

    padding:25px;

    display:flex;

    flex-direction:column;

    flex:1;

}

.berita-tanggal{

    font-size:14px;

    color:#198754;

    margin-bottom:15px;

    display:flex;

    align-items:center;

    gap:8px;

}

.berita-content h3{

    font-size:22px;

    color:#17365D;

    margin-bottom:15px;

    line-height:1.4;

}

.berita-content p{

    color:#666;

    line-height:1.8;

    flex:1;

}

.btn-berita{

    margin-top:25px;

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:#198754;

    font-weight:600;

    text-decoration:none;

    transition:.3s;

}

.btn-berita:hover{

    color:#145c32;

}

.berita-button{

    text-align:center;

    margin-top:50px;

}

/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:992px){

    .berita-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .tentang-card{

        padding:30px;

    }

    .tentang-text h2{

        font-size:32px;

    }

    .mini-statistik{

        grid-template-columns:1fr;

    }

    .berita-grid{

        grid-template-columns:1fr;

    }

}


/*=========================================
MAP CABANG
=========================================*/

.map-section{

    padding:100px 0;

    background:#f8fafc;

}

.map-card{

    background:#ffffff;

    border-radius:30px;

    padding:40px;

    box-shadow:0 20px 45px rgba(0,0,0,.08);

}

.section-header{

    text-align:center;

    margin-bottom:50px;

}

.section-header span{

    display:inline-block;

    padding:8px 18px;

    background:#198754;

    color:#fff;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;

    margin-bottom:18px;

}

.section-header h2{

    font-size:38px;

    color:#17365D;

    margin-bottom:15px;

}

.section-header p{

    max-width:700px;

    margin:auto;

    color:#666;

    line-height:1.8;

}

.map-wrapper{

    position:relative;

    width:100%;

    max-width:1000px;

    margin:auto;

}

.map-wrapper img{

    width:100%;

    display:block;

    user-select:none;

    pointer-events:none;

}


/*=========================================
MARKER
=========================================*/

.map-marker{

    position:absolute;

    transform:translate(-50%,-50%);

    cursor:pointer;

    z-index:20;

}

.pin{

    width:18px;

    height:18px;

    background:#198754;

    border:4px solid #ffffff;

    border-radius:50%;

    position:relative;

    z-index:3;

    box-shadow:0 8px 20px rgba(25,135,84,.35);

    transition:.3s;

}

.pulse{

    position:absolute;

    left:50%;

    top:50%;

    width:18px;

    height:18px;

    background:rgba(25,135,84,.35);

    border-radius:50%;

    transform:translate(-50%,-50%);

    animation:markerPulse 2s infinite;

    z-index:1;

}

@keyframes markerPulse{

    0%{

        transform:translate(-50%,-50%) scale(1);

        opacity:.8;

    }

    70%{

        transform:translate(-50%,-50%) scale(3);

        opacity:0;

    }

    100%{

        transform:translate(-50%,-50%) scale(3);

        opacity:0;

    }

}

.map-marker:hover .pin{

    transform:scale(1.25);

}

.marker-name{

    position:absolute;

    top:30px;

    left:50%;

    transform:translateX(-50%);

    background:#ffffff;

    padding:6px 14px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

    color:#17365D;

    white-space:nowrap;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

/*=========================================
TOOLTIP
=========================================*/

.marker-info{

    position:absolute;

    left:50%;

    bottom:38px;

    transform:translateX(-50%) translateY(10px);

    width:250px;

    background:#ffffff;

    border-radius:18px;

    box-shadow:0 20px 50px rgba(0,0,0,.15);

    overflow:hidden;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999;

}

.map-marker:hover .marker-info{

    opacity:1;

    visibility:visible;

    transform:translateX(-50%) translateY(0);

}

.marker-header{

    background:#198754;

    color:#fff;

    padding:18px;

    text-align:center;

}

.marker-header h4{

    margin:0;

    font-size:18px;

    font-weight:700;

}

.marker-header p{

    margin-top:6px;

    font-size:14px;

    opacity:.9;

}

.marker-body{

    padding:18px;

}

.marker-body p{

    display:flex;

    align-items:center;

    gap:10px;

    color:#555;

    margin-bottom:12px;

    font-size:14px;

}

.marker-body i{

    color:#198754;

    width:18px;

}

.marker-footer{

    padding:0 18px 18px;

}

.btn-marker{

    display:block;

    width:100%;

    text-align:center;

    background:#198754;

    color:#fff;

    padding:12px;

    border-radius:10px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.btn-marker:hover{

    background:#146c43;

    color:#fff;

}

/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:768px){

    .map-card{

        padding:20px;

    }

    .section-header h2{

        font-size:30px;

    }

    .marker-info{

        width:190px;

    }

    .marker-header h4{

        font-size:15px;

    }

    .marker-body{

        padding:14px;

    }

    .marker-body p{

        font-size:13px;

    }

}


/*=========================================
CABANG HOME
=========================================*/

.cabang-home{

    padding:100px 0;

    background:#ffffff;

}

.section-home{

    text-align:center;

    margin-bottom:55px;

}

.section-home span{

    display:inline-block;

    background:#198754;

    color:#fff;

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;

    margin-bottom:18px;

}

.section-home h2{

    font-size:40px;

    color:#17365D;

    margin-bottom:15px;

}

.section-home p{

    max-width:700px;

    margin:auto;

    color:#666;

    line-height:1.8;

}

.cabang-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

/*=========================================
CARD CABANG
=========================================*/

.cabang-card{

    background:#ffffff;

    border-radius:22px;

    padding:35px 30px;

    border-top:5px solid #198754;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.35s;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    height:100%;

}

.cabang-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.cabang-card h3{

    font-size:24px;

    color:#17365D;

    margin-bottom:18px;

    line-height:1.4;

    min-height:68px;

}

.cabang-card p{

    display:flex;

    align-items:center;

    gap:10px;

    color:#666;

    margin-bottom:22px;

    font-size:16px;

}

.cabang-card p i{

    color:#198754;

    font-size:18px;

}

.jumlah{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    background:#EAF7F0;

    color:#198754;

    padding:12px 18px;

    border-radius:30px;

    font-size:15px;

    font-weight:600;

    margin-bottom:28px;

    width:fit-content;

}

.jumlah i{

    font-size:17px;

}

.btn-cabang{

    display:block;

    width:100%;

    text-align:center;

    background:#198754;

    color:#fff;

    text-decoration:none;

    padding:14px;

    border-radius:12px;

    font-weight:600;

    transition:.3s;

}

.btn-cabang:hover{

    background:#146c43;

    color:#fff;

}