/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  법률광장 - GeneratePress Child Theme (서식자료실)
 Author:       법률광장
 Template:     generatepress
 Version:      1.1.0
 Text Domain:  generatepress-child
*/

.lgw_form_archive {
	margin: 0 auto;
	width: 100%;
}

.lgw_form_archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.lgw_form_archive__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e5e9;
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lgw_form_archive__card:hover {
	border-color: #b9c4d0;
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
	transform: translateY(-2px);
}

.lgw_form_archive__thumbnail {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f3f5f7;
	color: #4b5563;
	text-decoration: none;
}

.lgw_form_archive__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lgw_form_archive__thumbnail_placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

.lgw_form_archive__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.lgw_form_archive__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lgw_form_archive__category {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 3px 9px;
	background: #f1f5f9;
	border: 1px solid #dbe3eb;
	border-radius: 999px;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.lgw_form_archive__category:hover,
.lgw_form_archive__category:focus {
	background: #e8eef5;
	color: #1f2937;
	text-decoration: none;
}

.lgw_form_archive__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

.lgw_form_archive__title a {
	color: #111827;
	text-decoration: none;
}

.lgw_form_archive__title a:hover,
.lgw_form_archive__title a:focus {
	color: #1d4ed8;
	text-decoration: none;
}

.lgw_form_archive__description {
	margin: 0;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.65;
}

.lgw_form_archive__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: auto;
	padding-top: 4px;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}

.lgw_form_archive__pagination {
	margin-top: 30px;
}

.lgw_form_archive__pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lgw_form_archive__pagination li {
	margin: 0;
}

.lgw_form_archive__pagination a,
.lgw_form_archive__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 6px 11px;
	background: #fff;
	border: 1px solid #dbe3eb;
	border-radius: 6px;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.lgw_form_archive__pagination a:hover,
.lgw_form_archive__pagination a:focus,
.lgw_form_archive__pagination .current {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
	text-decoration: none;
}

.lgw_form_archive__empty {
	margin: 0;
	padding: 22px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #64748b;
	text-align: center;
}

@media (max-width: 1024px) {
	.lgw_form_archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.lgw_form_archive__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.lgw_form_archive__body {
		padding: 16px;
	}

	.lgw_form_archive__title {
		font-size: 18px;
	}
}

.lgw-criminal-category-page .lgw_form_archive,
.lgw-criminal-category-page .fa-wrap {
	display: none;
}

.lgw-criminal-form-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 980px;
	margin: 48px auto 64px;
	padding: 42px 34px;
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
	color: #1a1a2e;
	text-align: center;
}

.lgw-criminal-form-cta h2 {
	margin: 0;
	color: #0c2340;
	font-size: 30px;
	font-weight: 850;
	line-height: 1.3;
	letter-spacing: 0;
}

.lgw-criminal-form-cta p {
	max-width: 620px;
	margin: 14px 0 0;
	color: #5c6578;
	font-size: 16px;
	line-height: 1.75;
}

.lgw-criminal-form-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 24px;
	padding: 13px 20px;
	background: #0c2340;
	border-radius: 12px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.lgw-criminal-form-cta__button:hover,
.lgw-criminal-form-cta__button:focus {
	background: #2563eb;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 768px) {
	.lgw-criminal-form-cta {
		margin: 36px 18px 52px;
		padding: 32px 24px;
	}

	.lgw-criminal-form-cta h2 {
		font-size: 26px;
	}

	.lgw-criminal-form-cta__button {
		width: 100%;
		max-width: 280px;
	}
}

/* 서식 상세 페이지 */
.lgw_form_detail__downloads {
	margin-top: 2rem;
}

.lgw_form_detail__download_buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 0.75rem;
}

.lgw_form_detail__download_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 16px;
	background: #1f2937;
	border-radius: 8px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
}

.lgw_form_detail__download_button:hover {
	background: #111827;
	color: #fff !important;
}

.lgw_form_detail__faq {
	margin-top: 2rem;
}

