@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --maroon: #6f0910;
  --red: #a90f19;
  --red-2: #c51d27;
  --gold: #d7a23a;
  --gold-soft: #f8ead0;
  --cream: #fbf5eb;
  --paper: #fffdfa;
  --ink: #211111;
  --muted: #706363;
  --line: #ead9c5;
  --white: #fff;
  --shadow: 0 22px 64px rgba(48, 15, 15, .12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 250, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 6px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(215, 162, 58, .38);
}

.brand strong {
  display: block;
  color: var(--maroon);
  font-size: 1.06rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

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

.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #4b3232;
  font-size: .92rem;
  font-weight: 800;
}

.nav a:hover,
.nav a.active {
  color: var(--maroon);
  background: var(--gold-soft);
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 13px;
  background: var(--maroon);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  background:
    linear-gradient(110deg, var(--maroon) 0%, var(--red) 46%, transparent 46.1%),
    linear-gradient(180deg, #fff9ef 0%, #fffdfa 100%);
  padding: 70px 0 76px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 70px;
}

.hero-copy {
  color: var(--white);
  max-width: 690px;
}

.label,
.small-title {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--gold-soft);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 610px;
  font-size: clamp(2.5rem, 4.6vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}

.hero h2 {
  max-width: 610px;
  margin-top: 10px;
  color: #ffe8ad;
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 610px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  color: #3a2100;
  background: linear-gradient(135deg, #ffe5a5, var(--gold));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.08);
}

.hero-media {
  position: relative;
  display: grid;
  justify-items: center;
}

.emblem-card {
  width: 390px;
  height: 390px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 48%, #ffffff 0%, #ffffff 48%, #fff8ea 100%);
  border: 1px solid rgba(215, 162, 58, .42);
  box-shadow: var(--shadow);
}

.emblem-card img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(74, 22, 22, .14));
}

.hero-note {
  position: absolute;
  left: -18px;
  bottom: 30px;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}

.hero-note strong {
  color: var(--maroon);
  font-size: 1rem;
}

.hero-note span {
  color: var(--muted);
  font-weight: 800;
  font-size: .85rem;
}

.section {
  padding: 84px 0;
}

.two-col,
.monev-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 58px;
  align-items: start;
}

.section-title h2,
.section-head h2,
.contact-card h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.13;
  letter-spacing: -.045em;
}

.section-title p,
.two-col > p,
.section-head p,
.contact-card p {
  color: var(--muted);
}

.profile {
  background: var(--paper);
}

.profile .small-title,
.documents .small-title,
.flow .small-title,
.contact .small-title {
  color: var(--maroon);
  background: var(--gold-soft);
  border-color: var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.feature,
.flow-grid article {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(48, 15, 15, .06);
}

.feature span,
.flow-grid span,
.monev-list span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--gold));
  font-weight: 900;
}

.feature h3,
.doc-item h3,
.flow-grid h3,
.monev-list h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.feature p,
.doc-item p,
.flow-grid p {
  color: var(--muted);
}

.documents {
  background: #fff7ea;
}

.center {
  max-width: 980px;
  text-align: center;
}

.center .small-title {
  margin-left: auto;
  margin-right: auto;
}

.doc-list {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.doc-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(48, 15, 15, .06);
}

.doc-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--maroon);
  background: var(--gold-soft);
  font-weight: 900;
  font-size: 1.25rem;
}

.doc-item a {
  color: var(--maroon);
  font-weight: 900;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
}

