/* MSN Theme CSS - Modern Microsoft Design */
.dn{ display: none; }

body {
	word-break: keep-all;
	white-space: normal;
	font-family: 'Segoe UI', 'Noto Sans KR', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	padding-bottom: 60px;
	margin: 0;
}

:root {
	/* MSN Color Palette */
	--primary-color: #0078d4; /* Microsoft Blue */
	--secondary-color: #106ebe;
	--accent-color: #ff8c00; /* MSN Orange */
	--background-color: #f3f2f1;
	--text-color: #323130;
	--card-background: #ffffff;
	--border-color: #edebe9;
	--hover-color: #005a9e;
	--success-color: #107c10;
	--danger-color: #d83b01;
	--warning-color: #ffb900;
	--info-color: #5c2d91;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* MSN Style Header */
.msn-header {
	background: linear-gradient(90deg, #0078d4 0%, #40e0d0 100%);
	color: white;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: relative;
}

.msn-header-top {
	background: #0078d4;
	padding: 8px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.msn-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.msn-logo-icon {
	width: 24px;
	height: 24px;
	background: white;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #0078d4;
}

.msn-title {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.5px;
}

/* MSN Navigation Tabs */
.msn-nav-tabs {
	background: rgba(255,255,255,0.95);
	padding: 0 20px;
	display: flex;
	gap: 0;
	overflow-x: auto;
	border-bottom: 1px solid #edebe9;
}

.msn-nav-tabs a {
	padding: 12px 20px;
	color: #323130;
	font-size: 14px;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.msn-nav-tabs a:hover {
	background: #f3f2f1;
	color: #0078d4;
	border-bottom-color: #0078d4;
}

.msn-nav-tabs a.active {
	color: #0078d4;
	border-bottom-color: #0078d4;
}

/* Container */
.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

/* MSN Style Cards */
.card {
	background: white;
	border-radius: 8px;
	box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.132), 0 0.3px 0.9px 0 rgba(0,0,0,.108);
	padding: 0;
	margin-bottom: 20px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.card:hover {
	box-shadow: 0 3.2px 7.2px 0 rgba(0,0,0,.132), 0 0.6px 1.8px 0 rgba(0,0,0,.108);
}

.card h2 {
	background: linear-gradient(90deg, #0078d4 0%, #106ebe 100%);
	color: white;
	margin: 0;
	padding: 16px 20px;
	font-size: 18px;
	font-weight: 600;
	border: none;
}

.card > p,
.card > ul,
.card > form,
.card > div:not(.modal):not(.gallery) {
	padding: 20px;
}

.card ul {
	list-style: none;
	padding: 20px;
}

.card ul li {
	padding: 10px 0;
	border-bottom: 1px solid #f3f2f1;
	transition: background-color 0.2s ease;
}

.card ul li:last-child {
	border-bottom: none;
}

.card ul li:hover {
	background: #f8f8f8;
}

/* Links */
a, a:visited {
	color: #0078d4;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #106ebe;
	text-decoration: underline;
}

a:active, a:focus {
	outline: 2px solid #0078d4;
	outline-offset: 2px;
}

/* Widgets with MSN Style */
.widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.widget {
	background: white;
	border-radius: 8px;
	box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.132);
	overflow: hidden;
}

.widget h2 {
	background: linear-gradient(90deg, #0078d4 0%, #40e0d0 100%);
	color: white;
	padding: 16px 20px;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.widget iframe {
	width: 100%;
	height: 450px;
	border: none;
}

/* Content Grid */
.content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

/* Mobile Header */
.mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: white;
	border-bottom: 1px solid #edebe9;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	z-index: 999;
	height: 60px;
}

.mobile-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	padding: 0 15px;
}

.mobile-logo {
	display: flex;
	align-items: center;
	gap: 8px;
}

.logo-icon {
	font-size: 24px;
}

.logo-text {
	font-size: 18px;
	font-weight: 600;
	color: #0078d4;
}

/* Hamburger Button */
.hamburger {
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}

.hamburger span {
	display: block;
	width: 100%;
	height: 3px;
	background: #323130;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Mobile Slide Menu */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	right: -100%;
	width: 85%;
	max-width: 320px;
	height: 100%;
	background: white;
	box-shadow: -2px 0 10px rgba(0,0,0,0.1);
	z-index: 1001;
	transition: right 0.3s ease;
	overflow-y: auto;
}

.mobile-menu.active {
	right: 0;
}

.mobile-menu-header {
	background: linear-gradient(90deg, #0078d4 0%, #106ebe 100%);
	color: white;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mobile-menu-header h2 {
	margin: 0;
	font-size: 20px;
}

.close-menu {
	background: none;
	border: none;
	color: white;
	font-size: 30px;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-menu-nav {
	padding: 10px 0;
}

.mobile-menu-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	color: #323130;
	border-bottom: 1px solid #f3f2f1;
	transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
	background: #f8f8f8;
	text-decoration: none;
}

.menu-icon {
	font-size: 20px;
	width: 30px;
	text-align: center;
}

.mobile-menu-footer {
	padding: 20px;
	border-top: 1px solid #edebe9;
	margin-top: auto;
}

.call-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px;
	background: #107c10;
	color: white;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.call-button:hover {
	background: #0e5d0e;
	text-decoration: none;
}

/* Bottom Navigation for Mobile */
.bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	border-top: 1px solid #edebe9;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	z-index: 999;
	height: 65px;
}

.bottom-nav-container {
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.bottom-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px;
	color: #666;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease;
	text-decoration: none;
	min-width: 0;
}

.bottom-nav-item:hover {
	color: #0078d4;
}

.bottom-nav-primary {
	color: #0078d4;
	font-weight: 600;
}

.nav-icon {
	font-size: 20px;
}

.nav-text {
	font-size: 11px;
	white-space: nowrap;
}

/* Desktop Navigation */
.desktop-nav {
	background: white;
	border-top: 1px solid #edebe9;
	padding: 0;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
	max-height: 80px;
	overflow-y: auto;
	display: block;
}

.desktop-nav ul {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	gap: 2px;
	padding: 6px;
	margin: 0;
}

.desktop-nav ul li {
	border: none;
	padding: 0;
}

.desktop-nav ul li a {
	color: #323130;
	font-size: 12px;
	font-weight: 500;
	padding: 6px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
	border-radius: 4px;
	min-height: 50px;
}

.desktop-nav ul li a:hover {
	background: #f3f2f1;
	color: #0078d4;
	text-decoration: none;
}

/* Responsive - Mobile First Approach */
@media (max-width: 768px) {
	/* Hide desktop elements */
	.desktop-nav {
		display: none !important;
	}
	
	.desktop-only {
		display: none !important;
	}
	
	/* Show mobile elements */
	.mobile-header {
		display: block !important;
	}
	
	.mobile-menu {
		display: block !important;
	}
	
	.bottom-nav {
		display: block !important;
	}
	
	/* Adjust body padding */
	body {
		padding-top: 60px;
		padding-bottom: 65px;
	}
	
	.container {
		padding-top: 0; /* Remove extra top padding */
		margin-top: 0;
	}
	
	/* Adjust widgets */
	.widgets {
		grid-template-columns: 1fr;
	}
	
	.widget iframe {
		height: 350px;
	}
	
	/* Adjust content */
	.content {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.card {
		margin-bottom: 15px;
	}
}

@media (max-width: 480px) {
	.mobile-header {
		height: 55px;
	}
	
	.logo-text {
		font-size: 16px;
	}
	
	.mobile-menu {
		width: 90%;
	}
	
	.bottom-nav {
		height: 60px;
	}
	
	.nav-icon {
		font-size: 18px;
	}
	
	.nav-text {
		font-size: 10px;
	}
	
	.container {
		padding: 10px;
		padding-top: 0; /* Remove duplicate top padding */
		padding-bottom: 70px;
	}
	
	.card h2 {
		font-size: 16px;
		padding: 14px 16px;
	}
	
	.widget iframe {
		height: 300px;
	}
}

/* Tools Section - Mobile Friendly */
.tools-carousel {
	display: none;
	padding: 20px;
}

.tool-display {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	margin-bottom: 20px;
}

.tool-display img {
	width: 100%;
	height: 250px;
	object-fit: contain;
	background: #f3f2f1;
	padding: 20px;
	cursor: pointer;
}

.tool-info {
	padding: 20px;
	background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
	color: white;
}

.tool-info h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 600;
}

.tool-info p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.95;
}

.tool-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 10px;
}

.tool-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #edebe9;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}

.tool-dots .dot.active {
	background: #0078d4;
	transform: scale(1.2);
}

.tool-dots .dot:hover {
	background: #106ebe;
}

.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	padding: 20px;
	list-style: none;
	margin: 0;
}

.tools-grid li {
	padding: 15px;
	background: white;
	border: 2px solid #edebe9;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	font-weight: 500;
}

.tools-grid li:hover {
	background: #f3f2f1;
	border-color: #0078d4;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile specific styles for tools */
@media (max-width: 768px) {
	/* Scroll target adjustment for fixed header */
	.scroll-target {
		scroll-margin-top: 70px; /* 60px header + 10px padding */
	}
	
	/* First element margin fix */
	.widgets {
		margin-top: 0;
		padding-top: 10px;
	}
	
	.tools-carousel {
		display: block !important;
	}
	
	.tools-grid {
		display: none !important;
	}
	
	.tool-display {
		touch-action: pan-y pinch-zoom;
	}
	
	.tool-display img {
		height: 200px;
	}
	
	.tool-info h3 {
		font-size: 16px;
	}
	
	.tool-info p {
		font-size: 13px;
	}
	
	#tools h2:first-child {
		margin-bottom: 0;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
}

/* Desktop styles for tools - Show carousel on all devices */
@media (min-width: 769px) {
	.tools-carousel {
		display: block !important; /* Show carousel on desktop too */
		max-width: 800px;
		margin: 0 auto;
	}
	
	.tools-grid {
		display: none !important; /* Hide grid on desktop */
	}
	
	.tool-display img {
		height: 350px; /* Larger on desktop */
	}
	
	.tool-info h3 {
		font-size: 20px;
	}
	
	.tool-info p {
		font-size: 15px;
	}
}

/* Modal Image Fix */
#modalImage, #imageModal img {
	max-width: 100%;
	height: auto;
	max-height: 60vh;
	object-fit: contain;
	display: block;
	margin: 0 auto 15px;
	background: #f3f2f1;
	padding: 10px;
	border-radius: 4px;
}

.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.8);
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content h3 {
	color: #0078d4;
	margin: 0 0 15px 0;
	font-size: 20px;
}

.modal-content .close {
	position: absolute;
	right: 15px;
	top: 15px;
	font-size: 28px;
	font-weight: bold;
	color: #666;
	cursor: pointer;
	transition: color 0.2s ease;
}

.modal-content .close:hover {
	color: #0078d4;
}

/* Kakao Notice - Hidden by default */
#kakao-notice {
	display: none !important; /* 기본적으로 숨김 */
	position: relative;
	width: 100%;
	background-color: #ffeb3b;
	color: #333;
	text-align: center;
	padding: 10px;
	z-index: 9999;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* JavaScript에서 명시적으로 show()할 때만 표시 */
#kakao-notice.show-kakao {
	display: block !important;
}

#kakao-options {
	display: none;
	padding: 10px;
}

#kakao-notice a {
	color: inherit;
	text-decoration: none;
}

#kakao-notice a:hover {
	text-decoration: underline;
}

.kakao-btn {
	display: inline-block;
	padding: 5px 20px;
	font-size: 16px;
	font-weight: bold;
	color: white;
	background-color: #4CAF50;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	border: none;
	cursor: pointer;
}

.kakao-btn:hover {
	background-color: #45a049;
}

/* All other existing styles continue below... */

/* Forms - MSN Style */
form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

form label {
	color: #323130;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: -12px;
}

form input,
form textarea,
form select {
	padding: 8px 12px;
	border: 1px solid #edebe9;
	border-radius: 4px;
	font-size: 14px;
	font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
	transition: border-color 0.2s ease;
	background: white;
}

form input:hover,
form textarea:hover,
form select:hover {
	border-color: #c8c6c4;
}

form input:focus,
form textarea:focus,
form select:focus {
	outline: none;
	border-color: #0078d4;
	box-shadow: 0 0 0 1px #0078d4;
}

form button {
	background: #0078d4;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

form button:hover {
	background: #106ebe;
}

form button:active {
	background: #005a9e;
}

/* Continue with all other styles... */