/* iWebple Portfolio - frontend
   .iwp-wrap 최상위에는 외부 패딩 없음 (엘리멘터에서 여백 조정) */

.iwp-wrap {
	--iwp-cols: 3;
	box-sizing: border-box;
}
.iwp-wrap *,
.iwp-wrap *::before,
.iwp-wrap *::after {
	box-sizing: border-box;
}

/* ---------- 필터: 탭 ---------- */
.iwp-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 40px;
}
.iwp-tab {
	padding: 11px 24px !important;
	border: 1px solid #dfe3ec !important;
	background: #f4f6fb !important;
	border-radius: 50px !important;
	font-size: 15px;
	font-weight: 600 !important;
	color: #5b6270 !important;
	cursor: pointer;
	line-height: 1.2;
	transition: all .2s ease;
}
.iwp-tab:hover {
	border-color: #c3ccff !important;
	background: #eef2fd !important;
	color: #2f5fe0 !important;
}
.iwp-tab.is-active {
	background: #2f5fe0 !important;
	border-color: #2f5fe0 !important;
	color: #fff !important;
}

/* ---------- 필터: 드롭다운 ---------- */
.iwp-filter-dropdown {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 32px;
}
.iwp-select {
	padding: 10px 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	font-size: 15px;
	color: #333;
	background: #fff;
	cursor: pointer;
	min-width: 180px;
}

/* ---------- 그리드 ---------- */
.iwp-grid {
	display: grid;
	grid-template-columns: repeat(var(--iwp-cols), minmax(0, 1fr));
	gap: 30px;
}

/* ---------- 카드 ---------- */
.iwp-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #eee;
	transition: transform .25s ease, box-shadow .25s ease;
	animation: iwp-fade .35s ease both;
}
.iwp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}
.iwp-card.is-hidden {
	display: none;
}

.iwp-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.iwp-card-link .iwp-thumb {
	line-height: 0;
}
a.iwp-card-link {
	cursor: pointer;
}

.iwp-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 800 / 500;
	overflow: hidden;
	background: #f3f3f3;
}
.iwp-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	margin: 0 !important;
	transition: transform .4s ease;
}
.iwp-card:hover .iwp-thumb img {
	transform: scale(1.05);
}

.iwp-body {
	padding: 18px 20px 18px;
	text-align: left;
}
.iwp-name {
	font-size: 22px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 5px;
	line-height: 1.4;
	letter-spacing: -1px;
}
.iwp-desc {
	font-size: 16px;
	color: #6b7280;
	margin: 0 0 16px;
	line-height: 1.55;
	letter-spacing: -1px;
}
.iwp-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.iwp-cat-label {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 600;
	color: #fff;
	background: #2f5fe0;
	padding: 5px 13px;
	border-radius: 50px;
	letter-spacing: -.01em;
}
.iwp-cat-c0 { background: #2f5fe0; }
.iwp-cat-c1 { background: #0f9d76; }
.iwp-cat-c2 { background: #e0722f; }
.iwp-cat-c3 { background: #7b52c9; }
.iwp-cat-c4 { background: #d84c7a; }
.iwp-cat-c5 { background: #1a9ab0; }
.iwp-golink {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: none;
	font-size: 13px;
	font-weight: 600;
	color: #8a95a5;
	opacity: 1 !important;
	transform: none !important;
	transition: color .25s ease;
}
.iwp-golink svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	transition: transform .25s ease;
}
.iwp-card:hover .iwp-golink {
	color: #2f5fe0;
}
.iwp-card:hover .iwp-golink svg {
	transform: translateX(3px) !important;
}

@keyframes iwp-fade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
	.iwp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.iwp-grid { grid-template-columns: 1fr; }
	.iwp-filter-tabs { gap: 6px; }
	.iwp-tab { padding: 8px 14px; font-size: 14px; }
}