.monev {
  color: var(--white);
  background:
    radial-gradient(circle at 88% 10%, rgba(215,162,58,.22), transparent 28%),
    linear-gradient(135deg, #2b1111 0%, var(--maroon) 100%);
}

.monev .section-title h2,
.monev .section-title p {
  color: var(--white);
}

.monev .light {
  color: #3a2100;
  background: linear-gradient(135deg, #fff2be, var(--gold));
  border: 0;
}

.monev-list {
  display: grid;
  gap: 20px;
}

.monev-list article {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255,255,255,.16);
}

.monev-list p {
  color: rgba(255,255,255,.76);
  margin-bottom: 22px;
}

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

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.contact {
  padding: 76px 0;
  background: var(--paper);
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-info {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.footer {
  padding: 26px 0;
  background: #180909;
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    background: linear-gradient(180deg, var(--maroon), var(--red));
  }

  .hero-grid,
  .two-col,
  .monev-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-media {
    justify-items: start;
  }

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

  .contact-card {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }

  .nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.show { display: flex; }

  .nav a {
    display: block;
    color: var(--ink);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand span {
    display: none;
  }

  .hero {
    padding: 44px 0;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .emblem-card {
    width: 100%;
    height: 300px;
  }

  .emblem-card img {
    width: 240px;
    height: 240px;
  }

  .hero-note {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .feature-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .doc-item {
    grid-template-columns: 1fr;
  }

  .doc-item a {
    width: fit-content;
  }

  .footer-inner {
    flex-direction: column;
  }
}


/* === Override hero: lebih rapi, tidak memotong teks === */
.hero {
  background:
    radial-gradient(circle at 92% 20%, rgba(215, 162, 58, .16), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #fffdfa 100%);
  padding: 46px 0 64px;
}

.hero-grid {
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 42px;
  align-items: stretch;
  padding: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(215, 162, 58, .28);
  box-shadow: 0 26px 80px rgba(48, 15, 15, .10);
}

.hero-copy {
  max-width: none;
  width: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 56px;
  color: var(--white);
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 162, 58, .20), transparent 34%),
    linear-gradient(135deg, #700810 0%, #a90f19 100%);
}

.hero-copy .label {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
  color: #ffe9ad;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(2.55rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.06em;
}

.hero h2 {
  max-width: 650px;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.1;
  color: #ffe2a0;
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
}

.hero-media {
  min-height: 560px;
  padding: 48px 44px;
  justify-content: center;
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(215, 162, 58, .12), transparent 34%),
    linear-gradient(180deg, #fffdfa 0%, #fff7ea 100%);
}

.emblem-card {
  width: 330px;
  height: 330px;
  border-radius: 32px;
  box-shadow: 0 18px 52px rgba(48, 15, 15, .10);
}

.emblem-card img {
  width: 76%;
  height: 76%;
}

.hero-note {
  position: static;
  width: 100%;
  max-width: 330px;
  margin-top: 18px;
  border-left: 0;
  border-top: 5px solid var(--gold);
  box-shadow: 0 14px 36px rgba(48, 15, 15, .08);
}

@media (max-width: 980px) {
  .hero {
    background: linear-gradient(180deg, #fffaf1, #fffdfa);
    padding: 28px 0 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }

  .hero-copy {
    min-height: auto;
    padding: 48px 34px;
  }

  .hero-media {
    min-height: auto;
    padding: 38px 30px;
    justify-items: start;
  }
}

@media (max-width: 600px) {
  .hero-copy {
    padding: 38px 22px;
  }

  .hero-media {
    padding: 30px 22px;
  }

  .emblem-card {
    width: 100%;
    height: 280px;
  }

  .emblem-card img {
    width: 230px;
    height: 230px;
  }

  .hero-note {
    max-width: none;
  }
}


/* === Dokumen UPMI: hilangkan konsep ikon huruf === */
.doc-item {
  grid-template-columns: 150px 1fr auto;
  align-items: center;
}

.doc-mark {
  display: none;
}

.doc-meta {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 247, 223, .82), rgba(255, 255, 255, .96));
  border-left: 4px solid var(--gold);
  border: 1px solid var(--line);
}

.doc-meta span {
  color: var(--maroon);
  font-weight: 900;
  font-size: .9rem;
}

.doc-meta small {
  color: var(--muted);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 700px) {
  .doc-item {
    grid-template-columns: 1fr;
  }

  .doc-meta {
    width: fit-content;
    min-width: 150px;
  }
}


/* === Minimal rounded border override === */
:root {
  --radius: 14px;
}

.brand img {
  border-radius: 10px;
}

.nav a,
.label,
.small-title,
.btn,
.doc-item a {
  border-radius: 8px;
}

.menu-toggle {
  border-radius: 8px;
}

.hero-grid {
  border-radius: 16px;
}

.hero-copy {
  border-radius: 0;
}

.emblem-card {
  border-radius: 16px;
}

.hero-note {
  border-radius: 10px;
}

.feature,
.flow-grid article,
.monev-list article,
.contact-card {
  border-radius: 14px;
}

.doc-item {
  border-radius: 12px;
}

.doc-meta {
  border-radius: 8px;
}

.feature span,
.flow-grid span,
.monev-list span {
  border-radius: 8px;
}

@media (max-width: 820px) {
  .nav {
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .hero-grid {
    border-radius: 14px;
  }
}


/* === Hero note: border tipis tanpa garis tebal === */
.hero-note {
  border: 1px solid rgba(215, 162, 58, .34) !important;
  border-top: 1px solid rgba(215, 162, 58, .34) !important;
  border-left: 1px solid rgba(215, 162, 58, .34) !important;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(48, 15, 15, .07);
  padding: 17px 18px;
}

.hero-note strong {
  color: var(--maroon);
}

.hero-note span {
  color: var(--muted);
}


/* === Hero maroon penuh seperti referensi === */
.hero {
  background: #a60d17 !important;
  padding: 0 !important;
}

.hero-grid {
  width: min(100%, 100%) !important;
  min-height: 560px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #a60d17 !important;
  box-shadow: none !important;
}

.hero-copy {
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: 1160px !important;
  min-height: auto !important;
  margin: 0 auto !important;
  padding: 74px 0 76px !important;
  background: transparent !important;
  color: #ffffff !important;
}

.hero-copy .label,
.label {
  padding: 9px 14px !important;
  margin-bottom: 22px !important;
  border-radius: 8px !important;
  color: #ffe9ad !important;
  background: rgba(255, 255, 255, .10) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  font-size: .74rem !important;
  letter-spacing: .075em !important;
}

.hero h1 {
  max-width: 1100px !important;
  color: #ffffff !important;
  font-size: clamp(2.65rem, 5.2vw, 4.95rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.065em !important;
  margin: 0 !important;
}

.hero h2 {
  max-width: 980px !important;
  margin-top: 8px !important;
  color: #ffe6a3 !important;
  font-size: clamp(2rem, 3.7vw, 3.55rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.055em !important;
}

.hero p {
  max-width: 760px !important;
  margin-top: 24px !important;
  color: rgba(255, 255, 255, .86) !important;
  font-size: 1.06rem !important;
  line-height: 1.75 !important;
}

.hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 34px !important;
}

.btn-gold {
  color: #211111 !important;
  background: linear-gradient(135deg, #ffe29a, #d7a23a) !important;
  border: 1px solid rgba(255, 226, 154, .45) !important;
  box-shadow: none !important;
}

.btn-outline {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .05) !important;
}

.hero-media,
.emblem-card,
.hero-note {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    background: #a60d17 !important;
  }

  .hero-grid {
    background: #a60d17 !important;
  }

  .hero-copy {
    width: min(100% - 34px, 1160px) !important;
    padding: 58px 0 62px !important;
  }
}

@media (max-width: 600px) {
  .hero-copy {
    width: min(100% - 28px, 1160px) !important;
    padding: 44px 0 48px !important;
  }

  .hero h1 {
    font-size: 2.45rem !important;
  }

  .hero h2 {
    font-size: 2rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
  }
}


/* === Hero split dengan logo kanan seperti referensi === */
.hero {
  background: #fffaf1 !important;
  padding: 0 !important;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 560px;
}

.hero-left {
  display: flex;
  align-items: center;
  background: #a60d17;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px 36px;
  background:
    radial-gradient(circle at 50% 32%, rgba(215, 162, 58, .12), transparent 34%),
    linear-gradient(180deg, #fffdfa 0%, #fff7ea 100%);
}

.hero-copy {
  width: min(690px, calc(100% - 76px)) !important;
  max-width: 690px !important;
  margin-left: max(38px, calc((100vw - 1160px) / 2)) !important;
  margin-right: 38px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
}

.hero-copy .label,
.label {
  padding: 9px 14px !important;
  margin-bottom: 22px !important;
  border-radius: 8px !important;
  color: #ffe9ad !important;
  background: rgba(255, 255, 255, .10) !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  font-size: .73rem !important;
  letter-spacing: .075em !important;
}

.hero h1 {
  max-width: 680px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(2.4rem, 4vw, 4.15rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.065em !important;
}

.hero h2 {
  max-width: 660px !important;
  margin-top: 8px !important;
  color: #ffe6a3 !important;
  font-size: clamp(1.8rem, 2.9vw, 2.85rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.055em !important;
}

.hero p {
  max-width: 650px !important;
  margin-top: 24px !important;
  color: rgba(255, 255, 255, .86) !important;
  font-size: 1.02rem !important;
  line-height: 1.75 !important;
}

.hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 34px !important;
}

.btn-gold {
  color: #211111 !important;
  background: linear-gradient(135deg, #ffe29a, #d7a23a) !important;
  border: 1px solid rgba(255, 226, 154, .45) !important;
  box-shadow: none !important;
}

.btn-outline {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .05) !important;
}

.emblem-card {
  display: grid !important;
  width: 100% !important;
  max-width: 330px !important;
  height: 330px !important;
  margin: 0 auto !important;
  place-items: center !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% 48%, #ffffff 0%, #ffffff 48%, #fff8ea 100%) !important;
  border: 1px solid rgba(215, 162, 58, .42) !important;
  box-shadow: 0 18px 52px rgba(48, 15, 15, .10) !important;
}

.emblem-card img {
  width: 74% !important;
  height: 74% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 16px 28px rgba(74, 22, 22, .14)) !important;
}

.hero-note {
  display: grid !important;
  position: static !important;
  width: 100% !important;
  max-width: 330px !important;
  margin: 0 auto !important;
  gap: 2px !important;
  padding: 18px 18px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(215, 162, 58, .34) !important;
  box-shadow: 0 10px 28px rgba(48, 15, 15, .07) !important;
}

.hero-note strong {
  color: #76080f !important;
  font-size: 1rem !important;
}

.hero-note span {
  color: #706363 !important;
  font-weight: 800 !important;
  font-size: .84rem !important;
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-left {
    min-height: auto;
  }

  .hero-copy {
    width: min(100% - 40px, 760px) !important;
    margin: 0 auto !important;
    padding: 58px 0 62px !important;
  }

  .hero-right {
    align-items: flex-start;
    padding: 36px 20px 46px;
  }

  .emblem-card,
  .hero-note {
    margin-left: max(0px, calc((100vw - 760px) / 2)) !important;
    margin-right: auto !important;
  }
}

@media (max-width: 600px) {
  .hero-copy {
    width: min(100% - 28px, 760px) !important;
    padding: 44px 0 48px !important;
  }

  .hero h1 {
    font-size: 2.35rem !important;
  }

  .hero h2 {
    font-size: 1.9rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
  }

  .hero-right {
    padding: 28px 14px 38px;
  }

  .emblem-card {
    max-width: none !important;
    height: 280px !important;
  }

  .emblem-card img {
    width: 230px !important;
    height: 230px !important;
  }

  .hero-note {
    max-width: none !important;
    margin-left: 0 !important;
  }
}


/* === Redesign Monitoring & Evaluasi: clean formal === */
.monev {
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, #fffdfa 0%, #fff7ea 100%) !important;
  padding: 84px 0 !important;
}

.monev .section-head,
.monev-head {
  max-width: 880px !important;
}

.monev .small-title {
  color: var(--maroon) !important;
  background: var(--gold-soft) !important;
  border: 1px solid var(--line) !important;
}

.monev .section-head h2,
.monev-head h2 {
  color: var(--ink) !important;
}

.monev .section-head p,
.monev-head p {
  color: var(--muted) !important;
}

.monev-clean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.monev-clean-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(48, 15, 15, .06);
}

.monev-clean-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--maroon), var(--gold));
}

.monev-clean-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.monev-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--maroon);
  background: var(--gold-soft);
  border: 1px solid rgba(215, 162, 58, .35);
  font-weight: 900;
}

