/* 효인지재활전문실버타운 V17 보완 스타일 */

/* --------------------------------------------------------------------------
   1. Header balance and larger typography
   -------------------------------------------------------------------------- */
.v15-header .header-inner {
  min-height: 96px;
}

.v15-header .brand {
  gap: 13px;
}

.v15-header .brand-text strong {
  font-size: 23px;
  line-height: 1.12;
  white-space: nowrap;
}

.v15-header .brand-text small {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.25;
}

.v15-header .nav-parent,
.v15-header .nav-single,
.v15-header .nav-consult {
  font-size: 16px;
}

.v15-header .dropdown-menu a {
  padding: 12px 15px;
  font-size: 15px;
}

@media (min-width: 1501px) {
  .v15-header > .container.header-inner {
    width: min(calc(100% - 52px), 1640px);
  }

  .v15-header .header-inner {
    grid-template-columns: minmax(350px, 395px) minmax(0, 1fr);
    column-gap: 16px;
  }

  .v15-header .main-nav {
    justify-content: space-between;
    gap: 2px;
  }

  .v15-header .brand-mark {
    width: 67px;
    height: 67px;
  }

  .v15-header .brand-alpha,
  .v15-header .brand-omega {
    font-size: 23px;
  }

  .v15-header .brand-text strong {
    font-size: 27px;
  }

  .v15-header .brand-text small {
    font-size: 13px;
  }

  .v15-header .nav-parent,
  .v15-header .nav-single {
    min-height: 96px;
    padding-inline: 12px;
    font-size: 17px;
  }

  .v15-header .nav-consult {
    min-height: 52px;
    margin-left: 5px;
    padding-inline: 21px;
    font-size: 16.5px;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .v15-header > .container.header-inner {
    width: min(calc(100% - 30px), 1450px);
  }

  .v15-header .header-inner {
    grid-template-columns: minmax(315px, 350px) minmax(0, 1fr);
    column-gap: 10px;
  }

  .v15-header .main-nav {
    justify-content: space-between;
    gap: 0;
  }

  .v15-header .brand-mark {
    width: 61px;
    height: 61px;
  }

  .v15-header .brand-text strong {
    font-size: 22.5px;
  }

  .v15-header .brand-text small {
    font-size: 11.5px;
  }

  .v15-header .nav-parent,
  .v15-header .nav-single {
    min-height: 96px;
    padding-inline: 8px;
    font-size: 15.3px;
  }

  .v15-header .nav-consult {
    min-height: 49px;
    margin-left: 4px;
    padding-inline: 15px;
    font-size: 15px;
  }
}

@media (max-width: 1180px) {
  .v15-header .brand-text strong {
    font-size: 21px;
  }

  .v15-header .brand-text small {
    font-size: 11.5px;
  }

  .v15-header .main-nav .nav-parent,
  .v15-header .main-nav .nav-single,
  .v15-header .main-nav .nav-consult {
    font-size: 17px;
  }
}

@media (max-width: 680px) {
  .v15-header .header-inner {
    min-height: 84px;
  }

  .v15-header .brand-mark {
    width: 52px;
    height: 52px;
  }

  .v15-header .brand-text strong {
    font-size: 18px;
  }

  .v15-header .brand-text small {
    font-size: 10px;
  }
}

/* --------------------------------------------------------------------------
   2. Hero slider controls: remove the dark-gray pill
   -------------------------------------------------------------------------- */
.v15-hero-slider .v15-slider-controls {
  left: auto;
  right: 26px;
  bottom: 24px;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transform: none;
}

.v15-hero-slider .v15-slider-controls .slider-dots {
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 22px rgba(51,33,39,.12);
}

.v15-hero-slider .v15-slider-controls .slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(135,51,77,.35);
}

.v15-hero-slider .v15-slider-controls .slider-dot.active {
  width: 25px;
  background: var(--v15-wine);
}

.v15-hero-slider .v15-slider-toggle {
  color: var(--v15-wine);
  border: 1px solid rgba(135,51,77,.15);
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(51,33,39,.12);
}

