@media(min-width:769px){
	.product-card a.btn2{
		display:none !important;
	}
}

@media(max-width:768px){
	.product-card a.btn2{
		display:inline-block !important;
	}
}
/**********************************************  상품 영역 *******************************************/
/*****상품 영역*****/

.product-section{
	padding:80px 0;
	background:#efefef;
	text-align:center;
}

.product-title{
	font-size:26px;
	margin-bottom:20px;
	font-weight:bold;
	color:#2c6fa3;
}

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

/***** 카드 ******/
.product-card{
	position:relative;
	overflow:hidden;

	background:#f7f7f7;
	border:1px solid #ddd;
	border-radius:12px;

	padding:35px 30px;
	text-align:center;

	border-top:3px solid transparent;

	transition:all 0.3s ease;
}

.product-card:hover{
	background:#f0f6fb;
	border-color:#cfe0ee;
	border-top:3px solid #2c6fa3;
}

.product-card h3{
	font-size:22px;
	margin-bottom:10px;
}

.product-card .line{
	height:2px;
	background:#2c6fa3;
	margin:0 auto 30px; /* 가운데 정렬 핵심 */
}

.product-card p{
	margin:12px 0;
	font-size:16px;
	color:#333;
	line-height:1.6;
}

/**********************
    기본 버튼 (모바일용)
**********************/
.product-card .btn2{
	display:inline-block;
	margin-top:20px;
	padding:12px 0;
	width:82%;
	box-sizing:border-box;
	text-align:center;
	border:1px solid #2c6fa3;
	border-radius:30px;
	color:#2c6fa3;
	text-decoration:none;
	font-size:14px;
	font-weight:500;
	background:#f8fbff;
	transition:all 0.25s ease;
}

.product-card .btn2:hover{
	background:#2c6fa3;
	color:#fff;
}


/* hover는 PC에서만 작동 */
@media (hover: hover) and (pointer: fine){

	.product-card:hover .overlay{
		transform:translateY(0);
	}

	/* btn2 숨김 유지 */
	.product-card:hover .btn2{
		opacity:0;
		transform:translateY(10px);
	}
}



/* 오버레이 */
.product-card .overlay{

	padding:0 20px;

	position:absolute;
	left:0;
	bottom:0;

	width:100%;
	height:100%;

	background:linear-gradient(135deg, #2c6fa3, #245c88);

	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:flex-start;

	text-align:center;

	transform:translateY(100%);
	transition:0.4s ease;
}
/* 텍스트 */
.overlay p{
	line-height:1.8;  /* 살짝 넉넉하게 */
	font-size:18px;
	text-align:center;
}
.product-card .overlay,
.product-card .overlay *{
	color:#fff !important;
}

/* 오버레이 버튼 */
.overlay .btn{
	margin-top:25px;
	padding:13px 0;
	margin-left:10px;

	width:82%;

	text-align:center;

	border:1px solid rgba(255,255,255,0.8);
	border-radius:30px;

	color:#fff;
	text-decoration:none;

	transition:all 0.25s ease;
}
.overlay .btn:hover{
	background:rgba(255,255,255,0.15);
}
/********** 상품영역 모바일 **********/
@media(max-width:768px){

	.product-card .btn2{
		display:inline-block;
	}

	/* overlay 완전 제거 */
	.product-card .overlay{
		display:none !important;
	}

	/* hover 강제 차단 (안전장치) */
	.product-card:hover .overlay{
		transform:translateY(100%) !important;
	}

	/* btn2만 사용 */
	.product-card .btn2{
		display:inline-block;
		width:100%;
		padding:14px 0;
		font-size:15px;
	}

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

	.product-card{
		padding:25px 20px;
	}

	.product-title{
		font-size:20px;
	}
}
/********************************************** 상품 영역 END *******************************************/