:root {
  --kh-bg: #fbfaf8;
  --kh-green: #3f8149;
  --kh-green-dark: #2f6339;
  --kh-green-pale: #cfe6d1;
  --kh-text: #2b2b28;
  --kh-muted: #7a7a74;
  --kh-border: #e7e4dd;
  --kh-cream-btn: #ece8e0;
}

.kh-wrapper {
  background: var(--kh-bg);
  color: var(--kh-text);
  font-family: "Georgia", "Iowan Old Style", serif;
  padding: 48px 5vw 80px;
}

.kh-eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--kh-muted);
  font-weight: 600;
}

.kh-title {
  font-size: 40px;
  margin: 6px 0 32px;
  font-weight: 500;
}

.kh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  position: relative;
}

/* --- category dropdown --- */
.kh-dropdown {
  position: absolute;
  top: -8px;
  right: 0;
  width: 260px;
  z-index: 20;
}

.kh-dropdown-toggle {
  font-family: "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--kh-border);
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kh-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--kh-border);
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.kh-dropdown-menu li a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--kh-text);
  text-decoration: none;
}

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

.kh-dropdown-menu li.active a {
  background: var(--kh-green);
  color: #fff;
  font-weight: 600;
}

/* --- article grid --- */
.kh-article {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding-bottom: 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--kh-border);
}

.kh-article:first-of-type {
  margin-top: 64px;
}

.kh-article-image {
  width: 320px;
  height: 320px;
  object-fit: cover;
  background: #eee;
}

.kh-article-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
}

.kh-article-title {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 500;
}

.kh-article-title a {
  color: inherit;
  text-decoration: none;
}

.kh-article-excerpt {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--kh-muted);
  margin: 0 0 20px;
  max-width: 62ch;
}

.kh-tags-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.kh-badge {
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kh-green-pale);
  color: var(--kh-green-dark);
  font-size: 13px;
  padding: 8px 16px;
  border-left: 3px solid var(--kh-green);
  border-radius: 2px;
}

.kh-badge strong {
  font-weight: 700;
}

.kh-btn-show {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--kh-cream-btn);
  border: none;
  color: var(--kh-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-radius: 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.kh-btn-show:hover {
  background: #e0dbd0;
}

/* --- pagination --- */
.kh-pagination {
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.kh-pagination a,
.kh-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  text-decoration: none;
  color: var(--kh-text);
  border: 1px solid var(--kh-border);
  border-radius: 4px;
}

.kh-pagination a:hover {
  background: #f4f2ee;
}

.kh-pagination .active span {
  background: var(--kh-green);
  border-color: var(--kh-green);
  color: #fff;
}

.kh-pagination .disabled span {
  color: #c9c6bd;
}

.kh-empty {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--kh-muted);
  padding: 40px 0;
}

@media (max-width: 780px) {
  .kh-dropdown {
    position: static;
    width: 100%;
    margin-bottom: 24px;
  }
  .kh-article {
    grid-template-columns: 1fr;
  }
  .kh-article-image {
    width: 100%;
    height: 220px;
  }
  .kh-article:first-of-type {
    margin-top: 0;
  }
}

/* ===================================================================
   Detail page: breadcrumb, blurred hero image, content + meta sidebar
   =================================================================== */

.kh-detail-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.kh-breadcrumb {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--kh-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.kh-breadcrumb a {
  color: var(--kh-muted);
  text-decoration: none;
  font-weight: 600;
}

.kh-breadcrumb a:hover {
  color: var(--kh-green-dark);
}

.kh-breadcrumb span {
  color: #c9c6bd;
}

.kh-breadcrumb-current {
  color: var(--kh-text) !important;
  font-weight: 700;
}

.kh-detail-title {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 900px;
}

/* Hero: blurred, scaled-up copy of the image fills the width;
   the real image sits centered on top with its own shadow. */
.kh-detail-hero {
  position: relative;
  height: 460px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  background: #111;
}

.kh-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.75);
  transform: scale(1.15);
}

.kh-detail-hero-img {
  position: relative;
  display: block;
  height: 100%;
  max-width: 700px;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.kh-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.kh-detail-content {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--kh-text);
}

.kh-detail-content p {
  margin: 0 0 22px;
}