.monev-clean-top small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.monev-clean-card h3 {
  margin-bottom: 12px;
  color: var(--maroon);
  font-size: 1.35rem;
  line-height: 1.3;
}

.monev-clean-card p {
  color: var(--muted);
  margin-bottom: 26px;
}

.monev-link {
  width: fit-content;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--maroon);
  background: #ffffff;
  border: 1px solid rgba(166, 13, 23, .26);
  font-weight: 900;
  transition: .2s ease;
}

.monev-link:hover {
  color: #ffffff;
  background: var(--maroon);
  transform: translateY(-2px);
}

.monev-grid,
.monev-list {
  display: none !important;
}

@media (max-width: 820px) {
  .monev-clean-grid {
    grid-template-columns: 1fr;
  }

  .monev-clean-card {
    min-height: auto;
  }
}


/* === Revisi warna utama: hero dan monev maroon gelap === */
:root {
  --maroon: #4b0b0f;
  --red: #6b1016;
  --red-2: #8b151d;
}

.hero-left {
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 162, 58, .16), transparent 34%),
    linear-gradient(135deg, #3a080b 0%, #5a0c12 58%, #73131a 100%) !important;
}

.hero {
  background: #fffaf1 !important;
}

.hero-copy .label,
.label {
  color: #ffe5a3 !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .22) !important;
}

