/* MODERN LINK STYLES - Card Design & Responsive */

/* Text & Background Utilities */
.t-red {
	color: #f56565 !important;
}

.t-blue {
	color: #4299e1 !important;
}

.t-green {
	color: #48bb78 !important;
}

.t-blue2 {
	color: #4299e1 !important;
}

.t-yell {
	color: #ed8936 !important;
}

.t-grey {
	color: #718096 !important;
}

.t-wh {
	color: #ffffff !important;
}

.t-bold {
	font-weight: 600 !important;
}

.bg-blue {
	background: #4299e1 !important;
}

.bg-red {
	background: #f56565 !important;
}

.bg-red1 {
	background: #e53e3e !important;
}

.bg-green {
	background: #48bb78 !important;
}

.bg-yell {
	background: #ed8936 !important;
}

.bg-indigo {
	background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%) !important;
}

.hiddens {
	display: inline-block !important;
	position: absolute;
	top: 0;
	left: 0;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0;
	line-height: 0;
	border: 0 !important;
	overflow: hidden !important;
	width: 1px;
	height: 1px;
	clip: rect(0, 0, 0, 0);
}

/* LINK MAIN - Modern Card Design */
.wrap-links {
	font-size: 1rem;
	padding: 0;
	box-sizing: border-box;
	background: transparent;
	margin-bottom: 30px;
}

.wrap-links > * {
	box-sizing: border-box;
}

.wrap-links h2,
.wrap-links-title {
	font-size: 1.6rem;
	letter-spacing: -0.5px;
	padding: 20px 0 15px;
	margin-bottom: 20px;
	font-weight: 700;
	border-bottom: 3px solid #e2e8f0;
	color: #2d3748;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	position: relative;
	justify-content: flex-start;
	flex-wrap: nowrap;
}

.wrap-links h2 i,
.wrap-links h2 svg,
.wrap-links-title i,
.wrap-links-title svg {
	color: #4299e1;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
}

.wrap-links h2 svg,
.wrap-links-title svg {
	width: 1.2em;
	height: 1.2em;
	vertical-align: middle;
}

/* 텍스트를 좌측 정렬 - h3처럼 */
.wrap-links h2,
.wrap-links-title {
	justify-content: flex-start;
}

.wrap-links h2 .link-title-text,
.wrap-links-title .link-title-text {
	display: inline-block;
}

.wrap-links h2 .home-btn,
.wrap-links-title .home-btn {
	margin-left: 0;
	flex-shrink: 0;
}

.wrap-links h2 .home-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: 0;
	float: none;
}

.wrap-links h2 .home-btn a {
	font-size: 1rem;
	margin: 0;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.wrap-links h2 .home-btn a:hover {
	background: rgba(66, 153, 225, 0.1);
	transform: scale(1.1);
}

.container-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.bx-links {
	box-sizing: border-box;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	margin: 0;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.bx-links:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	border-color: #cbd5e0;
}

.bx-links > * {
	box-sizing: border-box;
}

.bx-width {
	width: 100%;
}

.bx-links h3 {
	font-size: 1.1rem;
	min-height: 50px;
	background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
	line-height: 50px;
	padding: 0 50px 0 15px;
	font-weight: 600;
	border-bottom: none;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	letter-spacing: -0.3px;
	position: relative;
}

.bx-links h3 .box-number {
	position: absolute;
	left: 0;
	top: 0;
	width: 50px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.15);
	font-weight: 700;
	font-size: 1.2rem;
	color: #ffffff;
	flex-shrink: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bx-links h3 .box-title {
	flex: 1;
	text-align: left;
	padding: 0 15px;
}

.bx-links h3 .box-more {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
	color: rgba(255, 255, 255, 0.9);
	flex-shrink: 0;
}

.bx-links h3 .box-more i {
	font-size: 0.9rem;
}

.bx-links h3 .box-more:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	transform: translateY(-50%) scale(1.1);
}

.bx-links h3 .clearfix {
	display: none;
}

