/*
 * 노원구자원봉사협회 - 회장 인사말 페이지 전용 CSS
 * 공통 header.css / footer.css는 포함하지 않습니다.
 * SCSS의 @use / @include를 일반 CSS 미디어쿼리로 변환했습니다.
 */

.president-page {
  overflow: hidden;
  color: #263d30;
  font-family: "Noto Sans KR", "Gowun Dodum", sans-serif;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.president-page,
.president-page *,
.president-page *::before,
.president-page *::after {
  box-sizing: border-box;
}

.president-page a {
  color: inherit;
  text-decoration: none;
}

.president-page img,
.president-page svg {
  display: block;
  max-width: 100%;
}

.president-page svg {
  width: 100%;
  height: 100%;
}

.president-container {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

/* 상단 비주얼 */
.president-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #f0f8e9 0%, #f7fbef 55%, #fff5e8 100%);
}

.president-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  min-height: 390px;
  padding-top: 64px;
  padding-bottom: 45px;
}

.president-hero__text {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.president-eyebrow,
.president-section-heading__label {
  display: inline-block;
  color: #458451;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.president-hero__text h1 {
  margin: 12px 0 15px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.president-hero__text > p {
  margin: 0;
  color: #526b58;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.75;
  word-break: keep-all;
}

.president-breadcrumb {
  position: absolute;
  top: 18px;
  left: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 100%;
  color: #758579;
  font-size: 14px;
}

.president-breadcrumb strong {
  color: #327343;
  font-weight: 700;
}

.president-breadcrumb a:hover {
  color: #327343;
  text-decoration: underline;
}

.president-hero__decoration {
  position: absolute;
  border: 1px solid rgb(83 143 89 / 10%);
  border-radius: 50%;
  pointer-events: none;
}

.president-hero__decoration--one {
  top: -160px;
  right: -80px;
  width: 440px;
  height: 440px;
}

.president-hero__decoration--two {
  right: 180px;
  bottom: -260px;
  width: 390px;
  height: 390px;
}

/* 일러스트 */
.president-hero__illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.president-hero__circle {
  position: relative;
  overflow: hidden;
  width: min(300px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e4f1d7;
}

.president-hero__sun {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd37e;
}

.president-hero__hill {
  position: absolute;
  bottom: -25%;
  width: 115%;
  height: 63%;
  border-radius: 50%;
}

.president-hero__hill--back {
  left: -32%;
  background: #c6dfad;
  transform: rotate(-15deg);
}

.president-hero__hill--front {
  right: -35%;
  bottom: -33%;
  background: #91bd88;
  transform: rotate(15deg);
}

.president-hero__heart {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 34%;
  height: 34%;
  color: #e77763;
  transform: translateX(-50%) rotate(-5deg);
  filter: drop-shadow(0 8px 10px rgb(130 91 64 / 12%));
}

.president-hero__spark {
  position: absolute;
  z-index: 2;
  color: #e9a63c;
}

.president-hero__spark--one {
  top: 28%;
  left: 15%;
  font-size: clamp(20px, 2.3vw, 28px);
}

.president-hero__spark--two {
  top: 50%;
  right: 12%;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
}

.president-hero__spark--three {
  top: 15%;
  left: 42%;
  color: #fff;
  font-size: 17px;
}

.president-hero__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  line-height: 1.7;
  text-align: center;
}

.president-hero__caption span {
  color: #72836e;
  font-size: 14px;
}

.president-hero__caption strong {
  color: #397746;
  font-size: 18px;
}

/* 인사말 */
.president-content {
  padding: 90px 0 100px;
  background: #fff;
}

.president-section-heading {
  margin-bottom: 50px;
  text-align: center;
}

.president-section-heading h2 {
  margin: 16px 0 22px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.5;
  word-break: keep-all;
}

.president-section-heading__line {
  width: 48px;
  height: 4px;
  margin: 0 auto;
  border-radius: 10px;
  background: #6ca66e;
}

.president-letter {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 52px 64px;
  border: 1px solid #e8eee5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(47 82 49 / 5%);

  /* 사진을 은은한 흑백·세피아 톤으로 */
  .portrait-image {
    width: 60%;
    height: 60%;
    object-fit: cover;
    filter: grayscale(100%) sepia(25%) brightness(1.08) contrast(0.85);
    opacity: 0.35;
    position: absolute;
    right: 0;
    bottom: 0;
  }
}

.president-letter__mark {
  height: 55px;
  color: #c9e2bf;
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 1;
}

.president-letter__body {
  color: #536359;
  font-size: 17px;
  line-height: 2.05;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.president-letter__body p {
  margin: 0 0 22px;
}

.president-letter__body .president-letter__lead {
  margin-bottom: 28px;
  color: #337342;
  font-size: clamp(21px, 2.1vw, 25px);
  font-weight: 800;
  line-height: 1.6;
  word-break: keep-all;
}

.president-letter__closing {
  padding-top: 8px;
  color: #344b39;
  font-weight: 600;
}

.president-signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid #edf0e9;
  color: #536359;
  font-size: 17px;
}

.president-signature strong {
  color: #263d30;
  font-size: 20px;
}

.president-signature__name {
  margin-left: 8px;
  color: #397746;
  font-size: 24px;
}

/* 핵심 가치 */
.president-values {
  padding: 85px 0 95px;
  background: #f6f9f2;
}

.president-values__heading {
  margin-bottom: 42px;
  text-align: center;
}

.president-values__heading > span,
.president-bottom__inner > div > span {
  color: #54875a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.president-values__heading h2 {
  margin: 10px 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.5;
  word-break: keep-all;
}

.president-values__heading p {
  margin: 0;
  color: #758579;
  font-size: 16px;
  word-break: keep-all;
}

.president-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.president-value-card {
  min-width: 0;
  padding: 35px 20px 38px;
  border: 1px solid #edf0e8;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.president-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgb(43 83 48 / 8%);
}

.president-value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  padding: 19px;
  border-radius: 24px;
}

.president-value-card__icon--green {
  color: #4c9458;
  background: #eaf5e5;
}

.president-value-card__icon--orange {
  color: #d78b39;
  background: #fff1dc;
}

.president-value-card__icon--blue {
  color: #5189bb;
  background: #e8f2fc;
}

.president-value-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  word-break: keep-all;
}

