@charset 'utf-8';

/******************************** 게시글 read 페이지 공통 스타일  ********************************/
.read-hero {
	color: #fff;
	padding: 4rem 0 3rem;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	color: #ffffff;
	position: relative;
}

.read-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	/* top:0; right:0; bottom:0; left:0 */
	background: rgba(0, 0, 0, 0.65);
	/* 어두운 오버레이 */
	z-index: 1;
	pointer-events: none;
}

.read-hero .container-xxxl,
.read-hero .read-header,
.read-hero .read-breadcrumb {
	position: relative;
	z-index: 2;
}

@media (max-width: 768px) {
	.read-hero {
		padding: 2.5rem 0 2rem;
	}

	.read-title {
		font-size: 1.2rem;
		line-height: 1.4;
	}

	.read-meta {
		gap: 10px;
		align-items: flex-start;
	}

	.read-meta span:not(.badge) {
		font-size: 0.85rem;
	}
}

.read-breadcrumb {
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.read-breadcrumb ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
}

.read-breadcrumb li {
	display: flex;
	align-items: center;
}


.read-breadcrumb li+li::before {
	content: "\F285";
	/* Bootstrap Icon: chevron-right */
	font-family: "bootstrap-icons";
	font-size: 0.7rem;
	margin: 0 10px;
	color: #adb5bd;
}

.read-breadcrumb a {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.2s;
}

.read-breadcrumb a:hover {
	color: var(--theme-primary);
	text-decoration: underline;
}

.read-breadcrumb li[aria-current="page"] {
	color: #fff;
	font-weight: 600;
}

.read-title {
	font-size: var(--fz-xl);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.35;
	margin-bottom: 1.5rem;
	word-break: normal;
	letter-spacing: -0.03em;
}

.read-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	/* 요소 간 간격 */
	margin-top: 1.5rem;
}

.badge-dark {
	background: #1d4585d9 !important;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	font-size: .85rem;
	line-height: 1;
	padding: .35rem .6rem;
	border-radius: 999px;
}

/********************* 5: 2 layout *********************/
.read_layout {
	display: flex;
	gap: 1rem;
	flex-wrap: nowrap;
}

.read_layout_left {
	flex: 3;
	padding-top: 1rem;
}

.read_layout_right {
	flex: 1;
	position: relative;
	overflow: visible;
	min-height: 0;
}

.read_layout_right .floating_box {
	position: sticky;
	top: calc(5rem + 1.5rem);
	bottom: 0;
	/* max-height: calc(100vh - (5rem + 1.5rem)); */
	overflow-x: visible !important;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE, Edge */
	padding: 1rem 1rem 2rem;
}

.floating_box::-webkit-scrollbar {
	display: none;
	/* Chrome, Safari, Opera */
}

@media (max-width: 992px) {
	.read_layout {
		flex-direction: column;
		margin-bottom: 2rem;
	}

	.read_layout_left,
	.read_layout_right {
		flex: 1 1 100%;
		width: 100%;
	}

	.read_layout_right .floating_box {
		position: static;
		max-height: none;
		top: auto;
		padding: 0 !important;
	}

	.read_layout_right .floating_box>* {
		box-shadow: none !important;
		border: 1px solid var(--color-border-subtle) ;
	}
}

/********************* right side card style *********************/
.rel_card {
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
	/* border: 1px solid rgba(0, 85, 0, 0.25); */
	padding: 1rem;
	box-shadow: 0 6px 18px rgba(0, 85, 0, 0.12);
	margin-bottom: 1rem;
}

.rel_card .rel_card_title {
	font-size: var(--fz-md);
	font-weight: 600;
	margin-bottom: 1rem;
	color: #050;
}

.rel_card ul,
.rel_card ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rel_card li {
	display: flex;
	padding: .5rem .9rem;
	position: relative;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	/* border-radius: var(--radius-sm); */
	margin-bottom: .8rem;
	transition: all 0.2s ease;
	/* overflow:hidden; */
}

.rel_card a {
	text-decoration: none;
	color: var(--color-text-main);
	width: 100%;
	font-size: var(--fz-tn);
}

