.first-bg-h1 {
	font-size: 40px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1.5rem;
}

.first-bg-h2 {
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1.5rem;
}

.first-bg-h3 {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1.5rem;
	letter-spacing: 10px;
}/* 服務卡片區塊樣式 */.consultant-s1 {
	background-color: #ffffff;
}

.consultant-s1-frame {
	display: flex;
	align-items: center;
	gap: 56px;
	position: relative;
	margin: 69px auto;
	justify-content: center;
	flex-wrap: wrap;
}

.consultant-s1-card-wrapper {
	position: relative;
	flex: 1;
	/* min-width: 207px; */
	/* max-width: 207px; */
	height: auto;
	overflow: visible;
}
.consultant-s1 py-16{
	padding: 0 !important;
}

@media screen and (max-width: 1200px) {
	.consultant-s1-frame {
		gap: 18px;
	}
	
}
@media screen and (max-width: 1024px) {
	.consultant-s1-frame {
		display: grid;
		/* 兩欄 */
		grid-template-columns: repeat(4, 1fr);
		/* 欄與欄之間 90px，列間距 40px（可自行調整） */
		/* column-gap: 90px;
		row-gap: 40px; */
		/* 預設 margin, padding 不變 */
	  }
	  
	  /* 卡片 wrapper 不需要再指定寬度，Grid 會自動撐滿 */
	.consultant-s1-card-wrapper {
		margin: 0;
	}
	
}
@media screen and (max-width: 768px){
	.consultant-s1-frame {
		display: grid;
		/* 三欄 */
		grid-template-columns: repeat(2, 1fr);
		/* 欄與欄之間 90px，列間距 40px（可自行調整） */
		column-gap: 90px;
		row-gap: 40px;
		margin: 54px auto;
	}

	/* 卡片 wrapper 不需要再指定寬度，Grid 會自動撐滿 */
	.consultant-s1-card-wrapper {
		max-width: 100%;
		grid-auto-flow: column;
	}
} 

@media screen and (max-width: 430px) {
	.consultant-s1-frame {
		display: grid;
		/* 一欄 */
		grid-template-columns: repeat(1, 1fr);
		/* 欄與欄之間 90px，列間距 40px（可自行調整） */
		column-gap: 90px;
		row-gap: 40px;
		/* 預設 margin, padding 不變 */
	}
	
	/* 卡片 wrapper 不需要再指定寬度，Grid 會自動撐滿 */
	.consultant-s1-card-wrapper {
		max-width: 100%;
		grid-auto-flow: column;
	}

	.first-bg-h1{
		  font-size: 24px;
		  font-weight: 700;
		  color: #ffffff;
		  margin-bottom: 1.5rem;
 }
	 .first-bg-h2{
	font-size: 36px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1.5rem;
 }
 .first-bg-h3{
 font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1.5rem;
}
}
.consultant-s1-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	/* height: 100%; */
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.consultant-s1-image {
	width: auto;
	height: 143px;
	position: relative;
	object-fit: cover;
}

.consultant-s1-title {
	font-family: "Noto Sans TC", sans-serif;
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 2.40px;
	line-height: 33.6px;
	position: relative;
	color: #0b2b3e;
	text-align: center;
	width: 100%;
}

.consultant-s1-desc {
	font-family: "Noto Sans TC", sans-serif;
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 1.60px;
	line-height: 22.4px;
	position: relative;
	color: #0b2b3e;
	text-align: center;
	width: 100%;
}

.consultant-s2-link {
	margin: 10px 0px;
	display: inline-block;
 /* 確保 margin 能正常工作 */
	;
}

.perfumer3-wrapper {
	height: 65vh;
}
@media screen and (max-width: 390px) {
	.consultant-text{
		top:60%;
		width: 80%;
	}
 
	.consultant-bg-h1, .consultant-bg-h3{
		font-size: 20px;
	}
	.consultant-button {
		text-align: center;
		margin-bottom: 48px;
	}

}