:root{
  --blue:#00a8e8;
  --blue-soft:#e8f6fd;
  --dark:#1f2933;
}

*{box-sizing:border-box;font-family:'Segoe UI',sans-serif}

body{
  margin:0;
  background:#f7fbff;
  color:var(--dark);
}

/* Topbar */
.topbar{
  background:linear-gradient(135deg,#00c6ff,#0072ff);
  padding:14px 24px;
  color:#fff;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  height:42px;
}

/* Layout */
.container{
  max-width:1200px;
  margin:auto;
  padding:24px;
}

.section h2{
  margin-bottom:16px;
  color:#0072ff;
}

/* Grid berita */
.news-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.news-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:.35s;
  cursor:pointer;
}

.news-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,136,255,.25);
}

.news-card img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.news-card .content{
  padding:14px;
}

.news-card h3{
  font-size:16px;
  margin:0 0 6px;
}

.news-card p{
  font-size:14px;
  color:#555;
}

/* Berita lama */
.old-news{
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.old-item{
  padding:14px 18px;
  border-bottom:1px solid #eee;
  transition:.2s;
}

.old-item:hover{
  background:var(--blue-soft);
  color:#0072ff;
}

/* Footer */
.footer{
  text-align:center;
  padding:18px;
  font-size:14px;
  color:#777;
}

/* Responsive */
@media(max-width:992px){
  .news-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:576px){
  .news-grid{grid-template-columns:1fr}
}

/* =====================
   ADMIN DASHBOARD
===================== */

.admin-wrapper{
  max-width:1200px;
  margin:auto;
  padding:30px;
}

.admin-title{
  font-size:22px;
  font-weight:600;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#0b5ed7;
}

/* Stat cards */
.stat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:30px;
}

.stat-card{
  background:#fff;
  border-radius:16px;
  padding:20px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.stat-card h3{
  margin:0;
  font-size:14px;
  color:#777;
}

.stat-card .num{
  font-size:28px;
  font-weight:700;
  color:#0b5ed7;
  margin-top:6px;
}

/* Table */
.table-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 15px 40px rgba(0,0,0,.08);
  overflow:hidden;
}

.table-card table{
  width:100%;
  border-collapse:collapse;
}

.table-card thead{
  background:#e8f3ff;
}

.table-card th,
.table-card td{
  padding:16px;
  text-align:left;
}

.table-card th{
  font-size:14px;
  color:#0b5ed7;
}

.table-card tr:not(:last-child){
  border-bottom:1px solid #eee;
}

.badge{
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
}

.badge.today{
  background:#e7f3ff;
  color:#0b5ed7;
}

.badge.old{
  background:#f1f1f1;
  color:#555;
}

.action-btn a{
  margin-right:10px;
  text-decoration:none;
  font-size:14px;
}