.rel_card li:after {
	content: "";
	position: absolute;
	right: -3px;
	top: -3px;
	width: 1rem;
	border-top: 3px solid #050;
	border-right: 3px solid #050;
	height: 1rem;
}

/* hover */
.rel_card li:hover {
	background: #f0fdf4;
	border-color: #050;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 85, 0, 0.15);
}

.rel_card .badge-soft {
	margin-bottom: .5rem;
}


/************ 본문 ************/
.read_article {
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
	border: 1px solid var(--color-border-subtle);
	overflow: hidden;
}

/************ listing ************/
.listing_section {
	margin-top: 3rem;
	padding-top: 2rem;
	max-width: 100%;
}

.listing_header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.listing-title {
	font-size: var(--fz-lg);
	font-weight: 700;
	color: var(--color-text-main);
}

.listing_table {
	overflow: hidden;
	table-layout: fixed;
}

.list-date {
	font-size: var(--fz-sm);
	color: var(--color-text-sub);
	white-space: nowrap;
	min-width: 100px;
	text-align: right;
	margin-left: auto;
}

.listing_section .list-row {
	transition: background-color 0.2s ease;
}

.listing_section .current-row {
	background-color: rgba(74, 105, 189, 0.08);
	border-top: 2px solid var(--theme-primary);
	border-bottom: 2px solid var(--theme-primary);
}

.listing_table {
	width: 100%;
	margin-bottom: 0;
	background-color: var(--color-surface);
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-lg);
}


.list-row:not(:last-child) .list-cell {
	border-bottom: 1px solid var(--color-border-subtle) !important;
}

.list-row:hover:not(.current-row) {
	background-color: rgba(74, 105, 189, 0.03);
}

.list-cell {
	padding: 0;
	border: none;
}

.list-link,
.list-current {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: inherit;
}

.list-link:hover {
	text-decoration: none;
}

.list-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	background-color: var(--theme-dark);
	color: #fff;
	font-size: var(--fz-sm);
	font-weight: 600;
	white-space: nowrap;
	min-width: 80px;
}

.list-title-text {
	flex: 1;
	font-size: var(--fz-md);
	font-weight: 500;
	color: var(--color-text-main);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
	display: inline-block;
}

.list-date {
	font-size: var(--fz-sm);
	color: var(--color-text-sub);
	white-space: nowrap;
	min-width: 100px;
	text-align: right;
	margin-left: auto;
}

/* 현재 글 강조 스타일 */
.current-row {
	background-color: rgba(74, 105, 189, 0.08);
	border-top: 2px solid var(--theme-primary);
	border-bottom: 2px solid var(--theme-primary);
}

.current-cell {
	position: relative;
	border: none;
}

.list-current {
	font-weight: 600;
}

.current-badge {
	background-color: var(--theme-primary);
}

.current-title {
	font-weight: 700;
	color: var(--theme-primary);
}

.current-indicator {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	background-color: var(--theme-primary);
	color: #fff;
	font-size: var(--fz-sm);
	font-weight: 700;
	white-space: nowrap;
	margin-left: auto;
}

@media (max-width: 768px) {
	.listing-title {
		font-size: var(--fz-lg);
		margin-bottom: 0;
	}

	.link_to_list_page {
		font-size: var(--fz-sm) !important;
		padding: 0.4rem 0.8rem !important;
	}

	.list-cell * {
		font-size: var(--fz-sm);
		display: inline-block;
		vertical-align: bottom;
	}

	.list-link,
	.list-current {
		display: block;
		padding: 0.4rem;
	}

	.list-title-text {
		white-space: normal;
		line-height: 1.4;
		margin: .5rem 0;
		display: block;
	}

	.list-date {
		min-width: auto;
		float: right;
		line-height: 2;
	}

	.current-indicator {
		margin-left: 0;
		margin-top: 0.25rem;
	}
}


