/* ============================================================
   components.css : 여러 페이지에서 쓰는 블록
   섹션 제목 · 메인 제목 · 이미지 링크 박스 · 소개 블록(intro) · 카드 · 탭
   ============================================================ */

/***** 섹션 제목 *****/
.section_title {
	text-align: center;
	margin-bottom: 20px;
}
.section_title > h1 {
	font-size: 32px;
	font-weight: 700;
}
.section_title > p {
	margin-top: 15px;
	font-size: 16px;
	color: #a0a0a0;
}

@media (max-width: 768px) {
	.section_title > h1 {
		font-size: 24px;
	}
	.section_title > p {
		font-size: 14px;
	}
}


/***** 메인 제목 (solution, consulting, news) *****/
.main_title {
	text-align: center;
	margin-bottom: 50px;
}
.main_title h1 {
	font-size: 38px;
	font-weight: 700;
}
.main_title p {
	font-size: 16px;
	color: #666;
	margin-top: 15px;
}

@media (max-width: 768px) {
	.main_title h1 {
		font-size: 24px;
	}
	.main_title p {
		font-size: 14px;
	}
	.main_title {
		margin-bottom: 30px;
	}
}


/***** 제품 상세 소제목 (softice1, softice2) *****/
.page_title_img > h2 {
	font-size: 1.625rem; /* 기존 h1 크기 유지 */
}


/***** 이미지 링크 박스 (solution, consulting) *****/
.main_link {
	height: 400px;
	background-color: #fff;
	position: relative;
}
.main_link a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: inline-block;
	overflow: hidden;
}
.main_link a:after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	position: absolute;
	bottom: 0;
	left: 0;
	opacity: .5;
	z-index: 1;
}
.main_link:hover .main_link_img {
	transform: translate(-50%, -50%) scale(100%, 100%);
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}
.main_link_img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	border: 10px solid #528ce3;
	overflow: hidden;
	transform: translate(-50%, -50%) scale(120%, 120%);
	transition: all 0.25s cubic-bezier(0.65, 0, 0.076, 1);
}
.main_link_img.main_link-1 {
	background: url(../img/solution_intro_thum_01.webp) no-repeat center center;
	background-size: cover;
}
.main_link_img.main_link-2 {
	background: url(../img/solution_intro_thum_02.webp) no-repeat center center;
	background-size: cover;
}
.main_link_img.main_link-3 {
	background: url(../img/solution_intro_thum_03.webp) no-repeat center center;
	background-size: cover;
}
.main_link_img.main_link-4 {
	background: url(../img/solution_intro_thum_04.webp) no-repeat center center;
	background-size: cover;
}
.main_link_img.main_link-5 {
	background: url(../img/solution_intro_thum_05.webp) no-repeat center center;
	background-size: cover;
}
.main_link_img.main_link-6 {
	background: url(../img/solution_intro_thum_06.webp) no-repeat center center;
	background-size: cover;
}
.main_link_img.main_link-7 {
	background: url(../img/solution_intro_thum_07.webp?v=2) no-repeat center center;
	background-size: cover;
}
/* solution : 한 줄에 4개(4·3 배치). 카드가 좁아 글자를 조금 줄임 */
.compact_cards {
	grid-gap: 20px;
}
.compact_cards .main_link {
	height: 260px;
}
.compact_cards .main_link_text {
	height: 150px;
	padding: 0 22px;
}
.compact_cards .main_link_text .tit {
	font-size: 21px;
}
.compact_cards .main_link_text .desc {
	font-size: 13px;
	line-height: 1.5;
}
.main_link_text {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 160px;
	color: #fff;
	z-index: 10;
	padding: 0 30px;
}
.main_link_text > span {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 36px;
}
.main_link_text .tit {
	font-size: 26px;
	font-weight: 700;
	padding-bottom: 10px;
}
.main_link_text .desc {
	font-size: 14px;
}