.president-value-card p {
  margin: 0;
  color: #718075;
  font-size: 15px;
  line-height: 1.9;
  word-break: keep-all;
}

/* 하단 참여 안내 */
.president-bottom {
  padding: 48px 0;
  background: #e8f3df;
}

.president-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.president-bottom__inner > div {
  min-width: 0;
}

.president-bottom__inner h2 {
  margin: 8px 0;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.5;
  word-break: keep-all;
}

.president-bottom__inner p {
  margin: 0;
  color: #627467;
  font-size: 16px;
  word-break: keep-all;
}

.president-bottom__button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 10px 24px;
  border-radius: 10px;
  background: #367746;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.president-bottom__button:hover {
  background: #285f36;
  transform: translateY(-2px);
}

.president-bottom__button span {
  font-size: 20px;
}

/* 태블릿: 두 열의 폭이 좁아지기 전에 일러스트와 본문 간격 조정 */
@media (max-width: 1024px) {
  .president-container {
    width: min(100% - 40px, 900px);
  }

  .president-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
    min-height: 340px;
    gap: 24px;
  }

  .president-hero__circle {
    width: min(250px, 100%);
  }

  .president-letter {
    padding: 42px;
  }

  .president-values__grid {
    gap: 15px;
  }

  .president-value-card {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* 모바일 */
@media (max-width: 767px) {
  .president-container {
    width: calc(100% - 36px);
    max-width: 600px;
  }

  .president-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
    padding-top: 76px;
    padding-bottom: 32px;
  }

  .president-breadcrumb {
    top: 16px;
    right: 0;
    left: 0;
    justify-content: center;
    gap: 5px 8px;
    font-size: 12px;
    text-align: center;
  }

  .president-hero__text {
    text-align: center;
  }

  .president-eyebrow,
  .president-section-heading__label {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .president-hero__text h1 {
    margin: 10px 0 12px;
    font-size: clamp(29px, 7.5vw, 36px);
    letter-spacing: -1.2px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .president-hero__text > p {
    max-width: 30em;
    margin: 0 auto;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.7;
  }

  .president-hero__circle {
    width: min(205px, 58vw);
  }

  .president-hero__caption {
    margin-top: 8px;
  }

  .president-hero__caption span {
    font-size: 12px;
  }

  .president-hero__caption strong {
    font-size: 16px;
  }

  .president-hero__decoration--one {
    top: -120px;
    right: -170px;
    width: 330px;
    height: 330px;
  }

  .president-hero__decoration--two {
    right: -100px;
    bottom: -210px;
    width: 290px;
    height: 290px;
  }

  .president-content {
    padding: 56px 0 60px;
  }

  .president-section-heading {
    margin-bottom: 30px;
  }

  .president-section-heading h2 {
    margin: 12px 0 18px;
    font-size: clamp(21px, 5.6vw, 25px);
    letter-spacing: -0.7px;
    line-height: 1.55;
  }

  .president-letter {
    padding: 27px 21px;
    border-radius: 14px;
  }

  .president-letter__mark {
    height: 40px;
    font-size: 72px;
  }

  .president-letter__body {
    font-size: 15px;
    line-height: 1.9;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .president-letter__body p {
    margin-bottom: 18px;
  }

  .president-letter__body .president-letter__lead {
    margin-bottom: 22px;
    font-size: clamp(19px, 5.2vw, 22px);
    line-height: 1.6;
  }

  .president-letter__closing {
    padding-top: 4px;
  }

  .president-signature {
    justify-content: flex-end;
    gap: 5px 8px;
    margin-top: 24px;
    padding-top: 18px;
    font-size: 14px;
  }

  .president-signature strong {
    font-size: 16px;
  }

  .president-signature__name {
    margin-left: 3px;
    font-size: 19px;
  }

  .president-values {
    padding: 56px 0 60px;
  }

  .president-values__heading {
    margin-bottom: 28px;
  }

  .president-values__heading h2 {
    font-size: clamp(22px, 5.8vw, 28px);
    line-height: 1.5;
  }

  .president-values__heading p {
    font-size: 14px;
    line-height: 1.7;
  }

  .president-values__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .president-value-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    column-gap: 15px;
    padding: 19px 17px;
    border-radius: 14px;
    text-align: left;
  }

  .president-value-card:hover {
    transform: none;
  }

  .president-value-card__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 14px;
    border-radius: 17px;
  }

  .president-value-card h3 {
    align-self: end;
    margin-bottom: 3px;
    font-size: 17px;
    line-height: 1.45;
  }

  .president-value-card p {
    align-self: start;
    font-size: 13px;
    line-height: 1.65;
  }

  .president-bottom {
    padding: 34px 0;
  }

  .president-bottom__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    text-align: center;
  }

  .president-bottom__inner > div > span {
    font-size: 11px;
  }

  .president-bottom__inner h2 {
    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.5;
  }

  .president-bottom__inner p {
    font-size: 14px;
    line-height: 1.7;
  }

  .president-bottom__button {
    align-self: center;
    max-width: 100%;
    min-height: 50px;
    padding: 10px 20px;
    white-space: normal;
  }
}