/* Redefine consult-box for column-right */
/* .side-consult-box {
	border: 1px solid rgba(29, 69, 133, 0.25);
	border-radius: var(--radius-lg);
	padding: 1rem;
	background: #ffffff;
	width: 100%;
	box-shadow: 0 6px 18px rgba(29, 69, 133, 0.12);
	margin-bottom: 1rem;

}

#side-consult-title {
	font-size: var(--fz-lg);
	font-weight: 600;
	color: #1d4585;
	margin-bottom: 1.5rem;
}

.side-consult-desc {
	font-size: var(--fz-sm);
	color: #1d4585;
	opacity: 0.9;
	line-height: 1.65;
}

.side-consult-methods {
	flex: 1;
	gap: 1rem;
	display: flex;
	flex-direction: column;
}

.side-method-item {
	padding: 1.5rem;
	border-radius: var(--radius-md);
	;
	background: #f4f8ff;
	border: 1px solid rgba(29, 69, 133, 0.25);
	transition: all 0.3s ease;
	overflow: hiadden;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.side-method-item:hover {
	background: #e8f1ff;
	transform: translateY(-4px);
	box-shadow: 0 8px 22px rgba(29, 69, 133, 0.28);
}

.side-method-item h3 {
	font-size: var(--fz-md);
	color: #1d4585;
	font-weight: 700;
	margin-bottom: 0.35rem;
	text-align: start;
}

.side-method-item p {
	font-size: var(--fz-sm);
	color: rgba(29, 69, 133, 0.9) !important;
	margin-bottom: 0;

	text-align: start;
}

.side-method-item .side-method-sub {
	font-size: var(--fz-sm);
	color: rgba(29, 69, 133, 0.9);
	margin-bottom: 0;
}
 */
@media (max-width: 768px) {
	.side-consult-box {
		display: none;
	}

	.side-consult-inner {
		flex-direction: column;
	}

	.side-consult-methods {
		grid-template-columns: 1fr;
	}

	.side-method-icon {
		display: none;
	}
}

/* ===== floating consult box ===== */
.side-consult-box {
	/* position: fixed;
	right: 24px;
	bottom: 24px; */
	background: #ffffff;
	border-radius: 14px;
	border-top: 4px solid #1f6fff;
	z-index: 9999;
	margin-bottom: 1rem;
	box-shadow: 0 6px 18px rgba(31, 111, 255, 0.12);
}

.side-consult-inner {
	padding: 20px 18px 18px;
}

/* ===== title ===== */
#side-consult-title {
	font-size: var(--fz-md);
	font-weight: 700;
	color: #1f6fff;
	margin-bottom: 0.5rem;
}

/* ===== form labels ===== */
.side-consult-box .form-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: #374151;
}

/* ===== inputs ===== */
.side-consult-box .form-control {
	border-radius: 8px;
	border: 1px solid #e5e9f0;
	font-size: 0.8rem;
	padding: 6px 10px;
}

.side-consult-box .form-control:focus {
	border-color: #1f6fff;
	box-shadow: 0 0 0 2px rgba(31, 111, 255, 0.15);
}

/* textarea 높이 안정 */
.side-consult-box textarea.form-control {
	resize: vertical;
	min-height: 70px;
}

/* ===== privacy button ===== */
.side-consult-box .btn-secondary {
	background: #f3f6fb;
	border: 1px solid #e5e9f0;
	color: #4b5563;
	font-size: 0.75rem;
}

.side-consult-box .btn-secondary:hover {
	background: #e9eef9;
	color: #1f6fff;
}

/* ===== checkbox ===== */
.side-consult-box .form-check-label {
	color: #4b5563;
	line-height: 1.4;
}

/* ===== submit button ===== */
.side-consult-box .btn-primary {
	background: #1f6fff;
	border: none;
	border-radius: 10px;
	font-size: 0.9rem;
	padding: 10px 0;
	letter-spacing: -0.01em;
}

.side-consult-box .btn-primary:hover {
	background: #1558cc;
}

/* ===== mobile 대응 ===== */
@media (max-width: 768px) {
	.side-consult-box {
		right: 12px;
		left: 12px;
		width: auto;
		bottom: 12px;
	}
}


/* (옵션) 만약 :has 지원 안 하는 구형 브라우저(IE 등)까지 고려해야 한다면 */
/* 제목(h3) 바로 뒤에 나오는 ul 안의 li를 선택하는 차선책 */
.ql-editor h3+ul li {
	margin-bottom: 10px !important;
}



