:root {
  --primary: #0f766e;
  --primary-dark: #0b4f49;
  --primary-soft: #d9f8f2;
  --green: #16a34a;
  --amber: #f59e0b;
  --blue: #2563eb;
  --rose: #e11d48;
  --ink: #172033;
  --muted: #65748b;
  --line: #dbe5ef;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #eef7f5;
  --shadow: 0 14px 34px rgba(23, 32, 51, .09);
  --shadow-lg: 0 24px 70px rgba(23, 32, 51, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --transition: all .25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button,
a {
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.container {
  max-width: 1180px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
}

.btn-success {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--green));
  box-shadow: 0 16px 34px rgba(15, 118, 110, .22);
}

.btn-success:hover,
.btn-success:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 118, 110, .3);
}

.btn-outline-success {
  color: var(--primary);
  border-color: rgba(15, 118, 110, .35);
  background: #fff;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary-soft {
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 10px 18px;
}

.btn-primary-soft:hover,
.btn-primary-soft:focus {
  color: #fff;
  background: var(--primary);
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .35s ease, visibility .35s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-wrapper {
  text-align: center;
}

.loader-logo {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 118, 110, .22);
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-wrapper h4 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(.96); }
  50% { transform: scale(1); }
}

#mainNav {
  padding: 14px 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 229, 239, .7);
}

#mainNav.navbar-scrolled,
#mainNav.scrolled {
  padding: 9px 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(23, 32, 51, .08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 auto;
}

.navbar-brand strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
}

.navbar-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.navbar-toggler i {
  color: var(--primary);
  font-size: 2rem;
}

.nav-link {
  border-radius: 999px;
  color: #334155;
  font-weight: 800;
  padding: 9px 13px !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary);
  background: rgba(15, 118, 110, .08);
}

.hero-section {
  padding: 136px 0 100px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .1), transparent 34%),
    linear-gradient(225deg, rgba(245, 158, 11, .13), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f5f8fb 100%);
}

.hero-text-wrap {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 48px;
}

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

.hero-slideshow-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.eyebrow,
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  padding: 10px 15px;
}

.section-badge {
  padding: 8px 14px;
  margin-bottom: 16px;
}

.hero-section h1 {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(2.55rem, 5.2vw, 4.65rem);
}

.hero-lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: 1.12rem;
  color: #475569;
}

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

.hero-counter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 34px;
}

.hero-counter div,
.stat-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(219, 229, 239, .9);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
}

.hero-counter div {
  padding: 18px;
}

.hero-counter strong {
  display: block;
  color: var(--primary);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.hero-counter span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  border-radius: 28px;
  padding: 8px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.carousel,
.carousel-inner,
.carousel-item {
  border-radius: 22px;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  min-height: 560px;
  background: #102a43;
}

.hero-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  cursor: pointer;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .62));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
}

.hero-caption span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 800;
}

.hero-caption h2 {
  max-width: 520px;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.carousel-indicators {
  margin-bottom: 18px;
}

.carousel-indicators [data-bs-target] {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
}

.carousel-indicators .active {
  width: 34px;
}

#infoCarousel .carousel-control-prev,
#infoCarousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 16px rgba(23, 32, 51, .13);
  opacity: 0;
  transition: opacity .25s ease;
}

#infoCarousel:hover .carousel-control-prev,
#infoCarousel:hover .carousel-control-next {
  opacity: 1;
}

#infoCarousel .carousel-control-prev { left: 16px; }
#infoCarousel .carousel-control-next { right: 16px; }

#infoCarousel .carousel-control-prev-icon,
#infoCarousel .carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: invert(.25) sepia(1) saturate(5) hue-rotate(160deg);
}

.hero-note {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 56px);
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.quick-menu {
  margin-top: -58px;
  position: relative;
  z-index: 5;
}

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

.quick-card {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 128px;
  padding: 18px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(219, 229, 239, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.quick-card:hover,
.quick-card:focus {
  transform: translateY(-5px);
  color: var(--primary);
}

.quick-card i,
.service-card i,
.stat-card i,
.card-icon,
.facility-card i,
.contact-list i {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--green));
}

.quick-card i {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  font-size: 1.45rem;
}

.quick-card span {
  font-weight: 800;
}

.statistics,
.section-pad {
  padding: 88px 0;
}

.stat-card {
  height: 100%;
  padding: 26px;
}

.stat-card i {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 700;
}

