*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Plus Jakarta Sans',sans-serif;
    background:#f5f7fb;
}

/* ===========================
   LAYOUT
=========================== */

.layout{
    display:flex;
    min-height:100vh;
}

/* ===========================
   CONTENT
=========================== */

.content{
    flex:1;
    padding:30px;
}

/* ================= NAVBAR ================= */

.portal-navbar{

    min-height:72px;
    height:auto;

    background:#ffffff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 20px;

    border-bottom:1px solid #e5e7eb;

    position:sticky;

    top:0;

    z-index:999;

}

.nav-left{

    display:flex;

    align-items:center;

}

.brand{

    display:flex;

    align-items:center;

    text-decoration:none;

    color:#222;

}

.logo{

    width:46px;

    margin-right:12px;

}

.brand-title{

    font-weight:700;

    font-size:15px;

}

.brand-sub{

    color:#777;

    font-size:13px;

}

.nav-center{

    display:flex;

    gap:22px;

}

.nav-center a{

    text-decoration:none;

    color:#444;

    font-size:14px;

    font-weight:600;

}

.nav-center a:hover{

    color:#0b7d3b;

}

.nav-center .active{

    color:#0b7d3b;

}

.dataset{

    color:#1565ff !important;

}

.nav-right{

    color:#777;

    font-size:14px;

}
/* ================= HERO ================= */

.hero{
    position:relative;
    min-height:440px;
    margin-bottom:10px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0b5d2e 0%,#0d7b3d 45%,#083722 100%);
}

/* Ketika ada foto Kemenag Magetan yang diunggah */
.hero.has-photo{
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,rgba(8,55,34,.92) 0%,rgba(11,93,46,.80) 45%,rgba(8,55,34,.70) 100%);
}

/* Pola dekoratif geometris tipis */
.hero-pattern{
    position:absolute;
    inset:0;
    opacity:.12;
    background-image:
        radial-gradient(circle at 20% 30%, #ffd46d 0, transparent 32px),
        radial-gradient(circle at 80% 70%, #ffffff 0, transparent 40px),
        repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px);
    pointer-events:none;
}

.hero-content{
    position:relative;
    z-index:10;
    width:100%;
    max-width:920px;
    padding:56px 24px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    color:#fff;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,212,109,.16);
    border:1px solid rgba(255,212,109,.55);
    color:#ffd46d;
    font-size:13px;
    font-weight:600;
    letter-spacing:.3px;
    padding:7px 16px;
    border-radius:40px;
    margin-bottom:22px;
    backdrop-filter:blur(4px);
}

.hero h1{
    font-size:44px;
    font-weight:800;
    line-height:1.18;
    margin:0 0 16px;
    text-shadow:0 2px 18px rgba(0,0,0,.35);
}

.hero span{ color:#ffd46d; }

.hero-desc{
    font-size:17px;
    line-height:1.6;
    max-width:680px;
    color:rgba(255,255,255,.9);
    margin:0 0 32px;
}

.hero-search{
    display:flex;
    align-items:center;
    position:relative;
    width:720px;
    max-width:100%;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.35);
    padding:8px;
    border-radius:50px;
    backdrop-filter:blur(10px);
    box-shadow:0 12px 40px rgba(0,0,0,.25);
}

.hero-search-icon{
    position:absolute;
    left:26px;
    color:#0b5d2e;
    font-size:18px;
    z-index:2;
}

.hero-search input{
    flex:1;
    border:none;
    outline:none;
    padding:15px 18px 15px 44px;
    border-radius:40px;
    font-size:15px;
    background:#fff;
    color:#222;
}

.hero-search button{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-left:8px;
    padding:0 26px;
    height:52px;
    border:none;
    background:#ffd46d;
    color:#083722;
    border-radius:40px;
    font-weight:700;
    cursor:pointer;
    transition:background .2s,transform .2s;
}

.hero-search button:hover{
    background:#ffcb4d;
    transform:translateY(-1px);
}

.hero-chips{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin-top:26px;
}

.hero-chips a{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 18px;
    border-radius:40px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.28);
    color:#fff;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
    transition:background .2s,border-color .2s;
}

.hero-chips a:hover{
    background:rgba(255,212,109,.22);
    border-color:#ffd46d;
    color:#ffd46d;
}

@media (max-width:768px){
    .hero{ min-height:auto; }
    .hero-content{ padding:44px 18px; }
    .hero h1{ font-size:30px; }
    .hero-desc{ font-size:15px; }
    .hero-search{ flex-direction:column; padding:14px; border-radius:20px; }
    .hero-search-icon{ display:none; }
    .hero-search input{ width:100%; padding-left:18px; border-radius:12px; }
    .hero-search button{ width:100%; margin:10px 0 0; height:48px; justify-content:center; }
}

/* ===========================
   QUICK STATS
=========================== */

.quick-stats{
    margin-top:35px;
}