/***************** 각종 리드 신청 폼(상담 신청 말고) *****************/
.board-consult-form {
	display:flex;
	flex-direction: column;
	align-items: stretch;
}
.law-wrapper {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
	background-color: var(--law-bg-section);

	display: flex;
	justify-content: center;
	align-items: flex-start;
	box-sizing: border-box;
	border-radius: var(--radius-lg);
}

.law-consult-box {
	width: 100%;
	background-color: #ffffff;
	padding: 2rem 1.5rem;

	border: 1px solid var(--law-border);
	border-top: 5px solid var(--color-primary) !important;
	box-shadow: 0 10px 25px rgba(15, 31, 62, 0.08);
	border-radius: var(--radius-lg);
}
@media (max-width: 992px) { 
	.law-consult-box {
		display:none;
	}
}
.law-wrapper .btn {
	max-width:100%;
}
.law-consult-box h4 {
	font-size: var(--fz-md	);
	font-weight: 700;
	color: var(--color-text-main);
	text-align: center;
	margin-bottom: 1rem !important;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--law-border);
	letter-spacing: -0.5px;
	line-height: 1.4;	
}

.law-consult-box .form-label {
	font-weight: 600;
	color: var(--law-text-main);
	font-size: 0.95rem;
}

.law-consult-box .form-control {
	height: 2.5rem;
	border-radius: 0;
	border: 1px solid #ccc;
	padding: 0 15px;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.law-consult-box .form-control:focus {
	border-color: var(--color-text-main);
	box-shadow: none;
	outline: 1px solid var(--color-text-main);
}

.law-consult-box .form-check-input:checked {
	background-color: #000;
	border-color: #000;
}
#r_case_consult_submit_btn {
	position: relative;
	padding: 14px;
	border-radius: 50px;background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	border: 1px solid #2563eb;
	box-shadow: 0 0 12px rgba(37, 99, 235, 0.6), inset 0 0 12px rgba(37, 99, 235, 0.2);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#r_case_consult_submit_btn:hover {
	/* Brighter gradient on hover */
	background: linear-gradient(135deg, #10214e, #20448c);
	border-color: #60a5fa;
	/* Intense glow effect */
	box-shadow: 0 0 28px rgba(59, 130, 246, 0.85), inset 0 0 15px rgba(59, 130, 246, 0.4);
	transform: translateY(-2px) scale(1.02);
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
@media (max-width: 992px) {
	.law-wrapper {
		padding: 40px 20px;
	}
}

@media (max-width: 576px) {
	.law-wrapper {
		padding: 0;
		background-color: #fff;
	}

	.law-consult-box {
		max-width: 100%;
		padding: 30px 20px;
		box-shadow: none;
		/* border: none; */
	}

	.law-consult-box h4 {
		font-size: 1.4rem;
		margin-bottom: 25px !important;
	}
}


/* ************************게시글 안의 상담 신청 란************************ */
.inline-consult-banner-wrapper {
	width: 100%;
	max-width: 100%;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
	box-sizing: border-box;
}

.inline-consult-banner-container {
	display: flex;
	flex-direction: column;
	background-color: #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.inline-consult-title {
	background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
	color: #ffffff;
	padding: 1rem 2rem;
	min-width: 220px;
	position: relative;
	display: flex;
}
.inline-consult-title {
	font-size: var(--fz-lg);
	font-weight: 700;
	opacity: 0.9;
	line-height: 1;
}

.inline-consult-phone {
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: -0.5px;
}

.inline-consult-form-area {
	flex: 1;
	display: flex;
	flex-direction:row;
	flex-wrap:wrap;
	align-items: center;
	padding: 2rem 20px;
	gap: 15px;
}

.inline-consult-inputs-grid {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 15px 20px;
	align-items: center;
	min-width: 0;
}

.inline-consult-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 235px; /* Minimum width 235px, grow to fill space */
	min-width: 0;
}

.inline-consult-input-group label {
	color: #2c3e50;
	font-weight: 600;
	font-size: var(--fz-md);
	white-space: nowrap;
		width: 70px;
		text-align: center;
		margin-bottom: 0;
}

.inline-consult-input-group input[type="text"],
.inline-consult-input-group select {
	background-color: #fff;
	border: 1px solid #bdbdbd;
	color: #fff;
	padding: 8px 12px;
	font-size: 14px;
	border-radius: 2px;
	width: 100%;
	outline: none;
	transition: border 0.2s;
	border-radius: .5rem;
}

.inline-consult-input-group input:focus,
.inline-consult-input-group select:focus {
	border-color: #6c8ecf;
}

/* 개인정보 동의 체크박스 */
.inline-privacy-check {
	display: flex;
	align-items: center;
	gap: 6px;
}

.inline-consult-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	flex: 1 1 100%;
	width: 100%;
	margin-top: 10px;
}