@media (min-width: 1025px) and (max-width: 1239px) {
	/* 4개씩이면 카드가 너무 좁아지는 폭 : 한 줄에 3개 */
	.compact_cards .span-3 {
		grid-column: span 4;
	}
}
@media (max-width: 1024px) {
	.main_link {
		height: 300px;
	}
}
@media (max-width: 768px) {
	.main_link,
	.compact_cards .main_link {
		height: 220px;
	}
	.main_link_text .tit {
		font-size: 20px;
	}
}


/***** 소개 블록 (제품 · 컨설팅 상세) *****/
.solution_intro {
	display: block;
	position: relative;
	border-top: 1px solid #dedede;
}
.solution_intro:after {
	content: '';
	width: 100%;
	height: calc(100% - 280px);
	background: #f7f7f7;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: -1;
}
.intro_wrap {
	display: flex;
}
.intro_left {
	flex: 1;
}
.intro_logo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 400px;
	background-color: #fff;
	box-shadow: 15px 15px 0 rgb(0 0 0 / 5%);
}
.intro_right {
	flex: 1;
	padding-left: 50px;
}
.intro_desc {
	margin-top: 50px;
}
.intro_title > h3 {
	font-size: 1.5rem;
	font-weight: 700;
	padding-bottom: 60px;
}
.intro_title > h3 > span {
	font-weight: 300;
}
.intro_desc > p {
	font-size: 1.5rem;
	font-weight: 300;
	word-break: keep-all;
}

@media (max-width: 768px) {
	.intro_wrap {
		flex-direction: column;
	}
	.intro_logo {
		height: auto;
		min-height: 200px;
		padding: 20px;
	}
	.intro_right {
		padding: 24px 0 0;
	}
	.intro_title > h3 {
		font-size: 1.3rem;
		padding-bottom: 16px;
	}
	.intro_desc {
		margin-top: 0;
	}
	.intro_desc > p {
		font-size: 1.1rem;
	}
}


/***** 카드 (news) *****/
.card_wrap {
	position: relative;
	background: #fff !important;
	border-radius: 7px;
	overflow: hidden;
	height: 100%;
	box-shadow: 4px 12px 30px 6px rgb(0 0 0 / 9%);
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
}
.card_wrap:after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}
.card_wrap:hover {
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
	-webkit-transform: translateY(-5px);
	transform: translateY(-5px);
	-ms-transform: translateY(-5px);
	box-shadow: 4px 12px 20px 6px rgb(0 0 0 / 18%);
}
.card_wrap .card_img {
	position: relative;
	overflow: hidden;
}
.card_contents {
	position: relative;
	padding: 15px 15px;
	z-index: 1;
}


/***** 탭 (softice1) *****/
.tab-container {
	position: sticky;
	top: 100px;
	background: #ffffff;
	-webkit-box-shadow: 6px 8px 16px 0 rgb(0 0 0 / 10%);
	-moz-box-shadow: 6px 8px 16px 0 rgba(0, 0, 0, .1);
	box-shadow: 6px 8px 16px 0 rgb(0 0 0 / 10%);
	z-index: 10;
}
.tab-buttons {
	display: flex;
	justify-content: space-around;
	margin-bottom: 10px;
}
.tab-btn {
	flex: 1;
	position: relative;
	padding: 10px 20px;
	cursor: pointer;
	background-color: #f1f1f1;
	border: none;
	outline: none;
	transition: background-color 0.3s;
}
.tab-btn:hover {
	color: #fff;
	background: var(--color-point);
}
.tab-btn.active {
	color: #fff;
	background: var(--color-point);
}
.tab-content {
	display: none;
}
.tab-content.active {
	display: block;
}

@media (max-width: 1024px) {
	.tab-container {
		top: 64px;
	}
}
@media (max-width: 768px) {
	.tab-buttons {
		flex-wrap: wrap;
	}
	.tab-btn {
		flex: 1 1 50%;
	}
}
