/**
 * Front page extra styles.
 *
 * @package AriawellTheme
 */

.consult-notice { margin: 0 0 12px; font-size: 14px; }
.consult-notice.is-success { color: #047857; }
.consult-notice.is-error { color: #b91c1c; }

/* reference-optimizer-user.css 내부 파싱 오류로 무효화된 section .container 규칙 복구 */
body.ms-main section > .container {
	width: 100%;
	max-width: 1520px;
	margin-left: auto;
	margin-right: auto;
}

body.ms-main .media-section > .container {
	max-width: 1820px;
}

body.ms-main .publication-section > .container,
body.ms-main .client-section > .container,
body.ms-main .introduction-section > .container {
	max-width: 1200px;
}

/* mincare CDN은 ielsos에서 핫링크 차단 → 24sos 원본 이미지 사용 */
.main-lawyer-section-pc {
	background-image: url(https://24sos.co.kr/web/upload/Rectangle3469976.png);
}

.main-lawyer-section-mo {
	background-image: url(https://24sos.co.kr/web/upload/Rectangle%203469993.png);
}

/* Cafe24 iframe 폼 영역과 동일한 폭·여백 */
.contact-section .custom-foot__counsel-content {
	width: 100%;
	max-width: 760px;
}

body.ms-main { background: #fff; opacity: 1 !important; }

/* JS 로드 전·실패 시에도 콘텐츠가 보이도록 기본 표시 */
body.ms-main .fade-up {
	opacity: 1;
	transform: none;
}

/* JS가 준비되면 스크롤 페이드인만 적용 */
body.ms-main.has-fade-up .fade-up:not(.active) {
	opacity: 0;
	transform: translateY(20px);
}

body.ms-main.has-fade-up .fade-up.active {
	opacity: 1;
	transform: translateY(0);
}

#wrap { min-height: auto; }

/* rem 기반 레이아웃 유틸은 원본 JS 없이 깨지므로 프론트 페이지에서 무력화 */
body.ms-main .wrap-medium {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* GNB 링크 앞뒤 공백·줄바꿈으로 헤더 높이가 2배로 늘어나는 현상 방지 */
.header__category > div > ul > li > a {
	white-space: nowrap;
}

/* 미사용 고정 UI (마크업 제거됨) */
.fixed-youtube,
.fixed-nav,
.fixed-menu,
.counsel__popup {
	display: none !important;
}

.success-cases-section .success-cases-list-date,
.success-cases-section .success-cases-list-result {
	line-height: 1.2;
}

@media (min-width: 1025px) {
	.success-cases-section .success-cases-list-date {
		width: 148px;
	}
}

@media (max-width: 1024px) {
	#board_container .boardList + .boardList {
		margin-top: 130px;
	}
}

/* client-count-card: 수직 정렬 시에도 PC와 동일한 카드 높이(350px) 유지 */
@media (max-width: 1040px) {
	.client-section .client-count-card-list {
		height: 350px;
		min-height: 350px;
		flex-shrink: 0;
	}
}

@media (max-width: 768px) {
	.client-section .client-count-card-list {
		height: 350px;
		min-height: 350px;
		max-height: 350px;
	}
}