.inline-privacy-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #fff;
}

.inline-privacy-check label {
	color: var(--color-text-main);
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

/* 5. 버튼 스타일 */
.inline-btn-consult-submit {
	background:linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
	color: #fff;
	padding: 0 3rem;
	height: 40px;
	font-weight: 700;
	font-size: var(--fz-md);
	cursor: pointer;
	border-radius: 2px;
	white-space: nowrap;
	transition: background 0.2s;
}

.inline-btn-consult-submit:hover {
	background-color: #1a325e;
	border-color: #666;
}

/* PC/모바일 버튼 분기 처리 */
.inline-mobile-only {
	display: none;
}


/* ----------------------------------------------------------------
       [반응형 처리: 모바일 & 좁은 화면]
       - 800px 이하부터 레이아웃 변경 (Stack 구조)
    ---------------------------------------------------------------- */
@media (max-width: 768px) {
	.inline-consult-banner-container {
		flex-direction: column;
		/* 세로 배치 */
	}

	/* 왼쪽 정보 영역: 상단으로 이동하며 얇아짐 */
	.inline-consult-info-area {
		width: 100%;
		padding: 15px;
		flex-direction: row;
		/* 가로 배치 (타이틀 - 전화번호 - 버튼) */
		justify-content: space-between;
		box-sizing: border-box;
	}

	.inline-consult-info-area::before {
		width: 100%;
		height: 4px;
		left: 0;
		top: 0;
		bottom: auto;
		/* 상단 바로 변경 */
	}

	.inline-consult-title {
		margin-bottom: 0;
	}

	.inline-consult-phone {
		font-size: 18px;
	}

	/* 폼 영역 */
	.inline-consult-form-area {
		width: 100%;
		padding: 2rem 20px;
		box-sizing: border-box;
	}

	.inline-consult-inputs-grid {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	/* 모바일에서 인풋 스타일 */
	.inline-consult-input-group {
		width: 100%;
		display: flex;
		/* 라벨과 인풋을 가로로 유지 */
		justify-content: space-between;
		flex: 1 1 235px; /* Minimum width 235px, can grow */
	}

	.inline-consult-input-group label {
		width: 70px;
		/* 라벨 너비 고정 */
	}

	.inline-consult-input-group input[type="text"],
	.inline-consult-input-group select {
		flex: 1;
		/* 남은 공간 꽉 채움 */
		width: auto;
	}

	.inline-privacy-check {
		width: 100%;
		justify-content: flex-end;
		/* 오른쪽 정렬 */
		margin-top: 5px;
	}

	.inline-consult-actions {
		width: 100%;
		align-items: flex-end;
		flex-basis: 100%;
	}

	/* 버튼 처리 */
	.inline-pc-only {
		display: none;
	}

	/* PC 버튼 숨김 */
	.inline-mobile-only {
		display: block;
		height: 32px;
		font-size: 13px;
		padding: 0 15px;
		margin-left: 10px;
	}

	/* 모바일 상단바에 버튼 넣기 위해 */
	.inline-consult-btn-mobile-wrapper {
		display: block;
	}
}

/* 더 작은 모바일 (400px 이하) - 전화번호/버튼 겹침 방지 */
@media (max-width: 400px) {
	.inline-consult-info-area {
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		text-align: center;
	}

	.inline-consult-title {
		width: 100%;
		margin: 0;
	}
}