/* ============================================================
   PRESS – Shared + per-page styles
   ============================================================ */

/* ---------- shared ---------- */
.press-heading {
  font-size: 28px;
  font-weight: 800;
  color: #1b381e;
}
.press-intro {
  font-size: 15px;
  color: #374151;
  max-width: 720px;
  margin-inline: auto;
}

/* ============================================================
   INDEX PAGE – category cards
   ============================================================ */
.press-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.press-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(30,135,86,.18);
}
.press-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.press-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.press-card:hover .press-card-img {
  transform: scale(1.06);
}
.press-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.press-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f4ea;
}
.press-card-placeholder-icon {
  font-size: 48px;
  opacity: .35;
}
.press-card-body {
  padding: 14px 16px;
}
.press-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1b381e;
}
.press-card-compact {
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  min-height: 0;
}
.press-card-compact .press-card-body {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.press-card-compact .press-card-body::before {
  content: "📰";
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.press-card-compact .press-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

/* ============================================================
   SUB-PAGES – masonry grid (shared across all press categories)
   ============================================================ */
.masonry-grid {
  columns: 3 280px;
  column-gap: 20px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}
.masonry-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  cursor: pointer;
}
.masonry-img {
  width: 100%;
  display: block;
  transition: transform .45s ease;
}
.masonry-card:hover .masonry-img {
  transform: scale(1.05);
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .35s ease;
}
.masonry-card:hover .masonry-overlay {
  opacity: 1;
}
.masonry-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.masonry-caption {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
}
.masonry-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
  transition: all .3s ease;
}
.masonry-card:hover .masonry-badge {
  background: rgba(30,135,86,.90);
  transform: scale(1.05);
}

/* ============================================================
   PRESS DETAIL PAGE
   ============================================================ */

/* back link — pill style */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d6a4f;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 24px;
  background: #f0fdf4;
  border: 1px solid rgba(30,135,86,.12);
  transition: all .3s ease;
}
.pd-back:hover {
  color: #fff;
  background: #1e8756;
  border-color: #1e8756;
  box-shadow: 0 4px 16px rgba(30,135,86,.25);
}
.pd-back-arrow {
  font-size: 18px;
  transition: transform .3s ease;
}
.pd-back:hover .pd-back-arrow { transform: translateX(-4px); }

/* hero — dark cinema background */
.pd-hero {
  background: #0a0a0a;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pd-hero-img {
  max-height: 72vh;
  object-fit: contain;
  will-change: transform;
}

/* carousel — dark cinema background */
.pd-carousel {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}
.pd-carousel .carousel-item {
  text-align: center;
}
.pd-carousel .pd-hero-img {
  max-height: 72vh;
  object-fit: contain;
}

/* carousel controls — glassmorphic circles */
.pd-carousel .carousel-control-prev,
.pd-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .35s, background .3s;
}
.pd-carousel:hover .carousel-control-prev,
.pd-carousel:hover .carousel-control-next {
  opacity: 1;
}
.pd-carousel .carousel-control-prev:hover,
.pd-carousel .carousel-control-next:hover {
  background: rgba(255,255,255,.22);
}
.pd-carousel .carousel-control-prev { left: 16px; }
.pd-carousel .carousel-control-next { right: 16px; }
.pd-carousel .carousel-control-prev-icon,
.pd-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

/* carousel indicators — dots */
.pd-carousel .carousel-indicators {
  margin-bottom: 16px;
}
.pd-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.35);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  border: 2px solid rgba(255,255,255,.55);
  opacity: 1;
  transition: all .3s;
}
.pd-carousel .carousel-indicators .active {
  background-color: #fff;
  transform: scale(1.3);
}

/* image counter badge */
.pd-img-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: .3px;
}

/* info — glass card */
.pd-info {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
  padding: 28px;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(30,135,86,.08);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* date badge — gradient with glow */
.pd-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #1e8756 0%, #14532d 100%);
  color: #fff;
  padding: 16px 22px;
  border-radius: 16px;
  min-width: 85px;
  flex-shrink: 0;
  line-height: 1.1;
  box-shadow: 0 4px 20px rgba(30,135,86,.30);
  position: relative;
}
.pd-date-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.pd-date-day {
  font-size: 36px;
  font-weight: 800;
}
.pd-date-month {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 3px;
}
.pd-date-year {
  font-size: 11px;
  font-weight: 500;
  opacity: .65;
  margin-top: 3px;
}

.pd-title {
  font-size: 28px;
  font-weight: 800;
  color: #1b381e;
  margin: 0 0 10px;
  line-height: 1.3;
}
.pd-caption {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* thumbnail grid heading */
.pd-grid-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1b381e;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
}
.pd-grid-heading::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #1e8756;
  margin-top: 6px;
  transform: scaleX(var(--pd-ul, 0));
  transform-origin: left;
}

