* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f7f3f4;
  color: #281c22;
  line-height: 1.6;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eadfe3;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(46, 17, 17, 0.04);
}
.nav {
  min-height: 72px; display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; color: #25161c;
  letter-spacing: .02em;
}
.brandLogo {
  width: 34px; height: 34px; object-fit: contain; border-radius: 10px;
  background: rgba(255,255,255,0.08); padding: 2px;
}
.brand span { display: inline-block; font-size: clamp(1.25rem, 1.6vw, 2rem); }
.nav nav {
  margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.nav nav a {
  font-size: 13px; font-weight: 700; color: #655c61; transition: .2s ease; position: relative; padding: 6px 0;
}
.nav nav a:hover { color: #7b1831; }
.nav nav a::after {
  content: ""; display: block; width: 0; height: 2px; background: #7b1831; margin-top: 4px; transition: width .2s ease;
}
.nav nav a:hover::after { width: 100%; }
.headerActions {
  margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.btn.small {
  padding: 8px 12px; font-size: 12px; border-radius: 8px;
}
.toggle { display: none; }
.adminBody {
  background: #f1ecee;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.adminTopbar {
  background: linear-gradient(135deg, #26161a, #4a0d1d);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 8px 24px rgba(36, 11, 20, 0.18);
}
.adminNavWrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.adminBrand {
  font-weight: 800; letter-spacing: .08em;
}
.adminNav {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.adminNav a {
  color: rgba(255,255,255,.8);
  font-size: 13px; font-weight: 700;
}
.adminNav a:hover {
  color: #fff;
}
.navLogout {
  background: rgba(255,255,255,.12);
  padding: 7px 12px;
  border-radius: 999px;
}
.adminMain {
  padding-top: 10px;
}
.adminDashboard {
  padding-top: 38px;
}
.adminDashboard .container {
  max-width: 1180px;
}
.adminWelcome {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap;
}
.adminWelcome h1 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 3vw, 4rem);
  line-height: 1.1;
  color: #2b1d22;
}
.welcomeBadge {
  background: rgba(255,255,255,0.7);
  border: 1px solid #e7dfe3;
  color: #7b1831;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(97, 30, 46, 0.06);
}
.quickLinks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.quickLinkCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 210px;
  padding: 24px 18px;
  background: linear-gradient(135deg, #7b1831, #a62d4c);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 30px rgba(111, 16, 35, 0.18);
  font-weight: 800;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.quickLinkCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(111, 16, 35, 0.24);
  filter: brightness(1.03);
}
.quickIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  font-size: 34px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.quickLinkCard strong {
  font-size: 1.1rem;
  line-height: 1.4;
}
.grid.four {
  gap: 22px;
}
.statCard {
  text-align: center;
  background: linear-gradient(180deg, #fff, #fff8fa);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #eadfe3;
  box-shadow: 0 12px 22px rgba(52, 22, 34, 0.04);
  border-radius: 18px;
  padding: 20px 18px;
}
.statBadge {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5e4ea, #f9edf1);
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(123, 24, 49, 0.05);
}
.statValue {
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  font-weight: 800;
  color: #7b1831;
  margin-bottom: 10px;
  line-height: 1;
}
.statLabel {
  font-size: 1.1rem;
  font-weight: 700;
  color: #554c50;
}
.hero {
  padding: 90px 0; background: linear-gradient(135deg, #fff, #f8eef1 55%, #f1e2ea);
}
.heroGrid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.heroCopy h1 {
  font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.05; margin: 20px 0;
  letter-spacing: -.04em;
}
.heroCopy .eyebrow, .eyebrow { letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: #7b1831; }
.heroActions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.heroCard {
  background: linear-gradient(135deg, #7b1831, #a62d4c); color: #fff; border-radius: 28px;
  padding: 60px; text-align: center; box-shadow: 0 22px 42px rgba(123,24,49,.22);
}
.heroCard b { font-size: 56px; }
.heroCard h2 { font-size: 52px; margin: 14px 0 18px; }
.heroCard p { color: #fff; opacity: .9; font-weight: 600; }
.heroVisual .logoPanel {
  background: linear-gradient(135deg, #7b1831, #a72d4c);
  color: #fff;
  border-radius: 28px;
  padding: 32px 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 40px rgba(123,24,49,.22);
}
.heroVisual .logoPanel img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  background: rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.logoPanel .logoWord {
  margin-top: 22px;
  font-size: clamp(2.4rem, 3vw, 4rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.05;
}
.logoPanel p {
  margin-top: 18px;
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  font-weight: 600;
}
.heroCard.compact { padding: 42px 30px; }
.infoGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.pageHero {
  padding: 55px 0;
  background: #f8f3f5;
}
.pageHero .container {
  text-align: center;
}
.pageHero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 10px 0 0;
  letter-spacing: -.04em;
  text-align: center;
}
.pageHeader,
.pageHeader h1,
.sectionTitle,
.sectionTitle h2,
.announcementTitle,
.heroCopy h1,
.heroCopy p,
.heroCopy .eyebrow {
  text-align: center;
}
.section { padding: 65px 0; }
.soft, .pageHero { background: #f8f3f5; }
.announcementSection {
  padding-top: 26px;
}
.announcementWrap {
  max-width: 1100px;
  margin: 0 auto;
}
.announcement {
  width: min(100%, 1100px);
  min-height: 160px;
  padding: 30px 28px 26px;
  border: 1px solid #e7dfe3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.87);
  box-shadow: 0 12px 24px rgba(48, 18, 28, 0.04);
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.announcementTitle {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  margin: 0 0 12px;
  color: #2a1c21;
  font-weight: 800;
  text-align: center;
}
.announcementDate {
  display: inline-block;
  color: #7b1831;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1rem;
  border-left: 4px solid #7b1831;
  padding-left: 12px;
  width: fit-content;
  margin-left: 0;
}
.announcementBody {
  color: #4e4549;
  line-height: 1.8;
  margin: 0;
  font-size: 1.02rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.announcement.emptyState {
  background: #fffafa;
}
footer {
  background: #f1e7ea; border-top: 1px solid #e7dfe3; padding: 28px 0 14px; margin-top: 30px;
}
footer .container {
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  text-align: center;
}
footer h3 {
  margin: 0; font-size: 1.8rem; color: #2b1d22;
}
footer p {
  margin: 0; color: #5d5257;
}
.copy {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #dfd5d8; color: #6a5f63; font-size: .95rem;
  text-align: center;
}
.featureCard {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featureCard h3 {
  margin-top: 0;
  font-size: 1.5rem;
}
.sectionTitle {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.sectionTitle h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}
.newsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.newsCard {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}
.newsImage {
  width: calc(100% + 46px);
  max-width: none;
  height: 220px;
  margin: -23px -23px 20px;
  padding: 14px 22px;
  object-fit: contain;
  background: #fff8fa;
  border: 0;
  mix-blend-mode: multiply;
}
.newsDetailImage {
  width: min(100%, 760px);
  max-height: 560px;
  height: auto;
  margin: 24px auto;
  border-radius: 14px;
  object-fit: contain;
  background: #f4e9ed;
}
.newsCard .meta {
  margin-bottom: 10px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: #7b1831;
}
.newsCard h3 {
  font-size: 1.4rem;
  line-height: 1.35;
  margin: 0 0 12px;
}
.newsCard p {
  margin: 0 0 18px;
  color: #645d60;
}
.newsCard .readLink {
  margin-top: auto;
  font-weight: 800;
  color: #7b1831;
}
.grid { display: grid; gap: 20px; }
.two { grid-template-columns: repeat(2, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 23px; border: 1px solid #eadfe3; border-radius: 17px;
  box-shadow: 0 8px 25px rgba(52, 22, 34, 0.06); background: #fff;
  text-align: center;
}
.programCard { overflow: hidden; padding: 0; text-align: left; }
.programImageLink { display: block; color: inherit; }
.programImage,
.programImagePlaceholder { display: grid; width: 100%; height: 220px; object-fit: cover; }
.programImage { object-fit: contain; background: #f4e9ed; }
.programImagePlaceholder { place-items: center; padding: 18px; background: #f4e9ed; color: #7b1831; font-weight: 700; text-align: center; }
.programCardBody { padding: 22px; }
.programCard .tag { margin-bottom: 10px; }
.programCard h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.programExcerpt { display: -webkit-box; min-height: 3.9em; margin: 12px 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.programCardFooter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.programCardFooter .readLink { margin: 0; }
.programDetail { overflow: hidden; padding: 0; text-align: left; }
.programDetailImage,
.programDetailPlaceholder { display: block; width: 100%; height: 300px; object-fit: cover; }
.programDetailPlaceholder { display: grid; }
.programDetailBody { padding: 24px; }
.programDetailBody h1 { margin: 0 0 14px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; }
.programDetailDescription { color: #473b42; line-height: 1.7; white-space: normal; }
.adminThumb { width: 80px; height: 56px; object-fit: cover; border-radius: 6px; }
.adminPreview { display: block; width: min(100%, 420px); max-height: 260px; object-fit: cover; border-radius: 8px; margin: 8px 0 14px; }
.orgChart { max-width: 1120px; margin: 0 auto; }
.orgLevel { position: relative; text-align: center; }
.orgLevel h2 { margin: 0 0 20px; color: #3c242a; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.orgPeople { display: flex; justify-content: center; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.orgPerson {
  box-sizing: border-box; width: 170px; height: 250px; padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid #eadfe3; border-radius: 16px; box-shadow: 0 10px 25px rgba(52, 22, 34, .08);
}
.orgPhotoWrap { box-sizing: border-box; width: 112px; height: 112px; flex: 0 0 112px; margin-bottom: 12px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #d9a7b5, 0 8px 18px rgba(52, 22, 34, .13); }
.orgPhoto { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.orgAvatar { display: grid; place-items: center; background: linear-gradient(135deg, #7b1831, #b54b63); color: #fff; font-size: 2rem; font-weight: 800; }
.orgPerson strong { color: #281c22; font-size: .94rem; line-height: 1.25; text-align: center; }
.orgPerson span { margin-top: 5px; color: #7b1831; font-size: .76rem; font-weight: 700; line-height: 1.3; text-align: center; }
.orgConnector { width: 2px; height: 30px; margin: 0 auto; background: #d9a7b5; }
.orgTopLevel { padding-top: 4px; }
.orgTopLevel h2 { transform: translateY(-65px); }
.orgLeaderRow .orgPerson { border-color: #b54b63; box-shadow: 0 14px 28px rgba(123, 24, 49, .16); }
.orgLeaderRow .orgKetuaUmum { transform: translateY(-80px); }
.orgFieldGroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; margin-top: 8px; text-align: center; }
.orgFieldLevel { min-width: 0; padding-top: 18px; border-top: 1px solid #eadfe3; }
.orgFieldLevel h3 { margin: 0; color: #3c242a; font-size: 1.1rem; }
.orgFieldLevel p { margin: 5px 0 14px; font-size: .85rem; }
.orgFieldLevel .orgPeople { justify-content: center; gap: 12px; }
.orgFieldLevel .orgPerson { width: 170px; }
.orgVacant { justify-content: center; border-style: dashed; box-shadow: none; }
.orgVacant .orgPhotoWrap { display: none; }
.orgVacant span { margin-top: 5px; }
.orgVacant strong { color: #756c71; }
.noWrap { white-space: nowrap; }
.adminOfficerThumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.adminOfficerPreview { width: 140px; height: 140px; display: block; object-fit: cover; border-radius: 50%; margin: 5px 0 15px; }
.tag {
  display: inline-block; background: #f3e5e9; color: #7b1831; padding: 4px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 800; margin-bottom: 12px;
}
.muted { color: #756c71; }
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid #7b1831;
  margin: 6px 5px 0 0; font-weight: 700; background: #fff; cursor: pointer;
}
.primary { background: #7b1831; color: #fff; }
.narrow { max-width: 820px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery img { width: 100%; height: 220px; object-fit: contain; background: #f4e9ed; border-radius: 14px; }
.pageHeader { margin-bottom: 22px; }
.pageHeader h1 { margin-top: 8px; font-size: clamp(2.1rem, 3vw, 3rem); }
.profileLayout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.profileMedia img { width: 100%; border-radius: 24px; box-shadow: 0 18px 30px rgba(42,17,26,.12); }
.previewBox { margin-top: 10px; border: 1px solid #eadfe3; padding: 12px; border-radius: 14px; background: #fff; }
.previewBox img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.previewBox.small img { max-height: 120px; }
.settingsCard { padding: 24px; }
.settingsCard label { display: block; font-weight: 700; margin: 10px 0 8px; color: #473b42; }
.settingsCard textarea,
.settingsCard input,
.settingsCard select,
input, textarea, select {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 9px; margin-bottom: 12px;
  font: inherit; background: #fff; color: #281c22;
}
.formActions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

/* ---------- Navigasi aktif ---------- */
.nav nav a.active { color: #7b1831; }
.nav nav a.active::after { width: 100%; }
.adminNav a.active { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Tombol, fokus & aksesibilitas ---------- */
button.btn { font-family: inherit; font-size: inherit; line-height: inherit; }
.btn.danger { border-color: #b3261e; color: #b3261e; }
.btn.danger:hover { background: #b3261e; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(123, 24, 49, .35); outline-offset: 2px;
}
input:focus, textarea:focus, select:focus { border-color: #7b1831; }
.srOnly {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Pesan (alert) & keadaan kosong ---------- */
.alert { padding: 12px 16px; margin: 0 0 16px; border: 1px solid transparent; border-radius: 12px; text-align: left; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert a { font-weight: 700; text-decoration: underline; }
.alert-success { background: #ecf8f0; border-color: #b9e3c6; color: #1d5b32; }
.alert-error { background: #fdecec; border-color: #f2b8b5; color: #8c1d18; }
.alert-info { background: #f8edf1; border-color: #e5c4cf; color: #5c1426; }
.emptyState { text-align: center; color: #756c71; }
.emptyState h3 { margin-top: 0; color: #281c22; }

/* ---------- Form ---------- */
label { display: block; margin: 4px 0 6px; font-weight: 700; color: #473b42; }
label.checkLabel { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; }
label.checkLabel input { width: auto; margin: 0; padding: 0; }
.formHint { margin: -6px 0 14px; font-size: .85rem; color: #756c71; }
.formCard { text-align: left; }
.formCard h1, .formCard h2 { margin-top: 0; }
.formCard h2, .tableCard h2 { font-size: 1.3rem; margin-bottom: 16px; }

/* ---------- Halaman login & setup ---------- */
.authBody {
  display: grid; place-items: center; min-height: 100vh; padding: 32px 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(167, 45, 76, .16), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(123, 24, 49, .14), transparent 42%),
    #f7f3f4;
}
.authMain { width: min(920px, 100%); }
.authShell {
  display: grid; grid-template-columns: 5fr 6fr; overflow: hidden;
  background: #fff; border: 1px solid #eadfe3; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(52, 22, 34, .14);
}
.authBrand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 48px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #7b1831, #a72d4c);
}
.authBrand img {
  width: 132px; height: 132px; object-fit: contain; padding: 14px; border-radius: 26px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.authBrand p { margin: 6px 0 0; color: rgba(255, 255, 255, .88); font-weight: 600; }
.authBrand .authBrandName { margin: 0; color: #fff; font-size: 1.9rem; font-weight: 900; letter-spacing: .04em; line-height: 1.1; }
.authPanel { padding: 44px 40px; }
.authPanel h1 { margin: 8px 0 6px; font-size: 1.9rem; line-height: 1.2; }
.authPanel > .muted { margin: 0 0 22px; }
.authFieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.authFieldset:disabled { opacity: .6; }
.authSubmit { display: block; width: 100%; margin: 8px 0 0; padding: 12px 16px; text-align: center; }
.authSubmit:disabled { cursor: wait; opacity: .75; }
.passwordField { position: relative; margin-bottom: 12px; }
.passwordField input { display: block; margin: 0; padding-right: 116px; }
.passwordToggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  padding: 6px 10px; border: 0; border-radius: 8px; background: #f3e5e9; color: #7b1831;
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.passwordToggle:hover { background: #ead2da; }
.capsWarning { margin: -4px 0 12px; font-size: .85rem; font-weight: 700; color: #8c1d18; }
.authFooter {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid #eadfe3; font-size: .92rem;
}
.authFooter a { color: #7b1831; font-weight: 700; }
.authCopy { margin: 18px 0 0; text-align: center; font-size: .85rem; color: #756c71; }

/* ---------- Tabel admin ---------- */
.tableCard { margin-top: 24px; text-align: left; }
.tableCard h2 { margin-top: 0; }
.tableWrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid #eadfe3; text-align: left; vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #756c71; }
.table tbody tr:hover { background: #fcf7f9; }
.table .actions { text-align: right; white-space: nowrap; }
.table .btn { margin: 0 4px 0 0; }
.table td.emptyCell { padding: 24px; text-align: center; color: #756c71; }
.inlineForm { display: inline; margin: 0; }
.cardActions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.cardActions .btn { margin: 0; }
.adminAlerts { padding-top: 20px; }
.adminSectionTitle { margin: 32px 0 16px; text-align: center; }
.errorDetail {
  overflow-x: auto; padding: 12px; border-radius: 10px; background: #f4e9ed;
  font-size: .85rem; text-align: left; white-space: pre-wrap;
}

/* ---------- Halaman publik ---------- */
.featureCard, .statCard { transition: transform .2s ease, box-shadow .2s ease; }
a.featureCard:hover, a.statCard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(52, 22, 34, .1); }
.sectionMore { margin-top: 28px; text-align: center; }
.newsCard .tag { align-self: center; }
.newsDate, .newsCard .newsDate { margin: 0 0 8px; font-size: .85rem; font-weight: 700; color: #7b1831; }
.newsDetail h1 { margin: 8px 0 6px; line-height: 1.2; }
.searchForm { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 24px; }
.searchForm input { margin: 0; }
.searchForm .btn { flex: 0 0 auto; margin: 0; }
.searchInfo { margin: -8px 0 24px; text-align: center; color: #756c71; }
.galleryCard { margin: 0; }
.galleryCard h3 { margin: 14px 0 6px; }
.galleryCard p { margin: 0; }
.galleryCard figcaption { margin-top: 12px; font-size: .92rem; line-height: 1.5; }
.galleryAlbum + .galleryAlbum { margin-top: 48px; }
.galleryAlbumHead { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-bottom: 20px; text-align: center; }
.galleryAlbumHead h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: #3c242a; }
.galleryAlbumHead .tag { margin: 0; }
footer a { color: #7b1831; font-weight: 600; }

@media (max-width: 800px) {
  .heroGrid, .profileLayout, .two, .three, .four, .gallery { grid-template-columns: 1fr; }
  .searchForm { flex-direction: column; }
  .table { font-size: .88rem; }
  .table th, .table td { padding: 10px 8px; }
  .authBody { padding: 16px 12px; }
  .authShell { grid-template-columns: 1fr; border-radius: 20px; }
  .authBrand { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 20px 22px; text-align: left; }
  .authBrand img { width: 60px; height: 60px; padding: 6px; border-radius: 14px; }
  .authBrand p { margin-top: 2px; font-size: .82rem; }
  .authBrand .authBrandName { font-size: 1.25rem; }
  .authPanel { padding: 26px 22px; }
  .authPanel h1 { font-size: 1.6rem; }
  .newsGrid { grid-template-columns: 1fr; gap: 14px; }
  .nav { min-height: 64px; flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand span { font-size: 1.15rem; white-space: nowrap; }
  .toggle {
    order: 1; display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px;
    align-items: center; justify-content: center; padding: 0; border: 1px solid #eadfe3;
    border-radius: 8px; background: #fff; color: #7b1831; font-size: 1.25rem;
  }
  .nav nav {
    order: 2; display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: 4px 0 0;
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 10px 2px; border-top: 1px solid #f0e8eb; }
  .nav nav a::after { display: none; }
  .headerActions {
    order: 3; display: grid; flex: 1 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; margin-left: 0;
  }
  .headerActions .btn { margin: 0; text-align: center; }
  .hero { padding: 36px 0; }
  .heroGrid { gap: 24px; }
  .heroCopy h1 { font-size: 2.25rem; line-height: 1.1; margin: 14px 0; }
  .heroActions .btn { flex: 1 1 calc(50% - 6px); margin: 0; text-align: center; }
  .heroVisual .logoPanel { min-height: 0; padding: 24px 18px; border-radius: 20px; }
  .heroVisual .logoPanel img { width: 160px; height: 160px; padding: 12px; border-radius: 18px; }
  .logoPanel .logoWord { margin-top: 16px; font-size: 2rem; }
  .logoPanel p { margin-top: 12px; font-size: 1rem; }
  .infoGrid { grid-template-columns: 1fr; gap: 12px; }
  .infoGrid .featureCard { padding: 18px; }
  .quickLinks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quickLinkCard { min-height: 150px; padding: 18px 12px; gap: 10px; border-radius: 14px; }
  .quickIcon { width: 52px; height: 52px; border-radius: 14px; font-size: 26px; }
  .adminDashboard .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .programImage,
  .programImagePlaceholder { height: 160px; }
  .programDetailImage,
  .programDetailPlaceholder { height: 190px; }
  .programCardBody,
  .programDetailBody { padding: 18px; }
  /* Struktur di HP: semua kartu sama besar (maks. 3 per baris) seperti di laptop,
     pengurus inti tetap satu baris Sekum - Ketum (lebih tinggi) - Bendum. */
  .orgPeople,
  .orgFieldLevel .orgPeople { align-items: stretch; gap: 8px; }
  .orgPerson,
  .orgFieldLevel .orgPerson { width: calc((100% - 16px) / 3); max-width: 165px; height: auto; padding: 10px 6px 14px; border-radius: 14px; }
  .orgPhotoWrap { width: clamp(60px, 20vw, 100px); height: clamp(60px, 20vw, 100px); flex-basis: auto; margin-bottom: 8px; padding: 3px; }
  .orgPerson strong { font-size: clamp(.74rem, 3.4vw, .94rem); overflow-wrap: anywhere; }
  .orgPerson span { font-size: clamp(.64rem, 2.9vw, .76rem); overflow-wrap: anywhere; }
  .orgFieldGroups { grid-template-columns: 1fr; gap: 20px; }
  .orgTopLevel h2 { transform: none; margin: -65px 0 16px; }
  .orgLeaderRow .orgPerson:not(.orgKetuaUmum) { margin-top: 44px; }
  .orgLeaderRow .orgKetuaUmum { transform: none; margin-bottom: 44px; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1rem; }
  .headerActions .btn.small { padding: 8px 6px; font-size: 11px; }
  .quickLinks { grid-template-columns: 1fr; }
}
