/* ==========================================================================
   PROJECT VOICE PROFILE (live afforum theme)
   Leadership-profile pattern: no hero banner, portrait + name + role +
   biography, followed by the linked impact story card.
   ========================================================================== */

.voice-profile-main {
  background: #FFFFFF;
  padding: 0;
}

.voice-profile {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 0 72px;
  box-sizing: border-box;
  color: #2D3728;
}

/* Breadcrumb / back link */
.voice-profile-nav {
  margin-bottom: 28px;
}

.voice-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #4F6B3D;
  text-decoration: none;
}

.voice-back-link:hover,
.voice-back-link:focus {
  color: #2e541b;
  text-decoration: underline;
}

/* Header: portrait + intro */
.voice-profile-header {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid #E7EEE1;
}

.voice-portrait {
  margin: 0;
  background: #F5F8F0;
  border: 1px solid #E3EBD9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(30, 36, 24, 0.08);
}

.voice-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.voice-portrait figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5C6B57;
  border-top: 1px solid #E3EBD9;
  background: #F5F8F0;
}

.voice-intro {
  padding-top: 8px;
}

.voice-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #549433;
}

.voice-name {
  margin: 0 0 10px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  color: #F99220;
  background: #FFFFFF;
  display: inline-block;
  padding: 12px 26px;
  border-radius: 12px;
}

/* Country line under the Youth Voice kicker */
.voice-country {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #549433;
}

.voice-role {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: #3a6823;
}

.voice-summary {
  font-size: 17px;
  line-height: 1.8;
  color: #2D3728;
  max-width: 68ch;
}

.voice-summary p {
  margin: 0 0 18px;
}

.voice-summary p:last-child {
  margin-bottom: 0;
}

/* Linked impact story */
.voice-impact {
  margin-top: 48px;
}

.voice-section-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #549433;
}

.voice-impact-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0;
  background: #FFFFFF;
  border: 1px solid #DFE6D6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 36, 24, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-impact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(30, 36, 24, 0.12);
}

.voice-impact-media {
  display: block;
  background: #EEF3E8;
  min-height: 220px;
}

.voice-impact-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.voice-impact-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #1b350e 0%, #2e541b 50%, #549433 100%);
}

.voice-impact-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.voice-impact-title {
  margin: 0 0 10px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.25;
}

.voice-impact-title a {
  color: #1e3611;
  text-decoration: none;
}

.voice-impact-title a:hover,
.voice-impact-title a:focus {
  color: #3a6823;
  text-decoration: underline;
}

.voice-impact-date {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6B7A63;
}

.voice-impact-excerpt {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4A5642;
}

.voice-impact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: #549433;
  text-decoration: none;
}

.voice-impact-link:hover,
.voice-impact-link:focus {
  color: #2e541b;
  text-decoration: underline;
}

/* ==========================================================================
   PROJECT VOICE TEASER CARDS (Voices of Youth page view)
   ========================================================================== */

.voice-card {
  display: block;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #549433;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(30, 36, 24, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(30, 36, 24, 0.12);
}

.voice-card-media {
  display: block;
  background: #EEF3E8;
  float: left;
  width: 45%;
  margin: 0 16px 12px 0;
}

.voice-card-media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Country badge on the voice card image (top right) */
.voice-card-media {
  position: relative;
}

.voice-card-country {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: #1e3611;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.voice-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.voice-card-name {
  margin: 0 0 4px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.25;
  background: transparent;
}

.voice-card-name a::after {
  content: " \2197";
  font-size: 0.85em;
  margin-left: 4px;
  color: #F99220;
}

.voice-card-name a {
  color: #F99220;
  text-decoration: none;
  font-weight: 700;
}

.voice-card-name a:hover,
.voice-card-name a:focus {
  color: #d97a10;
  text-decoration: underline;
}

.voice-card-role {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #3a6823;
}

.voice-card-quote {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #4A5642;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.voice-card-link {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: #549433;
  text-decoration: none;
}

.voice-card-link:hover,
.voice-card-link:focus {
  color: #2e541b;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .voice-card-media img {
    height: 220px;
  }
}

@media (max-width: 900px) {
  .voice-profile-header {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .voice-portrait {
    max-width: 340px;
  }

  .voice-impact-card {
    grid-template-columns: 1fr;
  }

  .voice-impact-media,
  .voice-impact-media img,
  .voice-impact-placeholder {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .voice-impact-body {
    padding: 26px 24px 30px;
  }
}

@media (max-width: 560px) {
  .voice-profile {
    padding-top: 24px;
  }

  .voice-impact-title {
    font-size: 22px;
  }
}


/* Force 2 columns per row on Voices of Youth listing (cards stack one-per-row today) */
.view-project-voices .view-content {
  display: block;
}

.view-project-voices .view-content > .col-md-6 {
  float: left;
  width: 50%;
  max-width: 50%;
}

.view-project-voices .view-content > .col-md-6::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 768px) {
  .view-project-voices .view-content > .col-md-6 {
    float: none;
    width: 100%;
    max-width: 100%;
  }
}