.hero h1 {
  color: #ffffff !important;
}

.hero h2 {
  color: #f8d686 !important;
}

.hero p {
  color: rgba(255, 255, 255, .84) !important;
}

.btn-gold {
  color: #2a1400 !important;
  background: linear-gradient(135deg, #ffe4a0, #d7a23a) !important;
}

.btn-outline {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .32) !important;
  background: rgba(255, 255, 255, .045) !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .12) !important;
}

/* Monev kembali maroon gelap, tapi desain tetap clean */
.monev {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 162, 58, .16), transparent 28%),
    radial-gradient(circle at 90% 100%, rgba(139, 21, 29, .28), transparent 32%),
    linear-gradient(135deg, #2c0709 0%, #4b0b0f 52%, #611018 100%) !important;
  padding: 84px 0 !important;
}

.monev .small-title {
  color: #2a1400 !important;
  background: linear-gradient(135deg, #ffe7a6, #d7a23a) !important;
  border: 1px solid rgba(255, 231, 166, .38) !important;
}

.monev .section-head h2,
.monev-head h2 {
  color: #ffffff !important;
}

.monev .section-head p,
.monev-head p {
  color: rgba(255, 255, 255, .78) !important;
}

.monev-clean-card {
  background: rgba(255, 255, 255, .075) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

.monev-clean-card::before {
  background: linear-gradient(180deg, #ffe4a0, #d7a23a) !important;
}

.monev-badge {
  color: #2a1400 !important;
  background: linear-gradient(135deg, #ffe7a6, #d7a23a) !important;
  border: 1px solid rgba(255, 231, 166, .34) !important;
}

.monev-clean-top small {
  color: rgba(255, 255, 255, .72) !important;
}

.monev-clean-card h3 {
  color: #ffffff !important;
}

.monev-clean-card p {
  color: rgba(255, 255, 255, .76) !important;
}

.monev-link {
  color: #2a1400 !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
}

.monev-link:hover {
  color: #2a1400 !important;
  background: #ffe4a0 !important;
}

@media (max-width: 980px) {
  .hero-left {
    background:
      radial-gradient(circle at 0% 0%, rgba(215, 162, 58, .16), transparent 34%),
      linear-gradient(135deg, #3a080b 0%, #5a0c12 58%, #73131a 100%) !important;
  }
}


/* === Redesign Kontak: maroon gelap, lebih formal === */
.contact {
  padding: 84px 0 !important;
  background:
    linear-gradient(180deg, #fffdfa 0%, #fff7ea 100%) !important;
}

.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: stretch;
  padding: 0 !important;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #2c0709 0%, #4b0b0f 55%, #611018 100%);
  border: 1px solid rgba(215, 162, 58, .28);
  box-shadow: 0 22px 60px rgba(48, 15, 15, .14);
}

.contact-main {
  padding: 42px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-main .small-title {
  color: #2a1400 !important;
  background: linear-gradient(135deg, #ffe7a6, #d7a23a) !important;
  border: 0 !important;
  margin-bottom: 18px;
}

.contact-main h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.05em;
  margin-bottom: 8px;
}

.contact-main p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.03rem;
}

.contact-boxes {
  display: grid;
  gap: 14px;
  padding: 32px;
  background: rgba(255, 255, 255, .06);
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.contact-box {
  padding: 20px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(215, 162, 58, .24);
}

.contact-box small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-box strong {
  display: block;
  color: var(--maroon);
  font-size: 1rem;
  line-height: 1.45;
}

.contact-card,
.contact-info {
  display: none !important;
}

@media (max-width: 860px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-boxes {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
}

@media (max-width: 600px) {
  .contact-main {
    padding: 32px 22px;
  }

  .contact-boxes {
    padding: 22px;
  }
}


/* === Halaman detail dokumen/pedoman === */
.page-main {
  background: #fffdfa;
}

.page-hero {
  padding: 74px 0 66px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 0%, rgba(215, 162, 58, .16), transparent 30%),
    linear-gradient(135deg, #2c0709 0%, #4b0b0f 56%, #611018 100%);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 42px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
  font-weight: 700;
}

.breadcrumb a {
  color: #ffe2a0;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
}

.page-hero-logo {
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 240px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(215, 162, 58, .38);
}

.page-hero-logo img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.page-content {
  padding: 70px 0 86px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.content-card {
  padding: 34px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(48, 15, 15, .06);
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2 {
  margin-bottom: 16px;
  color: var(--maroon);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.content-card h3 {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card ul,
.content-card ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.side-card {
  position: sticky;
  top: 98px;
  padding: 24px;
  border-radius: 14px;
  background: #fff7ea;
  border: 1px solid var(--line);
}

.side-card h3 {
  color: var(--maroon);
  margin-bottom: 14px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(234, 217, 197, .8);
  font-weight: 800;
  font-size: .9rem;
}

.side-nav a:hover,
.side-nav a.active {
  color: #ffffff;
  background: var(--maroon);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-maroon {
  color: #ffffff;
  background: var(--maroon);
  border: 1px solid var(--maroon);
}

.btn-line {
  color: var(--maroon);
  background: #ffffff;
  border: 1px solid rgba(75, 11, 15, .26);
}

.btn-line:hover {
  color: #ffffff;
  background: var(--maroon);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.doc-table th,
.doc-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--maroon);
  background: #fff7ea;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 920px) {
  .page-hero-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-logo {
    width: fit-content;
    min-width: 260px;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 52px 0;
  }

  .content-card {
    padding: 24px;
  }

  .page-hero-logo {
    width: 100%;
  }
}


/* === PDF viewer halaman Pedoman Monev Dosen === */
.pdf-viewer-card {
  padding: 0;
  overflow: hidden;
}

.pdf-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
  background: #fff7ea;
}

.pdf-viewer-header h2 {
  margin-bottom: 8px;
}

.pdf-viewer-header p {
  max-width: 680px;
}

.pdf-frame-wrap {
  background: #f7efe4;
  padding: 18px;
}

.pdf-frame {
  width: 100%;
  min-height: 760px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.pdf-fallback {
  padding: 0 30px 28px;
  color: var(--muted);
}

.pdf-fallback a {
  color: var(--maroon);
  font-weight: 900;
}

@media (max-width: 760px) {
  .pdf-viewer-header {
    flex-direction: column;
    padding: 24px;
  }

  .pdf-frame-wrap {
    padding: 12px;
  }

  .pdf-frame {
    min-height: 620px;
  }

  .pdf-fallback {
    padding: 0 24px 24px;
  }
}


/* === Clean document reader pages: Monev Dosen & Pembelajaran === */
.document-page-clean {
  background: #fffdfa;
}

.document-topbar {
  color: #ffffff;
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 162, 58, .14), transparent 30%),
    linear-gradient(135deg, #2c0709 0%, #4b0b0f 56%, #611018 100%);
  padding: 46px 0;
}

.document-topbar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.document-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .68);
  font-size: .88rem;
  font-weight: 700;
}

.document-breadcrumb a {
  color: #ffe2a0;
}

.document-breadcrumb strong {
  color: rgba(255, 255, 255, .86);
}

.document-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #2a1400;
  background: linear-gradient(135deg, #ffe7a6, #d7a23a);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-topbar h1 {
  max-width: 780px;
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 3.7vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.document-topbar p {
  max-width: 760px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.02rem;
}

.document-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 250px;
}

.btn-outline-light {
  color: #ffffff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .28);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .14);
}

.document-reader-section {
  padding: 34px 0 76px;
}

.document-reader-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.document-info-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(48, 15, 15, .06);
}

.document-info-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  padding: 8px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #fff7ea;
  border: 1px solid var(--line);
}

.document-info-panel h2 {
  margin-bottom: 10px;
  color: var(--maroon);
  font-size: 1.35rem;
  line-height: 1.25;
}

.document-info-panel p {
  color: var(--muted);
  font-size: .94rem;
}

.doc-meta-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.doc-meta-row {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  background: #fff7ea;
  border: 1px solid rgba(234, 217, 197, .86);
}

.doc-meta-row span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doc-meta-row strong {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.35;
}

.document-info-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.document-info-actions .btn {
  width: 100%;
}

.document-pdf-panel {
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(48, 15, 15, .07);
}

.document-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff7ea;
}

.document-pdf-header span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-pdf-header h2 {
  color: var(--maroon);
  font-size: 1.12rem;
  line-height: 1.25;
}

.document-pdf-header a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--maroon);
  background: #ffffff;
  border: 1px solid rgba(75, 11, 15, .18);
  font-size: .88rem;
  font-weight: 900;
}

.document-pdf-frame {
  width: 100%;
  height: calc(100vh - 190px);
  min-height: 760px;
  display: block;
  border: 0;
  background: #f7efe4;
}

.document-pdf-fallback {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.document-pdf-fallback a {
  color: var(--maroon);
  font-weight: 900;
}

@media (max-width: 980px) {
  .document-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .document-reader-layout {
    grid-template-columns: 1fr;
  }

  .document-info-panel {
    position: static;
  }

  .document-info-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-pdf-frame {
    height: 760px;
  }
}

@media (max-width: 600px) {
  .document-topbar {
    padding: 36px 0;
  }

  .document-reader-section {
    padding: 20px 0 54px;
  }

  .document-actions,
  .document-info-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-pdf-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-pdf-header a {
    width: 100%;
    text-align: center;
  }

  .document-pdf-frame {
    min-height: 620px;
    height: 620px;
  }
}


/* === Public multiple document list === */
.public-doc-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.public-doc-list a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: #fff7ea;
  border: 1px solid var(--line);
  transition: .2s ease;
}

.public-doc-list a strong {
  font-size: .94rem;
  line-height: 1.35;
}

.public-doc-list a span {
  color: var(--muted);
  font-size: .78rem;
  word-break: break-word;
}

.public-doc-list a:hover,
.public-doc-list a.active {
  color: #ffffff;
  background: var(--maroon);
  border-color: var(--maroon);
}

.public-doc-list a:hover span,
.public-doc-list a.active span {
  color: rgba(255,255,255,.72);
}

.empty-document {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  color: var(--muted);
  background: #fff7ea;
  border: 1px solid var(--line);
}


/* === Dokumen UPMI tanpa pratinjau PDF === */
.document-download-layout {
  display: block;
}

.document-download-layout .document-info-panel {
  position: static;
  max-width: 100%;
}

.document-download-layout .document-info-logo {
  display: none;
}

.public-download-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.download-doc-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff7ea;
  border: 1px solid var(--line);
}

.download-doc-card strong {
  display: block;
  color: var(--maroon);
  font-size: 1.05rem;
  line-height: 1.35;
}

.download-doc-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.download-doc-card small {
  display: block;
  margin-top: 6px;
  color: #8a7a7a;
  word-break: break-word;
}

.download-doc-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--maroon);
  font-weight: 900;
  white-space: nowrap;
}

