/* ===========================================
   RESET & BASE
=========================================== */
*{
    margin:0; padding:0; box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
    margin-bottom:3px;
}
/* Background global */
body {
    position: relative;
    background: #111;
    background-image: url(https://gribjayasurabaya.com/uploads/logobesar.png);
    background-size: 380px;
    background-repeat: no-repeat;
    background-position: center 120px;
    background-attachment: fixed;
    color: #ebebeb;
    overflow-x: hidden;
}
.dashboard-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.dash-card {
    background: #0d0d0d;
    border: 1px solid rgba(255,0,0,0.15);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255,0,0,0.05);
    transition: 0.18s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-card:hover {
    border-color: red;
    box-shadow: 0 0 14px rgba(255,0,0,0.2);
    transform: translateY(-3px);
}

.dash-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 4px;
}

.dash-card .count {
    color: #ff3b3b;
    font-size: 32px;
    font-weight: 800;
}
/* LAYER BLUR */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: -1;
}


/* Hero section tetap solid, tidak ditembus logo */
.hero,
#hero,
.banner,
.top-section {
    background: rgb(60 60 60 / 69%) !important;
    backdrop-filter: blur(2px);
    border-radius: 12px;
    margin-bottom: 40px !important;
}

/* Box konten semi transparan */
.section,
.card,
.container,
.wrapper {
    background: rgb(26 26 26 / 89%) !important;
    backdrop-filter: blur(2px);
    padding: 20px;
    border-radius: 15px;
    margin-top: 40px;
}

/* Judul tetap putih tajam */
h1, h2, h3, h4, p {
    color: #fff;
}