/* --------------------------------------------------------------------------
   3. Community links immediately under the hero image
   -------------------------------------------------------------------------- */
.v17-community-section {
  position: relative;
  z-index: 8;
  padding: 28px 0 44px;
  border-top: 1px solid rgba(231,219,211,.75);
  border-bottom: 1px solid rgba(231,219,211,.75);
  background: rgba(255,255,255,.94);
}

.v17-community-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.v17-community-heading h2 {
  margin: 0;
  color: #352d31;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: -.045em;
}

.v17-community-heading p {
  margin: 0;
  color: var(--v15-muted);
  font-size: 15px;
}

.v17-community-section .v16-community-links {
  margin: 0;
}

.v17-community-section .v16-community-link {
  min-height: 104px;
}

/* Larger '자세히 보기' text */
.v15-shortcut-card b {
  font-size: 16.5px;
  line-height: 1.4;
}

/* The streamlined front page brings news and online channels higher. */
.v15-news-section {
  padding-top: 78px;
  padding-bottom: 86px;
}

.v16-social-section {
  padding: 72px 0;
}

.v15-difference-section .v15-section-heading {
  margin-bottom: 34px;
}

.v15-difference-section .v15-section-heading h2 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   4. Admission / daycare segmented menu
   -------------------------------------------------------------------------- */
