/* ==========================================================================
   페이지별 스타일 — 구성원 / 소식·자료 / 사회공헌 / 검색·기타
   ========================================================================== */

/* ====================================================== 구성원 (member_1) === */
.p-member-list { margin-bottom: 170px; }
.p-member-list .sub-banner,
.p-member-detail .sub-banner {
  background: url(../img/member_sub_banner_bg.jpg) no-repeat center / cover;
}

.p-member-list .tab-nav { margin-bottom: 63px; }
.p-member-list .tab-nav ul { display: flex; border-bottom: 1px solid #DBDBDB; }

.p-member-list .tab-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 64px;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink-600);
}

.p-member-list .tab-nav ul li.active a { position: relative; font-weight: 700; color: var(--brand); }

.p-member-list .tab-nav ul li.active a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
}

.p-member-list .sec-1 > .container > .title,
.p-member-list .sec-1 .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.p-member-list .sec-1 .title h3 { font-size: var(--fs-h5); font-weight: 700; }

.p-member-list .item-box ul {
  display: flex;
  flex-wrap: wrap;
  row-gap: 34px;
  column-gap: 24px;
  margin-bottom: 50px;
}

.p-member-list .item-box ul:last-child { margin-bottom: 0; }
.p-member-list .item-box > ul > li { width: calc(25% - 18px); }
.p-member-list .item-box > ul > li a { display: block; }
.p-member-list .item-box .img-box { position: relative; margin-bottom: 20px; overflow: hidden; }
.p-member-list .item-box .img-box img { width: 100%; }

/* 카드에 마우스를 올리면 전문분야 태그가 아래에서 올라온다 */
.p-member-list .item-box .img-box .tag-box {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 24px 36px;
  background: rgba(1, 1, 1, .8);
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--dur-s);
}

.p-member-list .item-box > ul > li:hover .img-box .tag-box { opacity: 1; transform: translateY(0); }
.p-member-list .item-box .tag-box ul { flex-direction: column; justify-content: center; gap: 8px; margin-bottom: 0; }

.p-member-list .item-box .tag-box ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 7px 12px;
  border: 1px solid var(--white);
  border-radius: 100px;
  text-align: center;
  color: var(--white);
}

.p-member-list .item-box .tag-box ul li br { display: none; }

.p-member-list .item-box .text-box > span {
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-md);
  color: #778392;
}

.p-member-list .item-box .text-box > p {
  margin-bottom: 14px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #3C3C3C;
}

.p-member-list .item-box .text-box b { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p-member-list .item-box .text-box b:last-child { margin-bottom: 0; }

.p-member-list .item-box .text-box b i {
  display: block;
  width: 45px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--brand);
}

.p-member-list .item-box .text-box b span { font-size: var(--fs-base); font-weight: 500; }

/* ================================================= 구성원 상세 (member_2) === */
.p-member-detail .sec-1 .title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.p-member-detail .title .text-box p { margin-bottom: 12px; font-size: var(--fs-lg); font-weight: 300; color: var(--brand); }

.p-member-detail .title .text-box h3 {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-size: 58px;
  font-weight: 700;
}

.p-member-detail .title .text-box h3 span { font-size: var(--fs-md); font-weight: 400; color: var(--ink-600); }
.p-member-detail .title .util { display: flex; align-items: center; }

.p-member-detail .title .util li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid var(--line-input);
}

.p-member-detail .title .util li:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.p-member-detail .title .util li b { font-size: var(--fs-md); font-weight: 700; line-height: 1; color: var(--ink-900); }
.p-member-detail .title .util li span { font-size: var(--fs-md); font-weight: 400; line-height: 1; color: var(--ink-600); }

.p-member-detail .item-1 { margin-bottom: 150px; }
.p-member-detail .item-1 .img-box { position: relative; }
.p-member-detail .item-1 .img-box img { width: 100%; }
.p-member-detail .item-1 .img-box .util { position: absolute; right: 60px; bottom: -27px; z-index: 10; }
.p-member-detail .item-1 .img-box .util ul { display: flex; align-items: center; gap: 14px; }