/* 작은 모바일 */
@media (max-width: 390px) {
  .president-container {
    width: calc(100% - 28px);
  }

  .president-hero__inner {
    padding-top: 72px;
    padding-bottom: 28px;
  }

  .president-breadcrumb {
    font-size: 11px;
  }

  .president-hero__text h1 {
    font-size: 29px;
    letter-spacing: -1px;
  }

  .president-hero__text > p {
    font-size: 15px;
  }

  .president-hero__circle {
    width: min(185px, 56vw);
  }

  .president-section-heading h2 {
    font-size: 21px;
  }

  .president-letter {
    padding: 23px 16px;
  }

  .president-letter__body {
    font-size: 14px;
    line-height: 1.85;
  }

  .president-letter__body .president-letter__lead {
    font-size: 19px;
  }

  .president-signature {
    font-size: 13px;
  }

  .president-signature strong {
    font-size: 15px;
  }

  .president-signature__name {
    font-size: 18px;
  }

  .president-value-card {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    padding: 16px 13px;
  }

  .president-value-card__icon {
    width: 52px;
    height: 52px;
    padding: 12px;
  }

  .president-value-card h3 {
    font-size: 16px;
  }

  .president-value-card p {
    font-size: 12px;
  }
}

/* 동작 최소화 설정을 사용하는 방문자 배려 */
@media (prefers-reduced-motion: reduce) {
  .president-page *,
  .president-page *::before,
  .president-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
