/* =========================================================
   KDMP WONOKERTO - style.css (FULL CLEAN VERSION)
   - No duplicate hero/container/modal
   - Modal system unified: .modal-overlay + .modal
   - Works with app.js (bindOverlayModal)
========================================================= */
/* OPTIONAL: CSS kecil khusus brand */
.brand{
        display:flex;
        align-items:center;
        gap:10px;
        text-decoration:none;
        min-width:0;
    }
    .brand-logo{
        height:40px;
        width:auto;
        display:block;
        flex:0 0 auto;
    }
    .brand-name{
        line-height:1.1;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        max-width:240px;
    }
    @media (max-width:768px){
        .brand-name{ max-width:160px; }
        .brand-logo{ height:36px; }
    }

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

/* =========================
   BASE
========================= */
html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #fff;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  width: min(1200px, 92%);
  margin: auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 800;
  color: #b91c1c;
}

/* MENU DESKTOP */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu a,
.dropdown-toggle {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}

.nav-menu a:hover,
.dropdown-toggle:hover {
  color: #b91c1c;
}

/* ACTIVE */
.nav-menu a.active {
  color: #b91c1c;
  font-weight: 700;
  position: relative;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #b91c1c;
}

/* DROPDOWN DESKTOP */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  min-width: 190px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 999;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #111;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
}

/* TOGGLE */
.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #111;
  left: 0;
  transition: 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 50%;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid #eaeaea;
    align-items: stretch;
  }

  .nav-menu.open {
    max-height: 90vh;
    overflow-y: auto;
  }

  .nav-menu li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-menu li a,
  .dropdown-toggle {
    padding: 14px 18px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* DROPDOWN MOBILE */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 12px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block !important;
  }

  .arrow {
    transition: transform 0.2s ease;
  }

  .nav-dropdown.open .arrow {
    transform: rotate(180deg);
  }
}

/* =========================
   HERO (HOME) - FULL WIDTH
========================= */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: #ffffff;
}

.hero-container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-content h1 span {
  color: #fde68a;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* ACTIONS */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #ffffff;
  color: #7f1d1d;
}

.btn-primary:hover {
  background: #fde68a;
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* VISUAL */
.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 64px 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }
}

/* =========================
   PAGE HERO (Pengurus/Pengawas/Mitra/Unit)
   SINGLE VERSION ONLY
========================= */
.page-hero {
  background: linear-gradient(135deg, #0b1220 0%, #0f1b35 100%);
  color: #fff;
  padding: 70px 0 54px;
  text-align: center;
  border-radius: 0 0 40px 40px;
}

.page-hero-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.page-hero p {
  margin: 0 auto;
  max-width: 720px;
  opacity: 0.9;
  font-size: 15px;
}

/* =========================
   ORG SECTION (Pengurus/Pengawas)
========================= */
.org-section {
  padding: 60px 0 80px;
  background: #fafafa;
}

.org-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 36px;
}

.org-info-right {
  text-align: right;
  color: #555;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #666;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.org-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.org-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Photo card */
.org-photo,
.org-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 4px solid #f1f1f1;
  display: block;
}

.org-photo {
  object-fit: cover;
  background: #f1f5f9;
}

.org-photo-placeholder {
  background: #f1f5f9;
  color: #324b85;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
}

.org-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.org-card span {
  font-size: 14px;
  color: #777;
  overflow-wrap: anywhere;
}

/* Empty state */
.empty {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #666;
}

/* ORG responsive */
@media (max-width: 640px) {
  .org-grid {
    grid-template-columns: 1fr;
  }

  .org-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px;
    border-radius: 14px;
  }

  .org-photo,
  .org-photo-placeholder {
    width: 72px;
    height: 72px;
    margin: 0;
    flex-shrink: 0;
  }
}

/* =========================
   MITRA HERO
========================= */
.mitra-hero{
  padding: 56px 0 44px;
  background: linear-gradient(135deg, #0b1220 0%, #0f1b35 100%);
  color: #fff;
}
.mitra-hero-inner{
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}
.mitra-hero-inner h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.mitra-hero-inner p{
  margin: 0 auto;
  max-width: 720px;
  opacity: 0.9;
  font-size: 15px;
}

/* =========================
   MITRA GRID
========================= */
.mitra-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0 70px;
}
@media (max-width: 960px){
  .mitra-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .mitra-grid{ grid-template-columns: 1fr; }
}

/* Card as button */
.mitra-card{
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mitra-card:hover{
  transform: translateY(-2px);
  border-color: #d7dce7;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}
.mitra-card:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.14), 0 14px 30px rgba(15, 23, 42, 0.10);
}