.kh-detail-sidebar {
  background: #f0eee9;
  border-radius: 10px;
  padding: 28px 26px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.kh-meta-item {
  margin-bottom: 22px;
}

.kh-meta-item:last-child {
  margin-bottom: 0;
}

.kh-meta-label {
  font-size: 13px;
  color: var(--kh-muted);
  margin-bottom: 4px;
}

.kh-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--kh-text);
}

@media (max-width: 820px) {
  .kh-detail-layout {
    grid-template-columns: 1fr;
  }
  .kh-detail-hero {
    height: 300px;
  }
  .kh-detail-title {
    font-size: 26px;
  }
}

/* ===================================================================
   Edukasi landing page: intro column + featured card grid with hover
   =================================================================== */

.kh-edu-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  align-items: start;
}

.kh-edu-intro {
  position: relative;
  padding: 8px 8px 8px 0;
  overflow: hidden;
}

/* Faint repeating "raised hands" watermark behind the intro copy */
.kh-edu-intro-bg {
  position: absolute;
  inset: -20px -20px auto -20px;
  height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='90' viewBox='0 0 60 90'%3E%3Crect x='20' y='40' width='20' height='35' rx='8' fill='%23000000' fill-opacity='0.035'/%3E%3Crect x='12' y='20' width='8' height='30' rx='4' fill='%23000000' fill-opacity='0.035'/%3E%3Crect x='22' y='8' width='8' height='42' rx='4' fill='%23000000' fill-opacity='0.035'/%3E%3Crect x='32' y='8' width='8' height='42' rx='4' fill='%23000000' fill-opacity='0.035'/%3E%3Crect x='42' y='16' width='8' height='34' rx='4' fill='%23000000' fill-opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 70px 105px;
  background-position: bottom left;
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 75%);
  mask-image: linear-gradient(to top, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.kh-edu-intro-content {
  position: relative;
  z-index: 1;
}

.kh-edu-title {
  font-family: "Georgia", "Iowan Old Style", serif;
  font-size: 40px;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--kh-text);
}

.kh-edu-text {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #555;
  margin: 0 0 22px;
  max-width: 46ch;
}

.kh-edu-btn {
  display: inline-block;
  margin-top: 12px;
  background: #f2a53a;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(242, 165, 58, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.kh-edu-btn:hover {
  background: #e8961f;
  transform: translateY(-2px);
}

/* --- cards --- */
.kh-edu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.kh-edu-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.kh-edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.2);
}

.kh-edu-card-top {
  height: 70px;
  display: flex;
  align-items: flex-start;
  padding: 18px 20px;
}

.kh-edu-badge {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--kh-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 20px;
}

.kh-edu-card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.kh-edu-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Hover effect: image scales up slightly and a tinted overlay with
   "Tampilkan" fades in on top, matching the reference card. */
.kh-edu-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--kh-edu-overlay, rgba(0, 0, 0, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.kh-edu-card-overlay span {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.kh-edu-card:hover .kh-edu-card-image {
  transform: scale(1.08);
}

.kh-edu-card:hover .kh-edu-card-overlay {
  opacity: 1;
}

.kh-edu-card:hover .kh-edu-card-overlay span {
  transform: translateY(0);
}

.kh-edu-card-title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  padding: 22px 20px;
}

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

/* ===================================================================
   Infografis: grid gallery + poster-style detail hero
   =================================================================== */

.kh-infografis-wrapper {
  max-width: 1180px;
  margin: 0 auto;
}

.kh-infografis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.kh-infografis-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kh-infografis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.kh-infografis-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eee;
}

.kh-infografis-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.kh-infografis-overlay {
  position: absolute;
  inset: 0;
  background: rgba(63, 129, 73, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kh-infografis-overlay span {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.kh-infografis-card:hover .kh-infografis-image {
  transform: scale(1.06);
}

.kh-infografis-card:hover .kh-infografis-overlay {
  opacity: 1;
}

.kh-infografis-title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 14px 16px 18px;
}

/* Poster-style hero for a single infographic (taller, narrower than
   the photo hero used on Kisah Inspiratif detail pages) */
.kh-detail-hero--poster {
  height: 560px;
}

.kh-detail-hero-img--poster {
  max-width: 420px;
  object-fit: contain;
  background: #fff;
}

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

@media (max-width: 520px) {
  .kh-infografis-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .kh-detail-hero--poster {
    height: 380px;
  }
}