.download-doc-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 700px) {
  .download-doc-card {
    grid-template-columns: 1fr;
  }

  .download-doc-card a {
    width: 100%;
  }
}


/* === Compact clean pages for Dokumen UPMI === */
.compact-doc-wrapper {
  max-width: 1040px;
}

.compact-doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(48, 15, 15, .045);
}

.compact-doc-toolbar span {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--maroon);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.compact-doc-toolbar h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.compact-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--maroon);
  background: #fff7ea;
  border: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
}

.compact-doc-list {
  display: grid;
  gap: 10px;
}

.compact-doc-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(48, 15, 15, .035);
  transition: .18s ease;
}

.compact-doc-item:hover {
  border-color: rgba(75, 11, 15, .24);
  transform: translateY(-1px);
}

.compact-doc-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #2a1400;
  background: linear-gradient(135deg, #ffe7a6, var(--gold));
  font-weight: 900;
  font-size: .92rem;
}

.compact-doc-content h3 {
  margin: 0;
  color: var(--maroon);
  font-size: 1.02rem;
  line-height: 1.35;
}

.compact-doc-content p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.compact-doc-content small {
  display: block;
  margin-top: 5px;
  color: #8c7b7b;
  font-size: .78rem;
  word-break: break-word;
}

.compact-doc-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--maroon);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
}

