/* --- CSS CƠ BẢN VÀ CHUNG --- */
body {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	background: linear-gradient(to bottom, #fff7f8, #ffffff);
	color: #333;
	scroll-behavior: smooth;
	padding-top: 60px;
}

/* New style for the menu toggle icon */
.menu-toggle {
	display: none;
	/* Hide by default on large screens */
	font-size: 24px;
	cursor: pointer;
	color: #e77c8e;
}


/* HEADER VÀ CÁC SECTION CHUNG */
header {
	text-align: center;
	padding: 120px 20px 80px;
	background: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1500') center/cover no-repeat;
	color: white;
	position: relative;
}

header::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.35);
}

header h1 {
	position: relative;
	font-family: 'Great Vibes', cursive;
	font-size: 48px;
	margin: 0;
	z-index: 1;
	text-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
}

.section {
	max-width: 1024px;
	margin: 60px auto;
	padding: 0 20px;
	text-align: center;
}

.section h2 {
	font-family: 'Great Vibes', cursive;
	color: #e77c8e;
	font-size: 36px;
	margin-bottom: 20px;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.process {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin-top: 40px;
}

.step {
	width: 220px;
	text-align: center;
	margin-bottom: 30px;
}

.step i {
	font-size: 36px;
	color: #e77c8e;
	margin-bottom: 10px;
}

.step h3 {
	font-size: 18px;
	color: #e77c8e;
	margin: 10px 0;
}

.btn-primary {
	display: inline-block;
	background-color: #e77c8e;
	color: white;
	padding: 12px 24px;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.3s;
	margin-top: 20px;
	white-space: nowrap;
}

.btn-primary:hover {
	background-color: #d35c6e;
}

/* --- CSS CHO HIỆU ỨNG SLIDE UP BẰNG TRANSITION & JS (DYNAMIC) --- */

.template-card {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s, box-shadow 0.3s;
	text-align: center;
	background-color: white;
	cursor: pointer;
	height: 350px;
}

.template-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-images {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 300%;
	/* transition được quản lý bằng JS */
}

.card-images img {
	width: 100%;
	height: calc(100% / 3);
	object-fit: cover;
	display: block;
}

/* Đặt nút xuống dưới cùng (Bottom) */
.card-cta-overlay {
	position: absolute;
	bottom: 20px;
	/* Định vị cách đáy 20px */
	left: 50%;
	transform: translateX(-50%);
	/* Chỉ dịch chuyển ngang */
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 10;
}

/* Class .hovered chỉ kích hoạt overlay */
.template-card.hovered .card-cta-overlay {
	opacity: 1;
}

.card-cta-button {
	display: inline-block;
	background-color: #e77c8e;
	color: white;
	padding: 10px 20px;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.3s;
}

.card-cta-button:hover {
	background-color: #d35c6e;
}

/* --- FOOTER ĐA CỘT --- */
footer {
	background: #f7f7f7;
	padding: 40px 20px 20px;
	text-align: center;
	border-top: 1px solid #eee;
	color: #555;
	font-size: 14px;
}

.footer-content {
	max-width: 1024px;
	margin: 0 auto 30px;
	display: flex;
	justify-content: space-between;
	text-align: left;
	gap: 30px;
}

.footer-col {
	flex-basis: 30%;
}

.footer-col h3 {
	font-size: 16px;
	color: #e77c8e;
	font-weight: 700;
	margin-bottom: 15px;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col a {
	color: #555;
	text-decoration: none;
}

.footer-col i {
	margin-right: 8px;
	color: #e77c8e;
}

/* Thêm khoảng cách cho icon mạng xã hội */
.contact-icons a {
	margin-right: 15px;
	font-size: 20px;
	color: #e77c8e;
	transition: color 0.3s;
}

.contact-icons a:hover {
	color: #d35c6e;
}


.quote {
	font-style: italic;
	margin-bottom: 30px;
	color: #777;
}

.copyright {
	margin-top: 20px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
	font-size: 12px;
	color: #888;
}

/* --- MEDIA QUERIES CHO RESPONSIVE DESIGN --- */
@media (max-width: 600px) {
	.gallery {
		grid-template-columns: 1fr;
	}

	.process {
		flex-direction: column;
		align-items: center;
	}

	.step {
		width: 80%;
		margin-bottom: 20px;
	}
}