:root{
    /* WARNA UTAMA */
    --primary:#0f172a;

    /* BIRU PROFESIONAL */
    --secondary:#1d4ed8;

    /* MERAH ELEGAN */
    --accent:#dc2626;

    /* BACKGROUND */
    --bg:#f4f7fb;
    --white:#ffffff;
    --text:#1e293b;
    --muted:#64748b;
    --border:#e2e8f0;
}

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

body{

    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text);
}

img{
    max-width:100%;
    display:block;
}

.container{

    width:92%;
    max-width:1280px;
    margin:auto;
}

/* HEADER */

header{

    background:var(--primary);
    color:white;
    padding:18px 0;
}

.navbar{

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{

    display:flex;
    align-items:center;
    gap:15px;

}

.brand img{

    width:55px;
    height:55px;
    object-fit:contain;
    background:transparent;
    
    border-radius:12px;
}

.brand h1{

    font-size:20px;
    font-weight:800;
}

.brand p{

    font-size:13px;
    opacity:.8;
}

/* HERO */

.hero{

    padding:60px 0;
}

.hero-box{

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
        135deg,
        #0f172a 0%,
        #1d4ed8 45%,
        #dc2626 100%
    );

    padding:60px;

    border-radius:30px;

    color:white;

    border:
    1px solid rgba(255,255,255,.15);

    box-shadow:
    0 10px 40px rgba(2,6,23,.15);
}

.hero-box::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        rgba(255,255,255,.08),
        rgba(255,255,255,.02)
    );

    backdrop-filter:blur(10px);

    z-index:0;
}

.hero-box > *{

    position:relative;

    z-index:2;
}

.hero-badge{

    display:inline-block;

    background:
    rgba(255,255,255,.15);

    padding:10px 18px;

    border-radius:999px;

    margin-bottom:20px;

    font-size:14px;
}

.hero h2{

    font-size:48px;
    margin-bottom:20px;
    line-height:1.2;
}

.hero p{

    max-width:700px;
    opacity:.9;
}

/* SEARCH */

.search-section{

    position:sticky;

    top:85px;

    z-index:90;
}

.search-box{

    padding:25px;

    margin-bottom:10px;

    border-radius:22px;

    backdrop-filter:blur(12px);

    background:
    rgba(255,255,255,.78);

    border:
    1px solid rgba(255,255,255,.25);

    box-shadow:
    0 10px 40px rgba(2,6,23,.06);
}

.search-box input{

    width:100%;

    padding:18px 20px;

    border-radius:16px;

    border:1px solid var(--border);

    outline:none;

    font-size:15px;
}

/* NAV MENU */

.nav-menu{

    display:flex;
    align-items:center;
    gap:14px;
}

.nav-menu a{

    color:white;

    text-decoration:none;

    padding:12px 18px;

    border-radius:14px;

    font-weight:600;

    transition:.3s;
}

.nav-menu a:hover,
.nav-menu a.active{

    background:
    rgba(255,255,255,.12);

    backdrop-filter:
    blur(10px);
}

/* MOBILE MENU */

.menu-toggle{

    display:none;

    font-size:28px;

    color:white;

    cursor:pointer;
}

/* NEWS */

.news-section{

    margin-top:80px;
}

.news-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:28px;
}

.news-card{

    background:white;

    border-radius:24px;

    overflow:hidden;

    box-shadow:
    0 10px 40px rgba(2,6,23,.08);
}

.news-card img{

    width:100%;

    height:220px;

    object-fit:cover;
}

.news-body{

    padding:25px;
}

.news-body span{

    font-size:13px;

    color:#64748b;
}

.news-body h4{

    margin:12px 0;

    font-size:22px;
}

.news-body p{

    color:#64748b;
}

/* RESPONSIVE */

@media(max-width:768px){

    .nav-menu{

        position:absolute;

        top:90px;

        right:20px;

        background:#0f172a;

        flex-direction:column;

        width:220px;

        padding:20px;

        border-radius:20px;

        display:none;
    }

    .nav-menu.show{

        display:flex;
    }

    .menu-toggle{

        display:block;
    }
}

/* CATEGORY */

.category-section{

    margin-top:28px;

    margin-bottom:45px;
}

.category-buttons{

    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.category-btn{

    border:none;

    background:white;

    padding:12px 18px;

    border-radius:14px;

    cursor:pointer;

    font-weight:600;
}

.category-btn.active{

    background:
    linear-gradient(
        135deg,
        #1d4ed8,
        #dc2626
    );

    color:white;
}

/* SECTION */

.section-title{

    margin-bottom:30px;
}

.section-title h3{

    font-size:34px;
    margin-bottom:8px;
}

.section-title p{

    color:var(--muted);
}

/* GRID */

.download-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:28px;
}

/* CARD */

.download-card{

    backdrop-filter:blur(12px);

    background:
    rgba(255,255,255,.82);

    border:
    1px solid rgba(255,255,255,.25);

    border-radius:24px;

    overflow:hidden;

    transition:.3s;

    box-shadow:
    0 10px 40px rgba(2,6,23,.08);
}

.download-card:hover{

    transform:translateY(-6px);
}

.download-card:hover .card-image img{

    transform:scale(1.05);
}