.bx-links h3 a {
	float: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	transition: all 0.2s ease;
	color: rgba(255, 255, 255, 0.9);
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.bx-links h3 a i {
	font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Pro', 'FontAwesome' !important;
	font-weight: 900 !important;
	font-style: normal;
	font-size: 1rem;
	display: inline-block;
	line-height: 1;
}

.bx-links h3 a:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	transform: translateY(-50%) scale(1.1);
	animation: none;
}

.bx-links ul {
	margin: 0;
	padding: 0;
	flex: 1;
}

.bx-links li {
	color: #4a5568;
}

.bx-links li a {
	display: block;
	padding: 12px 18px;
	border-bottom: 1px solid #f7fafc;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	color: #4a5568;
	transition: all 0.2s ease;
}

.bx-links li {
	position: relative;
}

.bx-links li a {
	padding-left: 50px;
}

.bx-links li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	margin-right: 8px;
	padding: 0;
	background: #edf2f7;
	text-align: center;
	color: #4a5568;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	flex-shrink: 0;
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.bx-links li span.bg-red1 {
	background: #e53e3e;
	color: #ffffff;
}

.bx-links li a:hover {
	background: #f7fafc;
	color: #4299e1;
	padding-left: 50px;
	text-decoration: none;
	animation: none;
}

.bx-links li:last-child a {
	border-bottom: none;
}

/* LINK MORE */
.container-linkme {
	padding: 20px 0;
}

.container-linkme ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.container-linkme li {
	box-sizing: border-box;
	font-weight: 500;
	color: #4a5568;
	font-size: 1rem;
}

.container-linkme li a {
	display: block;
	padding: 12px 16px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	transition: all 0.2s ease;
}

.container-linkme li a:before {
	content: '\f105';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-style: normal;
	margin-right: 8px;
	color: #cbd5e0;
	transition: all 0.2s ease;
	display: inline-block;
}

.container-linkme li a:hover {
	background: #f7fafc;
	border-color: #4299e1;
	color: #4299e1;
	text-decoration: none;
	transform: translateX(4px);
	animation: none;
}

.container-linkme li a:hover:before {
	color: #4299e1;
}

/* LINK ARTICLE */
.container-article {
	padding: 0;
	box-sizing: border-box;
}

.link-ac {
	display: block;
	width: 100%;
	text-align: center;
	padding: 30px 20px;
	margin: 25px 0;
	line-height: 1.6;
	border-radius: 16px;
	border: none;
	box-shadow: 0 4px 20px rgba(66, 153, 225, 0.2);
	color: #ffffff;
	box-sizing: border-box;
	background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
	transition: all 0.3s ease;
}

.link-ac:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(66, 153, 225, 0.3);
}

.link-ac li:first-child {
	font-size: 1.3rem;
	padding: 10px 15px 5px;
	font-weight: 600;
}

.link-ac li:first-child a {
	color: #ffffff;
	transition: opacity 0.2s ease;
}

.link-ac li:first-child a:hover {
	opacity: 0.9;
	text-decoration: none;
	animation: none;
}

.link-ac li:nth-of-type(2) {
	padding: 10px 15px;
	font-size: 2.5rem;
	animation: none;
	color: #ffffff;
	opacity: 0.95;
}

.link-ac li:last-child {
	font-size: 1rem;
	padding: 10px 15px;
	opacity: 0.9;
	line-height: 1.6;
}

.link-sns {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 30px auto;
}

.link-sns li {
	display: inline-block;
	margin: 0;
}

.link-sns li a {
	display: block;
	transition: transform 0.2s ease;
}

.link-sns li a:hover {
	transform: scale(1.15);
}

.link-sns li a img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s ease;
}

.link-sns li a:hover img {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wrap-linkcar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 25px 0;
}

.bx-linkcar {
	width: 100%;
}

.bx-linkwd {
	width: 100%;
	margin: 0;
}

.bx-linkwd:nth-child(2) {
	margin: 0;
}

.bx-linkside {
	width: 100%;
	margin: 0 auto;
	text-align: left;
}