.v17-guide-section .v15-tab-buttons {
  width: min(100%, 690px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  margin: 0 0 28px;
  border: 1px solid rgba(135,51,77,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(82,53,52,.07);
}

.v17-guide-section .v15-tab-buttons button {
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 13px;
  font-size: 17px;
  line-height: 1.35;
}

.v17-guide-section .v15-tab-buttons button.active {
  box-shadow: 0 9px 22px rgba(135,51,77,.22);
}

.v17-guide-section .v15-step-list[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Daycare schedule: keep time on one line
   -------------------------------------------------------------------------- */
.v15-schedule-row {
  grid-template-columns: 150px 220px minmax(0, 1fr);
}

.v15-schedule-row time {
  min-width: 0;
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: -.02em;
}

@media (max-width: 920px) {
  .v15-schedule-row {
    grid-template-columns: 135px 190px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .v15-schedule-row {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .v15-schedule-row time {
    grid-column: 1;
    grid-row: 1;
    padding-right: 12px;
  }

  .v15-schedule-row b {
    grid-column: 2;
    grid-row: 1;
    border-right: 0;
  }

  .v15-schedule-row span {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }
}

/* --------------------------------------------------------------------------
   6. Softer, clearer telephone consultation typography
   -------------------------------------------------------------------------- */
.v15-cta-section .button.primary,
.v15-location-links .button.primary,
.mobile-action-bar .consult-random {
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: none;
}

.v15-cta-section .button.primary {
  color: #6f2940;
  border: 1px solid rgba(255,255,255,.92);
  background: #fff;
}

.v15-location-links .button.primary {
  color: #fff;
  background: #87334d;
}

.v15-footer .footer-grid > div:nth-child(2) strong {
  font-weight: 700;
}

.v15-footer .footer-grid > div:nth-child(2) a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Facility guide separated into Daycare / Nursing home
   -------------------------------------------------------------------------- */
.v17-facility-groups {
  display: grid;
  gap: 78px;
  margin-top: 44px;
}

.v17-facility-group {
  scroll-margin-top: 120px;
}

.v17-facility-group-heading {
  max-width: 820px;
  margin-bottom: 25px;
}

.v17-facility-group-heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  color: var(--v15-wine);
  border: 1px solid rgba(135,51,77,.14);
  border-radius: 999px;
  background: var(--v15-blush);
  font-size: 13px;
  font-weight: 900;
}

.v17-facility-group-heading h3 {
  margin: 13px 0 7px;
  color: #30282d;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(29px, 3.3vw, 43px);
  letter-spacing: -.05em;
}

.v17-facility-group-heading p {
  margin: 0;
  color: var(--v15-muted);
  font-size: 16px;
}

.v17-facility-grid {
  margin-top: 0;
}

.v17-facility-grid .facility-guide-card.is-empty .facility-guide-image {
  position: relative;
  background:
    linear-gradient(135deg, rgba(247,238,240,.96), rgba(245,238,231,.96));
}

.v17-facility-grid .facility-guide-card.is-empty .facility-guide-image img {
  opacity: 0;
}

.v17-facility-grid .facility-guide-card.is-empty .facility-guide-image::after {
  content: "시설 사진을 준비 중입니다";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9d8e94;
  font-size: 14px;
  font-weight: 700;
}

.v17-facility-grid .facility-guide-card.is-empty .facility-guide-caption strong:empty::after {
  content: "사진 등록 예정";
  color: #9b8f94;
  font-weight: 600;
}

/* Gallery admin group headings inside the existing image manager grid. */
.v17-gallery-admin-grid .v17-admin-group-title {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding: 14px 17px;
  color: #6d2940;
  border-left: 4px solid var(--v15-wine);
  border-radius: 10px;
  background: #f8eef1;
  font-size: 18px;
}

.v17-gallery-admin-grid .v17-admin-group-title:first-child {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   8. Status / contact refinements
   -------------------------------------------------------------------------- */
.status-table th {
  white-space: nowrap;
}

.contact-details-card h2[data-contact-field="visitTitle"] {
  margin-bottom: 17px;
}

@media (max-width: 900px) {
  .v17-community-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .v17-facility-groups {
    gap: 58px;
  }
}

@media (max-width: 680px) {
  .v15-hero-slider .v15-slider-controls {
    right: 14px;
    bottom: 15px;
  }

  .v17-community-section {
    padding: 25px 0 34px;
  }

  .v17-community-heading p {
    font-size: 14px;
  }

  .v17-guide-section .v15-tab-buttons {
    width: 100%;
  }

  .v17-guide-section .v15-tab-buttons button {
    min-height: 58px;
    padding: 10px 8px;
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   V23. Facility tour: category tabs, 2-column square cards and numbered pagination
   -------------------------------------------------------------------------- */
main[data-current-page="gallery"] .v22-gallery-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 620px);
  margin: 34px auto 0;
  padding: 6px;
  gap: 6px;
  border: 1px solid rgba(135, 51, 77, .14);
  border-radius: 16px;
  background: #f8f3f4;
  box-shadow: 0 12px 32px rgba(66, 39, 48, .07);
}

main[data-current-page="gallery"] .v22-gallery-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  color: #61565a;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

main[data-current-page="gallery"] .v22-gallery-tab:hover {
  color: var(--v15-wine);
  background: rgba(255, 255, 255, .82);
}

main[data-current-page="gallery"] .v22-gallery-tab:focus-visible {
  outline: 3px solid rgba(135, 51, 77, .25);
  outline-offset: 2px;
}

main[data-current-page="gallery"] .v22-gallery-tab[aria-selected="true"] {
  color: #fff;
  background: var(--v15-wine);
  box-shadow: 0 8px 20px rgba(111, 41, 64, .22);
}

main[data-current-page="gallery"] .v22-gallery-tab[aria-selected="true"]:active {
  transform: translateY(1px);
}

main[data-current-page="gallery"] .v17-facility-groups {
  display: block;
  margin-top: 40px;
}

main[data-current-page="gallery"] .v17-facility-group[hidden],
main[data-current-page="gallery"] .facility-guide-card[hidden],
main[data-current-page="gallery"] .v22-gallery-empty[hidden],
main[data-current-page="gallery"] .v22-gallery-pagination[hidden] {
  display: none !important;
}

main[data-current-page="gallery"] .v17-facility-group {
  animation: v22GalleryReveal .32s ease both;
}

@keyframes v22GalleryReveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

main[data-current-page="gallery"] .v17-facility-group-heading {
  margin-bottom: 24px;
}

main[data-current-page="gallery"] .v17-facility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 26px 22px;
  margin-top: 0;
}

main[data-current-page="gallery"] .facility-guide-card {
  min-width: 0;
  overflow: hidden;
  border-color: #e1d9dc;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(54, 37, 43, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

main[data-current-page="gallery"] .facility-guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(135, 51, 77, .25);
  box-shadow: 0 16px 36px rgba(54, 37, 43, .12);
}

main[data-current-page="gallery"] .facility-guide-image {
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  padding: 10px;
  background: #f4f1f2;
}

main[data-current-page="gallery"] .facility-guide-image img {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 9px;
  object-fit: cover;
}

main[data-current-page="gallery"] .facility-guide-caption {
  min-height: 67px;
  padding: 16px 18px 18px;
}

main[data-current-page="gallery"] .facility-guide-caption strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

main[data-current-page="gallery"] .v22-gallery-empty {
  margin: 28px 0 0;
  padding: 44px 20px;
  border: 1px dashed rgba(135, 51, 77, .26);
  border-radius: 16px;
  color: #7d7075;
  background: #faf6f7;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

main[data-current-page="gallery"] .v22-gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px auto 0;
}

main[data-current-page="gallery"] .v22-gallery-page,
main[data-current-page="gallery"] .v22-gallery-page-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

main[data-current-page="gallery"] .v22-gallery-page {
  border: 1px solid #d9ced2;
  color: #62565b;
  background: #fff;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

main[data-current-page="gallery"] .v22-gallery-page:hover {
  color: var(--v15-wine);
  border-color: rgba(135, 51, 77, .42);
  background: #fbf4f6;
}

main[data-current-page="gallery"] .v22-gallery-page:focus-visible {
  outline: 3px solid rgba(135, 51, 77, .22);
  outline-offset: 2px;
}

main[data-current-page="gallery"] .v22-gallery-page[aria-current="page"] {
  color: #fff;
  border-color: var(--v15-wine);
  background: var(--v15-wine);
  box-shadow: 0 7px 16px rgba(111, 41, 64, .20);
}

main[data-current-page="gallery"] .v22-gallery-page:active {
  transform: translateY(1px);
}

main[data-current-page="gallery"] .v22-gallery-page-ellipsis {
  min-width: 24px;
  padding: 0;
  color: #9b8f94;
}

@media (max-width: 980px) {
  main[data-current-page="gallery"] .v17-facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  main[data-current-page="gallery"] .v22-gallery-tabs {
    width: 100%;
    margin-top: 26px;
  }

  main[data-current-page="gallery"] .v22-gallery-tab {
    min-height: 52px;
    padding: 10px 8px;
    font-size: 15px;
  }

  main[data-current-page="gallery"] .v17-facility-groups {
    margin-top: 30px;
  }

  main[data-current-page="gallery"] .v17-facility-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  main[data-current-page="gallery"] .facility-guide-card:hover {
    transform: none;
  }

  main[data-current-page="gallery"] .facility-guide-caption {
    min-height: 62px;
  }

  main[data-current-page="gallery"] .v22-gallery-pagination {
    margin-top: 28px;
  }

  main[data-current-page="gallery"] .v22-gallery-page,
  main[data-current-page="gallery"] .v22-gallery-page-ellipsis {
    min-width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main[data-current-page="gallery"] .v17-facility-group,
  main[data-current-page="gallery"] .facility-guide-card,
  main[data-current-page="gallery"] .v22-gallery-tab,
  main[data-current-page="gallery"] .v22-gallery-page {
    animation: none;
    transition: none;
  }
}

/* ========================================================================== 
   V24 — layout consolidation, community boards, and mobile stability
   ========================================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}

body,
.site-header,
main,
.site-footer,
.container,
.footer-grid,
.footer-grid > div,
.managed-page-section,
.notice-board-section,
.service-feature-banner,
.contact-map-grid {
  min-width: 0;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

/* Requested service/admission call-to-action strips are intentionally removed. */
main[data-current-page="nursing-facility"] .v15-cta-section,
main[data-current-page="daycare"] .v15-cta-section,
main[data-current-page="admission"] .v15-cta-section {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Front page
   -------------------------------------------------------------------------- */
body.front-page-v24 .v15-hero-description,
body.front-page-v24 .v15-contact-ribbon,
body.front-page-v24 .v15-hero-points,
body.front-page-v24 .v17-community-section,
body.front-page-v24 .v15-shortcuts,
body.front-page-v24 .v15-guide-section {
  display: none !important;
}

body.front-page-v24 .v15-hero {
  min-height: 720px;
  padding: 70px 0 74px;
}

body.front-page-v24 .v15-hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr);
  gap: clamp(38px, 5vw, 68px);
  align-items: center;
}

body.front-page-v24 .v15-hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.front-page-v24 .v24-hero-actions {
  margin-top: 18px;
}

body.front-page-v24 .v24-hero-actions .button,
body.front-page-v24 .v24-hero-actions .v15-inline-link {
  white-space: nowrap;
}

.v24-hero-community {
  width: 100%;
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid rgba(135, 51, 77, .14);
}

.v24-hero-community-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.v24-hero-community-heading h2 {
  margin: 0;
  color: #4d4147;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.v24-hero-community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.v24-hero-community-link {
  min-width: 0;
  min-height: 51px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  color: #4f4449;
  border: 1px solid rgba(135, 51, 77, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 7px 20px rgba(70, 48, 55, .045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.v24-hero-community-link:hover,
.v24-hero-community-link:focus-visible {
  color: var(--v15-wine, #87334d);
  border-color: rgba(135, 51, 77, .28);
  background: #fff;
  box-shadow: 0 12px 28px rgba(70, 48, 55, .09);
  transform: translateY(-2px);
}

.v24-community-number {
  color: var(--v15-wine, #87334d);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
}

.v24-hero-community-link strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.v24-hero-community-link b {
  color: #a88672;
  font-size: 14px;
}

body.front-page-v24 .v15-hero-slider {
  min-height: 550px !important;
}

body.front-page-v24 .v15-location-card {
  grid-template-columns: minmax(330px, .92fr) minmax(0, 1.08fr);
}

.v24-skygarden-preview {
  isolation: isolate;
  background: #6b5f62;
}

.v24-skygarden-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(130deg, rgba(49, 38, 43, .18), rgba(49, 38, 43, .02) 50%, rgba(49, 38, 43, .30)),
    linear-gradient(0deg, rgba(49, 38, 43, .28), transparent 46%);
  pointer-events: none;
}

.v24-skygarden-preview img {
  opacity: .68 !important;
  filter: saturate(.78) contrast(.94) brightness(.96);
  transform: scale(1.015);
}

.v24-skygarden-preview span {
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Consistent public footer
   -------------------------------------------------------------------------- */
.site-footer.v24-footer {
  padding: 56px 0 22px;
  background: #30272c !important;
}

.site-footer.v24-footer .footer-grid {
  grid-template-columns: minmax(250px, 1.65fr) minmax(150px, .82fr) minmax(190px, 1fr) minmax(170px, .9fr);
  gap: clamp(24px, 3.5vw, 44px);
}

.site-footer.v24-footer .footer-grid > div {
  min-width: 0;
}

.site-footer.v24-footer .footer-grid strong {
  margin-bottom: 3px;
}

.site-footer.v24-footer .v24-consult-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 3px;
  padding: 8px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-weight: 800;
}

.site-footer.v24-footer .v24-consult-link:hover,
.site-footer.v24-footer .v24-consult-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, .44);
  background: rgba(255, 255, 255, .14);
}

.site-footer.v24-footer .v24-footer-note {
  max-width: 210px;
  color: #bfb2b7;
  line-height: 1.65;
}

.site-footer.v24-footer .v24-footer-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.site-footer.v24-footer .v24-footer-phone b {
  color: #f2e5df;
  font-size: 13px;
  font-weight: 700;
}

.site-footer.v24-footer .v24-footer-admin-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.site-footer.v24-footer .v24-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 7px 13px;
  color: #c8b8bd;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.site-footer.v24-footer .v24-admin-link:hover,
.site-footer.v24-footer .v24-admin-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .08);
}

/* --------------------------------------------------------------------------
   Community board: notice, cognitive program, rehab exercise, and meals
   -------------------------------------------------------------------------- */
.v24-community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.v24-community-toolbar strong {
  color: #40363b;
  font-size: 17px;
}

.v24-community-search,
.notice-board-toolbar #notice-search {
  width: min(100%, 330px);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d8ced1;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.v24-community-search:focus,
.notice-board-toolbar #notice-search:focus {
  outline: 3px solid rgba(135, 51, 77, .13);
  border-color: rgba(135, 51, 77, .45);
}

.v24-community-list-header,
.v24-community-list-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
}

.v24-community-list-header {
  min-height: 48px;
  padding: 0 22px;
  color: #756a6f;
  border-top: 2px solid #6e2d43;
  border-bottom: 1px solid #d9d0d3;
  background: #f8f4f5;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.v24-community-list-header span:nth-child(2) {
  text-align: left;
}

.v24-community-list {
  display: block !important;
  margin: 0 !important;
  border-bottom: 1px solid #d9d0d3;
}

.v24-community-list-item {
  min-height: 86px;
  padding: 15px 22px;
  border-top: 1px solid #ece5e7;
  background: #fff;
  transition: background-color .18s ease;
}

.v24-community-list-item:first-child {
  border-top: 0;
}

.v24-community-list-item:hover {
  background: #fcf8f9;
}

.v24-community-index,
.v24-community-meta {
  color: #80747a;
  font-size: 13px;
  text-align: center;
}

.v24-community-copy {
  min-width: 0;
}

.v24-community-title {
  max-width: 100%;
  display: inline;
  padding: 0;
  color: #332b2f;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.v24-community-title:hover,
.v24-community-title:focus-visible {
  color: var(--v15-wine, #87334d);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.v24-community-excerpt {
  display: -webkit-box;
  max-width: 760px;
  margin: 4px 0 0;
  overflow: hidden;
  color: #82777c;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.notice-table.v24-notice-table {
  table-layout: fixed;
}

.notice-table.v24-notice-table th:first-child,
.notice-table.v24-notice-table td:first-child {
  width: 74px;
}

.notice-table.v24-notice-table th:last-child,
.notice-table.v24-notice-table td:last-child {
  width: 150px;
}

.notice-table.v24-notice-table td {
  vertical-align: middle;
}

.notice-table.v24-notice-table .v24-community-title {
  display: inline;
}

.v24-board-empty {
  grid-column: 1 / -1;
  width: 100%;
  padding: 48px 20px;
  color: #7d7075;
  text-align: center;
}

.v24-board-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px auto 0;
}

.v24-board-pagination[hidden] {
  display: none !important;
}

.v24-board-page,
.v24-board-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.v24-board-page {
  color: #62565b;
  border: 1px solid #d9ced2;
  background: #fff;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.v24-board-page:hover,
.v24-board-page:focus-visible {
  color: var(--v15-wine, #87334d);
  border-color: rgba(135, 51, 77, .42);
  background: #fbf4f6;
}

.v24-board-page[aria-current="page"] {
  color: #fff;
  border-color: var(--v15-wine, #87334d);
  background: var(--v15-wine, #87334d);
  box-shadow: 0 7px 16px rgba(111, 41, 64, .20);
}

.v24-board-ellipsis {
  min-width: 24px;
  padding: 0;
  color: #9b8f94;
}

/* Large detail view opened from a community-list title. */
.v24-detail-modal[hidden] {
  display: none !important;
}

.v24-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.v24-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 31, .72);
  backdrop-filter: blur(7px);
}

.v24-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: min(86vh, 900px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(22, 14, 18, .36);
}

.v24-detail-dialog.is-text-only {
  grid-template-columns: 1fr;
  width: min(760px, 100%);
}

.v24-detail-media {
  min-height: 420px;
  background: #f0ecee;
}

.v24-detail-media[hidden] {
  display: none !important;
}

.v24-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.v24-detail-dialog[data-detail-type="meal"] .v24-detail-media img {
  object-fit: contain;
  padding: 18px;
  background: #f6f3f4;
}

.v24-detail-copy {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(30px, 5vw, 56px);
}

.v24-detail-meta {
  display: block;
  margin-bottom: 12px;
  color: var(--v15-wine, #87334d);
  font-size: 13px;
  font-weight: 800;
}

.v24-detail-copy h2 {
  margin: 0 0 20px;
  color: #30282d;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.v24-detail-body {
  color: #62585d;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.v24-detail-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(48, 39, 44, .76);
  font-size: 25px;
  cursor: pointer;
}

body.v24-modal-open {
  overflow: hidden !important;
}

/* Replaced service photos remain visually stable. */
main[data-current-page="care-service"] .service-feature-image img,
main[data-current-page="nursing-medical"] .service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1180px) {
  body.front-page-v24 .v15-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(410px, 1.05fr);
    gap: 38px;
  }

  body.front-page-v24 .v15-hero-slider {
    min-height: 500px !important;
  }

  .site-footer.v24-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.front-page-v24 .v15-hero {
    min-height: auto;
    padding: 56px 0 72px;
  }

  body.front-page-v24 .v15-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body.front-page-v24 .v15-hero-media {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  body.front-page-v24 .v15-location-card {
    grid-template-columns: 1fr;
  }

  .v24-detail-dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .v24-detail-media,
  .v24-detail-media img {
    min-height: 300px;
    max-height: 390px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 76px;
  }

  body.front-page-v24 .v15-hero {
    padding: 42px 0 60px;
  }

  body.front-page-v24 .v24-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
  }

  body.front-page-v24 .v24-hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  body.front-page-v24 .v24-hero-actions .v15-inline-link {
    grid-column: 1 / -1;
    padding: 8px 4px;
    text-align: center;
  }

  .v24-hero-community {
    margin-top: 21px;
    padding-top: 18px;
  }

  .v24-hero-community-links {
    gap: 7px;
  }

  .v24-hero-community-link {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    min-height: 48px;
    padding: 9px 10px;
  }

  .v24-hero-community-link strong {
    font-size: 13px;
  }

  body.front-page-v24 .v15-hero-slider {
    min-height: 350px !important;
  }

  .site-footer.v24-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .site-footer.v24-footer .v24-footer-admin-row {
    justify-content: flex-end;
  }

  .v24-community-toolbar,
  .notice-board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .v24-community-search,
  .notice-board-toolbar #notice-search {
    width: 100%;
  }

  .v24-community-list-header {
    display: none;
  }

  .v24-community-list-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    min-height: 92px;
    padding: 15px 14px;
  }

  .v24-community-meta {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }

  .v24-community-excerpt {
    -webkit-line-clamp: 2;
  }

  .notice-table.v24-notice-table,
  .notice-table.v24-notice-table tbody,
  .notice-table.v24-notice-table tr,
  .notice-table.v24-notice-table td {
    display: block;
    width: 100% !important;
  }

  .notice-table.v24-notice-table thead {
    display: none;
  }

  .notice-table.v24-notice-table tr {
    position: relative;
    min-height: 94px;
    padding: 15px 14px 14px 54px;
    border-top: 1px solid #ece5e7;
  }

  .notice-table.v24-notice-table td {
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  .notice-table.v24-notice-table td:first-child {
    position: absolute;
    left: 14px;
    top: 18px;
    width: 28px !important;
    color: #8b7f84;
  }

  .notice-table.v24-notice-table td:last-child {
    margin-top: 7px;
    color: #8b7f84;
    font-size: 12px;
  }

  .v24-board-page,
  .v24-board-ellipsis {
    min-width: 40px;
    height: 40px;
  }

  .v24-detail-modal {
    padding: 12px;
  }

  .v24-detail-dialog {
    border-radius: 18px;
  }

  .v24-detail-media,
  .v24-detail-media img {
    min-height: 220px;
    max-height: 300px;
  }

  .v24-detail-copy {
    padding: 28px 21px 34px;
  }

  .v24-detail-copy h2 {
    font-size: 27px;
  }
}

@media (max-width: 410px) {
  .v24-hero-community-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v24-hero-community-link,
  .v24-board-page {
    transition: none;
  }
}