/* Logo sama feelnya dengan pengurus: bulat */
.mitra-logo{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.mitra-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mitra-initials{
  font-weight: 900;
  color: #0f172a;
}

.mitra-meta{ min-width: 0; }
.mitra-meta h4{
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.mitra-chip{
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #e0e7ff;
}
.mitra-sub{
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   MITRA MODAL (ID & class beda)
========================= */
.mitra-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.mitra-modal-overlay.active{ display: flex; }

.mitra-modal{
  width: min(640px, 96%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e7eaf0;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.mitra-modal-head{
  padding: 16px 18px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mitra-modal-head-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mitra-modal-title h3{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.mitra-modal-title small{
  display: block;
  margin-top: 2px;
  opacity: .85;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mitra-modal-close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Logo bulat di modal */
.mitra-modal-logo{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
}
.mitra-modal-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.mitra-modal-body{
  padding: 18px;
}
.mitra-modal-desc{
  margin: 0;
  color: #334155;
  line-height: 1.7;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.mitra-modal-actions{
  padding: 0 18px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mitra-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e7eaf0;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}
.mitra-btn-primary{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

@media (max-width: 600px){
  .mitra-modal{
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* =========================
   MODAL SYSTEM (Unified)
   Uses: .modal-overlay.active
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: min(720px, 96%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e7eaf0;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.modal-head {
  padding: 16px 18px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.modal-title h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.modal-title small {
  display: block;
  margin-top: 2px;
  opacity: 0.85;
  font-size: 12px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* modal body */
.modal-body {
  padding: 18px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

/* ORG modal photo (id used in blade) */
#modalPhoto {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

/* Mitra modal logo */
.modal-logo {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0f172a;
  overflow: hidden;
}

.modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ORG modal bio + Mitra modal desc */
#modalBio,
.modal-desc {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.modal-actions {
  padding: 0 18px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e7eaf0;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.btn:hover {
  filter: brightness(0.98);
}

/* Modal responsive */
@media (max-width: 600px) {
  .modal {
    width: 96%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  #modalPhoto,
  .modal-logo {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto;
  }
}

/* =========================
   SCROLL REVEAL (optional)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   SUMMARY
===================== */
.summary-section {
  padding: 40px 0;
  background: #fafafa;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.summary-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.summary-card h4 {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.summary-card strong {
  font-size: 20px;
  color: #111;
}

.summary-card.highlight {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: #fff;
}

.summary-card.highlight strong,
.summary-card.highlight h4 {
  color: #fff;
}

.summary-card.total-akhir {
  background: #111827;
  color: #fff;
}

.summary-card.total-akhir strong,
.summary-card.total-akhir h4 {
  color: #fff;
}

/* =====================
   NEWS
===================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  display: flex;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
  flex: 0 0 200px;
  height: 150px;
  overflow: hidden;
}

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

.news-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.news-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.news-content a.read-more {
  font-weight: 600;
  color: #b91c1c;
  text-decoration: none;
}

.section-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.section-title-link:hover {
  color: #b91c1c;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .news-thumbnail {
    width: 100%;
    height: 200px;
  }
}

/* =========================
   FOOTER
========================= */
.footer {
  background-color: #b91c1c;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-item h3,
.footer-item h4 {
  margin-bottom: 12px;
}

.footer-item p,
.footer-contact li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li a {
  color: #fff;
  text-decoration: none;
}

.footer-contact li a:hover {
  text-decoration: underline;
}

.footer-map {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: 8px;
}

.footer small {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #eee;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-map iframe {
    height: 180px;
  }
}

/* ================================
   PUBLIC FORM (REGISTER + SALDO)
================================ */
.form-container {
  max-width: 520px;
  margin: 70px auto;
  background: #fff;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f1f1;
}

.form-container h1 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #7f1d1d;
  margin-bottom: 25px;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 15px;
  transition: 0.25s ease;
  outline: none;
  margin-bottom: 6px;
  font-family: inherit;
}

.form-container textarea {
  min-height: 90px;
  resize: none;
}

.form-container input:focus,
.form-container textarea:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.form-container label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  color: #333;
}

.form-container button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: white;
  transition: 0.25s;
}

.form-container button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.text-danger {
  color: #c40000;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

/* ALERT */
.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert.warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

/* RESULT */
.card-result {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #eee;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin-top: 15px;
}

.card-result h2 {
  font-size: 30px;
  font-weight: 900;
  color: #b91c1c;
  margin-top: 10px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.pending { background: #fff7ed; color: #9a3412; }
.badge.approved { background: #f0fdf4; color: #166534; }
.badge.rejected { background: #fef2f2; color: #991b1b; }

@media (max-width: 600px) {
  .form-container {
    margin: 40px 16px;
    padding: 28px 22px;
  }

  .form-container h1 {
    font-size: 22px;
  }

  .card-result h2 {
    font-size: 24px;
  }
}

/* =========================
   TRANSPARANSI (CARD + CHART + TABLE)
========================= */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin: 18px 0;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111;
}

.card select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-weight: 700;
  outline: none;
  transition: 0.2s ease;
}

.card select:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.chart-base {
  width: 100%;
  height: 320px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
}

.chart-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-inner canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 600px) {
  .chart-base {
    height: 240px;
    padding: 10px;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #eee;
}

.table thead th {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 14px 14px;
  text-align: left;
  white-space: nowrap;
}

.table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
  color: #222;
  vertical-align: top;
}

.table tbody tr:nth-child(even) {
  background: #fafafa;
}

.table tbody tr:hover {
  background: rgba(185, 28, 28, 0.06);
}

@media (max-width: 900px) {
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table thead th,
  .table tbody td {
    padding: 12px;
    font-size: 13px;
  }
}

/* =========================
   TEXT OVERFLOW SAFETY
========================= */
.org-card h3,
.org-card span,
.mitra-meta h4,
.news-content h3,
.news-content p {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* =========================
   INFORMASI (Berita + Pengumuman)
========================= */

/* optional: tinggi hero khusus informasi */
.page-hero--info {
  padding: 70px 0 55px;
}

/* pill kecil di atas judul */
.hero-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 14px;
}

/* grid kartu */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  padding-bottom: 30px;
}

@media (max-width: 1000px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* card */
.info-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: #e2e8f0;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* thumbnail */
.info-thumb {
  position: relative;
  height: 170px;
  background: #f3f4f6;
}

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

.info-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 40px;
  color: #111827;
  background: linear-gradient(135deg, rgba(185,28,28,.12), rgba(15,23,42,.12));
}

/* body */
.info-body {
  padding: 16px 16px 18px;
}

.info-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.info-tag {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.info-tag.is-news {
  background: rgba(185,28,28,.08);
  border-color: rgba(185,28,28,.18);
  color: #7f1d1d;
}

.info-tag.is-ann {
  background: rgba(15,23,42,.08);
  border-color: rgba(15,23,42,.18);
  color: #0f172a;
}

.info-date {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.info-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;

  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  margin-bottom: 14px;
}

.info-cta {
  font-weight: 700;
  color: #b91c1c;
}

/* empty state */
.info-empty {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.info-empty h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.info-empty p {
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* pagination spacing */
.info-pagination {
  margin-top: 18px;
}

/* =========================
   DETAIL POST (Berita/Pengumuman)
========================= */

.post-detail{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  overflow: hidden;
}

.post-cover{
  height: 420px;
  background: #f3f4f6;
}
.post-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px){
  .post-cover{ height: 260px; }
}

.post-content{
  padding: 22px 20px;
  max-width: 860px;
  margin: 0 auto;
  color: #0f172a;
  line-height: 1.85;
  font-size: 16px;
}

.post-content p{ margin: 0 0 14px; }
.post-content h2, .post-content h3{
  margin: 18px 0 10px;
  line-height: 1.3;
}
.post-content ul, .post-content ol{
  padding-left: 18px;
  margin: 10px 0 16px;
}
.post-content img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.post-actions{
  padding: 18px 20px 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid #f1f1f1;
}

/* Informasi Terbaru */
/* Home section head */
.home-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.home-title{
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}
.home-subtitle{
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}
@media (max-width: 640px){
  .home-head{ flex-direction: column; align-items: flex-start; }
}

/* Ringkasan keuangan di Home */
.summary-section {
  padding: 28px 0 10px;
  background: #fafafa;
}

.summary-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.summary-card {
  border-radius: 16px;
  padding: 18px;
}

.summary-card h4 {
  font-size: 13px;
  color: #667085;
  margin-bottom: 10px;
  font-weight: 700;
}

.summary-card strong {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

/* =========================
   UNIT USAHA (Business Units)
========================= */

/* Grid */
.bisnis-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 70px;
}

@media (max-width: 960px){
  .bisnis-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .bisnis-grid{ grid-template-columns: 1fr; }
}

/* Card */
.bisnis-card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  padding: 18px;
  position: relative;
}

.bisnis-card:hover{
  transform: translateY(-3px);
  border-color: #e2e8f0;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.bisnis-head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.bisnis-icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex: 0 0 auto;
}

/* Thumbnail kecil di index (opsional) */
.bisnis-logo{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  flex: 0 0 auto;
}
.bisnis-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bisnis-meta{
  min-width: 0;
}
.bisnis-meta h4{
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.bisnis-chip{
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(185,28,28,.08);
  border: 1px solid rgba(185,28,28,.18);
  color: #7f1d1d;
  font-weight: 800;
}

.bisnis-desc{
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;

  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty state */
.bisnis-empty{
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  color: #64748b;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

/* =========================
   UNIT USAHA DETAIL
========================= */
.detail-wrapper{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  padding: 26px 0 70px;
}

@media (max-width: 900px){
  .detail-wrapper{ grid-template-columns: 1fr; }
}

.detail-thumb{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.detail-thumb img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #f3f4f6;
}
@media (max-width: 900px){
  .detail-thumb img{ height: 240px; }
}

.icon-placeholder{
  width: 100%;
  height: 320px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(185,28,28,.10), rgba(15,23,42,.10));
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 900;
  color: #0f172a;
}
@media (max-width: 900px){
  .icon-placeholder{ height: 240px; }
}

.detail-content{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-box{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.detail-box h3{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.detail-box p,
.detail-box li{
  color: #334155;
  line-height: 1.75;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.detail-box ul{
  padding-left: 18px;
  margin: 0;
}

.back-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e7eaf0;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  width: fit-content;
}

.back-link:hover{
  filter: brightness(0.98);
}

