/* ═══════════════════════════════════════════════════════
   PENGUMUMAN — Page-specific styles
   Depends on: style.css (tokens, navbar, footer, page-hero)
═══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   HERO
─────────────────────────────────────── */
.pgm-hero {
  min-height: 240px;
  align-items: flex-end;
  padding: 0 72px 48px;
}

.pgm-btn-back-wrap {
  padding: 16px 30px 0;
  background: #f5f7fc;
}

.pgm-hero__content { max-width: 560px; }

.pgm-hero__title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}

.pgm-hero__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

/* ──────────────────────────────────────
   SECTION WRAPPER — white bg
─────────────────────────────────────── */
.pgm-section {
  background: #f5f7fc;
  padding: 56px 72px 88px;
}

.pgm-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ──────────────────────────────────────
   HEADER ROW: title + search
─────────────────────────────────────── */
.pgm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pgm-header__title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
}

/* Search */
.pgm-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 340px;
  min-width: 220px;
}

.pgm-search__icon {
  position: absolute;
  left: 13px;
  color: #aaa;
  pointer-events: none;
}

.pgm-search__input {
  width: 100%;
  border: 1.5px solid #d8dce8;
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #333;
  padding: 10px 36px 10px 40px;
  outline: none;
  transition: border-color 0.18s;
}

.pgm-search__input::placeholder { color: #bbb; }
.pgm-search__input:focus { border-color: var(--orange); }

.pgm-search__clear {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  font-size: 0.78rem;
  color: #bbb;
  cursor: pointer;
  padding: 4px;
  display: none;
  transition: color 0.15s;
}

.pgm-search__clear.is-visible { display: block; }
.pgm-search__clear:hover { color: #555; }

/* Count */
.pgm-count {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 28px;
  min-height: 1.1em;
}

/* Shared helpers */
.pgm-pin-badge {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff3e0;
  color: #e65100;
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.03em;
}

.pgm-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #999;
}

.pgm-empty {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #bbb;
  text-align: center;
  padding: 56px 0;
  grid-column: 1 / -1;
}

/* ──────────────────────────────────────
   FEATURED CARD — wide single card
─────────────────────────────────────── */
.pgm-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(26,42,94,0.08);
  margin-bottom: 28px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pgm-featured:hover {
  box-shadow: 0 10px 36px rgba(26,42,94,0.14);
  transform: translateY(-3px);
}

.pgm-featured__img-wrap {
  overflow: hidden;
  min-height: 280px;
}

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

.pgm-featured:hover .pgm-featured__img { transform: scale(1.04); }

.pgm-featured__img--placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, #3d5aad 100%);
  min-height: 280px;
}

.pgm-featured__body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.pgm-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pgm-featured__title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.pgm-featured__excerpt {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #666;
  line-height: 1.75;
  margin: 0;
}

.pgm-featured__cta {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  margin-top: 4px;
}

/* Featured skeleton */
.pgm-featured-skeleton {
  height: 280px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e8eaf0 25%, #f4f5f8 50%, #e8eaf0 75%);
  background-size: 200% 100%;
  animation: pgmShimmer 1.4s infinite;
  margin-bottom: 28px;
}

/* ──────────────────────────────────────
   GRID OF CARDS
─────────────────────────────────────── */
.pgm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.pgm-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(26,42,94,0.07);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pgm-card:hover {
  box-shadow: 0 8px 28px rgba(26,42,94,0.13);
  transform: translateY(-3px);
}

.pgm-card__img-wrap {
  overflow: hidden;
  height: 168px;
  flex-shrink: 0;
}

.pgm-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pgm-card:hover .pgm-card__img { transform: scale(1.05); }

.pgm-card__img--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8eaf0 0%, #d0d4e8 100%);
}

.pgm-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pgm-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pgm-card__title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}

.pgm-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #777;
  line-height: 1.65;
  margin: 0;
}

/* Card skeleton */
.pgm-card-skeleton {
  height: 280px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e8eaf0 25%, #f4f5f8 50%, #e8eaf0 75%);
  background-size: 200% 100%;
  animation: pgmShimmer 1.4s infinite;
}

@keyframes pgmShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ──────────────────────────────────────
   PAGINATION
─────────────────────────────────────── */
.pgm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pgm-pagination__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #d0d4e8;
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.pgm-pagination__btn:not(:disabled):hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.pgm-pagination__btn:disabled { opacity: 0.3; cursor: default; }

.pgm-pagination__pages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pgm-pagination__page {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: 2px solid #d0d4e8;
  background: #fff;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.pgm-pagination__page:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.pgm-pagination__page.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pgm-hero    { padding: 0 40px 40px; }
  .pgm-section { padding: 48px 40px 72px; }

  .pgm-featured {
    grid-template-columns: 1fr;
  }

  .pgm-featured__img-wrap { min-height: 220px; }

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

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
════════════════════════════════════════════ */
@media (max-width: 768px) {
  .pgm-hero         { min-height: 200px; padding: 0 24px 36px; }
  .pgm-hero__title  { font-size: 1.8rem; }
  .pgm-section      { padding: 36px 24px 60px; }

  .pgm-header       { flex-direction: column; align-items: flex-start; }
  .pgm-search       { max-width: 100%; width: 100%; }

  .pgm-featured__body { padding: 24px 20px 22px; gap: 10px; }
  .pgm-featured__title { font-size: 1.1rem; }

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