/**
 * Success case archive layout fixes.
 *
 * @package AriawellTheme
 */

body.ms-case-list {
	background: #fff;
}

body.ms-case-list #header {
	position: sticky;
}

body.ms-case-list #main-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ms-case-list .container.wrap-medium {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ms-case-list .wrap-medium {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ms-case-list .main-contents-inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

body.ms-case-list .default-container {
	padding: 120px 20px;
}

body.ms-case-list .menuCategory {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin: 80px auto;
	padding: 0 20px;
	max-width: 1200px;
	list-style: none;
}

body.ms-case-list .menuCategory > li > a {
	display: block;
	padding: 15px 22px;
	border: 1px solid #111;
	border-radius: 99px;
	font-weight: 500;
	font-size: 18px;
	color: #1c2630;
	letter-spacing: -0.01em;
	line-height: 1.2em;
	text-decoration: none;
	transition: 0.3s;
}

body.ms-case-list .menuCategory > li.selected > a,
body.ms-case-list .menuCategory > li > a:hover {
	background: #1c2630;
	border-color: #1c2630;
	color: #fff;
}

body.ms-case-list .case__list {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

body.ms-case-list .case__list-cont {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.ms-case-list .case-item > article {
	display: contents;
}

body.ms-case-list .case-archive-empty {
	margin-top: 12px;
	padding: 48px 20px;
	border-radius: 8px;
	background-color: #f8f9fa;
	color: #666;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
}

body.ms-case-list .case-item {
	border-bottom: none;
	border-radius: 8px;
	background-color: #f8f9fa;
	padding-top: 18px;
	padding-bottom: 18px;
}

body.ms-case-list .case-item .item-flex .disposition-desc {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 4px;
	background-color: #f7e6e6;
	color: #ca6464;
	font-weight: 600;
}

body.ms-case-list .case-item .penalty > .con {
	display: block;
	padding: 0;
	border: 0;
	border-radius: 0;
	line-height: inherit;
	color: inherit;
	font-weight: inherit;
	background: transparent;
}

body.ms-case-list .ms-paginate {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 100px auto 0;
	padding: 0 20px 120px;
	max-width: 1200px;
}

body.ms-case-list .ms-paginate > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 35px;
	font-size: 0;
}

body.ms-case-list .ms-paginate > a svg {
	width: 22px;
	height: 22px;
	stroke: #6d747b;
}

body.ms-case-list .ms-paginate > ol {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ms-case-list .ms-paginate > ol > li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	text-decoration: none;
}

body.ms-case-list .ms-paginate > ol > li a.this {
	background: #2a2d2b;
	color: #fff;
	border-radius: 50%;
}

#contact-section.default-container.main-page-none {
	display: block !important;
}

@media all and (max-width: 1023px) {
	body.ms-case-list .default-container {
		padding: 70px 16px 0;
	}

	body.ms-case-list .menuCategory {
		margin: 40px auto 32px;
		gap: 8px;
		padding: 0 16px;
	}

	body.ms-case-list .menuCategory > li > a {
		padding: 12px 18px;
		font-size: 16px;
	}

	body.ms-case-list .case__list {
		padding: 0 16px;
	}

	body.ms-case-list .case__list-head {
		display: none;
	}

	body.ms-case-list .case__list-cont {
		margin-top: 0;
		gap: 10px;
	}

	body.ms-case-list .case-item {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		position: relative;
		box-sizing: border-box;
		width: 100%;
		padding: 20px 12px 18px 120px;
		font-size: 14px;
		line-height: 1.4;
		color: #666;
	}

	body.ms-case-list .case-item .item-flex {
		display: flex;
		align-items: flex-start;
		width: 100%;
	}

	body.ms-case-list .case-item .item-flex .tit {
		display: block;
		flex: 0 0 100px;
		width: 100px;
		font-weight: 600;
		font-size: 14px;
		color: #111;
	}

	body.ms-case-list .case-item .item-flex .con {
		flex: 1;
		min-width: 0;
		text-align: left !important;
		word-break: keep-all;
		overflow-wrap: anywhere;
	}

	body.ms-case-list .case-item > div:not(.thumb):not(.case-document-thumb) {
		padding: 10px 0;
		border-bottom: 1px solid #ddd;
	}

	body.ms-case-list .case-item .argument .con {
		display: block;
	}

	body.ms-case-list .case-item .argument-desc {
		width: 100%;
	}

	body.ms-case-list .case-item .name {
		order: 1;
	}

	body.ms-case-list .case-item .argument {
		order: 2;
	}

	body.ms-case-list .case-item .penalty {
		order: 3;
	}

	body.ms-case-list .case-item > .item-flex:last-child {
		order: 4;
		padding-top: 12px;
		border-bottom: 0;
	}

	body.ms-case-list .case-item .argument-btn {
		display: flex;
		gap: 10px;
		width: 100%;
		padding: 0;
	}

	body.ms-case-list .case-item .argument-btn > a {
		display: block;
		width: 50%;
		max-width: 200px;
		margin-bottom: 0 !important;
		line-height: 27px;
		border-radius: 3px;
		background-color: #231f20;
		color: #fff;
		font-weight: 600;
		text-align: center;
		text-decoration: none;
	}

	body.ms-case-list .ms-paginate {
		margin-top: 60px;
		padding-bottom: 80px;
	}
}

@media all and (max-width: 660px) {
	body.ms-case-list .default-container {
		padding-top: 60px;
	}

	body.ms-case-list .subpage-top-title {
		font-size: 32px;
	}

	body.ms-case-list .menuCategory {
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin: 32px auto 24px;
		padding: 0 16px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.ms-case-list .menuCategory::-webkit-scrollbar {
		display: none;
	}

	body.ms-case-list .menuCategory > li > a {
		margin-bottom: 2px;
		padding: 8px 15px;
		font-size: 14px;
		white-space: nowrap;
	}

	body.ms-case-list .case__list {
		padding: 0 16px;
	}

	body.ms-case-list .case__list-cont {
		gap: 8px;
	}

	body.ms-case-list .case-item {
		padding: 16px 12px 16px 120px;
		font-size: 13px;
	}

	body.ms-case-list .case-item .item-flex {
		flex-direction: column;
	}

	body.ms-case-list .case-item .item-flex .tit {
		width: 100%;
		flex: none;
		margin-bottom: 5px;
		font-size: 13px;
	}

	body.ms-case-list .case-item .item-flex .con {
		width: 100%;
	}

	body.ms-case-list .case-item > div.penalty {
		padding-top: 0;
		border-bottom: 0;
	}

	body.ms-case-list .case-item .argument-btn {
		gap: 5px;
	}

	body.ms-case-list .case-item .argument-btn > a {
		line-height: 24px;
		font-size: 13px;
	}

	body.ms-case-list .case-item .thumb.case-document-thumb {
		top: 16px;
		width: 90px;
	}

	body.ms-case-list .case-item .thumb.case-document-thumb > figure {
		width: 90px;
		margin-bottom: 8px;
	}

	body.ms-case-list .case-item .thumb.case-document-thumb .show {
		line-height: 28px;
	}

	body.ms-case-list .ms-paginate {
		margin-top: 48px;
		margin-bottom: 80px;
	}
}