.bx-linkcar h2 {
	font-size: 1.4rem;
	text-align: left;
	padding: 15px 20px;
	box-sizing: border-box;
	background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
	border-radius: 12px 12px 0 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	color: #ffffff;
	font-weight: 700;
	animation: none;
}

.bx-linkcar h3 {
	font-size: 1.2rem;
	padding: 15px 20px;
	box-sizing: border-box;
	border-bottom: 2px solid #e2e8f0;
	text-align: center;
	background: #f7fafc;
	color: #2d3748;
	font-weight: 600;
}

.bx-linkcar ul {
	margin: 0;
	padding: 15px;
	background: #ffffff;
	border-radius: 0 0 12px 12px;
	border: 1px solid #e2e8f0;
	border-top: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.bx-linkcar li {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	font-size: 1rem;
	letter-spacing: -0.3px;
	position: relative;
	padding: 0;
}

.bx-linkcar li:last-child {
	margin-bottom: 0;
}

.bx-linkcar li a {
	position: relative;
	display: block;
	flex: 1;
	padding: 10px 12px;
	left: 0;
	right: 0;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-bottom: 1px solid #f7fafc;
	color: #4a5568;
	transition: all 0.2s ease;
	border-radius: 6px;
	margin-left: 8px;
}

.bx-linkcar li a:hover {
	color: #4299e1;
	text-decoration: none;
	font-weight: 600;
	background: #f7fafc;
	padding-left: 16px;
}

.bx-linkcar li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	margin-right: 0;
	padding: 0;
	background: #edf2f7;
	text-align: center;
	color: #4a5568;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.bx-linkcar li span.bg-red1 {
	background: #e53e3e;
	color: #ffffff;
}

/* LINK INFORMATION */
.link-infos {
	font-size: 1rem;
	line-height: 1.8;
	color: #4a5568;
	letter-spacing: -0.3px;
	padding: 20px 0 30px;
}

.link-infos ul {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
}

.link-infos ul li:first-child {
	display: block;
	height: auto;
	min-height: 40px;
	border-bottom: 1px solid #e2e8f0;
	background: #f7fafc;
	padding: 12px 15px;
	font-weight: 600;
	color: #2d3748;
}

.link-infos ul li:nth-of-type(2) {
	padding: 15px;
	background: #ffffff;
	color: #4a5568;
	line-height: 1.8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
	.container-links {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 15px;
	}
	
	.wrap-linkcar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.wrap-links {
		padding: 0;
	}
	
	.wrap-links h2,
	.wrap-links-title {
		font-size: 1.3rem;
		padding: 15px 0 12px;
		flex-wrap: nowrap;
		align-items: center;
		gap: 8px;
		white-space: nowrap;
		overflow: hidden;
	}
	
	.wrap-links-title i,
	.wrap-links-title svg {
		flex-shrink: 0;
	}
	
	.wrap-links-title .link-title-text {
		flex-shrink: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
	.wrap-links h2 .home-btn {
		align-self: flex-end;
	}
	
	.container-links {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.bx-links {
		margin: 0;
	}
	
	.bx-links:nth-of-type(4n),
	.bx-links:nth-of-type(2n) {
		margin: 0;
	}
	
	.container-linkme {
		padding: 15px 0;
	}
	
	.container-linkme ul {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.container-linkme li {
		width: 100%;
		margin: 0;
	}
	
	.container-linkme li:nth-of-type(4n) {
		margin: 0;
	}
	
	.link-ac {
		width: 100%;
		padding: 25px 15px;
		margin: 20px 0;
	}
	
	.link-sns {
		margin: 20px auto;
	}
	
	.wrap-linkcar {
		flex-flow: column;
		gap: 15px;
	}
	
	.bx-linkwd {
		width: 100%;
		margin: 0;
	}
	
	.bx-linkcar h2 {
		font-size: 1.2rem;
		padding: 12px 15px;
	}
	
	.bx-linkcar h3 {
		font-size: 1.1rem;
		padding: 12px 15px;
	}
	
	.bx-linkcar ul {
		padding: 12px;
	}
	
	.bx-linkcar li a {
		font-size: 0.95rem;
		padding: 10px;
	}
}