.lgw_form_detail__faq_item {
	margin-bottom: 32px;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lgw_form_detail__faq_question {
	margin: 0 0 18px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.5;
	color: #111827;
}

.lgw_form_detail__faq_answer {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.9;
	color: #374151;
}

@media (hover: hover) and (min-width: 769px) {
	.lgw_form_detail__faq_item:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	}
}

.lgw_form_detail__related_cards {
	display: grid;
	gap: 0.875rem;
}

.lgw_form_detail__related_card {
	display: block;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 10px;
	color: #0c2340;
	text-decoration: none !important;
	box-shadow: 0 4px 18px rgba(12, 35, 64, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lgw_form_detail__related_card:hover {
	border-color: #cbd5e1;
	color: #0c2340;
	transform: translateY(-1px);
}

.lgw_form_detail__related_card_title {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
	line-height: 1.4;
}

.lgw_form_detail__related_card_excerpt {
	display: block;
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.6;
}

.lgw-footer-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 18px 16px 22px;
	background: #fff;
	border-top: 1px solid #e8ecf1;
	border-bottom: 1px solid #e8ecf1;
	color: #5c6578;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.lgw-footer-policy-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
	width: 100%;
	color: #5c6578;
	text-align: center;
}

.lgw-footer-policy-links a {
	color: #5c6578;
	font-weight: 600;
	text-decoration: none;
}

.lgw-footer-policy-links a:hover,
.lgw-footer-policy-links a:focus {
	color: #2563eb;
	text-decoration: none;
}

.lgw-footer-policy-links a + a::before {
	display: inline-block;
	margin-right: 12px;
	color: #cbd5e1;
	content: "|";
}

.lgw-footer-copyright {
	width: 100%;
	color: #6b7280;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}

@media (max-width: 480px) {
	.lgw-footer-layout {
		padding: 16px 14px 20px;
		font-size: 12px;
	}

	.lgw-footer-copyright {
		font-size: 12px;
	}
}

@media (max-width: 768px) {
	.single-post .inside-article {
		max-width: 100%;
		padding-right: 20px;
		padding-left: 20px;
	}

	.single-post .entry-content {
		max-width: 100%;
		color: #222;
		font-size: 18px;
		line-height: 1.9;
	}

	.single-post .entry-content p {
		margin-bottom: 28px;
	}

	.single-post .entry-title,
	.single-post .entry-content h1 {
		font-size: 32px;
		font-weight: 700;
		line-height: 1.3;
	}

	.single-post .entry-content h2 {
		margin-top: 56px;
		margin-bottom: 24px;
		font-size: 28px;
		font-weight: 700;
		line-height: 1.3;
	}

	.single-post .entry-content h3 {
		margin-top: 40px;
		margin-bottom: 16px;
		font-size: 22px;
		font-weight: 700;
		line-height: 1.35;
	}

	.single-post .entry-content ul,
	.single-post .entry-content ol {
		margin-left: 0;
		margin-bottom: 28px;
		padding-left: 24px;
	}

	.single-post .entry-content li + li {
		margin-top: 12px;
	}

	.single-post .entry-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.single-post .entry-content img {
		width: 100%;
		height: auto;
		border-radius: 12px;
	}

	.single-post .entry-content a {
		text-decoration: underline;
	}

	.single-post .entry-content blockquote {
		margin: 32px 0;
		padding: 20px 22px;
		background: #f8f9fb;
		border-left: 4px solid #2563eb;
		color: #222;
	}

	.single-post .entry-content .button,
	.single-post .entry-content .wp-block-button__link,
	.single-post .entry-content button,
	.single-post .entry-content input[type="button"],
	.single-post .entry-content input[type="submit"] {
		min-height: 48px;
	}

	.single-post .entry-content .ez-toc-container,
	.single-post .entry-content #ez-toc-container,
	.single-post .entry-content .lwptoc,
	.single-post .entry-content .toc,
	.single-post .entry-content .table-of-contents {
		padding: 20px;
	}

	.single-post .lgw_form_detail__faq_item {
		padding: 22px;
	}

	.single-post .lgw_form_detail__faq_question {
		margin-bottom: 16px;
	}

	.single-post .lgw_form_detail__faq_answer {
		line-height: 1.9;
	}
}