.compact-doc-action a:hover {
  background: var(--red);
}

.compact-doc-action em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  font-size: .88rem;
}

.compact-empty-state {
  padding: 28px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: center;
}

.compact-empty-state h3 {
  color: var(--maroon);
  margin-bottom: 6px;
}

.compact-empty-state p {
  color: var(--muted);
}

@media (max-width: 760px) {
  .compact-doc-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-doc-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .compact-doc-number {
    width: fit-content;
    min-width: 42px;
  }

  .compact-doc-action a,
  .compact-back-link {
    width: 100%;
  }
}


/* === Dokumen UPMI: 2 card per baris, compact === */
.compact-doc-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-doc-item {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  min-height: 168px;
  padding: 18px;
  position: relative;
}

.compact-doc-content {
  min-width: 0;
  padding-right: 0;
}

.compact-doc-action {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.compact-doc-action a {
  width: 100%;
  min-height: 40px;
}

.compact-doc-content h3 {
  font-size: 1rem;
}

.compact-doc-content p {
  font-size: .88rem;
}

.compact-doc-content small {
  font-size: .76rem;
}

@media (max-width: 860px) {
  .compact-doc-list {
    grid-template-columns: 1fr;
  }

  .compact-doc-item {
    min-height: auto;
  }
}


/* === Hapus tombol pada header dokumen/monev === */
.document-topbar-inner {
  align-items: flex-start;
}

.document-actions {
  display: none !important;
}


/* === Berita section homepage === */
.news-section {
  background: #fffdfa;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.news-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(48, 15, 15, .055);
  transition: .18s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(48, 15, 15, .08);
}

.news-date {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 12px;
  color: #2a1400;
  background: linear-gradient(135deg, #ffe7a6, var(--gold));
}

.news-date span {
  display: block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.news-date strong {
  display: block;
  margin-top: -2px;
  font-size: .95rem;
  font-weight: 900;
}

.news-content h3 {
  margin-bottom: 8px;
  color: var(--maroon);
  font-size: 1.08rem;
  line-height: 1.35;
}

.news-content p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.news-content a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--maroon);
  font-weight: 900;
  font-size: .9rem;
}

.news-content a:hover {
  color: var(--red);
}

@media (max-width: 980px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 72px 1fr;
  }
}

