/**
 * Resource detail page styles (product-template.php)
 *
 * Extracted from inline <style>. Hardcoded values preserved as-is to avoid
 * visual regressions; replace with :root variables in a follow-up pass.
 */

hr {
	margin-top: 20px;
	margin-bottom: 20px;
}

.numbered-list ol li:not(.post-item) {
	margin-bottom: 40px;
}

.resources-main-container .postthumb img {
	max-width: 300px;
}

.resources-content {
	width: 100%;
}

.resource-top-container {
	display: flex;
	max-width: 1150px;
	margin: auto;
	color: #111;
	gap: 50px;
}

.resource-top-area-content {
	width: 100%;
	max-width: 700px;
}

.resources-top-area-container {
	background-color: var(--primary-light);
	padding: 30px;
	gap: 30px;
	margin-bottom: 6rem;
}

.resource-title-area {
	margin-top: 2.5rem;
}

.resource-title {
	font-weight: 700;
	font-size: 2.2rem;
	margin-bottom: 0.5rem;
}

.resource-summary {
	font-weight: 400;
	font-size: 1.3rem;
	margin-bottom: 1.5rem;
}

#scroll-to-review {
	color: var(--primary);
	font-weight: bold;
}

.resources-top-area-slider {
	max-width: 450px;
	max-height: 350px;
	width: 100%;
}

.resources-top-area-slider img {
	max-height: 450px;
	margin: auto;
}

.resource-download-btn {
	background: var(--primary);
	color: #fff;
	padding: 0.6rem 2.5rem;
	display: inline-block;
	font-size: 1rem;
	border-radius: 0.5rem;
	font-weight: 500;
	cursor: pointer;
	margin-bottom: 0.5rem;
	border: 0;
	font-family: inherit;
	text-decoration: none;
}

.resource-download-btn:hover,
.resource-download-btn:focus {
	color: #fff;
	text-decoration: none;
}

.disc-notice-box {
	font-size: 1rem;
	color: #000;
	font-weight: 500;
	padding-left: 0.2rem;
}

.price-container {
	line-height: 1.1;
	bottom: 0px;
	position: relative;
}

.price-container.no-disc {
	bottom: -7px;
}

.original-price {
	color: #888;
	text-decoration: line-through;
}

.price-container.no-disc .discounted-price {
	font-size: 1.85rem;
}

.discounted-price {
	font-weight: bold;
	font-size: 2rem;
	color: #000;
}

.discount-span {
	color: #d40022;
	font-size: 0.7em;
	margin-left: 0.5rem;
}

.rating-box {
	color: #ffc200;
	font-size: 1.1rem;
	letter-spacing: 0.1rem;
}

.rating-download-count {
	font-size: 0.9rem;
}

.product-rating-area {
	margin-bottom: 1.5rem;
}

.resource-download-area {
	margin-bottom: 1.1rem;
}

.slider-item-container img {
	border-radius: 1rem;
}

.related-resources-container {
	margin-bottom: 4rem;
}

.related-resources-slider-container {
	max-width: 1050px;
	margin: auto;
	position: relative;
}

.slider-related-resources-arrow-box {
	position: absolute;
	top: 20%;
	z-index: 1;
}

.slider-related-resources-arrow-box.left {
	left: -1.5rem;
}

.slider-related-resources-arrow-box.right {
	right: -1.5rem;
}

.slider-related-resources-arrow {
	border: 1px solid #dfdfdf;
	width: 2.5rem;
	height: 2.5rem;
	text-align: center;
	display: flex;
	justify-content: center;
	flex-direction: column;
	border-radius: 100%;
	color: #111;
	background: #fff;
	opacity: 0.9;
	font-size: 1.1rem;
	cursor: pointer;
}

.slider-related-resources-arrow.slick-disabled {
	opacity: 0.15;
	cursor: default;
}

.related-resources-container .title {
	text-align: center;
	margin-bottom: 2rem;
	font-weight: 500;
	font-size: 1.5rem;
	color: #222;
}

.slick-related-resources-slider {
	width: 100%;
}

.related-resources-container a {
	color: #222;
	text-decoration: none;
}

