body{
 margin:0;
 font-family:Arial;
 background:#121212; /* background gelap */
 color:#ddd;
}

/* HEADER EVENT */
.page-header{
 text-align:center;
 padding:40px 0 20px;
}

.page-header h1{
 color:#fff;
 letter-spacing:4px;
 font-size:32px;
 margin:0;
}

/* GRID */
.grid{
 display:grid;
 grid-template-columns:repeat(3,1fr);
 gap:25px;
 padding:20px 40px;
}

/* CARD */
.card{
 background:#1e1e1e;
 border-radius:10px;
 overflow:hidden;
 box-shadow:0 10px 25px rgba(0,0,0,.6);
 transition:.3s;
}

.card:hover{
 transform:translateY(-6px);
 box-shadow:0 20px 40px rgba(0,0,0,.9);
}

/* IMAGE */
.img-box{
 position:relative;
 height:190px;
}

.img-box img{
 width:100%;
 height:100%;
 object-fit:cover;
}

/* TITLE DI GAMBAR */
.title{
 position:absolute;
 bottom:0;
 width:100%;
 padding:12px;
 background:linear-gradient(transparent, rgba(0,0,0,.85));
 color:#fff;
 font-weight:bold;
 font-size:15px;
}

/* CONTENT */
.content{
 padding:15px;
 font-size:14px;
}

.content p{
 color:#ccc;
 line-height:1.5;
}

.content a{
 display:inline-block;
 margin-top:8px;
 color:#4da3ff;
 text-decoration:none;
 font-weight:bold;
}

.content a:hover{
 text-decoration:underline;
}

.views{
 margin-top:6px;
 font-size:12px;
 color:#888;
}

/* PAGINATION */
.pagination{
 text-align:center;
 padding:30px 0;
}

.pagination a{
 margin:4px;
 padding:8px 14px;
 border-radius:4px;
 border:1px solid #333;
 color:#ccc;
 text-decoration:none;
}

.pagination a.active,
.pagination a:hover{
 background:#4da3ff;
 color:#000;
 border-color:#4da3ff;
}
/* DETAIL PAGE */
.detail-container{
 max-width:900px;
 margin:40px auto;
 padding:0 20px;
}

.detail-title{
 text-align:center;
 color:#fff;
 font-size:28px;
 line-height:1.4;
 margin-bottom:10px;
}

.detail-meta{
 text-align:center;
 font-size:12px;
 color:#aaa;
 margin-bottom:25px;
}

/* IMAGE RESPONSIVE */
.detail-image{
 width:100%;
 max-height:480px;
 overflow:hidden;
 border-radius:12px;
 box-shadow:0 15px 40px rgba(0,0,0,.7);
 margin-bottom:30px;
}

.detail-image img{
 width:100%;
 height:100%;
 object-fit:cover;
 aspect-ratio:16/9;
}

/* CONTENT */
.detail-content{
 color:#ddd;
 font-size:16px;
 line-height:1.8;
 background:#1e1e1e;
 padding:25px;
 border-radius:12px;
 box-shadow:0 10px 25px rgba(0,0,0,.6);
}
/* NAVIGATION DETAIL */
.detail-nav{
 margin:40px 0 10px;
 display:flex;
 justify-content:flex-start;
}

.btn-back{
 background:#1e1e1e;
 color:#ccc;
 padding:10px 18px;
 border-radius:6px;
 text-decoration:none;
 font-size:14px;
 box-shadow:0 6px 18px rgba(0,0,0,.6);
 transition:.3s;
}

.btn-back:hover{
 background:#4da3ff;
 color:#000;
 transform:translateY(-2px);
}
.detail-nav{
 justify-content:space-between;
}
.page-footer{
 text-align:center;
 padding:20px 0 40px;
}
/* =========================
   RESPONSIVE MOBILE
========================= */

/* TABLET */
@media(max-width:1024px){
 .grid{
  grid-template-columns:repeat(2,1fr);
  padding:20px;
 }

 .img-box{
  height:200px;
 }
}


/* =========================
   DETAIL PAGE - MOBILE FULL
========================= */
@media(max-width:768px){

 /* CONTAINER FULL WIDTH */
 .detail-container{
  max-width:100%;
  margin:0;
  padding:0;
 }

 /* JUDUL */
 .detail-title{
  font-size:26px;     /* BESAR */
  padding:20px 16px 10px;
  line-height:1.4;
 }

 .detail-meta{
  font-size:13px;
  padding-bottom:16px;
 }

 /* GAMBAR FULL WIDTH */
 .detail-image{
  max-height:none;
  height:300px;
  border-radius:0;
  margin:0;
 }

 .detail-image img{
  height:100%;
  object-fit:cover;
 }

 /* ISI ARTIKEL */
 .detail-content{
  font-size:17px;     /* BESAR */
  line-height:1.9;
  padding:22px 18px;
  border-radius:0;
 }

 /* NAV BACK */
 .detail-nav{
  padding:20px 18px 30px;
 }
}

/* =========================
   MOBILE FIX - INDEX
========================= */
@media(max-width:768px){

 /* GRID JADI 1 KOLOM */
 .grid{
  grid-template-columns:1fr;   /* PENTING */
  gap:22px;
  padding:16px;
 }

 /* CARD */
 .card{
  border-radius:14px;
 }

 /* GAMBAR LEBIH TINGGI */
 .img-box{
  height:260px;
 }

 /* JUDUL DI GAMBAR */
 .title{
  font-size:18px;     /* BESAR */
  padding:16px;
  line-height:1.4;
 }

 /* DESKRIPSI */
 .content{
  padding:18px;
  font-size:16px;     /* BESAR */
 }

 .content p{
  line-height:1.75;
 }

 .content a{
  font-size:15px;
 }

 /* HEADER EVENT */
 .page-header h1{
  font-size:26px;
  letter-spacing:3px;
 }
}
