
:root {
  --navy: #071b40;
  --navy2: #112b55;
  --yellow: #ffd21c;
  --red: #d62828;
  --ink: #142548;
  --soft: #f5f7fb;
  --muted: #627089;
  --line: #e3e8f0;
  --shadow: 0 10px 32px rgba(10, 27, 58, .085);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

/* ==========================================
   HEADER DAN NAVIGASI ASLI
========================================== */

.site-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  color: #fff;
  z-index: 20;
  box-shadow: 0 4px 16px #06173620;
}

.headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: .15px;
}

.mark {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 11px;
  font-weight: 950;
  font-size: 23px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav a {
  font-size: 13px;
  font-weight: 700;
  padding: 14px 0;
  white-space: nowrap;
}

.nav a.active {
  color: var(--yellow);
  border-bottom: 3px solid var(--yellow);
}

.headbtn {
  background: var(--yellow);
  color: var(--navy);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.hamb {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid #627391;
  padding: 8px 12px;
  border-radius: 9px;
}

/* ==========================================
   BERANDA / HERO ASLI
========================================== */

.hero {
  background: radial-gradient(
    circle at 30% 55%,
    #ffea6e 0%,
    #ffd617 45%,
    #ffc607 100%
  );
  overflow: hidden;
  position: relative;
}

/* LENGKUNGAN MERAH DAN PUTIH */

.hero::after {
  content: "";
  position: absolute;
  bottom: -155px;
  left: -7%;
  width: 114%;
  height: 250px;
  border-radius: 50% 50% 0 0;
  background: var(--red);
  transform: rotate(-5deg);
  border-top: 30px solid #fff;
  opacity: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  min-height: 540px;
  position: relative;
  z-index: 1;
}

/* FOTO H. USMAN MARHAM */

.hero-photo {
  align-self: end;
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 540px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
}

/* TEKS HERO */

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 60px 0 65px 36px;
}

.eyebrow {
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
  margin: 0 0 13px;
}

.hero h1 {
  font-size: clamp(43px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -2.4px;
  margin: 0 0 16px;
  color: #0b1d40;
}

.hero h1 span { color: #5e4908; }

.hero p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  font-weight: 600;
}

/* ==========================================
   TOMBOL DAN SOSIAL
========================================== */

.actions {
  display: flex;
  gap: 12px;
  margin: 27px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 850;
  border-radius: 10px;
  border: 1px solid transparent;
  gap: 10px;
}

.btn.dark {
  background: var(--navy);
  color: white;
}

.btn.outline {
  border-color: #0b1d40;
  color: var(--navy);
  background: transparent;
}

.btn.yellow {
  background: var(--yellow);
  color: var(--navy);
}

.social {
  display: flex;
  gap: 12px;
}

.social span {
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

/* ==========================================
   SECTION UMUM
========================================== */

.section { padding: 67px 0; }
.section.alt { background: var(--soft); }

.h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.8px;
  line-height: 1.18;
  margin: 0 0 12px;
}

.h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 5px;
  background: var(--yellow);
  border-radius: 9px;
  margin-top: 12px;
}

.lead {
  color: var(--muted);
  line-height: 1.75;
  max-width: 740px;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.iconbox {
  min-width: 53px;
  width: 53px;
  height: 53px;
  border-radius: 14px;
  background: #ffeb88;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #071b40;
}

.feature h3,
.card h3 {
  font-size: 18px;
  margin: 0 0 9px;
}

.feature p,
.card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ==========================================
   PROFIL DAN KONTEN
========================================== */

.split {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

.pill {
  display: inline-block;
  background: #ffec8f;
  color: #172547;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================
   HERO HALAMAN LAIN
========================================== */

.pagehero {
  background: linear-gradient(
    110deg,
    #071b40 0%,
    #133568 70%,
    #ffca13 170%
  );
  color: white;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.pagehero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -90px;
  width: 330px;
  height: 175px;
  border: 35px solid #ffd21c;
  border-radius: 50%;
  opacity: .8;
}

.pagehero h1 {
  font-size: clamp(37px, 5vw, 57px);
  margin: 0 0 12px;
}

.pagehero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.pagehero p {
  max-width: 650px;
  line-height: 1.7;
  color: #e5edf8;
}

.crumb {
  font-size: 12px;
  color: #8b95a8;
  padding: 17px 0;
}

.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.profile img {
  width: 100%;
  border-radius: 14px;
}

.bio p {
  line-height: 1.82;
  color: #4b5971;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel-title {
  font-size: 19px;
  font-weight: 850;
  margin: 0 0 18px;
}

.timeline {
  border-left: 2px solid #ffd21c;
  padding-left: 18px;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px;
  color: #5c6980;
  font-size: 13px;
  line-height: 1.7;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 11px;
  height: 11px;
  background: var(--yellow);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d6b300;
}

.timeline-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.placeholder {
  background: #f0f3f8;
  min-height: 160px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #64738b;
  padding: 25px;
}

/* ==========================================
   PUBLIKASI
========================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  overflow: hidden;
  padding: 0;
}

.news-card .placeholder {
  border-radius: 0;
  min-height: 165px;
  background: linear-gradient(145deg, #fbe87f, #f4f6fa);
}

.news-body { padding: 22px; }
.news-body h3 { line-height: 1.4; }

.searchline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.searchline input {
  padding: 13px;
  border-radius: 10px;
  border: 1px solid #d8dfe9;
  flex: 1;
  min-width: 200px;
}

.chip {
  border: 1px solid #dce2eb;
  background: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
}

.chip.selected {
  background: var(--yellow);
  border-color: var(--yellow);
}

/* ==========================================
   KONTAK
========================================== */

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
}

.field {
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin: 13px 0 6px;
}

.contact input,
.contact textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  padding: 12px 14px;
}

.contact textarea { min-height: 145px; }

/* ==========================================
   FOOTER
========================================== */

.foot {
  background: var(--navy);
  color: white;
  padding: 40px 0 18px;
  margin-top: 40px;
}

.footrow {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot p {
  max-width: 390px;
  font-size: 13px;
  color: #c3cee1;
  line-height: 1.8;
}

.footlinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}

.copyright {
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid #ffffff30;
  color: #aebdd2;
  font-size: 11px;
}

.notice {
  background: #fff8d8;
  border: 1px solid #f8e69c;
  border-radius: 10px;
  padding: 12px 16px;
  color: #66521b;
  font-size: 12px;
  line-height: 1.6;
  margin: 20px 0;
}

.hidden,
.page-preview[hidden] {
  display: none !important;
}

/* ==========================================
   RESPONSIVE TABLET ASLI
========================================== */

@media (max-width: 920px) {

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 12px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.show { display: flex; }
  .nav a { padding: 12px; }
  .hamb { display: block; }
  .headbtn { display: none; }

  .three,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split { gap: 25px; }
  .hero-grid { min-height: 540px; }
  .hero-copy { padding-left: 18px; }
}

/* ==========================================
   RESPONSIVE SMARTPHONE ASLI
========================================== */

@media (max-width: 640px) {

  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand { font-size: 17px; }

  .mark {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-row: 1;
    padding: 39px 0 18px;
  }

  .hero-photo {
    grid-row: 2;
    padding: 0 0 12px;
  }

  .hero-photo img {
    width: 100%;
    max-width: 340px;
    height: 390px;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
  }

  .hero h1 { font-size: 48px; }
  .hero p { font-size: 14px; }
  .hero::after { display: none; }

  .three,
  .news-grid,
  .two,
  .split,
  .profile,
  .contact {
    grid-template-columns: 1fr;
  }

  .section { padding: 44px 0; }
  .pagehero { padding: 45px 0; }
  .profile { gap: 15px; }
  .profile img { max-width: 420px; }
  .footrow { flex-direction: column; }
  .card { padding: 18px; }
}

/* ==========================================
   PENYEMPURNAAN NAVBAR H. USMAN MARHAM
   Bagian lain website tetap dipertahankan
========================================== */

/* NAVBAR DESKTOP */

@media (min-width: 1101px) {

  .site-header .headrow {
    width: min(1500px, calc(100% - 48px));
    min-height: 82px;
    gap: clamp(14px, 1.4vw, 26px);
  }

  .site-header .headrow > .brand {
    flex: 0 0 auto;
    font-size: clamp(17px, 1.25vw, 21px);
  }

  .site-header .headrow > .nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.45vw, 26px);
  }

  .site-header .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0 9px;
    border-bottom: 3px solid transparent;
    font-size: clamp(12px, .85vw, 14px);
    transition:
      color .2s ease,
      border-color .2s ease;
  }

  .site-header .nav a.active,
  .site-header .nav a:hover {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
  }

  /* DUA TOMBOL BERDAMPINGAN */

  .site-header .header-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: 0;
  }

  .site-header .header-actions .headbtn,
  .site-header .header-actions .admin-login-btn {
    height: 46px;
    min-height: 46px;
    border-radius: 12px;
  }

  .site-header .header-actions .headbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    background: #ffdf34;
  }

  .site-header .header-actions .admin-login-btn {
    width: 46px;
    flex-basis: 46px;
    background: #ffdf34;
  }
}