.resources-content .wp-caption .wp-caption-text {
	font-size: 0.9rem;
	text-align: center;
}

.resources-detail-container div.title {
	font-size: 2.2rem;
	font-weight: 700;
	text-align: center;
	color: #111;
}

.resources-detail-container .sub-title {
	text-align: center;
	font-size: 1.3rem;
	line-height: 1em;
	font-weight: 100;
	color: #666;
}

.product-wrapper {
	display: flex;
	width: var(--max-w);
	margin: auto;
}

/* 막대 컨테이너 */
.title-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 1rem;
	margin-bottom: 1.5rem;
}

/* 막대 스타일 */
.bar {
	display: inline-block;
	height: 0.25rem;
	margin: 0 0.15rem;
}

/* 회색 막대 */
.bar.gray {
	width: 3rem;
	background-color: #ddd;
}

/* 브랜드 막대 */
.bar.blue {
	width: 5rem;
	background-color: var(--primary);
}

.resources-detail-container .detail-summary {
	text-align: center;
	font-size: 1.1rem;
	color: #111;
	font-weight: 400;
}

.detail-item {
	display: flex;
	max-width: 400px;
	margin: 1rem auto;
	font-size: 1.05rem;
}

.detail-item .type {
	color: #000;
	font-weight: 500;
	min-width: 8rem;
}

.detail-item .val {
	color: #666;
}

.detail-item .notice {
	line-height: 1.3em;
	font-weight: 500;
}

.fx-container,
.item-content pre.excel-fx {
	max-width: 750px;
	margin: auto;
	font-size: 1rem;
}

.fx-container .argument-item,
.fx-container .argument-name-box {
	display: flex;
	gap: 5px;
	margin-bottom: 0.5rem;
}

.fx-container .argument {
	font-weight: bold;
	font-style: italic;
	min-width: 6rem;
	width: 6rem;
}

.argument-optional {
	margin-right: 0.3rem;
}

.fx-container .argument-description-box {
	width: 100%;
}

.fx-container .detail-description {
	display: flex;
	gap: 5px;
	color: var(--text-secondary);
	font-style: italic;
	font-size: 0.9em;
}

.fx-container .detail-description ul {
	margin: 0 0 0.5rem 1rem;
}

.notice a {
	color: var(--primary-dark);
}

