/* =====================================
   PARTNERSHIP RESULTS
===================================== */

.tpm-partnership-wrapper {
  width: 100%;
  margin: 0 auto;
}

.tpm-partnership-heading {
  text-align: center;
  margin-bottom: 40px;
}

.tpm-partnership-heading h2 {
  color: #000080;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 10px;
}

.tpm-partnership-heading p {
  color: #666;
  font-size: 15px;
  margin: 0;
}

/* PARTNER GROUP */

.tpm-partner-group {
  margin-bottom: 50px;
}

.tpm-partner-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e8edf5;
}

.tpm-partner-heading h3 {
  color: #000080;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.tpm-partner-logo {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tpm-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ACTIVITY GRID */

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

/* ACTIVITY CARD */

.tpm-activity-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tpm-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.tpm-activity-cover {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #f3f5f8;
}

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

.tpm-activity-content {
  padding: 20px;
}

.tpm-activity-content h4 {
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
}

/* ACTIVITY META */

.tpm-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.tpm-activity-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 13px;
}

.tpm-activity-meta .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* DESCRIPTION */

.tpm-activity-description {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* DOCUMENTATION GALLERY */

.tpm-activity-gallery {
  padding-top: 15px;
  border-top: 1px solid #edf0f5;
}

.tpm-activity-gallery strong {
  display: block;
  color: #333;
  font-size: 13px;
  margin-bottom: 10px;
}

.tpm-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpm-gallery-grid a {
  display: block;
  width: 65px;
  height: 65px;
  overflow: hidden;
  border-radius: 6px;
}

.tpm-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.tpm-gallery-grid a:hover img {
  transform: scale(1.1);
}

/* EMPTY STATE */

.tpm-no-results {
  padding: 20px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
}

/* TABLET */

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

/* MOBILE */

@media (max-width: 600px) {
  .tpm-partnership-heading h2 {
    font-size: 24px;
  }

  .tpm-partner-heading {
    gap: 12px;
  }

  .tpm-partner-logo {
    width: 60px;
    height: 60px;
  }

  .tpm-partner-heading h3 {
    font-size: 19px;
  }

  .tpm-activities-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tpm-activity-cover {
    height: 200px;
  }

  .tpm-activity-content {
    padding: 16px;
  }
}


/* =====================================
   PARTNERSHIP SINGLE DETAIL
===================================== */
.tpm-partnership-detail {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: #263244;
}
.tpm-detail-partner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: #f7f9fc;
  border: 1px solid #e8edf5;
  border-radius: 12px;
}
.tpm-detail-partner-logo {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
}
.tpm-detail-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tpm-detail-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tpm-detail-partner-identity h2 {
  margin: 0;
  color: #000080;
  font-size: 21px;
  line-height: 1.35;
}
.tpm-detail-featured-image {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f5f9;
}
.tpm-detail-featured-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.tpm-detail-header { margin-bottom: 24px; }
.tpm-detail-header h1 {
  margin: 0 0 14px;
  color: #000080;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
}
.tpm-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.tpm-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
}
.tpm-detail-meta .dashicons { font-size: 17px; width: 17px; height: 17px; }
.tpm-detail-description {
  color: #475569;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.tpm-detail-description > :first-child { margin-top: 0; }
.tpm-detail-gallery { margin-top: 42px; }
.tpm-detail-section-heading { margin-bottom: 18px; }
.tpm-detail-section-heading h2 {
  margin: 0 0 5px;
  color: #000080;
  font-size: 24px;
}
.tpm-detail-section-heading p { margin: 0; color: #64748b; font-size: 14px; }
.tpm-detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tpm-detail-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f7;
  cursor: zoom-in;
}
.tpm-detail-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.tpm-detail-gallery-item:hover img { transform: scale(1.06); }
.tpm-detail-gallery-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.58);
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
}
.tpm-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(8, 13, 25, .94);
}
.tpm-lightbox.is-open { display: flex; }
.tpm-lightbox-figure {
  max-width: min(100%, 1200px);
  max-height: 100%;
  margin: 0;
  text-align: center;
}
.tpm-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.tpm-lightbox-figure figcaption {
  min-height: 22px;
  padding-top: 10px;
  color: #fff;
  font-size: 14px;
}
.tpm-lightbox-close,
.tpm-lightbox-prev,
.tpm-lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.tpm-lightbox-close { top: 18px; right: 22px; font-size: 34px; }
.tpm-lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.tpm-lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.tpm-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
}
body.tpm-lightbox-open { overflow: hidden; }
@media (max-width: 900px) {
  .tpm-detail-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tpm-detail-partner { padding: 14px; gap: 12px; }
  .tpm-detail-partner-logo { width: 58px; height: 58px; flex-basis: 58px; }
  .tpm-detail-partner-identity h2 { font-size: 18px; }
  .tpm-detail-featured-image { border-radius: 9px; }
  .tpm-detail-header h1 { font-size: 25px; }
  .tpm-detail-description { font-size: 15px; }
  .tpm-detail-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .tpm-lightbox { padding: 55px 12px; }
  .tpm-lightbox-prev { left: 5px; }
  .tpm-lightbox-next { right: 5px; }
  .tpm-lightbox-close { top: 8px; right: 8px; }
  .tpm-lightbox-figure img { max-height: calc(100vh - 130px); }
}


