:root {
  --background: #f7f8f3;
  --foreground: #17211a;
  --green-900: #063f24;
  --green-800: #0c5a35;
  --green-700: #157247;
  --green-100: #e7f4ea;
  --gold: #f3bd22;
  --gold-dark: #bb7a08;
  --ink-muted: #5d6b61;
  --line: #dce5dc;
  --paper: #ffffff;
  --warm: #fff8e7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 24px rgba(8,52,30,.08);
}
.top-strip { background: var(--green-900); color: #fff; font-size: 13px; }
.top-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}
.brand-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}
.brand { min-width: 0; display: flex; align-items: center; gap: 14px; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand strong { display: block; color: var(--green-900); font-size: 21px; line-height: 1.15; }
.brand small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 14px; }
.domain-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--green-800);
  font-size: 14px;
  background: var(--green-100);
}
.main-nav { border-top: 1px solid var(--line); background: var(--green-800); color: #fff; }
.nav-scroll { min-height: 48px; display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.nav-link, .nav-parent {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover, .nav-group:hover .nav-parent, .nav-group.open .nav-parent { background: rgba(255,255,255,.12); }
.nav-group { position: relative; flex: 0 0 auto; }
.nav-menu {
  position: absolute;
  left: 0;
  top: 48px;
  width: 260px;
  padding: 8px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: var(--foreground);
  box-shadow: 0 20px 40px rgba(2,38,20,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu-link { display: block; border-radius: 6px; padding: 10px 12px; color: var(--green-900); font-size: 14px; }
.nav-menu-link:hover { background: var(--green-100); }

.home-hero {
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6,63,36,.97), rgba(13,112,70,.88)),
    radial-gradient(circle at 78% 22%, rgba(243,189,34,.42), transparent 28%),
    var(--green-900);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 48px; align-items: center; padding: 52px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(243,189,34,.18);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.hero-copy h1, .page-hero h1 { margin: 16px 0 14px; max-width: 760px; font-size: 48px; line-height: 1.08; font-weight: 800; }
.hero-copy p, .page-hero p { max-width: 700px; color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.primary-action, .secondary-action, .footer-button, .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 750;
}
.primary-action, .footer-button, .button.primary { background: var(--gold); color: #1f2613; }
.secondary-action { border: 1px solid rgba(255,255,255,.42); color: #fff; }
.hero-emblem { border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 28px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.hero-emblem img { width: min(260px, 70%); margin: 0 auto 22px; }
.hero-emblem strong, .hero-emblem span { display: block; text-align: center; }
.hero-emblem strong { font-size: 24px; }
.hero-emblem span { margin-top: 8px; color: rgba(255,255,255,.82); }

.info-ticker { background: var(--gold); color: #22260e; }
.ticker-inner { min-height: 48px; display: flex; align-items: center; gap: 20px; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.ticker-inner strong { border-radius: 999px; padding: 5px 10px; background: #fff; color: var(--green-900); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 28px 0; }
.stat-card { min-height: 118px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--paper); box-shadow: 0 10px 28px rgba(17,58,34,.07); }
.stat-card span { color: var(--green-800); font-size: 36px; line-height: 1; font-weight: 800; }
.stat-card strong { margin-top: 9px; color: var(--ink-muted); font-size: 15px; }

.section-band { padding: 56px 0; background: #fff; }
.section-band.muted { background: #eef4ee; }
.section-pad { padding: 56px 0; }
.section-intro { max-width: 760px; margin-bottom: 28px; }
.section-intro h2 { margin: 0; color: var(--green-900); font-size: 32px; line-height: 1.2; }
.section-intro p { margin: 10px 0 0; color: var(--ink-muted); font-size: 16px; line-height: 1.7; }
.category-grid, .service-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-card, .service-card, .news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17,58,34,.06);
}
.category-card, .service-card { min-height: 230px; display: flex; flex-direction: column; padding: 22px; }
.category-card > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 800;
}
.category-card strong, .service-card strong { margin-top: 18px; color: var(--green-900); font-size: 19px; }
.category-card p, .service-card p { margin: 10px 0; color: var(--ink-muted); line-height: 1.6; }
.category-card small, .service-card span { margin-top: auto; color: var(--gold-dark); font-weight: 750; }
.service-card span { color: var(--green-800); }
.news-card { overflow: hidden; }
.news-thumb { height: 150px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(6,63,36,.94), rgba(243,189,34,.6)), var(--green-800); }
.news-thumb img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.2)); }
.news-card div:last-child { padding: 20px; }
.news-card h3 { min-height: 72px; margin: 0; color: var(--green-900); font-size: 18px; line-height: 1.35; }
.news-card time, .news-card a { display: block; margin-top: 12px; color: var(--ink-muted); font-size: 14px; }
.news-card a { color: var(--green-800); font-weight: 750; }

.page-hero { padding: 62px 0; color: #fff; background: linear-gradient(120deg, rgba(6,63,36,.96), rgba(21,114,71,.9)), var(--green-900); }
.page-hero h1 { font-size: 42px; }
.content-layout { padding: 42px 0 64px; }
.content-section {
  scroll-margin-top: 220px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
}
.content-section h2 { margin: 0 0 18px; color: var(--green-900); font-size: 28px; }
.content-section h3 { margin: 18px 0 8px; color: var(--green-800); font-size: 20px; }
.content-section p, .content-section li { color: #2b372f; font-size: 16px; line-height: 1.75; }
.content-section p { margin: 0 0 14px; }
.content-section ul, .content-section ol { margin: 0 0 12px; padding-left: 22px; }
.highlight-note, .law-note { border-left: 4px solid var(--gold); padding: 12px 14px; background: var(--warm); color: #3c3317; }
.maklumat { border: 1px solid #f0d58b; border-radius: 8px; padding: 20px; background: var(--warm); font-size: 18px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; border: 1px solid var(--line); font-size: 15px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: top; }
.data-table th { background: var(--green-100); color: var(--green-900); font-weight: 800; }
.data-table td:first-child, .data-table th:first-child { width: 72px; }
.data-table a { display: inline-flex; min-height: 34px; align-items: center; border-radius: 6px; padding: 0 12px; background: var(--green-800); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pending-link { display: inline-flex; min-height: 34px; align-items: center; border-radius: 6px; padding: 0 12px; background: #f3f0e6; color: #746332; font-size: 14px; font-weight: 700; white-space: nowrap; }

.site-footer { background: #092d1c; color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1.1fr; gap: 28px; padding: 42px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong, .site-footer h2 { color: #fff; }
.footer-brand span, .site-footer p, .footer-links a { color: rgba(255,255,255,.76); }
.site-footer h2 { margin: 0 0 14px; font-size: 18px; }
.site-footer p { margin: 0 0 12px; line-height: 1.6; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-button { margin-top: 8px; background: var(--gold); color: #1f2613; }
.map-panel iframe { width: 100%; height: 190px; border: 0; border-radius: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; text-align: center; color: rgba(255,255,255,.66); font-size: 14px; }

.admin-body { background: #eef4ee; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #092d1c; color: #fff; padding: 22px; }
.admin-sidebar h1 { margin: 0 0 22px; font-size: 20px; }
.admin-sidebar a { display: block; border-radius: 7px; padding: 10px 12px; color: rgba(255,255,255,.82); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 28px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-card { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: #fff; box-shadow: 0 10px 28px rgba(17,58,34,.06); }
.form-grid { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--green-900); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
.field textarea { min-height: 160px; font-family: Consolas, monospace; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.button { border: 0; cursor: pointer; background: var(--green-800); color: #fff; }
.button.light { background: var(--green-100); color: var(--green-900); }
.button.danger { background: #a72b2b; color: #fff; }
.notice { border-left: 4px solid var(--gold); background: var(--warm); padding: 12px 14px; margin-bottom: 18px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(120deg, var(--green-900), var(--green-700)); }
.login-card { width: min(420px, 100%); border-radius: 8px; padding: 28px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.login-card img { width: 88px; margin: 0 auto 16px; }

@media (max-width: 960px) {
  .hero-grid, .footer-grid, .admin-shell { grid-template-columns: 1fr; }
  .category-grid, .service-grid, .news-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sidebar { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1120px); }
  .top-strip-inner { justify-content: flex-start; }
  .brand-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .brand strong { font-size: 18px; }
  .domain-pill { width: 100%; text-align: center; }
  .hero-grid { padding: 38px 0; gap: 28px; }
  .hero-copy h1, .page-hero h1 { font-size: 34px; }
  .hero-copy p, .page-hero p { font-size: 16px; }
  .category-grid, .service-grid, .news-grid, .stat-grid { grid-template-columns: 1fr; }
  .content-section { padding: 20px; }
}