.bg-white {
  background: #fff !important;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-header.centered {
  justify-content: center;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-header p {
  max-width: 650px;
}

.info-card,
.news-card,
.service-card,
.facility-card,
.org-group {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
}

.info-card,
.service-card,
.facility-card {
  padding: 26px;
}

.info-card:hover,
.news-card:hover,
.service-card:hover,
.facility-card:hover,
.org-person:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.card-icon.amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.card-icon.green { background: linear-gradient(135deg, #15803d, #16a34a); }
.card-icon.blue { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.card-icon.rose { background: linear-gradient(135deg, #be123c, #fb7185); }

.info-date,
.news-date,
.facility-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card h3,
.news-card h3,
.service-card h3,
.facility-card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.summary-text {
  color: #526174;
}

.info-card .summary-text,
.info-card .summary-short,
.info-card .summary-full,
.news-card .summary-text,
.news-card .summary-short,
.news-card .summary-full {
  text-align: justify;
}

.summary-full {
  display: none;
}

.expandable-text.is-expanded .summary-short {
  display: none;
}

.expandable-text.is-expanded .summary-full {
  display: inline;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 800;
}

.service-card {
  min-height: 250px;
}

.service-card i,
.facility-card i {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  margin-bottom: 20px;
  font-size: 1.55rem;
}

.news-card {
  overflow: hidden;
  transition: var(--transition);
}

.news-thumb {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--surface-soft);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.news-category {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 118, 110, .92);
  font-size: .78rem;
  font-weight: 800;
}

.news-content {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 24px;
}

.news-content .more-link {
  margin-top: auto;
}

/* ── News Detail Layout ── */
.news-layout {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.news-sidebar {
  flex: 0 0 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
  overflow: hidden;
}

.news-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-family: "Manrope", Arial, sans-serif;
  font-size: .85rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .5px;
  flex: 0 0 auto;
}

.news-sidebar-header i {
  font-size: 1.1rem;
  color: var(--primary);
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 500px;
}

.news-sidebar-list::-webkit-scrollbar {
  width: 4px;
}

.news-sidebar-list::-webkit-scrollbar-track {
  background: transparent;
}

.news-sidebar-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.news-sidebar-item {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  cursor: pointer;
  transition: var(--transition);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.news-sidebar-item:hover {
  border-color: var(--line);
  box-shadow: none;
  background: var(--bg);
}

.news-sidebar-item.active {
  border-color: var(--line);
  box-shadow: none;
  background: var(--primary-soft);
}

.news-sidebar-item:last-child {
  border-bottom: 0;
}

.news-accent-bar {
  width: 4px;
  height: auto;
  align-self: stretch;
  flex: 0 0 auto;
  transition: var(--transition);
}

.news-sidebar-item:not(.active) .news-accent-bar {
  opacity: .5;
}

.news-sidebar-content {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-sidebar-date {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-sidebar-content h4 {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sidebar-item.active .news-sidebar-content h4 {
  color: var(--primary-dark);
}

/* ── News Main Content ── */
.news-main {
  flex: 1;
  min-width: 0;
  min-height: 300px;
}

.news-main-article {
  animation: fadeIn .35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-main-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-main-category {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-main-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.news-main-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--ink);
}

.news-main-image {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.news-main-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-main-body {
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
  color: #334155;
}

.news-main-body p {
  margin-bottom: 16px;
  color: inherit;
}

.news-main-body p:last-child {
  margin-bottom: 0;
}

.facility-card {
  min-height: 210px;
}

.facility-card p {
  margin-top: 8px;
}

#galleryContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 100px;
}

.album-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.album-card-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.album-card-grid {
  display: grid;
  height: 100%;
  gap: 2px;
}
.album-card-grid--1 { grid-template: 1fr / 1fr; }
.album-card-grid--2 { grid-template: 1fr / 1fr 1fr; }
.album-card-grid--3 { grid-template: 1fr 1fr / 1fr 1fr; }
.album-card-grid--3 .album-card-grid-cell:first-child { grid-column: 1 / -1; }
.album-card-grid--4 { grid-template: 1fr 1fr / 1fr 1fr; }
.album-card-grid-cell {
  overflow: hidden;
}
.album-card-grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.album-card:hover .album-card-grid-cell img {
  transform: scale(1.05);
}
.album-card-count-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .02em;
  pointer-events: none;
}
.album-card-body {
  padding: 14px 16px 16px;
}
.album-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--heading);
}
.album-card-body p {
  font-size: .85rem;
  color: var(--secondary);
  margin: 6px 0 0;
}

@media (max-width: 768px) {
  #galleryContainer { grid-template-columns: repeat(2, 1fr); }
  .album-card-cover { height: 180px; }
}
@media (max-width: 480px) {
  #galleryContainer { grid-template-columns: 1fr; }
  .album-card-cover { height: 200px; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s .3s, opacity .3s ease;
  padding: 16px;
}
.lightbox-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s;
  z-index: 10;
  padding: 4px 12px;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s, background .2s;
  z-index: 10;
}
.lightbox-nav:hover { opacity: 1; background: rgba(255,255,255,.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav.is-hidden { opacity: 0; pointer-events: none; }

.lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  max-height: calc(100vh - 100px);
  overflow: hidden;
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: transform .4s ease, opacity .3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  flex-shrink: 0;
  text-align: center;
  padding: 16px 0 8px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lightbox-counter {
  font-size: .8rem;
  opacity: .6;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { font-size: 2rem; top: 10px; right: 12px; }
  .lightbox-image { max-height: 75vh; }
}

@media (max-width: 480px) {
  .lightbox-overlay { padding: 8px; }
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

.pengurus-section {
  background: linear-gradient(180deg, #fff 0%, #eef7f5 100%);
}

.org-group {
  padding: 24px;
  margin-bottom: 18px;
}

.org-group-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.org-group-heading > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: var(--primary);
}

.org-group-heading h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.org-group-heading small {
  color: var(--muted);
  font-weight: 700;
}

.org-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.org-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: var(--transition);
}

.org-person img,
.org-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.org-person img {
  object-fit: cover;
}

.org-avatar {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  font-weight: 800;
}

.org-person span {
  display: block;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
}

.org-person strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  line-height: 1.25;
}

/* ── Accordion ── */
.org-group-heading {
  cursor: pointer;
  user-select: none;
}
.org-group-heading::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform .3s ease;
}
.org-group.is-expanded .org-group-heading::after {
  transform: rotate(180deg);
}
.org-members {
  display: none;
}
.org-group.is-expanded .org-members {
  display: grid;
}

.org-empty,
.empty-state,
.loading-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  text-align: center;
  font-weight: 700;
}

/* ── Laporan Keuangan ── */
.kas-filter {
  max-width: 500px;
  margin: 0 auto 32px;
}

.kas-filter-inner {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
}

.kas-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.kas-filter-group label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kas-select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: .85rem;
  appearance: auto;
  cursor: pointer;
  transition: border-color .2s;
}

.kas-select:focus {
  outline: none;
  border-color: var(--primary);
}

.kas-btn-search {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.kas-btn-search:hover {
  opacity: .85;
}

.kas-btn-search:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.kas-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--muted);
  font-weight: 600;
}

.kas-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kas-stat-card {
  padding: 20px 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
  position: relative;
  overflow: hidden;
}

.kas-stat-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -30px;
  top: -30px;
  border-radius: 50%;
  opacity: .1;
}

.kas-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  font-size: 1.15rem;
}

.kas-stat-card small {
  display: block;
  font-size: .68rem;
  letter-spacing: .06em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.kas-stat-card span {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  margin-top: 4px;
}

.kas-saldo-awal { --kas-clr: #6c757d; }
.kas-saldo-awal::after { background: var(--kas-clr); }
.kas-saldo-awal .kas-stat-icon { background: rgba(108,117,125,.12); color: var(--kas-clr); }
.kas-saldo-awal span { color: var(--kas-clr); }

.kas-total-masuk { --kas-clr: #16a34a; }
.kas-total-masuk::after { background: var(--kas-clr); }
.kas-total-masuk .kas-stat-icon { background: rgba(22,163,74,.12); color: var(--kas-clr); }
.kas-total-masuk span { color: var(--kas-clr); }

.kas-total-keluar { --kas-clr: #dc3545; }
.kas-total-keluar::after { background: var(--kas-clr); }
.kas-total-keluar .kas-stat-icon { background: rgba(220,53,69,.12); color: var(--kas-clr); }
.kas-total-keluar span { color: var(--kas-clr); }

.kas-saldo-akhir { --kas-clr: var(--primary); }
.kas-saldo-akhir::after { background: var(--kas-clr); }
.kas-saldo-akhir .kas-stat-icon { background: rgba(52,211,196,.12); color: var(--kas-clr); }
.kas-saldo-akhir span { color: var(--kas-clr); }

.kas-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.kas-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
  overflow: hidden;
}

.kas-detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.kas-detail-masuk {
  color: #16a34a;
  background: rgba(22,163,74,.06);
}

.kas-detail-keluar {
  color: #dc3545;
  background: rgba(220,53,69,.06);
}

.kas-table {
  width: 100%;
  border-collapse: collapse;
}

.kas-table thead th {
  padding: 10px 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .5px;
  border-bottom: 1px solid var(--line);
}

.kas-table tbody td {
  padding: 10px 20px;
  font-size: .85rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
  color: var(--ink);
}

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

.kas-table .text-end {
  text-align: right;
}

.kas-table .fw-bold {
  font-weight: 700;
}

.kas-table .text-success { color: #16a34a; }
.kas-table .text-danger { color: #dc3545; }

.kas-table .kas-empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

.kas-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
  color: var(--muted);
}

.kas-empty i {
  font-size: 2rem;
}

.kas-empty p {
  font-weight: 600;
}

/* ── Contact ── */
.contact-section {
  background: var(--bg);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.contact-list a:hover,
.contact-list a:focus {
  color: var(--primary);
  transform: translateX(4px);
}

.contact-list i {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: 0 0 auto;
}

.map-box {
  height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  background: #dbe5ef;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  padding: 58px 0 28px;
  color: #cbd5e1;
  background: #102033;
}

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

.footer h4 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer p {
  color: #cbd5e1;
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 9px;
  color: #cbd5e1;
}

.footer a:hover,
.footer a:focus {
  color: #fff;
}

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

.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icons a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #cbd5e1;
  text-align: center;
}

.floating-wa,
.back-to-top {
  position: fixed;
  z-index: 50;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-lg);
}

.floating-wa {
  right: 22px;
  bottom: 22px;
  background: #22c55e;
  font-size: 1.55rem;
}

.back-to-top {
  right: 22px;
  bottom: 86px;
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .hero-section {
    min-height: auto;
    padding: 118px 0 88px;
  }

  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .org-members,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid img:first-child {
    grid-column: 1 / -1;
    height: 360px;
  }

  .news-sidebar-list {
    gap: 10px;
    padding: 14px 16px;
  }

  .news-sidebar-item {
    flex: 0 0 170px;
  }

  .news-main-image img {
    max-height: 320px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .hero-section {
    padding: 104px 0 64px;
  }

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

  .hero-text-wrap {
    padding-bottom: 32px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .hero-slide,
  .hero-slide img {
    min-height: 340px;
    height: 340px;
  }

  #infoCarousel .carousel-control-prev,
  #infoCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    opacity: 1;
  }

  #infoCarousel .carousel-control-prev { left: 8px; }
  #infoCarousel .carousel-control-next { right: 8px; }

  .hero-note {
    position: static;
    max-width: 100%;
    margin-top: 12px;
    color: var(--ink);
    background: var(--primary-soft);
  }

  .quick-menu {
    margin-top: -32px;
  }

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

  .section-header {
    align-items: flex-start;
  }

  .section-header,
  .section-header.centered {
    text-align: left;
    justify-content: flex-start;
  }

  .statistics,
  .section-pad {
    padding: 68px 0;
  }

  .org-group {
    padding: 18px;
  }

  .org-members {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .org-person {
    padding: 10px;
    gap: 10px;
  }

  .org-person img,
  .org-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .org-person span {
    font-size: .72rem;
  }

  .org-person strong {
    font-size: .82rem;
  }

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

  .gallery-grid img,
  .gallery-grid img:first-child {
    height: 260px;
  }

  .map-box {
    height: 340px;
  }

  .news-layout {
    flex-direction: column;
    gap: 16px;
  }

  .news-sidebar {
    flex: none;
  }

  .news-sidebar-header {
    padding: 12px 14px;
    font-size: .72rem;
    letter-spacing: 0;
    gap: 6px;
  }

  .news-sidebar-header i {
    font-size: .9rem;
  }

  .news-sidebar-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 300px;
    scroll-snap-type: none;
  }

  .news-sidebar-item {
    flex: none;
    flex-direction: row;
    align-items: stretch;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    scroll-snap-align: none;
  }

  .news-sidebar-item:last-child {
    border-bottom: 0;
  }

  .news-sidebar-item:hover {
    border-color: var(--line);
    box-shadow: none;
    background: var(--bg);
  }

  .news-sidebar-item.active {
    border-color: var(--line);
    box-shadow: none;
    background: var(--primary-soft);
  }

  .news-sidebar-content {
    padding: 12px 14px;
    gap: 4px;
  }

  .news-sidebar-date {
    font-size: .62rem;
  }

  .news-sidebar-content h4 {
    font-size: .75rem;
    -webkit-line-clamp: 2;
  }

  .news-accent-bar {
    width: 4px;
    height: auto;
    align-self: stretch;
  }

  .news-main-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .news-main-meta {
    gap: 8px;
    margin-bottom: 10px;
  }

  .news-main-category {
    font-size: .68rem;
    padding: 4px 10px;
  }

  .news-main-date {
    font-size: .72rem;
  }

  .news-main-image {
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .news-main-image img {
    max-height: 180px;
  }

  .news-main-body {
    font-size: .85rem;
    line-height: 1.6;
  }

  .news-main-body p {
    margin-bottom: 10px;
  }

  [data-theme="dark"] .news-sidebar-item:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, .04);
    box-shadow: none;
  }

  [data-theme="dark"] .news-sidebar-item.active {
    border-color: var(--line);
    box-shadow: none;
    background: var(--primary-soft);
  }

  .kas-filter-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .kas-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .kas-stat-card {
    padding: 16px 12px;
  }

  .kas-stat-card span {
    font-size: .85rem;
  }

  .kas-table thead th,
  .kas-table tbody td {
    padding: 8px 14px;
    font-size: .78rem;
  }
}

@media (max-width: 420px) {
  .quick-card {
    min-height: 112px;
  }

  .hero-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --primary: #34d3c4;
  --primary-dark: #7fe2d9;
  --primary-soft: #1a3d3a;
  --green: #4ade80;
  --amber: #fbbf24;
  --blue: #60a5fa;
  --rose: #fb7185;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #334155;
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-soft: #1a2e35;
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}

[data-theme="dark"] #mainNav {
  background: rgba(15, 23, 42, .88);
  border-bottom-color: rgba(51, 65, 85, .7);
}

[data-theme="dark"] #mainNav.navbar-scrolled {
  background: rgba(15, 23, 42, .96);
}

[data-theme="dark"] .nav-link {
  color: #cbd5e1;
}

[data-theme="dark"] .navbar-brand {
  color: var(--ink);
}

[data-theme="dark"] .navbar-brand small {
  color: var(--muted);
}

[data-theme="dark"] .section-header h2 {
  color: var(--ink);
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .info-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .news-sidebar-item,
[data-theme="dark"] .facility-card,
[data-theme="dark"] .org-group,
[data-theme="dark"] .hero-panel,
[data-theme="dark"] .slider-container,
[data-theme="dark"] .org-person {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .album-card {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .kas-filter-inner,
[data-theme="dark"] .kas-stat-card,
[data-theme="dark"] .kas-detail-card {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .kas-select {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .hero-section {
  background:
    linear-gradient(135deg, rgba(52, 211, 196, .08), transparent 34%),
    linear-gradient(225deg, rgba(251, 191, 36, .1), transparent 28%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

[data-theme="dark"] .btn-outline-success {
  background: transparent;
  color: var(--primary);
  border-color: rgba(52, 211, 196, .35);
}

[data-theme="dark"] .btn-primary-soft {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

[data-theme="dark"] .hero-lead {
  color: var(--muted);
}

[data-theme="dark"] .quick-card,
[data-theme="dark"] .contact-list a,
[data-theme="dark"] .contact-list div,
[data-theme="dark"] .loading-state,
[data-theme="dark"] .empty-state {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .footer {
  background: #0b1324;
}

[data-theme="dark"] .pengurus-section {
  background: linear-gradient(180deg, var(--surface) 0%, #0b1a1a 100%);
}

[data-theme="dark"] .btn-darkmode {
  background: var(--primary-soft);
  color: var(--primary);
}

[data-theme="dark"] .summary-text {
  color: var(--muted);
}

[data-theme="dark"] .btn-darkmode:hover {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .news-sidebar {
  background: var(--surface);
  border-color: var(--line);
}

[data-theme="dark"] .news-sidebar-header {
  background: var(--surface);
  border-color: var(--line);
}

[data-theme="dark"] .news-sidebar-item:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, .04);
}

[data-theme="dark"] .news-sidebar-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(52, 211, 196, .2);
}

[data-theme="dark"] .news-main-body {
  color: var(--muted);
}

[data-theme="dark"] ::selection {
  background: rgba(52, 211, 196, .3);
}

[data-theme="dark"] .map-box {
  background: #1e293b;
}

[data-theme="dark"] #preloader {
  background: var(--bg);
}

.btn-darkmode {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-darkmode:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

