/* 기본 스타일 리셋 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Noto Sans KR', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f8f9fa;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 헤더 스타일 */
.header {
	background: linear-gradient(135deg, #1e3c72, #2a5298);
	color: white;
}

.top-bar {
	background: #1e3c72;
	padding: 10px 0;
	border-bottom: 1px solid #2a5298;
}

.top-bar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo h1 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 2px;
}

.logo span {
	font-size: 12px;
	opacity: 0.9;
}
.logo a{
	color:#fff;
	text-decoration: none;
}

.user-menu {
	display: flex;
	gap: 15px;
	margin-bottom: 5px;
}

.user-menu a {
	color: white;
	text-decoration: none;
	font-size: 12px;
	transition: opacity 0.3s;
}

.user-menu a:hover {
	opacity: 0.8;
}

.ad-apply {
	text-align: right;
}

.ad-apply a {
	color: #ffd700;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
}

.phone {
	display: block;
	font-size: 11px;
	margin-top: 2px;
	opacity: 0.9;
}

/* 메인 네비게이션 */
.main-nav {
	background: #2a5298;
	padding: 15px 0;
	position: relative;
}

.main-nav .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

/* 검색창 스타일 */
.search-container {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	background: #2a5298;
	z-index: 1000;
	transform: translateY(-100%);
	transition: transform 0.3s ease;
	padding: 15px 0;
}

.search-container.active {
	transform: translateY(0);
}

.search-box {
	display: flex;
	align-items: center;
	background: white;
	border-radius: 25px;
	padding: 8px 15px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	max-width: 500px;
	margin: 0 auto;
}

.search-box input {
	flex: 1;
	border: none;
	outline: none;
	padding: 8px 12px;
	font-size: 14px;
	color: #333;
}

.search-box input::placeholder {
	color: #999;
}

.search-box button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	margin-left: 5px;
	color: #666;
	transition: color 0.3s;
}

.search-box button:hover {
	color: #2a5298;
}

/* 검색창 (검색 아이콘 왼쪽에 표시) */
.nav-search-box {
	display: none;
	align-items: center;
	background: white;
	border-radius: 20px;
	padding: 6px 12px;
	margin-right: 15px;
	max-width: 300px;
	flex: 1;
	transition: all 0.3s ease;
}

.nav-search-box.active {
	display: flex;
}

.nav-search-box input {
	flex: 1;
	border: none;
	outline: none;
	padding: 6px 8px;
	font-size: 14px;
	color: #333;
	background: transparent;
}

.nav-search-box input::placeholder {
	color: #999;
	font-size: 13px;
}

.nav-search-box button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	margin-left: 5px;
	color: #666;
	transition: color 0.3s;
}

.nav-search-box button:hover {
	color: #2a5298;
}

.nav-search-close {
	background: none;
	border: none;
	color: white;
	font-size: 16px;
	cursor: pointer;
	padding: 4px;
	margin-right: 5px;
	transition: color 0.3s;
	display: none;
}

.nav-search-close:hover {
	color: #ffd700;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 30px;
	align-items: center;
	flex: 1;
	transition: all 0.3s ease;
}

.nav-menu a {
	color: white;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: color 0.3s;
	white-space: nowrap;
}

.nav-menu a:hover {
	color: #ffd700;
}

.nav-right {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-shrink: 0;
}

.nav-right i {
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s;
}

.nav-right i:hover {
	color: #ffd700;
}

/* 햄버거 아이콘 애니메이션 */
#hamburgerToggle {
	position: relative;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#hamburgerToggle::before,
#hamburgerToggle::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: all 0.3s ease;
}

#hamburgerToggle::before {
	top: 6px;
}

#hamburgerToggle::after {
	bottom: 6px;
}

#hamburgerToggle.active::before {
	transform: rotate(45deg) translate(5px, 5px);
}

#hamburgerToggle.active::after {
	transform: rotate(-45deg) translate(5px, -5px);
}

#hamburgerToggle.active {
	color: #ffd700;
}

/* 메가메뉴 스타일 */
.mega-menu {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: white;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	z-index: 9999;
	display: none;
	padding: 0;
	max-height: 100vh;
	overflow-y: auto;
}

.mega-menu.active {
	display: block;
}

