/*  ============================================================
    Project case-study post template (.pr-)
    Matches the site design language (PT Sans, uppercase grey
    titles, paper texture, green accent) and reuses cg-slider.
    ============================================================ */

.pr-page {
  font-family: 'PT Sans', 'Open Sans', sans-serif;
  color: #8d8d8d;
  line-height: 1.7;
  letter-spacing: 0.03em;
}
.pr-page * { box-sizing: border-box; }

/*  ---- Hero ------------------------------------------------- */
.pr-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: #2c352e;
}
.pr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 100%);
}
.pr-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px 60px;
  text-align: left;
}
.pr-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9em;
  padding-bottom: 0.6em;
  position: relative;
}
.pr-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: #2a9453;
}
.pr-hero h1 {
  font-family: 'PT Sans', 'Open Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 2.2em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

/*  ---- Body: text panel + photo slider ---------------------- */
.pr-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}
.pr-split--single { grid-template-columns: 1fr; }
.pr-body__text {
  display: flex;
  align-items: center;
  background: url('/wp-content/uploads/2023/02/Background-2.jpg');
  background-size: 100% auto;
}
.pr-body__inner {
  padding: 60px 6vw;
  max-width: 640px;
  text-align: left;
}
.pr-body__inner p { color: #8d8d8d; margin: 0 0 1.2em; }
.pr-body__inner p:last-of-type { margin-bottom: 0; }

.pr-body__media { position: relative; min-height: 340px; }
.pr-body__media .cg-slider {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

/*  ---- CTA pill (site button language) ---------------------- */
.pr-cta {
  display: inline-block;
  margin-top: 1.6em;
  padding: 10px 28px;
  border: 1px solid #2a9453;
  border-radius: 22px;
  color: #2a9453;
  font-weight: 700;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.pr-cta:hover { opacity: 1; background: #2a9453; color: #fff; }

/*  ---- Remove the theme's 60px gap before the footer -------- */
.single #colophon { margin-top: 0 !important; }

/*  ---- Responsive ------------------------------------------- */
@media only screen and (max-width: 799px) {
  .pr-split, .pr-split--single { grid-template-columns: 1fr; }
  .pr-body__media { min-height: 300px; order: -1; }
  .pr-body__inner { padding: 40px 25px; }
  .pr-hero h1 { font-size: 1.8em; }
}