@media (max-width: 560px) {
  .news-card {
    grid-template-columns: 1fr;
  }
}


/* === News system pages === */
.news-more-wrap {
  margin-top: 26px;
  text-align: center;
}

.news-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--maroon);
  font-weight: 900;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.news-page-hero {
  padding: 66px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 162, 58, .14), transparent 30%),
    linear-gradient(135deg, #2c0709 0%, #4b0b0f 56%, #611018 100%);
}

.news-page-hero h1 {
  max-width: 820px;
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.news-page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.78);
}

.news-list-page {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(48, 15, 15, .045);
}

.news-list-item img,
.news-list-placeholder {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  object-fit: cover;
}

.news-list-placeholder {
  display: grid;
  place-items: center;
  color: #2a1400;
  background: linear-gradient(135deg, #ffe7a6, var(--gold));
  font-weight: 900;
}

.news-list-item span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.news-list-item h2 {
  margin: 4px 0 8px;
  color: var(--maroon);
  font-size: 1.35rem;
  line-height: 1.3;
}

.news-list-item p {
  color: var(--muted);
}

.news-list-item a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--maroon);
  font-weight: 900;
}

.news-article {
  max-width: 920px;
  padding: 30px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(48, 15, 15, .055);
}

.news-article-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.news-article-content {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

@media (max-width: 760px) {
  .news-list-item {
    grid-template-columns: 1fr;
  }
}


/* === Berita thumbnail menggantikan tanggal === */
.news-card {
  grid-template-columns: 120px 1fr !important;
}

.news-date {
  display: none !important;
}

.news-thumb {
  width: 120px;
  height: 112px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe7a6, var(--gold));
  border: 1px solid var(--line);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #2a1400;
  font-weight: 900;
  letter-spacing: .08em;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  color: var(--maroon);
  margin: 1.2em 0 .5em;
  line-height: 1.25;
}

.news-article-content p {
  margin: 0 0 1em;
}

.news-article-content ul,
.news-article-content ol {
  margin: 0 0 1em 1.25em;
}

.news-article-content blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: #fff7ea;
  color: var(--muted);
}

.news-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.news-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.news-article-content th,
.news-article-content td {
  border: 1px solid var(--line);
  padding: 10px;
}

@media (max-width: 560px) {
  .news-card {
    grid-template-columns: 1fr !important;
  }

  .news-thumb {
    width: 100%;
    height: 190px;
  }
}