.p-member-detail .item-1 .img-box .util ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #DBDBDB;
  border-radius: 100%;
  background: var(--white);
}

.p-member-detail .item-1 .img-box .util ul li:first-child { border-color: var(--brand); background: var(--brand); }

.p-member-detail .item-2 { display: flex; gap: 110px; margin-bottom: 160px; }
.p-member-detail .item-2 .left { width: 400px; min-width: 400px; }
.p-member-detail .item-2 .left .img-box { margin-bottom: 50px; }
.p-member-detail .item-2 .left .img-box img { width: 100%; }
.p-member-detail .item-2 .left .category { margin-bottom: 44px; }
.p-member-detail .item-2 .left .category > p { margin-bottom: 20px; font-size: var(--fs-lg); font-weight: 700; color: var(--ink-900); }
.p-member-detail .item-2 .left .category ul { display: flex; flex-wrap: wrap; gap: 10px; }

.p-member-detail .item-2 .left .category ul li {
  padding: 4px 6.5px;
  border: 1px solid #DBDBDB;
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-600);
}

.p-member-detail .item-2 .right { width: 100%; }
.p-member-detail .item-2 .right .item { margin-bottom: 100px; }
.p-member-detail .item-2 .right .item:last-child { margin-bottom: 0; }

.p-member-detail .item-2 .right .item > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: var(--fs-h6);
  font-weight: 700;
}

.p-member-detail .item-2 .right .item > h3 a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink-500);
}

