@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.wrap { width: min(1160px, 92%); margin: auto; }

/* TOP BAR & HEADER */
.topbar-date {
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  padding: 6px 0;
}
.topbar-date .wrap { display: flex; justify-content: space-between; align-items: center; }
.top { color: #fff; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08); }
.brand { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: inherit; }
.logo span { border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.brand small { color: rgba(255, 255, 255, 0.85); font-size: 13px; font-weight: 500; }

/* STICKY NAVIGATION */
nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.navlinks { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; white-space: nowrap; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s;
}
.navlinks a:hover, .navlinks a.active { background: #f1f5f9; color: #0f172a; }

/* BADGES & TYPOGRAPHY */
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
}
.muted { color: #64748b; font-size: 13px; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border: 0;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.button:hover, button:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }
.secondary { background: #e2e8f0 !important; color: #1e293b !important; box-shadow: none; }
.secondary:hover { background: #cbd5e1 !important; }

/* SECTION HEADINGS */
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}
.sectionhead h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }

/* MODERN NEWS CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 18px 0 40px; }
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); }
.card-img-wrap { overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: #e2e8f0; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover img { transform: scale(1.04); }
.pad { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.38; margin: 10px 0 8px; color: #0f172a; }
.card h3 a:hover { color: #b45309; }
.card p.excerpt { font-size: 14px; color: #475569; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ARTICLE DETAIL PAGE */
.article {
  background: #fff;
  margin-top: 28px;
  margin-bottom: 50px;
  padding: clamp(22px, 5vw, 52px);
  border-radius: 20px;
  max-width: 880px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}
.article h1 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin: 14px 0; color: #0f172a; }
.cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: 14px; }
.lead { font-size: 18px; color: #475569; font-weight: 500; line-height: 1.65; border-left: 4px solid #cbd5e1; padding-left: 16px; margin: 20px 0; }
.body { font-size: 17px; line-height: 1.85; color: #1e293b; }

/* FORMS & ADMIN ELEMENTS */
.login { width: min(420px, 92%); margin: 8vh auto; background: #fff; padding: 32px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px rgba(15,23,42,0.06); }
form label { display: block; font-weight: 700; font-size: 13.5px; margin: 14px 0 6px; color: #334155; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; transition: border-color 0.2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #0f172a; }
textarea { min-height: 100px; }
form button { margin-top: 16px; }
.formpage { max-width: 850px; background: #fff; margin: 28px auto; padding: 30px; border-radius: 16px; border: 1px solid #e2e8f0; }
.tablewrap { overflow: auto; background: #fff; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.comment { padding: 16px; background: #f8fafc; border-radius: 12px; margin-bottom: 12px; border: 1px solid #e2e8f0; }
.inline { display: flex; gap: 8px; }
.danger { background: #dc2626 !important; }
.error { color: #dc2626; font-weight: 600; }
.placeholder { background: #e2e8f0; display: grid; place-items: center; color: #64748b; font-size: 24px; font-weight: 800; }

/* FOOTER */
footer { color: #fff; padding: 40px 0 30px; margin-top: 60px; }
footer p { color: rgba(255, 255, 255, 0.82); font-size: 14px; }
footer small { color: rgba(255, 255, 255, 0.65); }

@media(max-width: 760px) {
  .brand { min-height: 68px; }
  .brand small { display: none; }
  .article { padding: 20px 18px; border-radius: 14px; }
}