/* thumbnail card */
.pd-thumb {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pd-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  border-radius: 14px;
  transition: background .3s ease;
  pointer-events: none;
}
.pd-thumb:hover::after {
  background: rgba(30,135,86,.10);
}
.pd-thumb:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(30,135,86,.20);
}
.pd-thumb.pd-thumb-active {
  box-shadow: 0 0 0 3px #1e8756, 0 8px 24px rgba(30,135,86,.22);
  transform: translateY(-3px);
}
.pd-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform .45s ease;
}
.pd-thumb:hover .pd-thumb-img {
  transform: scale(1.08);
}

/* prev / next navigation */
.pd-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 32px;
  margin-top: 36px;
  border-top: 2px solid #e5e7eb;
  opacity: 0;
  transform: translateY(18px);
}
.pd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2d6a4f;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  background: #f0fdf4;
  border: 1px solid rgba(30,135,86,.12);
  transition: all .3s ease;
}
.pd-nav-link:hover {
  background: #1e8756;
  color: #fff;
  border-color: #1e8756;
  box-shadow: 0 6px 20px rgba(30,135,86,.25);
  transform: translateY(-2px);
}
.pd-nav-next { margin-left: auto; }
.pd-nav-arrow {
  font-size: 18px;
  display: inline-block;
}

/* detail responsive */
@media (max-width: 768px) {
  .pd-info { flex-direction: column; gap: 16px; padding: 20px; }
  .pd-date-badge { flex-direction: row; gap: 10px; padding: 10px 18px; }
  .pd-title { font-size: 22px; }
  .pd-hero-img, .pd-carousel .pd-hero-img { max-height: 50vh; }
  .pd-carousel .carousel-control-prev,
  .pd-carousel .carousel-control-next { width: 40px; height: 40px; }
}

@media (max-width: 576px) {
  .pd-info { padding: 16px; border-radius: 14px; }
  .pd-date-badge { min-width: auto; padding: 8px 14px; border-radius: 12px; }
  .pd-date-day { font-size: 28px; }
  .pd-nav-link { padding: 10px 18px; font-size: 14px; }
  .pd-thumb { border-radius: 10px; }
}

/* ============================================================
   item-card-link – same pattern as events cards
   ============================================================ */
a.item-card-link,
a.item-card-link:link,
a.item-card-link:visited,
a.item-card-link:hover,
a.item-card-link:active,
a.item-card-link:focus {
  text-decoration: none !important;
  color: inherit !important;
  outline: none !important;
  border: none !important;
  background: transparent !important;
  display: block;
}
.item-card-link:hover {
  transform: translateY(-5px);
}
.item-card-link:hover .item-card {
  box-shadow: 0 10px 28px rgba(30,135,86,.18);
}
/* prevent double-transform from mhps.css .item-card:hover */
.item-card-link .item-card:hover {
  transform: none;
  box-shadow: none;
}
.item-card-link .item-card-title {
  transition: color .2s ease;
}
.item-card-link:hover .item-card-title {
  color: #1e8756;
}

/* ============================================================
   YouTube play overlay (interview cards)
   ============================================================ */
.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  transition: background .3s ease;
}
.item-card:hover .yt-play-overlay {
  background: rgba(0,0,0,.12);
}
.yt-play-icon {
  width: 64px;
  height: 45px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
  transition: transform .3s ease;
}
.item-card:hover .yt-play-icon {
  transform: scale(1.12);
}

/* YouTube facade + embed – detail hero */
.pd-youtube-hero {
  background: #0a0a0a;
  padding: 28px 0;
}
.pd-yt-facade {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.pd-yt-facade-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}
.pd-yt-facade:hover .pd-yt-facade-img {
  transform: scale(1.03);
  filter: brightness(.82);
}
.pd-yt-facade-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-yt-facade-icon {
  width: 84px;
  height: 60px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
  transition: transform .3s ease;
}
.pd-yt-facade:hover .pd-yt-facade-icon {
  transform: scale(1.12);
}
.pd-yt-watch-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .3px;
  transition: color .3s ease;
}
.pd-yt-watch-link:hover { color: #fff; }
/* iframe inserted after facade click */
.pd-youtube-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
  background: #000;
}
.pd-youtube-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Scroll sentinel / loading spinner
   ============================================================ */
.scroll-sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  min-height: 60px;
}
.scroll-sentinel.loading .scroll-spinner {
  opacity: 1;
}
.scroll-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(30,135,86,.15);
  border-top-color: #1e8756;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  opacity: 0;
  transition: opacity .25s ease;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 576px) {
  .press-heading { font-size: 22px; }
  .masonry-grid { columns: 2 160px; column-gap: 12px; }
  .masonry-item { margin-bottom: 12px; }
}
