/*
 * 센터 소개 > 센터 철학
 * 해당 본문에만 적용하며 다른 페이지 디자인은 변경하지 않습니다.
 */

#center-philosophy {
  box-sizing: border-box;
  display: block;

  width: 100%;
  max-width: 900px;

  margin: 0 auto;
  padding: 16px 0 36px;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#center-philosophy .sc-philosophy-text {
  display: block;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  color: #34382e;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: -0.025em;

  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* =========================================================
   수정 7: 돌봄과 나눔 — 성경 구절
   ========================================================= */

#center-values .sc-values-verses {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

#center-values .sc-values-verse {
  margin: 0;
  padding: 8px 0 8px 18px;

  border: 0;
  border-left: 3px solid #9ca57a;
  border-radius: 0;

  background: transparent;
  color: #454c38;
  box-shadow: none;
}

#center-values .sc-values-verse::before,
#center-values .sc-values-verse::after {
  content: none;
}

#center-values .sc-values-verse p {
  max-width: none;
  margin: 0;
  padding: 0;

  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.9;

  word-break: keep-all;
  overflow-wrap: break-word;
}

#center-values .sc-values-reference {
  color: #687253;
  white-space: nowrap;
}

/* =========================================================
   수정 8: 오시는 길 — 지도 연결 영역
   ========================================================= */

#location .sc-location-map-panel {
  box-sizing: border-box;
  display: block;

  width: 100%;
  min-width: 0;
  margin: 28px 0 0;
  padding: 26px;

  border: 1px solid #e1e5d8;
  border-radius: 8px;
  background: #f8f9f4;

  text-align: left;
}

#location .sc-location-map-copy h3 {
  margin: 0 0 10px;
  padding: 0;

  color: #343b2b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

#location .sc-location-map-copy p {
  max-width: none;
  margin: 0;
  padding: 0;

  color: #626858;
  font-size: 14px;
  line-height: 1.8;

  word-break: keep-all;
  overflow-wrap: break-word;
}

#location .sc-location-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;

  margin: 20px 0 0;
  padding: 0;
}

#location .sc-map-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-width: 170px;
  min-height: 48px;
  margin: 0;
  padding: 12px 22px;

  border: 1px solid transparent;
  border-radius: 6px;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;

  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

#location .sc-map-button--naver {
  border-color: #087b3c;
  background: #087b3c;
  color: #ffffff;
}

#location .sc-map-button--naver:hover {
  border-color: #056330;
  background: #056330;
  color: #ffffff;
}

#location .sc-map-button--google {
  border-color: #cbd1c0;
  background: #ffffff;
  color: #38442d;
}

#location .sc-map-button--google:hover {
  border-color: #9ba88a;
  background: #eef2e8;
  color: #38442d;
}

#location .sc-map-button:focus-visible {
  outline: 2px solid #626a3d;
  outline-offset: 4px;
}

#location .sc-location-map-note {
  max-width: none;
  margin: 14px 0 0;
  padding: 0;

  color: #6b7262;
  font-size: 12px;
  line-height: 1.8;

  word-break: keep-all;
  overflow-wrap: break-word;
}

#location .sc-map-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 모바일 */

@media (max-width: 600px) {
  #center-values .sc-values-verse {
    padding-left: 14px;
  }

  #center-values .sc-values-verse p {
    font-size: 15px;
  }

  #location .sc-location-map-panel {
    margin-top: 22px;
    padding: 20px 16px;
  }

  #location .sc-location-map-copy h3 {
    font-size: 18px;
  }

  #location .sc-location-map-actions {
    flex-direction: column;
    gap: 10px;
  }

  #location .sc-map-button {
    width: 100%;
    min-width: 0;
  }
}

/* 구글 지도 삽입형 패널 */
.sc-location-map-panel.sc-location-map-panel--embedded {
  display: block;
  min-width: 0;
}

/* 지도 위 안내 */
.sc-location-map-panel--embedded .sc-location-map-copy {
  margin-bottom: 16px;
}

/* 지도 컨테이너 */
.sc-location-map-panel--embedded .sc-map-container {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8e5;
  border-radius: 12px;
  background-color: #f5f7f6;
}

/* 지도: 데스크톱 */
.sc-location-map-panel--embedded .sc-map-container iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: 0;
}

/* 지도 아래 버튼 */
.sc-location-map-panel--embedded .sc-location-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* 지도 아래 보조 안내 */
.sc-location-map-panel--embedded .sc-location-map-note {
  margin-top: 12px;
  line-height: 1.7;
}

/* 지도: 모바일 */
@media (max-width: 640px) {
  .sc-location-map-panel--embedded .sc-map-container iframe {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #location .sc-map-button {
    transition: none;
  }
}

/* 모바일에서는 화면 폭에 따라 추가로 자연스럽게 줄바꿈됩니다. */
@media (max-width: 600px) {
  #center-philosophy {
    padding: 4px 0 24px;
  }

  #center-philosophy .sc-philosophy-text {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: -0.03em;
  }
}
