@charset "utf-8";

/**
 * iCRM 게시글 디자인 템플릿 — 게시판 본문 보기 공통
 */

.icrm-template,
#bo_v_con .icrm-template,
.community-view-page__body .icrm-template,
.board-view__content .icrm-template,
.board-wrap #bo_v_con .icrm-template {
  box-sizing: border-box;
  max-width: 940px;
  margin: 0 auto;
  padding: 26px;
  background: #ffffff;
  color: #1f2937;
  font-family: inherit;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.icrm-template *,
.icrm-template *::before,
.icrm-template *::after,
#bo_v_con .icrm-template *,
.community-view-page__body .icrm-template * {
  box-sizing: border-box;
}

.icrm-template img,
#bo_v_con .icrm-template img {
  max-width: 100%;
  height: auto;
}

.icrm-template h2,
.icrm-template h3,
#bo_v_con .icrm-template h2,
#bo_v_con .icrm-template h3 {
  font-weight: 900;
  line-height: 1.4;
  color: #0f172a;
}

.icrm-template p,
.icrm-template li,
#bo_v_con .icrm-template p,
#bo_v_con .icrm-template li {
  line-height: 1.9;
}

.icrm-template .icrm-content,
#bo_v_con .icrm-template .icrm-content {
  margin: 0 0 18px;
}

.icrm-template .icrm-section,
#bo_v_con .icrm-template .icrm-section {
  margin: 22px 0;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.icrm-template .icrm-section strong,
#bo_v_con .icrm-template .icrm-section strong {
  display: block;
  font-size: 1.08em;
  line-height: 1.45;
}

.icrm-template .icrm-facility-grid,
#bo_v_con .icrm-template .icrm-facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 22px 0;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.icrm-template .icrm-facility-card,
#bo_v_con .icrm-template .icrm-facility-card {
  padding: 18px;
  border-radius: 24px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
}

.icrm-template .icrm-facility-card strong,
#bo_v_con .icrm-template .icrm-facility-card strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  color: #155e75;
}

.icrm-template .icrm-cta,
#bo_v_con .icrm-template .icrm-cta {
  text-align: center;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.icrm-template .icrm-cta-button,
#bo_v_con .icrm-template .icrm-cta-button,
.icrm-template a.icrm-cta-button,
#bo_v_con .icrm-template a.icrm-cta-button {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 12px 26px rgba(30, 58, 138, 0.22);
  cursor: pointer;
}

.icrm-template .icrm-cta-button:hover,
#bo_v_con .icrm-template .icrm-cta-button:hover,
.icrm-template a.icrm-cta-button:hover,
#bo_v_con .icrm-template a.icrm-cta-button:hover {
  background: #1d4ed8;
  color: #fff !important;
  text-decoration: none !important;
}

.icrm-template.icrm-template-room-facility h2,
.icrm-template .icrm-template-room-facility h2,
#bo_v_con .icrm-template.icrm-template-room-facility h2,
#bo_v_con .icrm-template .icrm-template-room-facility h2 {
  text-align: center;
  color: #155e75;
}

.icrm-template.icrm-template-room-facility img,
.icrm-template .icrm-template-room-facility img,
#bo_v_con .icrm-template.icrm-template-room-facility img,
#bo_v_con .icrm-template .icrm-template-room-facility img {
  border-radius: 28px;
}

@media (max-width: 640px) {
  .icrm-template,
  #bo_v_con .icrm-template,
  .community-view-page__body .icrm-template {
    max-width: 100% !important;
    padding: 18px !important;
  }

  .icrm-template .icrm-section,
  #bo_v_con .icrm-template .icrm-section {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .icrm-template .icrm-facility-grid,
  #bo_v_con .icrm-template .icrm-facility-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .icrm-template .icrm-cta-button,
  #bo_v_con .icrm-template .icrm-cta-button,
  .icrm-template a.icrm-cta-button,
  #bo_v_con .icrm-template a.icrm-cta-button {
    display: block;
    width: 100%;
    text-align: center;
  }
}
