/* =========================================================
   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: #111827;
  background:
    radial-gradient(circle at top left, rgba(185, 28, 28, 0.08), transparent 30%),
    linear-gradient(180deg, #fffdfb 0%, #f7f3ee 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

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

main#main-content {
  position: relative;
  z-index: 1;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(18px);
}

.navbar.scrolled {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 24, 39, 0.08);
}

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

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

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

.nav-menu a,
.dropdown-toggle {
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.dropdown-toggle:hover {
  color: #b91c1c;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.18);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(185, 28, 28, 0.22);
}

/* MEMBER MENU */
.nav-member-menu {
  position: relative;
}

.nav-member-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.nav-member-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-member-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  min-width: 200px;
  list-style: none;
  padding: 8px 0;
  margin-top: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 999;
}

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

.nav-member-dropdown li a,
.nav-member-dropdown li button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: #111;
  text-decoration: none;
  transition: background-color 0.2s ease;
  text-align: left;
}

.nav-member-dropdown li a:hover,
.nav-member-dropdown li button:hover {
  background-color: #f9fafb;
}

.nav-member-dropdown li:last-child a,
.nav-member-dropdown li:last-child button {
  color: #b91c1c;
  font-weight: 600;
}

/* 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-actions {
    display: none;
  }

  .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 0%, #7f1d1d 55%, #4c0519 100%);
  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.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.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: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

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

.btn-primary:hover {
  background: #fde68a;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

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

.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 32px;
}

@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, #1f2937 0%, #111827 45%, #4b0d18 100%);
  color: #fff;
  padding: 82px 0 68px;
  text-align: center;
  border-radius: 0 0 32px 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

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

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.page-hero p {
  margin: 0 auto;
  max-width: 760px;
  opacity: 0.88;
  font-size: 16px;
  line-height: 1.7;
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Cards */
.card-large {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.04) 0%, rgba(255,255,255,0.9) 100%);
  border: 1px solid rgba(185, 28, 28, 0.12);
  padding: 40px;
  border-radius: 22px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.card-large h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 30px);
  color: #111827;
}

.card-large p {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
}

.card-bordered {
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.card-bordered:hover {
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: rgba(185, 28, 28, 0.2);
}

.card-bordered h3 {
  margin-bottom: 16px;
  color: #111827;
  font-size: 22px;
}

.card-bordered p {
  color: #4b5563;
  line-height: 1.8;
}

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

.list-styled li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: #4b5563;
  line-height: 1.7;
}

.list-styled li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #b91c1c;
  font-weight: 700;
}

.card-nilai {
  padding: 28px 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.card-nilai:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  border-color: rgba(185, 28, 28, 0.25);
}

.nilai-icon {
  font-size: 48px;
  margin-bottom: 12px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-nilai h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.card-nilai p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

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

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

  .card-large {
    padding: 28px 20px;
  }

  .card-bordered {
    padding: 24px 16px;
  }
}

.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: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.org-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  border-color: rgba(185, 28, 28, 0.2);
}

/* 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;
}

.section--stats {
  padding-top: 8px;
  padding-bottom: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(248, 245, 240, 0.9));
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.9), rgba(251, 146, 60, 0.5));
}

.stat-card--primary {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.08), rgba(255, 255, 255, 0.95));
}

.stat-card--muted {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(255, 255, 255, 0.95));
}

.stat-card--dark {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-card--dark .stat-label,
.stat-card--dark .stat-note {
  color: rgba(255, 255, 255, 0.78);
}

.stat-card--accent {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.12), rgba(249, 115, 22, 0.06), rgba(255,255,255,0.95));
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.stat-value {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.stat-note {
  margin-top: auto;
  font-size: 13px;
  color: #64748b;
}

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

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

/* =====================
   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: linear-gradient(180deg, #5c0d12 0%, #1e1e2b 100%);
  color: #fff;
  padding: 58px 0 26px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 28%);
  pointer-events: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.footer-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 20px;
}

.footer-item h3,
.footer-item h4 {
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-item h3 {
  font-size: 1.2rem;
}

.footer-item h4 {
  font-size: 1rem;
  color: #fff;
}

.footer-item p,
.footer-contact li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

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

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

.footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-social-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-social-list li a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social-list li a:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 0;
  border-radius: 16px;
}

.footer-placeholder {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.footer-placeholder h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.footer-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-item h3,
.footer-item h4 {
  color: #fff;
}

.footer small {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

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

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

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

/* =========================
   FINANCE PAGE
========================= */
.finance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.finance-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.month-filter {
  display: flex;
  align-items: center;
}

.month-filter select {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}

.month-filter select:hover {
  border-color: #b91c1c;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.08);
}

.month-filter select:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.month-filter select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.summary-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b91c1c, #7f1d1d);
}

.summary-card:hover {
  border-color: #b91c1c;
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.12);
  transform: translateY(-2px);
}

.summary-card.balance {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.08) 0%, rgba(127, 29, 29, 0.04) 100%);
  border-color: #b91c1c;
}

.summary-card.balance::before {
  background: #10b981;
}

.summary-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.summary-value {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.2;
}