.action-btn a.edit{color:#0b5ed7}
.action-btn a.delete{color:#dc3545}

/* Responsive admin */
@media(max-width:768px){
  .stat-grid{grid-template-columns:1fr}
}

/* =====================
   ADMIN FORM
===================== */

.form-wrapper{
  max-width:720px;
  margin:auto;
}

.form-card{
  background:#fff;
  padding:30px;
  border-radius:20px;
  box-shadow:0 18px 50px rgba(0,0,0,.1);
}

.form-group{
  margin-bottom:20px;
}

.form-group label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
  color:#0b5ed7;
}

.form-control{
  width:100%;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:14px;
  transition:.2s;
}

.form-control:focus{
  border-color:#0b5ed7;
  outline:none;
  box-shadow:0 0 0 3px rgba(13,110,253,.15);
}

textarea.form-control{
  min-height:180px;
  resize:vertical;
}

.form-select{
  width:100%;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:14px;
}

.file-upload{
  border:2px dashed #cfe2ff;
  padding:25px;
  border-radius:14px;
  text-align:center;
  background:#f8fbff;
  cursor:pointer;
}

.file-upload input{
  display:none;
}

.file-upload:hover{
  background:#eef6ff;
}

.btn-primary{
  background:linear-gradient(135deg,#00c6ff,#0072ff);
  border:none;
  color:#fff;
  padding:14px 24px;
  border-radius:30px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(0,114,255,.4);
}

.isi-berita{
  font-size:15px;
  line-height:1.8;
  color:#333;
}

.isi-berita h2,
.isi-berita h3{
  color:#0b5ed7;
  margin-top:24px;
}

.isi-berita img{
  max-width:100%;
  border-radius:12px;
  margin:15px 0;
}

#previewBox{
  border:1px solid #e3e3e3;
  padding:10px;
  border-radius:16px;
  background:#fafafa;
}

/* =====================
   DASHBOARD FILTER
===================== */
.filter-bar{
  display:flex;
  gap:12px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.filter-bar input,
.filter-bar select{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:14px;
}

.filter-bar button{
  padding:12px 18px;
  border-radius:30px;
  border:none;
  background:linear-gradient(135deg,#00c6ff,#0072ff);
  color:#fff;
  font-weight:600;
  cursor:pointer;
}

.filter-bar button:hover{
  opacity:.9;
}

/* =====================
   PAGINATION
===================== */
.pagination{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:25px;
  flex-wrap:wrap;
}

.pagination a,
.pagination span{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #ddd;
  text-decoration:none;
  font-size:14px;
  color:#0b5ed7;
  background:#fff;
}

.pagination a:hover{
  background:#e8f3ff;
}

.pagination .active{
  background:linear-gradient(135deg,#00c6ff,#0072ff);
  color:#fff;
  border:none;
}

/* =====================
   TOAST NOTIFICATION
===================== */
.toast{
  position:fixed;
  top:90px;
  right:30px;
  min-width:260px;
  padding:16px 20px;
  border-radius:14px;
  color:#fff;
  font-size:14px;
  font-weight:600;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  z-index:9999;
  opacity:0;
  transform:translateY(-10px);
  transition:.4s;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

.toast.success{
  background:linear-gradient(135deg,#00c851,#007e33);
}

.toast.update{
  background:linear-gradient(135deg,#33b5e5,#0099cc);
}

.toast.delete{
  background:linear-gradient(135deg,#ff4444,#cc0000);
}

/* ===========================
   FOOTER LOGOS
=========================== */
.footer{
  background:#f4f9ff;
  margin-top:60px;
  padding:30px 16px 20px;
}

.footer-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.footer-logos img{
  height:42px;
  object-fit:contain;
  filter:grayscale(100%);
  opacity:.8;
  transition:.3s;
}

.footer-logos img:hover{
  filter:none;
  opacity:1;
  transform:scale(1.05);
}

.footer-copy{
  text-align:center;
  font-size:14px;
  color:#777;
}

/* Responsive */
@media(max-width:576px){
  .footer-logos img{
    height:34px;
  }
}

.topbar{
  background:linear-gradient(135deg,#00c6ff,#0072ff);
  padding:14px 24px;
  color:#fff;
}

.topbar-inner{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
}

.brand img{
  height:42px;
}

.topmenu{
  display:flex;
  justify-content:center;
  gap:30px;
}

.topmenu a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  padding:8px 16px;
  border-radius:20px;
  transition:.3s;
}

.topmenu a:hover{
  background:rgba(255,255,255,.2);
}

.topmenu a.active{
  background:#fff;
  color:#0072ff;
}

/* =========================
   TOPBAR + MENU (FINAL)
========================= */

/* =====================
   TOPBAR FINAL BRANDING
===================== */

/* =====================
   TOPBAR BRANDING FINAL
===================== */

.topbar{
  background:linear-gradient(135deg,#00c6ff,#0072ff);
  padding:18px 0;
  position:sticky;
  top:0;
  z-index:1000;
}

.topbar-inner{
  max-width:1200px;
  margin:auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* BRAND */
.brand{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
  color:#fff;
}

/* 🔥 LOGO BESAR TANPA OUTLINE */
.brand img{
  height:68px;            /* 🔥 LEBIH BESAR */
  width:auto;
  display:block;
}

/* TEXT */
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-title{
  font-size:26px;         /* 🔥 LEBIH TEGAS */
  font-weight:800;
  letter-spacing:.6px;
}

.brand-sub{
  font-size:13px;
  opacity:.9;
  letter-spacing:.4px;
}

/* MENU */
.topmenu{
  display:flex;
  gap:28px;
}

.topmenu a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  position:relative;
  padding-bottom:4px;
  opacity:.9;
}

.topmenu a:hover{
  opacity:1;
}

.topmenu a.active::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-8px;
  width:100%;
  height:3px;
  background:#fff;
  border-radius:10px;
}

/* RESPONSIVE */
@media(max-width:768px){
  .brand img{
    height:54px;
  }

  .brand-title{
    font-size:20px;
  }

  .brand-sub{
    font-size:11px;
  }

  .topmenu{
    gap:16px;
  }
}

/* =========================
   FIX PARAGRAF BERITA
========================= */
.isi-berita p{
  margin-bottom:16px;
  line-height:1.8;
}

.isi-berita br{
  content:"";
  display:block;
  margin-bottom:12px;
}

/* kalau ada text panjang tanpa spasi */
.isi-berita{
  word-wrap:break-word;
  overflow-wrap:break-word;
  word-break:break-word;
}

/* =========================
   DETAIL BERITA (FINAL FIX)
========================= */
.detail-berita{
  background:#fff;
  padding:28px 32px;
  border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,.06);
}

.detail-berita h1{
  font-size:28px;
  margin-bottom:20px;
  color:#0b5ed7;
  line-height:1.3;
}

/* PARAGRAF ARTIKEL */
.isi-berita p{
  margin:0 0 18px !important;
  line-height:1.9;
  font-size:16px;
  color:#333;
}

/* LIST */
.isi-berita ul,
.isi-berita ol{
  margin:0 0 18px 22px;
}

.isi-berita li{
  margin-bottom:8px;
}

/* FIX TEKS PANJANG */
.isi-berita,
.isi-berita *{
  word-wrap:break-word;
  overflow-wrap:break-word;
  word-break:break-word;
}