.status__bg {
	position: absolute;
	right: 0;
	left: 0;
	width: 100%;
	height: 35vh;
	transform: skewY(-5deg) translateY(3rem);
	background-image: linear-gradient(to left, #e0f1e7, #e9f1ed);
	transform-origin: top left;
	z-index: -1;
}

.resources-status-container {
	display: flex;
	margin: auto;
	margin-top: 12vh;
	margin-bottom: 16vh;
	max-width: 1150px;
}

.resources-status-item {
	flex: 1 1 0;
	padding-left: 3rem;
}

.title-box {
	display: flex;
	align-items: baseline;
	gap: 5px;
	font-size: 1.3em;
	font-weight: bold;
}

.resources-status-item .title.v-bar {
	line-height: 1em;
	border-left: 5px solid;
	padding-left: 0.75rem;
	border-image: linear-gradient(to bottom, #38a36a 0%, var(--primary) 100%) 1;
}

.resources-status-item .flex-box {
	align-items: center;
	gap: 10px;
	padding-left: 1.2rem;
}

.resources-status-item .desc-box .num {
	background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: 3.8em;
	font-weight: bold;
	line-height: 1.5em;
	transition: opacity var(--transition-slow);
}

.resources-status-item .desc-box .desc {
	color: #7d7d7d;
	font-size: 1.4em;
	font-weight: 500;
}

.resources-detail-container {
	margin: 2em auto 4em auto;
	max-width: 800px;
}

.resources-detail-container [id^=pagination_posts] {
	margin: 0px;
}

.resources-detail-container img {
	box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.15);
	border-radius: 0.5rem;
	cursor: pointer;
	-webkit-filter: brightness(100%);
}

.faq-container {
	margin-bottom: 3rem;
}

.resources-detail-container-item {
	margin: 2rem auto 4rem auto;
}

.resources-detail-container .faq-container .item-title {
	max-width: 950px;
	margin: auto;
	text-align: left;
}

.resources-detail-container .item-title {
	font-size: 1.5rem;
	text-align: center;
	font-weight: bold;
	margin-bottom: 0.5rem;
	margin-top: 2.5rem;
}

.resources-detail-container .item-content {
	max-width: 950px;
	margin: 1rem auto 3.5rem auto;
	font-size: 1rem;
}

.resources-detail-container .item-desc {
	text-align: center;
	margin: 0.5rem auto;
	font-size: 0.9rem;
}

.resources-detail-container .video-item {
	display: flex;
	margin: auto;
	justify-content: center;
	gap: 50px;
	max-width: 1050px;
	padding: 1rem 0px;
}

.video-item-container {
	transition: var(--transition-base);
}

.video-item-container a {
	text-decoration: none;
}

.resources-detail-container-item .video-item-container:hover {
	background-color: var(--primary-light);
}

.resources-detail-container-item .video-item .item-img-box img {
	max-width: 350px;
	border-radius: 0.5rem;
}

.video-item .item-content-box {
	width: 100%;
	margin-top: 0.5rem;
}

.content-title {
	font-size: 1.3rem;
	font-weight: 500;
	color: #111;
}

.content-desc {
	font-size: 1rem;
	color: #333;
	font-weight: 200;
}

.precautions-container {
	max-width: 1050px;
	margin: 2rem auto 1rem auto;
	display: flex;
	gap: 30px;
	font-size: 1.05rem;
}

.precautions-chk {
	font-size: 1.5rem;
	color: var(--primary);
	line-height: 1.3em;
}

.precautions-content {
	width: 100%;
}

.version-history-container {
	margin: 2rem auto;
	max-height: 25vh;
	scroll-behavior: auto;
	overflow-y: auto;
	max-width: 800px;
}

.version-history-container .history-row {
	display: flex;
	gap: 30px;
	max-width: 700px;
	margin: 1rem auto;
	font-size: 1.2rem;
	text-align: center;
	font-weight: 300;
	border-bottom: 1px solid #dfdfdf;
	padding-bottom: 1rem;
}

.history-row.header {
	font-weight: 500;
}

.version-history-container .col-ver,
.version-history-container .col-date {
	width: 10rem;
}

.version-history-container .col-desc {
	width: 100%;
	text-align: left;
}

.review-containter {
	max-width: 1300px;
	margin: auto;
}

@media only screen and (max-width: 999px) {
	.resources-contents-main {
		width: 100%;
	}

	#review #wpdcom {
		width: 100%;
	}

	.slider-related-resources-arrow-box {
		display: none;
	}

	.resources-top-area-slider {
		max-width: 350px;
		max-height: 250px;
	}

	.resources-detail-container,
	.related-resources-container {
		padding: 25px;
	}

	.resources-detail-container-item .video-item .item-img-box img {
		max-width: 350px;
	}
}

@media only screen and (max-width: 769px) {
	.resource-top-container {
		flex-direction: column-reverse;
		gap: 0px;
	}

	.resource-title-area {
		margin-top: 0.5rem;
	}

	.resources-top-area-slider {
		width: 100%;
		max-height: 100%;
		margin: auto;
	}

	.resources-top-area-container {
		margin-bottom: 4rem;
	}

	.resources-detail-container {
		margin: 2em auto;
	}

	.resources-status-container {
		display: block;
		margin-top: 8vh;
		margin-bottom: 12vh;
	}

	.resources-status-item {
		margin-bottom: 2rem;
		display: flex;
		align-items: center;
		gap: 30px;
		padding-left: 1rem;
	}

	.resources-status-item .title-box {
		width: 30%;
	}

	.item-img-box {
		text-align: center;
	}

	.resources-detail-container-item .video-item .item-img-box img {
		max-width: 100%;
	}

	.resources-detail-container .video-item {
		display: block;
	}

	.version-history-container .history-row {
		font-size: 1rem;
	}

	#review {
		padding: 0px 25px;
	}
}