/* SINGLE DETAIL: judul dikelola plugin, judul native tema disembunyikan. */
body.single-tpm_partnership .tpm-detail-title {
  display: block !important;
  margin: 0 0 16px;
  color: #000080;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
}
body.single-tpm_partnership .entry-header .entry-title,
body.single-tpm_partnership .entry-title,
body.single-tpm_partnership .post-title,
body.single-tpm_partnership .post-header .title,
body.single-tpm_partnership .post-header .entry-title,
body.single-tpm_partnership .page-title,
body.single-tpm_partnership .article-title {
  display: none !important;
}

/* SINGLE DETAIL: sembunyikan author/byline dan author box bawaan tema. */
body.single-tpm_partnership .byline,
body.single-tpm_partnership .entry-author,
body.single-tpm_partnership .post-author,
body.single-tpm_partnership .author-box,
body.single-tpm_partnership .blog-author,
body.single-tpm_partnership .post-meta .author,
body.single-tpm_partnership .entry-meta .author,
body.single-tpm_partnership .entry-meta .byline,
body.single-tpm_partnership .post-meta .byline,
body.single-tpm_partnership .author-bio,
body.single-tpm_partnership .post-author-box {
  display: none !important;
}


/* STAGE 9: FILTER, DETAIL LINK, GLOBAL PAGINATION */
/* Filter dibuat ringkas dan rata kanan agar konten kegiatan tetap menjadi fokus. */
.tpm-partnership-filter{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 24px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
}
.tpm-partnership-filter label{
  margin:0;
  color:#7b8492;
  font-size:13px;
  font-weight:400;
}
.tpm-partnership-filter select{
  width:auto;
  min-width:175px;
  max-width:100%;
  height:38px;
  margin:0;
  padding:6px 30px 6px 10px;
  color:#596579;
  font-size:13px;
  font-weight:400;
  background-color:#fff;
  border:1px solid #e2e6ec;
  border-radius:6px;
  box-shadow:none;
}
.tpm-partnership-filter select:focus{
  border-color:#b8c3d1;
  outline:0;
  box-shadow:0 0 0 2px rgba(100,116,139,.08);
}
.tpm-filter-note{display:none}
.tpm-activity-content h4 a{color:inherit;text-decoration:none}
.tpm-activity-content h4 a:hover{color:#000080}
.tpm-activity-detail-link{display:inline-flex;align-items:center;gap:7px;margin-top:2px;font-weight:600;color:#000080;text-decoration:none}
.tpm-activity-detail-link:hover{text-decoration:underline}
.tpm-partnership-pagination{margin:35px 0 10px}
.tpm-partnership-pagination ul{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;list-style:none;margin:0;padding:0}
.tpm-partnership-pagination li{margin:0;padding:0}
.tpm-partnership-pagination a,.tpm-partnership-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:7px 12px;border:1px solid #e2e8f0;border-radius:7px;text-decoration:none;color:#263244;background:#fff}
.tpm-partnership-pagination .current{background:#000080;color:#fff;border-color:#000080}
.tpm-partnership-pagination a:hover{border-color:#000080;color:#000080}
.tpm-filter-empty{text-align:center;padding:18px;color:#64748b;background:#f8fafc;border-radius:8px}
.tpm-activity-cover{display:block}
@media(max-width:600px){.tpm-partnership-filter{align-items:center;justify-content:flex-end;flex-direction:row}.tpm-partnership-filter select{width:auto;min-width:150px;max-width:65%}.tpm-partnership-pagination a,.tpm-partnership-pagination span{min-width:34px;min-height:34px;padding:6px 9px}}

/* Hide the theme's publish-date badge on Hasil Kerja Sama detail pages.
   The activity date rendered by this plugin remains visible. */
body.single-tpm_partnership .post-date,
body.single-tpm_partnership .badge.post-date {
    display: none !important;
}
