/* Reuse the Volunteer page system so shared navigation and footer stay identical. */
@import url("./esc-volunteers-erasmus-style.css");

/* Keep this page vertically scrollable without a horizontal page scrollbar. */
html,
body.page-id-12411 {
  overflow-x: hidden;
}

/* International volunteer profiles */
body.page-id-12411 .esc-about {
  /* Same outer width and spacing model as .hero-shell. */
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 50px 24px 65px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 185, 115, .2), transparent 22rem),
    radial-gradient(circle at 92% 86%, rgba(226, 175, 221, .2), transparent 24rem),
    #fff;
}

/* Show the volunteer profiles side by side on wider screens. */
body.page-id-12411 .esc-about > .esc-about-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 70px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

/* Each existing .esc-info-grid is one volunteer card on this page. */
body.page-id-12411 .esc-about-inner > .esc-info-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: auto;
  max-width: none;
  min-height: 100%;
  margin: 0;
  padding: 26px 20px 12px;
  overflow: hidden;
  border: 1px solid rgba(37, 36, 41, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(36, 35, 41, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

body.page-id-12411 .esc-about-inner > .esc-info-grid::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--esc-red), var(--esc-orange), var(--esc-pink), var(--esc-purple));
}

body.page-id-12411 .esc-about-inner > .esc-info-grid:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(36, 35, 41, .14);
}

body.page-id-12411 .esc-about-inner > .esc-info-grid > img {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  padding: 5px;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 2px solid rgba(232, 57, 42, .22);
  background: #fff;
  box-shadow: 0 10px 22px rgba(36, 35, 41, .16);
  object-fit: cover;
}

body.page-id-12411 .esc-about-inner > .esc-info-grid h2 {
  margin: 0 0 20px;
  padding: 0 6px;
  color: var(--esc-ink);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-align: center;
}

body.page-id-12411 .esc-about-inner > .esc-info-grid h2 span {
  display: inline;
  margin-left: 6px;
  color: var(--esc-red);
  font-size: .78em;
  font-weight: 700;
  letter-spacing: 0;
}