.p-member-detail .item-box-1 article { font-size: var(--fs-md); line-height: 1.5; color: #434343; }
.p-member-detail .item-2 .right .item ul { margin-top: 14px; }
.p-member-detail .item-2 .right .item ul li { font-size: var(--fs-md); line-height: 1.6; color: #434343; list-style: inside; }
.p-member-detail .item-box-4 { padding-bottom: 100px; border-bottom: 1px solid #DBDBDB; }

.media-list ol { display: flex; flex-wrap: wrap; gap: 20px; }
.media-list ol li { width: calc(33.3% - 14px); }

.media-list ol li a {
  display: block;
  padding: 34px 24px;
  border: 1px solid var(--white);
  box-shadow: var(--shadow-panel);
  transition: all var(--dur);
}

.media-list ol li a:hover { border-color: var(--brand); }

.media-list ol li a p {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d0d0d0;
  font-size: var(--fs-md);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-list ol li a article {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 20px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: #434343;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-list ol li a span { font-size: var(--fs-2xs); font-weight: 600; color: var(--ink-350); }
.bottom-banner img { width: 100%; }

/* ============================================== 주요업무사례 (news_2) === */
.p-news-cases, .p-cases-detail { margin-bottom: 170px; }
.p-news-cases .sub-banner,
.p-cases-detail .sub-banner { background: url(../img/news_2_sub_banner_bg.jpg) no-repeat center / cover; }
.p-news-cases .item-box ul { display: flex; flex-wrap: wrap; gap: 70px; }

.p-news-cases .item-box ul li {
  width: calc(33.3% - 47px);
  border: 1px solid var(--white);
  transition: all var(--dur);
}

.p-news-cases .item-box ul li:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 21px 0 rgba(201, 218, 232, .5);
}

.p-news-cases .item-box .img-box img { width: 100%; }
.p-news-cases .item-box .text-box { padding: 30px 20px; }

.p-news-cases .item-box .text-box span {
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand);
}

.p-news-cases .item-box .text-box p {
  margin-bottom: 12px;
  font-size: var(--fs-lg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-news-cases .item-box .text-box article {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink-600);
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-news-cases .item-box .text-box b { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-350); }

/* ================================================== 동인소식 (news_3) === */
.p-news-press { margin-bottom: 170px; }
.p-news-press .sub-banner,
.p-news-detail .sub-banner { background: url(../img/news_3_sub_banner_bg.jpg) no-repeat center / cover; }
.p-news-detail { margin-bottom: 170px; }

.p-news-press .item-box-1 { margin-bottom: 180px; }
.p-news-press .item-box { display: flex; gap: 64px; }
.p-news-press .item-box ul { max-width: 846px; }
.p-news-press .item-box > .img-box { width: 100%; max-width: 560px; }
.p-news-press .item-box > .img-box img { width: 100%; }

.p-news-press .item-box ul li {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid #DBDBDB;
}

.p-news-press .item-box ul li:last-child { margin-bottom: 0; }
.p-news-press .item-box .text-box { width: 100%; overflow: hidden; }

.p-news-press .item-box .text-box span {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand);
}

.p-news-press .item-box .text-box p {
  margin-bottom: 8px;
  font-size: var(--fs-lg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-news-press .item-box .text-box article {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 14px;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink-600);
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-news-press .item-box .text-box b { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-350); }

/* ==================================================== 자료실 (news_4) === */
.p-news-library { margin-bottom: 170px; }
.p-news-library .sub-banner,
.p-library-detail .sub-banner { background: url(../img/news_4_sub_banner_bg.jpg) no-repeat center / cover; }
.p-library-detail { margin-bottom: 170px; }

.p-news-library .item-box ul { display: flex; flex-wrap: wrap; gap: 34px; }
.p-news-library .item-box ul li { width: calc(50% - 17px); }
.p-news-library .item-box .img-box img { height: 220px; }

.p-news-library .item-box .text-box {
  width: 100%;
  padding: 34px 44px;
  border: 1.5px solid #DBDBDB;
  overflow: hidden;
  transition: all var(--dur);
}

.p-news-library .item-box ul li:hover .text-box {
  border-color: var(--brand);
  box-shadow: var(--shadow-panel);
}

.p-news-library .item-box .text-box span {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand);
}

.p-news-library .item-box .text-box p {
  margin-bottom: 8px;
  font-size: var(--fs-lg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-news-library .item-box .text-box article {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 24px;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink-600);
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-news-library .item-box .text-box b { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-350); }

/* ============================================== 화백리포트 (news_5) === */
.p-news-qna { margin-bottom: 170px; }
.p-news-qna .sub-banner { background: url(../img/news_5_sub_banner_bg.jpg) no-repeat center / cover; }

.p-news-qna .acc__head {
  padding: 34px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: url(../img/acc_down.svg) no-repeat right 10px center / 24px;
  cursor: pointer;
}

.p-news-qna .acc__head p { display: flex; align-items: center; gap: 34px; font-size: var(--fs-lg); font-weight: 600; }
.p-news-qna .acc__head p b { color: var(--brand); }
.p-news-qna .acc__body { display: none; }

.p-news-qna .acc__body .box {
  display: flex;
  gap: 24px;
  padding: 34px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
}

.p-news-qna .acc__body .box > b { font-size: var(--fs-lg); font-weight: 700; color: #888; }
.p-news-qna .acc__body .name { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; }

.p-news-qna .acc__body .name span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  background: var(--tint);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--brand);
}

.p-news-qna .acc__body .name p { font-size: var(--fs-md); font-weight: 600; }
.p-news-qna .acc__body article { font-size: var(--fs-md); font-weight: 500; color: var(--ink-600); }
.p-news-qna .acc__row.is-open .acc__head { border-bottom: 0; background-image: url(../img/acc_up.svg); }

/* ------------------------------------- 목록 공통: 태그·작성자·날짜 라인 -- */
/* flex 배치는 목록 페이지에서만(상세 페이지의 태그는 인라인 흐름 그대로) */

.p-news-cases .auto-tags,
.p-news-press .auto-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.auto-tags { margin: 8px 0 15px; line-height: 1.6; }

.auto-tags .tag,
.meta-info .tag {
  display: inline-block;
  margin-right: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #f2f4f6;
  font-size: 13px;
  color: #004a99;
}

/* 동인소식만 태그 색·여백이 다르다 */
.meta-info { margin-bottom: 15px; }
.p-news-press .auto-tags .tag,
.p-news-press .meta-info .tag { margin-right: 6px; margin-bottom: 6px; background: #f1f1f1; color: #333; }
.p-news-press .meta-info .tag:hover { background: #e0e0e0; }
.p-news-press .meta-info a { color: #000; transition: color var(--dur); }
.p-news-press .meta-info a:hover { color: #004a99; text-decoration: underline; }

/* 관련 구성원 줄 — 최근승소사례에서만 축소 서체를 쓴다(원본 인라인 CSS 범위) */
.related_members a { color: #000; transition: color var(--dur-s); }
.related_members a:hover { color: #0073e6; }

.category_date { display: flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); color: #666; }
.category_date .category { font-weight: bold; }
.category_date .date,
.separator { color: #ccc; }
.title-right .date { font-size: var(--fs-2xs); color: #666; white-space: nowrap; }

/* ================================================ 사회공헌 (benefit_1) === */
.p-benefit-greeting .sub-banner { background: url(../img/benefit_1_sub_banner_bg.jpg) no-repeat center / cover; }
.p-benefit-greeting .sec-1 { position: relative; margin-bottom: 160px; }
.p-benefit-greeting .sec-1 > .container > .text-box { display: flex; justify-content: space-between; margin-bottom: 85px; }
.p-benefit-greeting .sec-1 .text-box h3 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; }
.p-benefit-greeting .sec-1 .text-box h3 b { color: var(--brand); }

.p-benefit-greeting .sec-1 .text-box article {
  width: 100%;
  max-width: 660px;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink-600);
}

.p-benefit-greeting .sec-2 { max-width: 1100px; margin: 80px auto 0; padding: 0 20px 160px; }
.p-benefit-greeting .sec-2 .title { margin-bottom: 54px; }
.p-benefit-greeting .sec-2 .title h3 { font-size: var(--fs-h4); font-weight: 700; }
.p-benefit-greeting .sec-2 .item-box { margin-bottom: 70px; }
/* 폭·여백은 main.css 쪽(우선순위 높음), flex·margin 은 페이지 인라인 쪽이 살아난다 */
.p-benefit-greeting .sec-2 .item-box ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 64px;
}

.p-benefit-greeting .sec-2 .item-box ul li {
  flex: 1;
  width: calc(33.3% - 43px);
  margin: 0 10px;
  padding: 64px 0;
  border-radius: 30px;
  box-shadow: 0 0 21px 0 #C9DAE880;
  text-align: center;
}

.p-benefit-greeting .sec-2 .item-box li .img-box { margin-bottom: 34px; }
.p-benefit-greeting .sec-2 .item-box li .img-box img { height: 120px; }
.p-benefit-greeting .sec-2 .item-box li p { font-size: var(--fs-lg); font-weight: 800; line-height: 1.4; }
.p-benefit-greeting .sec-2 > .container > .text-box { text-align: center; }

.p-benefit-greeting .sec-2 .text-box article {
  max-width: 1050px;
  margin: 0 auto;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ink-600);
}

.p-benefit-greeting .sec-3 { width: 100%; background: url(../img/benefit_1_sc_3_bg.jpg) no-repeat center / cover; }

.p-benefit-greeting .sec-3 .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 528px;
}

.p-benefit-greeting .sec-3 .text-box p { margin-bottom: 24px; font-size: var(--fs-h4); font-weight: 700; color: var(--white); }
.p-benefit-greeting .sec-3 .text-box article { font-size: var(--fs-lg); color: var(--white); }

/* 본문 내부 좌우 교차 배치 블록 */
.p-benefit-greeting .wrap { max-width: 1100px; margin: 0 auto; }

.p-benefit-greeting .main-image img {
  width: 100%;
  height: 400px;
  margin-bottom: 30px;
  border-radius: 10px;
  object-fit: cover;
}

.p-benefit-greeting .section { display: flex; align-items: center; width: 100%; margin-bottom: 10px; }
.p-benefit-greeting .section .image-box,
.p-benefit-greeting .section .text-box { flex: 1; }

.p-benefit-greeting .section .image-box img {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  object-fit: cover;
}

.p-benefit-greeting .left-img { flex-direction: row; }
.p-benefit-greeting .right-img { flex-direction: row-reverse; }
.p-benefit-greeting .left-img .text-box { padding-left: 30px; }
.p-benefit-greeting .right-img .text-box { padding-right: 30px; }
.p-benefit-greeting .section .text-box b { color: var(--brand); }
.p-benefit-greeting .section .text-box p { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-600); }

.p-benefit-greeting h2 { margin-bottom: 15px; font-size: 28px; font-weight: 700; line-height: 1.4; text-align: left; }
.p-benefit-greeting h2 b { color: var(--brand); }

/* 게시판 상세 제목 줄 — 활동보고·승소사례 상세에서 좌우 분리 배치 */
.p-benefit-detail .title.pc, .p-cases-detail .title.pc { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.p-benefit-detail .title.mo, .p-cases-detail .title.mo { display: none; }
.p-benefit-detail .title-left, .p-cases-detail .title-left { max-width: 70%; }
.p-benefit-detail .title .subject, .p-cases-detail .title .subject { display: block; width: 100%; }
.p-benefit-detail .title .subject, .p-cases-detail .title .subject h3 { margin-bottom: 8px; }
.p-benefit-detail .auto-tags, .p-cases-detail .auto-tags { margin-top: 5px; }

/* ================================================ 활동보고 (benefit_2) === */
.p-benefit-report, .p-benefit-detail { margin-bottom: 180px; }
.p-benefit-report .sub-banner,
.p-benefit-detail .sub-banner { background: url(../img/benefit_2_sub_banner_bg.jpg) no-repeat center / cover; }

.p-benefit-report .item-box ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 34px; }

.p-benefit-report .item-box ul li {
  position: relative;
  min-width: 0;
  width: 100%;
  box-shadow: 0 6px 15px rgba(213, 213, 213, .5);
}

.p-benefit-report .item-box .img-box img { width: 100%; }

.p-benefit-report .item-box .text-box {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  height: 150px;
  padding: 44px 34px;
  border: 1px solid var(--white);
  background: rgba(255, 255, 255, .95);
  transition: all var(--dur);
}

.p-benefit-report .item-box ul li:hover .text-box { border-color: var(--brand); background: var(--white); }

.p-benefit-report .item-box .text-box span {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand);
}

.p-benefit-report .item-box .text-box p {
  font-size: var(--fs-lg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================= 통합검색 (search) === */
.p-search-result { margin: 230px 0 160px; }
.p-search-result .sec-1 { margin-bottom: 120px; }
.p-search-result .sec-1 .title { margin-bottom: 40px; text-align: center; }
.p-search-result .sec-1 .title h3 { font-size: 44px; font-weight: 600; }

.p-search-result .sec-1 .search-box {
  display: block;
  margin-bottom: 0;
  padding: 20px 34px;
  background: rgba(230, 238, 244, .5);
}

.p-search-result .search-box .box { display: flex; gap: 10px; margin-bottom: 20px; }
/* 이 버튼은 min-width 없이 flex 축소를 허용한다(원본과 같은 57px 결과) */
.p-search-result .search-box .box button { min-width: 0; width: 60px; }
.p-search-result .sec-1 .search-box .result { margin: 0 auto; font-size: var(--fs-md); font-weight: 500; text-align: center; color: var(--ink-900); }
.p-search-result .sec-1 .search-box .result b { font-weight: 700; }
.p-search-result .sec-1 .search-box .result i { font-weight: 700; color: var(--brand); }

.search-box .result .keyword-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-bottom: 10px; }
/* 원본 선택자가 `.result.keyword-header img` 로 잘못 적혀 실제로는 적용되지 않는다 — 그대로 둔다 */
.search-box .result.keyword-header img { margin-right: 8px; }
.search-box .result .keyword { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

.search-box .result ul li a {
  display: inline-block;
  padding: 11px 14px;
  border-radius: 100px;
  background: var(--tint);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--brand);
}

.p-search-result .sec-2 .container { display: flex; justify-content: space-between; gap: 100px; }
.p-search-result .sec-2 .left { width: 100%; }
.p-search-result .sec-2 .left .item { margin-bottom: 140px; }
.p-search-result .sec-2 .left .item:last-child { margin-bottom: 0; }

.p-search-result .sec-2 .left .item .title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #CACACA;
}

.p-search-result .sec-2 .left .item .title h3 { font-size: 32px; font-weight: 700; }
.p-search-result .sec-2 .left .item .title h3 span { margin-left: 5px; font-size: var(--fs-md); font-weight: 500; color: var(--brand); }

.p-search-result .sec-2 .left .item .title a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--ink-500);
}

.p-search-result .sec-2 .left .item .title a img { height: 18px; }

.p-search-result .type-1 ul,
.p-search-result .type-2 ul,
.p-search-result .type-3 ul { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 20px; }
.p-search-result .type-3 ul { column-gap: 14px; }

.p-search-result .type-1 ul li,
.p-search-result .type-2 ul li,
.p-search-result .type-3 ul li { border: 1px solid #DBDBDB; transition: all var(--dur); }
.p-search-result .type-1 ul li { width: calc(20% - 20px); }
.p-search-result .type-2 ul li { width: calc(33.3% - 20px); }
.p-search-result .type-3 ul li { width: calc(33.3% - 10px); }

.p-search-result .type-1 ul li:hover,
.p-search-result .type-2 ul li:hover,
.p-search-result .type-3 ul li:hover { border-color: var(--brand); }

.p-search-result .type-1 ul li a { display: block; padding: 1px; }
.p-search-result .type-1 ul li a span { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 500; color: #778392; }
.p-search-result .type-1 ul li a p { font-size: var(--fs-md); font-weight: 700; color: #3C3C3C; }
.p-search-result .type-1 ul li:nth-child(n+11) { display: none; }

.p-search-result .type-2 ul li a { display: block; padding: 20px; }
.p-search-result .type-2 ul li a p { margin-bottom: 10px; font-size: var(--fs-md); font-weight: 700; color: #3C3C3C; }

.p-search-result .type-2 ul li a article {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #778392;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-search-result .type-3 ul li a { display: flex; align-items: center; gap: 6px; padding: 20px 30px; }
.p-search-result .type-3 ul li a p { font-size: var(--fs-md); font-weight: 500; }

.p-search-result .sec-2 .left .item.type-4 .title { margin-bottom: 0; padding-bottom: 24px; }
.p-search-result .type-4 .item-box > ul > li { border-bottom: 1px solid #DBDBDB; }

.p-search-result .type-4 .item-box > ul > li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 34px;
}

.p-search-result .type-4 .item-box > ul > li a p {
  width: 100%;
  max-width: 820px;
  font-size: var(--fs-md);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-search-result .type-4 .item-box > ul > li a span { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-350); }
.p-search-result .type-4 .pagination { margin-top: 24px; }

.p-search-result .view-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  padding: 14px 0;
  border-radius: 5px;
  box-shadow: var(--shadow-panel);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink-650);
}

.p-search-result .item-box .empty { padding: 30px 0; text-align: center; }
.p-search-result .item-box .empty img { margin-bottom: 10px; }
.p-search-result .item-box .empty p { font-size: var(--fs-md); font-weight: 500; color: #707070; }

.p-search-result .sec-2 .right { width: 100%; max-width: 400px; }
.p-search-result .sec-2 .right .info { padding: 24px; border-radius: 15px; box-shadow: var(--shadow-panel); }

.p-search-result .sec-2 .right .info .title {
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid #DBDBDB;
}

.p-search-result .sec-2 .right .info .title h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 700; }
.p-search-result .sec-2 .right .tag-box ul { display: flex; flex-wrap: wrap; gap: 10px; }

.p-search-result .sec-2 .right .tag-box ul li a {
  display: inline-block;
  padding: 11px 14px;
  border-radius: 100px;
  background: var(--tint);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--brand);
}

/* ================================================= 약관 / 사이트맵 === */
.p-term-disclaimer .sub-banner,
.p-term-a11y .sub-banner,
.p-sitemap .sub-banner { background: url(../img/term_sub_banner_bg.jpg) no-repeat center / cover; }

.term-page { padding: 120px 0; }
.term-title { margin-bottom: 40px; font-size: var(--fs-h4); font-weight: 700; color: #000; }
.term-page p { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-600); }
.term-page .accent { color: #225AC6; }
.term-page strong { font-weight: 700; color: inherit; }

.sitemap-page { padding: 120px 0; }
.sitemap-page h4.tit { margin-bottom: 40px; font-size: var(--fs-h4); font-weight: 700; color: #000; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 45px; }
.sitemap-grid > div { width: 100%; }

.sitemap-grid > div .tit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border: 1px solid rgba(8, 71, 132, .4);
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
  font-size: var(--fs-lg);
  font-weight: 700;
  text-align: center;
  color: var(--brand);
}

.sitemap-grid > div ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background: #F4FAFF;
}

.sitemap-grid > div ul li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: #3A3A3C;
}

.sitemap-grid > div ul li a:hover { color: var(--brand); text-decoration: underline; }


/* ==========================================================================
   상세 페이지 공통 부속 — 목록형 관련자료(type-4), 파일 입력, 구성원 헤더
   ========================================================================== */

/* 관련 자료 목록 (업무분야·전담팀 상세) */
.type-4 .item-box > ul > li { border-bottom: 1px solid #DBDBDB; }

.type-4 .item-box > ul > li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 34px;
}

.type-4 .item-box > ul > li a p {
  width: 100%;
  max-width: 820px;
  font-size: var(--fs-md);
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.type-4 .item-box > ul > li a span { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-350); }

/* 첨부 선택 input 은 버튼으로 대체되어 감춰 둔다 */
.hidden-file { display: none; }
/* 검색 결과 없음 안내는 상세 페이지에선 쓰지 않는다 */
.p-division-detail .empty,
.p-team-detail .empty { display: none; }

/* 전담팀 상세 사이드 목록은 마커를 살린다 */
.p-team-detail .sec-1 .right .item-1 ul li { padding-left: 0; margin-left: 20px; list-style: initial; }

/* ---- 구성원 상세: 이름 + SNS 아이콘 헤더 ---- */
.name_sns_flex { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.sns_icons_small { display: flex; gap: 6px; }

.sns_icons_small a img {
  width: 35px;
  height: 35px;
  vertical-align: middle;
  filter: grayscale(1) opacity(.7);
  transition: .3s;
}

.sns_icons_small a:hover img { filter: grayscale(0) opacity(1); }
.name_sns_container { display: flex; align-items: flex-end; gap: 12px; }
.main_name { margin: 0; font-size: 2.5rem; line-height: 1.1; }
.side_info_group { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.sub_info_text { font-size: var(--fs-md); color: #666; white-space: nowrap; }

/* 마크업의 인라인 margin-top:15px 을 덮어야 한다(원본도 !important 로 처리) */
.p-member-detail .auto-tags-wrapper { margin-top: 30px !important; }
.p-member-detail .auto-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }

.p-member-detail .auto-tags .tag {
  display: inline-block;
  margin-right: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #f4f6fa;
  color: #004a99;
  transition: .2s ease;
}

.p-member-detail .auto-tags .tag:hover { background: #e2e8f0; color: #002e66; }
.p-member-detail .img-box img { height: auto; }
.img_gray img { filter: grayscale(100%); }

@media (max-width: 768px) {
  .type-4 .item-box > ul > li a { padding: 16px 0; }
  .type-4 .item-box > ul > li a p { font-size: var(--fs-xs); }
  .type-4 .item-box > ul > li a span { margin-left: 10px; font-size: 12px; }
  .main_name { font-size: 1.8rem; }
  .name_sns_container { gap: 8px; }
  .side_info_group { gap: 2px; }
  .sns_icons_small img { width: 22px; height: 22px; }
  .sns_icons_small a img,
  .sns_icons_small a:hover img { filter: none; opacity: 1; }
  .sub_info_text { font-size: 13px; }
}


/* ==========================================================================
   통합검색 페이지 전용 — 원본이 이 페이지에서만 전역으로 거는 규칙들
   ========================================================================== */
body.page-search_result #header { background: var(--white); }
body.page-search_result #header .ico-dark { display: block !important; }
body.page-search_result #header .ico-light { display: none !important; }
body.page-search_result #header .gnb ul li a { color: var(--ink-900); }
body.page-search_result #header .lang-box > button { border-color: var(--brand); }
body.page-search_result #header .lang-box > button p { color: var(--brand); }

/* 페이지 전역 li 규칙 — 원본(skin/latest/search2/style.css)과 동일한 범위로 둔다 */
body.page-search_result li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

/* 변호사 카드 */
body.page-search_result .lawyer-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 230px;
  margin: 8px 0;
  overflow: hidden;
}

body.page-search_result .lawyer-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

body.page-search_result .lawyer-type { display: block; margin-top: 20px; font-size: 12px !important; }
body.page-search_result .lawyer-name { display: block; margin-top: -10px; font-size: var(--fs-sm) !important; }

/* 자료 목록: 제목 왼쪽 / 날짜 오른쪽 */
body.page-search_result .type-4 .item-box ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

body.page-search_result .type-4 .item-box ul li a p.subject,
body.page-search_result .type-4 .item-box ul li a .subject {
  flex: 1;
  margin: 0;
  padding-right: 10px;
  text-align: left;
}

body.page-search_result .type-4 .item-box ul li a span.date,
body.page-search_result .type-4 .item-box ul li a .date {
  font-size: .9rem;
  text-align: right;
  color: #666;
  white-space: nowrap;
}

body.page-search_result .pagination { margin-top: 20px; text-align: center; }

body.page-search_result .pagination a,
body.page-search_result .pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
}

body.page-search_result .pagination a:hover { background: #f0f0f0; }
body.page-search_result .pagination span.active { border-color: #007bff; background: #007bff; color: var(--white); }
body.page-search_result .pagination a.prev,
body.page-search_result .pagination a.next { font-weight: bold; }
body.page-search_result [id^="section_"] { scroll-margin-top: 120px; }

@media (max-width: 768px) {
  /* 목록 날짜는 13px — skin CSS 의 .9rem 보다 우선순위가 높다 */
  body.page-search_result .type-4 .item-box ul li a span.date,
  body.page-search_result .type-4 .item-box ul li a .date { font-size: 13px; }
  body.page-search_result .search2 ul li { width: 45%; margin: 2.5%; }
  body.page-search_result .lawyer-thumb { height: auto; margin: 6px 0; }
  body.page-search_result .lawyer-thumb img { height: auto; object-fit: contain; }
  body.page-search_result .lawyer-type { margin-top: 10px; }
  body.page-search_result .lawyer-name { margin-top: 0; }
  body.page-search_result .type-4 .item-box ul li a { flex-direction: column; align-items: flex-start; }
  body.page-search_result .type-4 .item-box ul li a .date { margin-top: 6px; align-self: flex-end; }
}

@media (max-width: 480px) {
  body.page-search_result .search2 ul li { width: 100%; margin: 5px 0; }
  body.page-search_result .lawyer-thumb { height: auto; margin: 5px 0; }
  body.page-search_result .lawyer-thumb img { height: auto; border-radius: 0; object-fit: contain; }
}

/* 추천 키워드 칩 — 모바일 (main.css 전역 규칙과 동일 범위) */
@media (max-width: 768px) {
  .search-box .result .keyword,
  .search-box .result .keyword-header { justify-content: center; }
  .search-box .result ul li a { padding: 8px 14px; font-size: var(--fs-2xs); }
}

/* 활동보고(benefit_2·3): 사진이 카드의 높이를 만들고 그 위에 제목이 겹쳐 놓이는 구조다.
 * 사진을 숨기면 카드가 접혀 제목끼리 포개지므로, 이 페이지만 상자를 남기고 빈 배경으로 채운다. */
.p-benefit-report .item-box .img-box.no-person-img,
.p-benefit-report .item-box .no-person-img {
  display: block !important;
  aspect-ratio: 3 / 2;
  background: #f2f2f0;
}