.summary-value.income {
  color: #059669;
}

.summary-value.expense {
  color: #dc2626;
}

.summary-value.registration {
  color: #b91c1c;
}

.summary-icon {
  font-size: 32px;
  opacity: 0.15;
}

/* Chart */
.chart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.chart-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.chart-subtitle {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 15px;
}

.chart-container {
  position: relative;
  height: 350px;
  margin-bottom: 16px;
}

.chart-container canvas {
  max-height: 100%;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
  margin-top: 24px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
}

/* Table */
.table-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.table-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.table-subtitle {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 15px;
}

.table-wrapper {
  overflow-x: auto;
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.finance-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.finance-table thead th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.finance-table thead th.text-right {
  text-align: right;
}

.finance-table thead th.text-center {
  text-align: center;
}

.finance-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.finance-table tbody tr:hover {
  background-color: #f9fafb;
}

.finance-table tbody td {
  padding: 16px 12px;
  color: #4b5563;
}

.finance-table tbody td.text-right {
  text-align: right;
}

.finance-table tbody td.text-center {
  text-align: center;
}

.finance-table tbody td.period {
  font-weight: 600;
  color: #111827;
}

.finance-table tbody td.income-row {
  color: #059669;
  font-weight: 600;
}

.finance-table tbody td.expense-row {
  color: #dc2626;
  font-weight: 600;
}

.finance-table tbody td.balance-row {
  color: #111827;
  font-weight: 700;
}

.empty-table {
  padding: 0 !important;
}

.empty-table-state {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.empty-table-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.empty-table-state p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
}

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

@media (max-width: 768px) {
  .finance-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .month-filter {
    width: 100%;
  }

  .month-filter select {
    width: 100%;
    min-width: auto;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-card,
  .table-card {
    padding: 20px;
  }

  .chart-container {
    height: 280px;
  }

  .finance-table {
    font-size: 13px;
  }

  .finance-table thead th,
  .finance-table tbody td {
    padding: 12px 8px;
  }
}

/* ================================
   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;
}

.simple-register {
  max-width: 740px;
  margin: 60px auto;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.simple-register h1 {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
  text-align: left;
}

.simple-register .field {
  margin-bottom: 16px;
}

.simple-register input,
.simple-register textarea,
.simple-register select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d2d6dc;
  border-radius: 12px;
  font-size: 15px;
  transition: 0.25s ease;
  outline: none;
}

.simple-register input[type="file"] {
  background: #f8fafc;
}

.simple-register input:focus,
.simple-register textarea:focus,
.simple-register select:focus,
.simple-register input[type="file"]:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.simple-register label {
  font-weight: 700;
  color: #1f2937;
}

.simple-register button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #b91c1c;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.simple-register button:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.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 select {
  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;
  background: white;
  appearance: none;
}

.form-container input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 15px;
  margin-top: 6px;
  background: #fafafa;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.form-container .field small.description {
  display: block;
  color: #6b7280;
  margin-top: 6px;
}

.file-grid > div {
  background: #fafafa;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 16px;
}

.file-grid label {
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
  color: #333;
}

.form-container input[readonly] {
  background: #f9fafb;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-container .field {
  margin-bottom: 18px;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus,
.form-container input[type="file"]:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

@media (max-width: 768px) {
  .form-row,
  .file-grid {
    grid-template-columns: 1fr;
  }
}

.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: 22px;
  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: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 28, 28, 0.18);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

/* thumbnail */
.info-thumb {
  position: relative;
  height: 200px;
  background: #f3f4f6;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.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);
}

.bisnis-dummy-note {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 18px 22px;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  margin-bottom: 20px;
}

.bisnis-dummy-note strong {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 900;
}

/* =========================
   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;
}

.business-location-map {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.business-location-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 14px;
}

.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);
}


/* =========================
   ABOUT PAGE (TENTANG)
========================= */
.about-section {
  padding: 60px 0;
}

.about-section:nth-child(even) {
  background: var(--bg-soft);
}

/* Profil Singkat Box */
.about-box {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-box h2::before {
  content: '🏛️';
  font-size: 32px;
}

.about-box p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-muted);
  text-align: justify;
}

@media (max-width: 768px) {
  .about-box {
    padding: 32px 24px;
  }
  .about-box h2 {
    font-size: 24px;
  }
  .about-box p {
    font-size: 16px;
    text-align: left;
  }
}

/* Visi & Misi Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.about-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-card.visi h3 {
  color: var(--primary);
}

.about-card.visi h3::before {
  content: '👁️';
  font-size: 28px;
}

.about-card.misi h3 {
  color: var(--secondary);
}

.about-card.misi h3::before {
  content: '🎯';
  font-size: 28px;
}

.about-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-card .list {
  margin-top: 16px;
}

.about-card .list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.7;
}

.about-card .list li:last-child {
  border-bottom: none;
}

.about-card .list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-card {
    padding: 28px;
  }
}

/* Nilai-Nilai Section */
.values-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.values-section .section-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.values-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.values-section p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.3s ease;
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.value-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .values-section h2 {
    font-size: 28px;
  }
  .value-card {
    padding: 24px;
  }
}