/* ==========================================
   RESPONSIVE LAYAR MENENGAH
========================================== */

@media (min-width: 921px) and (max-width: 1100px) {

  .site-header .headrow {
    gap: 12px;
  }

  .site-header .headrow > .brand {
    font-size: 17px;
  }

  .site-header .headrow > .nav {
    gap: 12px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .site-header .nav a {
    font-size: 11px;
  }

  .site-header .header-actions {
    margin-left: 0;
    gap: 7px;
  }

  .site-header .header-actions .headbtn {
    padding: 12px 10px;
    font-size: 11px;
  }
}

/* ==========================================
   RESPONSIVE TABLET - NAVBAR
========================================== */

@media (max-width: 920px) {

  .site-header .headrow {
    gap: 10px;
  }

  .site-header .headrow > .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header .headrow > .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header .header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .site-header .header-actions .headbtn {
    display: none;
  }

  .site-header .header-actions .admin-login-btn {
    display: inline-flex;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    background: #ffdf34;
  }

  .site-header .hamb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .site-header .nav {
    z-index: 30;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .12);
  }

  .site-header .nav a.active {
    border-bottom: 0;
    border-left: 3px solid var(--yellow);
    padding-left: 12px;
  }
}

/* ==========================================
   RESPONSIVE SMARTPHONE - NAVBAR
========================================== */

@media (max-width: 640px) {

  .site-header .headrow {
    min-height: 70px;
  }

  .site-header .headrow > .brand {
    font-size: clamp(12px, 3.5vw, 17px);
    gap: 7px;
  }

  .site-header .header-actions .admin-login-btn {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .site-header .hamb {
    padding: 8px 10px;
  }

  .site-header .nav {
    top: 70px;
  }
}

/* ==========================================
   AKSESIBILITAS
========================================== */

@media (prefers-reduced-motion: reduce) {

  .site-header .nav a {
    transition: none;
  }
}