body.page-id-12411 .esc-about-inner > .esc-info-grid p {
  margin: 0 0 14px;
  padding: 0 12px;
  color: var(--esc-muted);
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

body.page-id-12411 .esc-about-inner > .esc-info-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-id-12411 .esc-about-inner > .esc-info-grid li {
  position: relative;
  padding-left: 21px;
  color: var(--esc-muted);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

body.page-id-12411 .esc-about-inner > .esc-info-grid li::before {
  position: absolute;
  top: .48em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: linear-gradient(135deg, var(--esc-red), var(--esc-orange));
}

body.page-id-12411 .esc-about-inner > .esc-summary {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0 auto;
  color: var(--esc-muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

body.page-id-12411 .esc-activity-section {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 78px 24px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 190, 125, .2), transparent 22rem),
    radial-gradient(circle at 96% 90%, rgba(247, 215, 236, .2), transparent 24rem),
    #fff;
}

body.page-id-12411 .esc-activity-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

body.page-id-12411 .esc-activity-inner > .eyebrow {
  margin: 0 0 10px;
  color: var(--esc-pink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

body.page-id-12411 .esc-activity-inner > h2 {
  margin: 0 0 36px;
  color: var(--esc-red);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
}

body.page-id-12411 .esc-mid-gallery {
  width: 100%;
  margin: 42px auto;
}

body.page-id-12411 .esc-activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body.page-id-12411 .esc-event-card {
  padding: 32px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.page-id-12411 .esc-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(32, 32, 36, .12);
}

body.page-id-12411 .esc-event-card .esc-info-icon {
  margin-bottom: 18px;
}

body.page-id-12411 .esc-event-card p {
  font-size: 1rem;
}

body.page-id-12411 .esc-event-card p + p {
  margin-top: 12px;
}

body.page-id-12411 .esc-podcast-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--esc-red);
  font-weight: 700;
  text-decoration: none;
}

body.page-id-12411 .esc-podcast-link:hover {
  color: var(--esc-purple);
  text-decoration: underline;
}

body.page-id-12411 .esc-degrowth-section {
  box-sizing: border-box;
  width: 100%;
  padding: 64px 24px;
  background:
    radial-gradient(circle at 90% 20%, rgba(190, 224, 185, .34), transparent 24rem),
    #fff;
}

body.page-id-12411 .esc-degrowth-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

body.page-id-12411 .esc-degrowth-copy {
  grid-column: 1 / -1;
}

body.page-id-12411 .esc-degrowth-copy .esc-info-icon {
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 18px;
}

body.page-id-12411 .esc-degrowth-copy > .eyebrow {
  margin: 0 0 10px;
  color: var(--esc-pink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

body.page-id-12411 .esc-degrowth-copy h2 {
  margin: 0 0 16px;
  color: var(--esc-red);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  text-align: center;
}

body.page-id-12411 .esc-degrowth-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--esc-muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

body.page-id-12411 .ei-apply-cta {
  padding: 8px 24px 54px;
} 
body.page-id-12411 .ei-apply-cta .ei-form-link {
  padding: 16px 48px;
  font-size: 1.05rem;
  border-radius: 12px;
}

body.page-id-12411 .reels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 840px;
  margin: 22px auto 0;
}

body.page-id-12411 .reels-grid:has(> .instagram-media:only-child) {
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
}

body.page-id-12411 .reels-grid .instagram-media {
  box-sizing: border-box;
  justify-self: center;
  width: 100% !important;
  max-width: 540px;
  min-width: 0 !important;
  height: 1150px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(36, 35, 41, .1) !important;
}

body.page-id-12411 .esc-2024-gallery {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 70px 24px 64px;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 190, 125, .2), transparent 22rem),
    radial-gradient(circle at 8% 90%, rgba(226, 175, 221, .2), transparent 24rem),
    #fff;
}

body.page-id-12411 .esc-2024-gallery .ei-gallery-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

body.page-id-12411 .esc-2024-gallery .eyebrow {
  margin: 0 0 10px;
  color: var(--esc-red);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

body.page-id-12411 .esc-2024-gallery .esc-gallery-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--esc-muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

body.page-id-12411 .esc-2024-gallery .esc-mid-gallery .carousel-slide {
  flex-basis: calc((100% - 32px) / 3);
}

body.page-id-12411 .esc-2024-gallery .carousel-slide img {
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(36, 35, 41, .12);
}

/* Keep the project-code subtitle on one line where desktop space allows. */
@media (min-width: 900px) {
  body.page-id-12411 .hero-shell .erasmus-subtitle {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  body.page-id-12411 .esc-about > .esc-about-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-id-12411 .esc-activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-id-12411 .esc-degrowth-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  body.page-id-12411 .esc-about-inner > .esc-summary {
    box-sizing: border-box;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }

  body.page-id-12411 .esc-about {
    padding: 52px 18px;
  }

  body.page-id-12411 .esc-about > .esc-about-inner {
    grid-template-columns: 1fr;
    row-gap: 36px;
    column-gap: 20px;
  }

  body.page-id-12411 .esc-about-inner > .esc-info-grid {
    padding: 30px 22px 26px;
  }

  body.page-id-12411 .esc-about > .esc-about-inner {
    row-gap: 56px;
  }

  body.page-id-12411 .esc-about-inner > .esc-info-grid {
    min-height: 0;
  }

  body.page-id-12411 .esc-activity-section,
  body.page-id-12411 .esc-2024-gallery {
    padding: 52px 18px;
  }

  body.page-id-12411 .esc-activity-list {
    grid-template-columns: 1fr;
  }

  body.page-id-12411 .esc-event-card {
    padding: 30px 24px;
  }

  body.page-id-12411 .esc-degrowth-section {
    padding: 48px 18px;
  }

  body.page-id-12411 .esc-degrowth-inner {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-id-12411 .esc-degrowth-copy {
    grid-column: 1 / -1;
  }

  body.page-id-12411 .esc-mid-gallery {
    margin: 28px auto;
  }
}

@media (max-width: 767px) {
  body.page-id-12411 .esc-about > .esc-about-inner {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
}

@media (max-width: 620px) {
  body.page-id-12411 .esc-degrowth-inner {
    grid-template-columns: 1fr;
  }

  body.page-id-12411 .esc-degrowth-copy {
    grid-column: auto;
    padding: 24px 18px 18px;
  }

  body.page-id-12411 .reels-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
    width: calc(100% + 36px);
    margin-left: -18px;
  }

  body.page-id-12411 .reels-grid .instagram-media {
    height: 1246px !important;
  }

  body.page-id-12411 .esc-degrowth-section {
    padding: 28px 16px 20px;
  }
}


@media (max-width: 767px) {
  body.page-id-12411 .esc-2024-gallery .esc-mid-gallery .carousel-slide {
    flex-basis: calc(100vw - 36px);
  }
}