.quick-stats h3{
    font-size:28px;
    font-weight:700;
    margin-bottom:25px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
}

.stat-card{
    background:#fff;
    border-radius:18px;
    padding:25px 15px;
    text-align:center;
    transition:.25s;
    cursor:pointer;
    box-shadow:0 6px 20px rgba(0,0,0,.05);
}

.stat-card:hover{
    transform:translateY(-6px);
}

.stat-icon{
    font-size:34px;
    margin-bottom:10px;
}

.stat-value{
    font-size:28px;
    font-weight:700;
}

.stat-label{
    color:#666;
    margin-top:8px;
}

.green{
    border-top:6px solid #1b8f48;
}

.gold{
    border-top:6px solid #d6a500;
}

.blue{
    border-top:6px solid #2196f3;
}

.purple{
    border-top:6px solid #8e44ad;
}

.orange{
    border-top:6px solid #ff9800;
}

.red{
    border-top:6px solid #e74c3c;
}
/* ==========================
WELCOME
========================== */

.welcome-card{

    margin-top:40px;

    background:white;

    border-radius:20px;

    padding:40px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:50px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

.welcome-left{

    flex:1;

}

.welcome-badge{

    display:inline-block;

    background:#e9f7ef;

    color:#0d7b3d;

    padding:8px 18px;

    border-radius:50px;

    font-weight:700;

    margin-bottom:18px;

}

.welcome-left h2{

    font-size:38px;

    font-weight:700;

    margin-bottom:18px;

}

.welcome-left p{

    color:#666;

    line-height:1.8;

    margin-bottom:30px;

}

.welcome-btns{

    display:flex;

    gap:15px;

}

.btn-dashboard{

    background:#0d7b3d;

    color:white;

    border:none;

    padding:15px 28px;

    border-radius:50px;

    cursor:pointer;

    font-weight:700;

}

.btn-dashboard:hover{

    background:#095f2f;

}

.btn-katalog{

    background:#f3f4f6;

    border:none;

    padding:15px 28px;

    border-radius:50px;

    cursor:pointer;

    font-weight:700;

}

.btn-katalog:hover{

    background:#e5e7eb;

}

.welcome-right{

    display:flex;

    gap:20px;

}

.info-box{

    width:120px;

    height:120px;

    background:#f8fafc;

    border-radius:18px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}

.info-number{

    font-size:32px;

    font-weight:700;

    color:#0d7b3d;

}

.info-title{

    margin-top:10px;

    color:#666;

}
/* ======================
DASHBOARD GRID
====================== */

.dashboard-section{

    margin-top:45px;

}

.section-title{

    font-size:30px;

    font-weight:700;

    margin-bottom:25px;

}

.dashboard-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

.dash-card{

    background:white;

    border-radius:22px;

    padding:35px;

    cursor:pointer;

    transition:.25s;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

.dash-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.10);

}

.dash-icon{

    font-size:52px;

    margin-bottom:20px;

}

.dash-card h4{

    font-size:24px;

    margin-bottom:12px;

}

.dash-card p{

    color:#666;

    line-height:1.7;

}
.dash-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.dash-arrow{

    font-size:30px;

    color:#999;

    transition:.3s;

}

.dash-card:hover .dash-arrow{

    transform:translateX(8px);

    color:#0d7b3d;

}

.dash-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:30px;

}

.dash-footer span{

    color:#888;

    font-size:14px;

}

.dash-footer button{

    background:#0d7b3d;

    color:white;

    border:none;

    padding:10px 20px;

    border-radius:25px;

    cursor:pointer;

    font-weight:600;

}

.dash-footer button:hover{

    background:#095d2d;

}
.dataset-section{

    margin-top:60px;

}

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.section-header a{

    text-decoration:none;

    color:#0d7b3d;

    font-weight:700;

}

.dataset-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

.dataset-card{

    background:white;

    border-radius:20px;

    padding:30px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.dataset-icon{

    font-size:40px;

    margin-bottom:20px;

}

.dataset-card h3{

    margin-bottom:10px;

}

.dataset-card p{

    color:#666;

    margin-bottom:25px;

}

.dataset-card button{

    border:none;

    background:#0d7b3d;

    color:white;

    padding:12px 24px;

    border-radius:25px;

}
.maps-section{

    margin-top:70px;

}

.maps-wrapper{

    display:flex;

    gap:30px;

    margin-top:30px;

}

#map{

    flex:1;

    height:520px;

    border-radius:18px;

    overflow:hidden;

    background:#f5f5f5;

}

.map-info{

    width:320px;

    background:white;

    border-radius:18px;

    padding:25px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.map-info select{

    width:100%;

    padding:12px;

    border-radius:10px;

    margin-top:10px;

    margin-bottom:20px;

}
.stat-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.stat-link:hover{
    text-decoration:none;
    color:inherit;
}

.stat-card{
    transition:all .25s ease;
    cursor:pointer;
}

.stat-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,.15);
}