.mega-menu-header {
	background: #2a5298;
	color: white;
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mega-menu-header h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.mega-menu-close {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	padding: 5px;
	transition: color 0.3s;
}

.mega-menu-close:hover {
	color: #ffd700;
}

.mega-menu-body {
	padding: 30px;
}

.mega-menu-content {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.mega-menu-column h3 {
	font-size: 16px;
	font-weight: 700;
	color: #2a5298;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid #2a5298;
}

.mega-menu-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mega-menu-column li {
	margin-bottom: 8px;
}

.mega-menu-column a {
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s;
	display: block;
	padding: 4px 0;
}

.mega-menu-column a:hover {
	color: #2a5298;
}

/* 햄버거 메뉴 활성화 시 */
.nav-menu.mobile-active {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #2a5298;
	padding: 20px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	z-index: 999;
}

.nav-menu.mobile-active li {
	margin-bottom: 15px;
}

.nav-menu.mobile-active a {
	font-size: 16px;
	padding: 10px 0;
	display: block;
	text-align: center;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu.mobile-active a:last-child {
	border-bottom: none;
}

/* 메인 콘텐츠 */
.main-content {
	padding: 30px 0;
	position: relative;
	z-index: 1;
}

.content-wrapper {
	display: grid;
	grid-template-columns: 250px 1fr 250px;
	gap: 30px;
	align-items: start;
}

/* 사이드바 */
.sidebar {
	position: sticky;
	top: 20px;
}

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

.ad-header {
	background: #f8f9fa;
	padding: 10px 15px;
	border-bottom: 1px solid #e9ecef;
}

.ad-brand {
	font-weight: 700;
	color: #2a5298;
	font-size: 14px;
}

.ad-content {
	padding: 15px;
}

.ad-content h3 {
	font-size: 16px;
	margin-bottom: 5px;
	color: #333;
}

.ad-subtitle {
	font-size: 12px;
	color: #666;
	margin-bottom: 10px;
}

.car-specs {
	font-size: 12px;
	color: #2a5298;
	font-weight: 500;
	margin-bottom: 15px;
}

.car-image img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 10px;
}

.certification {
	font-size: 11px;
	color: #666;
	line-height: 1.4;
	margin-bottom: 15px;
}

.visit-btn {
	width: 100%;
	background: #2a5298;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.3s;
}

.visit-btn:hover {
	background: #1e3c72;
}

/* 메인 영역 */
.main-area {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	overflow: hidden;
}

/* 특종매물 섹션 */
.special-deals {
	padding: 25px;
	border-bottom: 1px solid #e9ecef;
}

.special-deals h2 {
	font-size: 20px;
	margin-bottom: 20px;
	color: #333;
}

.deals-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.deal-card {
	border: 1px solid #e9ecef;
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.deal-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.deal-category {
	background: #f8f9fa;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 500;
	color: #2a5298;
	border-bottom: 1px solid #e9ecef;
}

.deal-image {
	height: 150px;
	overflow: hidden;
}

.deal-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.deal-info {
	padding: 15px;
}

.deal-info h3 {
	font-size: 14px;
	margin-bottom: 5px;
	color: #333;
	line-height: 1.3;
}

.deal-info p {
	font-size: 12px;
	color: #666;
}

/* 커뮤니티 베스트 */
.community-best {
	padding: 25px;
	border-bottom: 1px solid #e9ecef;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.section-header h2 {
	font-size: 20px;
	color: #333;
}

.filter-tabs {
	display: flex;
	gap: 10px;
	align-items: center;
}

.tab {
	background: none;
	border: 1px solid #ddd;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s;
}

.tab.active {
	background: #2a5298;
	color: white;
	border-color: #2a5298;
}

.tab:hover {
	background: #f8f9fa;
}

.toggle-switch {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.toggle-switch input[type="checkbox"] {
	display: none;
}

.toggle-switch label {
	width: 40px;
	height: 20px;
	background: #ddd;
	border-radius: 10px;
	position: relative;
	cursor: pointer;
	transition: background 0.3s;
}

.toggle-switch label::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	background: white;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: transform 0.3s;
}

.toggle-switch input:checked + label {
	background: #2a5298;
}

.toggle-switch input:checked + label::after {
	transform: translateX(20px);
}

.posts-list {
	list-style: none;
	counter-reset: post-counter;
}

.posts-list li {
	counter-increment: post-counter;
	margin-bottom: 8px;
	position: relative;
	padding-left: 20px;
}

.posts-list li::before {
	content: counter(post-counter);
	position: absolute;
	left: 0;
	top: 0;
	background: #2a5298;
	color: white;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 500;
}

.posts-list a {
	text-decoration: none;
	color: #333;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.posts-list a:hover {
	color: #2a5298;
}

.count {
	color: #666;
	font-size: 11px;
}

/* 광고 배너 */
.promo-banner {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	padding: 25px;
	text-align: center;
}

.banner-content h3 {
	font-size: 18px;
	margin-bottom: 15px;
	font-weight: 500;
}

.banner-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.phone {
	font-size: 14px;
	opacity: 0.9;
}

.apply-btn {
	background: white;
	color: #667eea;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.3s;
}

.apply-btn:hover {
	transform: translateY(-2px);
}

/* 베스트카 섹션 */
.best-cars {
	padding: 25px;
	border-bottom: 1px solid #e9ecef;
}

.best-cars h2 {
	font-size: 20px;
	margin-bottom: 20px;
	color: #333;
}

.cars-scroll {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 10px;
}

.car-item {
	min-width: 200px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	background: #f8f9fa;
}

.car-number {
	background: #2a5298;
	color: white;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 500;
}

.car-image {
	width: 60px;
	height: 40px;
	border-radius: 4px;
	overflow: hidden;
}

.car-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.car-info h4 {
	font-size: 13px;
	margin-bottom: 3px;
	color: #333;
}

.view-count {
	font-size: 11px;
	color: #666;
}

.car-logo {
	font-size: 10px;
	color: #2a5298;
	font-weight: 500;
	margin-left: auto;
}

/* 자동차 뉴스 */
.car-news {
	padding: 25px;
	border-bottom: 1px solid #e9ecef;
}

.more-link {
	color: #2a5298;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
}

.more-link:hover {
	text-decoration: underline;
}

.news-list {
	margin-top: 15px;
}

.news-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f8f9fa;
}

.news-item:last-child {
	border-bottom: none;
}

.news-image {
	width: 60px;
	height: 45px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-content h4 {
	font-size: 13px;
	color: #333;
	line-height: 1.4;
}

.news-content h4:hover {
	color: #2a5298;
	cursor: pointer;
}

/* 핫이슈 */
.hot-issues {
	padding: 25px;
}

.issues-list {
	margin-top: 15px;
}

.issue-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f8f9fa;
}

.issue-item:last-child {
	border-bottom: none;
}

.issue-rank {
	background: #ff6b6b;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 500;
	flex-shrink: 0;
}

.issue-item a {
	text-decoration: none;
	color: #333;
	font-size: 13px;
	flex: 1;
}

.issue-item a:hover {
	color: #2a5298;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
	.content-wrapper {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.sidebar {
		position: static;
		order: 2;
	}

	.main-area {
		order: 1;
	}

	.deals-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 15px;
	}

	.top-bar .container {
		flex-direction: column;
		gap: 10px;
	}

	.user-menu {
		flex-wrap: wrap;
		justify-content: center;
	}

	.main-nav .container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #2a5298;
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 4px 10px rgba(0,0,0,0.1);
		z-index: 999;
	}

	.nav-menu.mobile-active {
		display: flex;
	}

	.nav-search-box {
		max-width: 200px;
		margin-right: 10px;
	}

	.nav-search-close {
		margin-right: 5px;
	}

	.mega-menu-content {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.nav-menu li {
		margin-bottom: 15px;
	}

	.nav-menu a {
		font-size: 16px;
		padding: 10px 0;
		display: block;
		text-align: center;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	.nav-menu a:last-child {
		border-bottom: none;
	}

	.nav-right {
		position: static;
	}

	.filter-tabs {
		flex-wrap: wrap;
	}

	.banner-actions {
		flex-direction: column;
		gap: 10px;
	}

	.cars-scroll {
		flex-direction: column;
	}

	.car-item {
		min-width: auto;
	}
}

@media (max-width: 480px) {
	.logo h1 {
		font-size: 20px;
	}

	.user-menu {
		gap: 10px;
	}

	.user-menu a {
		font-size: 11px;
	}

	.main-nav .container {
		position: relative;
	}

	.nav-menu {
		gap: 10px;
		flex-direction: column;
	}

	.nav-menu a {
		font-size: 12px;
	}

	.nav-right {
		position: static;
		justify-content: center;
		margin-top: 10px;
	}

	.special-deals,
	.community-best,
	.best-cars,
	.car-news,
	.hot-issues {
		padding: 20px 15px;
	}
}

/* 풋터 스타일 */
.footer {
	background: white;
	border-top: 1px solid #e9ecef;
	margin-top: 50px;
}

.footer-top {
	border-bottom: 1px solid #e9ecef;
	padding: 15px 0;
}

.footer-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.family-sites {
	display: flex;
	align-items: center;
	gap: 15px;
}

.family-sites a {
	color: #666;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.3s;
}

.family-sites a:hover {
	color: #2a5298;
}

.family-sites a:first-child {
	font-weight: 500;
	color: #333;
}

.service-link a {
	color: #2a5298;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.3s;
}

.service-link a:hover {
	color: #1e3c72;
	text-decoration: underline;
}

/* 광고 배너 */
.footer-ad {
	background: white;
	padding: 20px 0;
	border-bottom: 1px solid #e9ecef;
}

.ad-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	padding: 20px 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ad-content {
	display: flex;
	align-items: center;
	gap: 20px;
}

.ad-logo .adobe-logo {
	font-size: 24px;
	font-weight: 700;
	color: #d32f2f;
	font-family: 'Arial', sans-serif;
}

.ad-text h3 {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 5px 0;
}

.ad-text p {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.ad-button {
	background: #2a5298;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.3s;
}

.ad-button:hover {
	background: #1e3c72;
}

.ad-graphics {
	display: flex;
	align-items: center;
}

.app-icons {
	display: flex;
	gap: 15px;
	align-items: center;
}

.app-icons i {
	font-size: 24px;
	color: #666;
	transition: color 0.3s;
}

.app-icons i:hover {
	color: #2a5298;
}

.app-icons .fa-adobe {
	color: #d32f2f;
}

.app-icons .fa-paint-brush {
	color: #ff9800;
}

.app-icons .fa-image {
	color: #4caf50;
}

.app-icons .fa-video {
	color: #f44336;
}

.app-icons .fa-file-pdf {
	color: #e91e63;
}

/* 회사 정보 */
.footer-bottom {
	background: #f8f9fa;
	padding: 25px 0;
}

.footer-links {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.footer-links a {
	color: #666;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: #2a5298;
	text-decoration: underline;
}

.footer-links span {
	color: #ccc;
	font-size: 12px;
}

.company-info {
	line-height: 1.6;
}

.info-row {
	margin-bottom: 8px;
	font-size: 12px;
	color: #666;
}

.info-row:last-child {
	margin-bottom: 0;
}

.info-row a {
	color: #2a5298;
	text-decoration: none;
}

.info-row a:hover {
	text-decoration: underline;
}

.info-row.disclaimer {
	color: #999;
	font-style: italic;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e9ecef;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.footer-nav {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}

	.family-sites {
		justify-content: center;
		flex-wrap: wrap;
	}

	.ad-banner {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.ad-content {
		flex-direction: column;
		gap: 15px;
	}

	.app-icons {
		justify-content: center;
	}

	.footer-links {
		justify-content: center;
	}

	.company-info {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.footer {
		margin-top: 30px;
	}

	.footer-top,
	.footer-ad,
	.footer-bottom {
		padding: 15px 0;
	}

	.ad-banner {
		padding: 15px 20px;
	}

	.ad-text h3 {
		font-size: 14px;
	}

	.ad-text p {
		font-size: 12px;
	}

	.ad-button {
		padding: 8px 16px;
		font-size: 12px;
	}

	.app-icons {
		gap: 10px;
	}

	.app-icons i {
		font-size: 20px;
	}

	.footer-links {
		gap: 5px;
	}

	.footer-links a,
	.footer-links span {
		font-size: 11px;
	}

	.info-row {
		font-size: 11px;
	}
}