a{text-decoration:none;color:#fff;}
img{max-width:100%;display:block;border-radius:6px;}

.wrap{
    width:95%;
    max-width:1200px;
    margin:auto;
    padding-top: 26px;
}


.slider-wrapper {
    width: 100%;
    margin-top: 20px;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;

    /* Watermark logo */
    background-image: url('https://gribjayasurabaya.com/uploads/logobesar.png');
    background-size: 450px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.slider-wrapper::before {
    /* Transparansi agar watermark tidak mengganggu */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75); /* layer tipis untuk melembutkan logo */
    z-index: 1;
}

.slide {
    width:100%;
    height:100%;
    position:absolute;
    top:0; left:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:.8s;
    z-index: 2; /* Pastikan slide ada di atas watermark */
}

.slide.active { opacity:1; }

.slide .overlay {
    position:absolute;
    bottom:0;
    width:100%;
    padding:20px;
    background:rgba(0,0,0,0.55);
    z-index:3;
}

.slide .title {
    font-size:22px;
    font-weight:bold;
    color:#fff;
}

.slide .btn-read {
    margin-top:6px;
    display:inline-block;
    padding:6px 12px;
    background:#900;
    color:white;
    border-radius:6px;
    font-size:14px;
}

@media(max-width:600px){
    .slider-wrapper{height:180px;}
    .slide .title{font-size:16px;}
    .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
}



/* ===========================================
   HEADER
=========================================== */
.header{
    background:#0a0a0a;
    border-bottom:2px solid #900;
    padding:18px 0;
    position:sticky;top:0;z-index:999;
    border-color: #7e3b3b;
}
.header .brand{display:flex;align-items:center;gap:14px;}
.header .logo{
    width:50px;height:50px;background:#900;
    display:flex;align-items:center;justify-content:center;
    font-size:22px;font-weight:bold;border-radius:10px;
}
.header h1{font-size:22px;margin-bottom:2px;}
.header .tag{font-size:12px;color:#bbb;}

.nav{margin-top:10px;display:flex;flex-wrap:wrap;gap:14px;}
.nav a{
    padding:6px 14px;border-radius:6px;
    transition:.2s;
}
.nav a:hover{background:#900;}

/* ===========================================
   BUTTON
=========================================== */
.btn{
    padding:10px 14px;border:none;border-radius:6px;
    background:#900;color:#fff;cursor:pointer;
    font-weight:bold;text-align:center;transition:.2s;
    display:inline-block;
}
.btn:hover{background:#b00;}
.btn.ghost{background:transparent;border:1px solid #900;}
.btn.ghost:hover{background:#900;}

.btn.small{
    padding:6px 10px;
    font-size:13px;
    border-radius:5px;
}

/* FIX JARAK TOMBOL */
.btn-back, .btn.ghost {
    margin-top: 5px !important;
    display: inline-block;
}
/* ===========================================
   TABLE STYLING
=========================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    margin-bottom: 50px !important;  /* << FIX LENGKET */
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
}

.table thead tr {
    background: #900;
}
.table thead th {
    padding: 14px 12px;
    font-size: 15px;
    text-align: left;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.table thead th:last-child { border-right: none; }

.table tbody tr { transition: 0.2s; }
.table tbody tr:nth-child(even){ background:#111; }
.table tbody tr:nth-child(odd){ background:#0b0b0b; }

.table tbody tr:hover{
    background:#1a0000;
    box-shadow:inset 0 0 0 1px #900;
}

.table td{
    padding:12px 14px;
    font-size:15px;
    border-right:1px solid #222;
}
.table td:last-child{ border-right:none; }

.table .btn.small{
    padding:6px 12px;
    font-size:14px;
    border-radius:6px;
}
.table .btn.small.ghost{
    border:1px solid #900;
    background:transparent;
}
.table .btn.small.ghost:hover{
    background:#900;
}

/* ===========================================
   HERO
=========================================== */
.hero{text-align:center;padding:60px 10px;}
.hero h2{font-size:36px;font-weight:bold;}
.hero p{margin-top:8px;font-size:18px;color:#ccc;}

/* ===========================================
   CARD
=========================================== */
.card{
    background:#0d0d0d;
    padding:28px;
    border-radius:10px;
    margin:40px 0;
    border:1px solid #222;
}
.card h2{
    margin-bottom:20px;font-size:17px;
    border-left:5px solid #900;padding-left:12px;
}

.grid{
    display:grid;gap:20px;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

/* KEGIATAN */
.card-item{
    background:#111;padding:16px;border-radius:10px;
    border:1px solid #222;
    display:flex;flex-direction:column;gap:10px;
}
.card-item h3{font-size:20px;}
.card-item p{color:#ccc;}

/* ===========================================
   STRUKTUR (HOME)
=========================================== */
/* WRAPPER ATAS */
.struktur-tree {
    display: flex;
    flex-wrap: wrap;           /* <<< BISA MELIPAT */
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

/* NODE */
.s-node {
    text-align: center;
    margin: 10px;
    flex: 1 1 260px;           /* <<< BISA MENGECIL DI HP */
    max-width: 320px;
}

/* CARD */
.s-card {
    background: #0f0f0f;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #900;
}

/* CHILDREN container */
.s-children {
    display: flex;
    flex-wrap: wrap;           /* <<< FIX ELEMEN TIDAK KELUAR LAYAR */
    justify-content: center;
    gap: 20px;
    border-top: 1px dashed #444;
    margin-top: 15px;
    padding-top: 15px;
}

/* FOTO */
.s-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid #900;
    border-radius: 8px;
}

/* QR */
.s-qr {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #333;
    margin-top: 10px;
}

/* RESPONSIVE FIX HP */
@media (max-width: 600px) {
    .s-card {
        padding: 15px;
    }
    .s-photo { width: 100px; height: 100px; }
    .s-qr { width: 110px; height: 110px; }
    .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
}

/* ===========================================
   MERCH
=========================================== */
.product{
    background:#111;padding:16px;border-radius:10px;border:1px solid #222;
}
.product h4{margin-top:10px;}

/* ===========================================
   CART
=========================================== */
.cart{
    margin-top:20px;background:#111;padding:20px;
    border-radius:10px;border:1px solid #222;
}

/* ===========================================
   FORM
=========================================== */
form input, form select, form textarea{
    width:100%;padding:12px 14px;margin:10px 0;
    background:#111;border:1px solid #333;border-radius:8px;
    color:#fff;font-size:15px;
}
form input:focus,form select:focus,form textarea:focus{
    outline:none;border-color:#900;background:#0b0b0b;
}
form button.btn{
    width:100%;padding:14px;font-size:16px;border-radius:8px;background:#900;
}
form button.btn:hover{background:#b00;}

/* ===========================================
   FOOTER
=========================================== */
.footer{
    padding:20px 0;text-align:center;margin-top:40px;
    background:#0a0a0a;border-top:2px solid #900;color:#ccc;
}

/* ===========================================
   ADMIN FORM PANEL
=========================================== */

.admin-form {
    background:#0d0d0d;
    padding:32px;
    border-radius:14px;
    border:1px solid #222;
    max-width:900px;
    margin:30px auto;
    box-shadow:0 0 25px rgba(0,0,0,0.4);
}

.admin-form h2 {
    text-align:center;
    font-size:26px;
    margin-bottom:20px;
    color:#fff;
    font-weight:700;
    letter-spacing:1px;
    border-bottom:2px solid #900;
    padding-bottom:12px;
}

.admin-form .form-group { margin-bottom:22px; }

.admin-form label{
    display:block;margin-bottom:8px;font-weight:bold;
    font-size:15px;color:#ccc;
}

.admin-form input,
.admin-form select,
.admin-form textarea{
    width:100%;padding:14px 15px;background:#111;
    border:1px solid #333;border-radius:10px;
    color:#fff;font-size:16px;transition:.2s;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus{
    background:#0b0b0b;border-color:#900;
}

.admin-form .preview-box{
    width:160px;height:160px;object-fit:cover;
    border-radius:12px;border:2px solid #900;
    margin-top:8px;box-shadow:0 0 10px rgba(255,0,0,0.2);
}

.admin-form .submit-btn{
    width:100%;padding:16px;border:none;border-radius:10px;
    background:#900;color:#fff;font-size:18px;
    font-weight:bold;cursor:pointer;transition:0.2s;
    margin-top:20px;
}
.admin-form .submit-btn:hover{
    background:#b30000;transform:scale(1.01);
}

.admin-form .back-btn{
    margin-top:20px;display:inline-block;padding:12px 22px;
    border:1px solid #900;border-radius:10px;
    color:#fff;transition:.2s;
}
.admin-form .back-btn:hover{ background:#900; }

.foto-grid{
    display:flex;gap:30px;flex-wrap:wrap;
}
.foto-grid .foto-box{
    flex:1;min-width:250px;
}

/* ===========================================
   RESPONSIVE
=========================================== */
@media(max-width:700px){
    .table thead{display:none;}
    .table, .table tbody, .table tr, .table td{
        display:block;width:100%;
    }
    .table tr{
        margin-bottom:15px;background:#111;border-radius:8px;
        padding:10px;border:1px solid #222;
    }
    .table td{
        padding:8px 6px;font-size:14px;
    }
    .table td::before{
        content:attr(data-label);
        color:#900;font-weight:bold;
        display:block;margin-bottom:3px;
    }
    .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
}

@media(max-width:600px){
    .hero h2{font-size:28px;}
}

.card-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

/* === FIX GAMBAR ARTIKEL === */
.article-content {
    font-size: 14px;
    line-height: 1.7;
    color:#ddd;
}

.article-title {
    font-size: 28px;
}

/* ==========================================
   HEADER RESPONSIF — LEBIH MINIMALIS
========================================== */

.header {
    background:#111;
    border-bottom:1px solid #7e3b3b;
}

.header .wrap {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
}

.brand {
    display:flex;
    align-items:center;
    gap:12px;
}

.brand .logo img {
    width:48px;
    height:48px;
    object-fit:contain;
}

.nav {
    display:flex;
    align-items:center;
    gap:18px;
}

/* MENU LINK */
.nav a {
    color:white;
    font-weight:600;
    text-decoration:none;
}

/* TOMBOL ADMIN & MEMBER */
.nav .btn {
    padding:5px 7px;
    border-radius:6px;
}

.nav .btn:hover {
    background-color: grey;
}

/* ================================
   MOBILE MODE — SUPER MINIMAL
================================ */
@media(max-width:820px){

    .header .wrap {
        flex-direction:column;
        align-items:center;
        gap:8px;
        padding:10px 0;
    }

    .brand {
        justify-content:center;
    }

    .nav {
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }
}

/* ================================
   HP KECIL (≤520px)
   → Header lebih tipis + lebih clean
================================ */
@media(max-width:520px){

    .header .wrap {
        padding:2px 0;        /* <<< TIPIS */
        gap:3px;              /* <<< RAPI */
    }

    .brand .logo img {
        width:32px;           /* <<< LEBIH KECIL */
        height:32px;
    }

    .brand h1 {
        font-size:16px;
        margin:0;
    }

    .tag {
        font-size:11px;
        margin-top:-2px;
    }

    .nav {
        gap:3px;
    }

    .nav a {
        font-size:12px;
        padding:4px 6px;
    }

    .nav .btn {
        padding:4px 6px;
        font-size:12px;
    }
    
    .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
}