.card-image{

    height:200px;
    overflow:hidden;
}

.card-image img{

    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.card-body{

    padding:25px;
}

.card-tag{

    display:inline-block;

    background:
    rgba(220,38,38,.1);

    color:#dc2626;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    margin-bottom:15px;

    font-weight:700;
}

.card-body h4{

    font-size:24px;
    margin-bottom:12px;
}

.card-body p{

    color:var(--muted);
    margin-bottom:22px;
}

.card-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;
}

.year-badge{

    background:
    rgba(220,38,38,.1);

    color:#dc2626;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;
}

.meta{

    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
    color:var(--muted);
    font-size:13px;
}

.download-btn{

    display:flex;
    justify-content:center;
    align-items:center;

    background:
    linear-gradient(
        135deg,
        #1d4ed8,
        #dc2626
    );

    color:white;

    padding:15px;

    border-radius:14px;

    text-decoration:none;

    font-weight:700;
}

.download-btn:hover{

    background:
    linear-gradient(
        135deg,
        #1e40af,
        #b91c1c
    );

    transform:translateY(-2px);
}


.button-group{

    display:flex;
    gap:12px;
}

.preview-btn{

    flex:1;

    background:#e2e8f0;

    color:#0f172a;

    padding:14px;

    border-radius:14px;

    text-align:center;

    text-decoration:none;

    font-weight:700;
}

.download-count{

    margin-bottom:18px;

    font-size:14px;

    color:#64748b;

    font-weight:600;
}

/* PAGINATION */

.pagination{

    display:flex;
    justify-content:center;
    gap:10px;

    margin-top:40px;
}

.page-btn{

    border:none;

    background:white;

    padding:12px 18px;

    border-radius:12px;

    cursor:pointer;
}

.page-btn.active{

    background:
    linear-gradient(
        135deg,
        #1d4ed8,
        #dc2626
    );

    color:white;
}

/* INFO SECTION */

.info-section{

    margin-top:70px;
}

.info-box{

    background:
    rgba(255,255,255,.82);

    backdrop-filter:
    blur(10px);

    border:
    1px solid rgba(255,255,255,.25);

    border-radius:28px;

    padding:40px;

    box-shadow:
    0 10px 40px rgba(2,6,23,.08);
}

.info-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:25px;
}

.info-item{

    background:#f8fafc;

    border-radius:20px;

    padding:25px;
}

.info-item h4{

    margin-bottom:10px;

    color:#0f172a;
}

.info-item p{

    color:#64748b;
}

/* FOOTER */

footer{

    margin-top:80px;

    background:var(--primary);

    color:white;

    padding:35px 0;
}

.footer{

    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:15px;
}

.footer p{

    opacity:.8;
    font-size:14px;
}


/* RESPONSIVE */

@media(max-width:768px){

    .hero-box{

        padding:40px 30px;
    }

    .hero h2{

        font-size:34px;
    }

    .section-title h3{

        font-size:28px;
    }
}

/* =========================
   STATISTIK
========================= */

.stats-section{

    margin-top:80px;
}

.stats-grid{

    display:grid;

    grid-template-columns:
    1fr 1fr;

    gap:28px;

    margin-bottom:30px;
}

.stats-card{

    background:white;

    border-radius:24px;

    padding:30px;

    box-shadow:
    0 10px 40px rgba(2,6,23,.08);
}

.chart-card{

    background:white;

    border-radius:24px;

    padding:30px;

    box-shadow:
    0 10px 40px rgba(2,6,23,.08);
}

.stats-card h4,
.chart-card h4{

    font-size:22px;

    margin-bottom:20px;

    color:#0f172a;
}

.stats-number{

    font-size:56px;

    font-weight:800;

    color:#1d4ed8;

    line-height:1;
}

.popular-list{

    display:flex;

    flex-direction:column;

    gap:14px;
}

.popular-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    padding:14px 18px;

    background:#f8fafc;

    border-radius:14px;

    font-size:14px;
}

.popular-item span:first-child{

    flex:1;

    font-weight:600;

    color:#1e293b;
}

.popular-count{

    background:
    linear-gradient(
        135deg,
        #1d4ed8,
        #dc2626
    );

    color:white;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;
}

.chart-card canvas{

    width:100% !important;

    max-height:420px;
}

/* MOBILE */

@media(max-width:768px){

    .stats-grid{

        grid-template-columns:1fr;
    }

    .stats-number{

        font-size:42px;
    }
}

/* =========================
   DASHBOARD STAT BARU
========================= */

.container-stat{
    display:flex;
    gap:28px;
    align-items:flex-start;
}

/* KIRI (mini dashboard) */
.left-panel{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* KANAN (popular docs) */
.right-panel{
    flex:2;
}

/* override stats-card supaya cocok mini dashboard */
.left-panel .stats-card{
    padding:18px 20px;
    border-radius:18px;
}

/* angka lebih compact */
.left-panel .stats-number{
    font-size:34px;
}

/* label kecil */
.left-panel .stats-card h4{
    font-size:14px;
    margin-bottom:6px;
    color:#64748b;
    font-weight:600;
}

/* responsive */
@media(max-width:768px){
    .container-stat{
        flex-direction:column;
    }
}
