/* ===================================
   사람과안전 홈페이지 Custom CSS
   경로: /wp-content/uploads/custom-style.css
   최종 업데이트: 2026-04-01

   Avada Custom CSS 대체 파일.
   수정 시 이 파일만 FTP로 교체하면 됨 (Avada 재컴파일 불필요).
   Avada > 고급 > Code Fields > </head> 앞에 link 태그로 로드.
   =================================== */

/* ===== 1. 전역 설정 ===== */

body {
  word-break: keep-all;
  word-wrap: break-word;
}
.kboard-attr-category1 { display: none; }

/* ===== 2. Content Boxes (서비스안내 등) ===== */

.fusion-content-boxes .fusion-columns-1 .fusion-column {
  margin-bottom: 0px;
}
.fusion-content-boxes .fusion-column {
  margin-bottom: 0px;
}
.fusion-content-boxes .content-container {
  margin-bottom: 0px;
}
.fusion-content-boxes.fusion-columns-1 .fusion-column {
  margin-bottom: 15px;
}
.panel-body.toggle-content {
  white-space: pre-line;
  line-height: 1.6;
}

/* ===== 3. 블로그 카드 목록 ===== */

.blog-cards p:last-of-type {
  margin-bottom: 0 !important;
}
.blog-cards .fusion-title-heading {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
div.fusion-content-tb.blog-cards p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: normal !important;
}
.pagination.clearfix {
  justify-content: center !important;
  text-align: center !important;
  display: flex !important;
}

/* ===== 4. 사이드바 레이아웃 ===== */

#sidebar.fusion-sidebar-left {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: -40px !important;
}
.widget-title.fusion-responsive-typography-calculated {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #222 !important;
  background: none !important;
  border: none !important;
  padding: 0 0 16px 0 !important;
  margin: 0 !important;
}
#sidebar .widget_text {
  border: none !important;
  padding: 0 !important;
  margin-bottom: 8px !important;
}
#sidebar .avada_vertical_menu {
  border: none !important;
  padding: 0 !important;
}

/* ===== 5. 사이드바 메뉴 ===== */

#menu-blogs {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#menu-blogs li {
  border: none !important;
  background: none !important;
  margin: 0 !important;
}
#menu-blogs li a {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 12px !important;
  font-size: 16px !important;
  color: #37383C !important;
  border-radius: 6px !important;
  letter-spacing: -0.3px !important;
}
#menu-blogs li a:hover {
  color: #222 !important;
  background: #f5f5f5 !important;
}
#menu-blogs li.current-menu-item > a,
#menu-blogs li.current_page_item > a {
  color: #003a70 !important;
  font-weight: 600 !important;
  background: #eef3f9 !important;
}
#menu-blogs .arrow {
  color: #bbb !important;
}
#menu-blogs .sub-menu {
  padding-left: 12px !important;
  border: none !important;
  background: none !important;
}
#menu-blogs .sub-menu li a {
  font-size: 14px !important;
  padding: 7px 12px !important;
}

/* ===== 6. 글 상세 페이지 레이아웃 ===== */

.single-post .post-content {
  max-width: 700px !important;
  margin: 0 auto !important;
}

/* ===== 7. 블로그 글 본문 스타일 ===== */

.blog-h2 {
  font-size: 22px;
  font-weight: 700;
  color: #082643;
  margin: 40px 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #082643;
  line-height: 1.4;
}
.blog-label {
  display: inline-block;
  background: #082643;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  margin: 28px 0 10px 0;
  letter-spacing: 0.3px;
}
.blog-divider {
  border: none;
  border-top: 2px solid #e8e8e8;
  margin: 36px 0;
}

/* ===== 8. 강조 박스 ===== */

.blog-insight {
  background: #f7f5f0;
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 8px;
}
.blog-insight strong {
  color: #082643;
}
.blog-callout {
  background: #eef2f7;
  border-radius: 8px;
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #082643;
}

/* ===== 9. 사건/사례 카드 ===== */

.blog-case {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0;
}
.blog-case .blog-label {
  margin-top: 0;
}
.blog-case .case-title {
  font-weight: 700;
  color: #082643;
  margin-bottom: 6px;
}
.blog-case p {
  margin: 0;
  color: #444;
  line-height: 1.7;
  font-size: 14.5px;
}

/* ===== 10. 시리즈 목차 ===== */

.blog-series-box {
  background: #f7f5f0;
  border-radius: 8px;
  padding: 28px 30px;
  margin: 32px 0;
}
.blog-series-box .series-brand {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.blog-series-box .series-company {
  font-size: 13px;
  color: #082643;
  font-weight: 600;
  margin-bottom: 14px;
}
.blog-series-box .series-title {
  font-size: 15px;
  font-weight: 700;
  color: #082643;
  margin-bottom: 12px;
}
.blog-series-box .series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 2;
  color: #555;
}
.blog-series-box .series-list .current {
  color: #082643;
  font-weight: 700;
}

/* ===== 11. 유튜브 임베드 ===== */

.blog-video-box {
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
  text-align: center;
}
.blog-video-box .video-title {
  font-size: 15px;
  font-weight: 600;
  color: #082643;
  margin-bottom: 14px;
}
.blog-video-box iframe {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 6px;
}

/* ===== 12. 번호 리스트 (정리 섹션) ===== */

.blog-summary-list {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 8px 0;
  margin: 16px 0;
}
.blog-summary-list .summary-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.blog-summary-list .summary-item:last-child {
  border-bottom: none;
}
.blog-summary-list .item-num {
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  color: #082643;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 16px;
}
.blog-summary-list .item-text {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

/* ===== 13. 표 ===== */

.fusion-content-tb-1 table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
.fusion-content-tb-1 table th {
  background: #082643;
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
}
.fusion-content-tb-1 table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e5e5e5;
}
.fusion-content-tb-1 table tr:nth-child(even) td {
  background: #f9f9f9;
}
.fusion-content-tb-1 table tr:last-child td {
  border-bottom: none;
}

/* ===== 14. 이미지 ===== */

.post-content figcaption,
.entry-content figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
  line-height: 1.6;
}

/* 인포그래픽 확대 표시 (본문 너비보다 넓게) */
.entry-content figure img.infographic,
.post-content figure img.infographic {
  width: 900px;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== 15. 하단 CTA ===== */

.blog-footer {
  background: #f7f5f0;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 40px 0 0 0;
  text-align: center;
  font-size: 15px;
  color: #333;
}
.blog-footer a {
  color: #082643;
  font-weight: 600;
  text-decoration: underline;
}
.blog-footer-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 28px;
  background: #082643;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
}
.blog-footer-btn:hover {
  background: #0a3560;
}
