/* System Cards - Main Menu ETTH */

#systems {
	padding: 4em 2em 6em;
}

.system-cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	align-items: stretch;
	gap: 2em;
	max-width: 1400px;
	margin: 0 auto;
}

.system-card {
	min-height: 320px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3em 2.5em;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.04);
	text-decoration: none !important;
	border: none !important;
	color: #646464 !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}

.system-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	z-index: 2;
	transition: height 0.3s ease;
}

.system-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.system-card:hover::before {
	height: 6px;
}

.system-card__icon {
	margin-bottom: 1.5em;
}

.system-card__icon .icon {
	font-size: 3.5em !important;
	display: inline-block;
	width: auto;
	height: auto;
	line-height: 1;
	margin: 0 auto;
}

.system-card__icon .icon:before {
	font-size: 1em;
}

.system-card h3 {
	font-size: 1.75em;
	margin: 0 0 0.65em 0;
	line-height: 1.4;
	color: #646464;
	font-weight: 400;
}

.system-card p {
	margin: 0 0 1.5em 0;
	line-height: 1.7;
	color: #888;
	font-size: 0.95em;
}

.system-card__arrow {
	font-size: 0.9em;
	margin-top: 0.25em;
	line-height: 1.5;
	color: #e89980;
	font-weight: 400;
	transition: transform 0.2s ease;
}

.system-card:hover .system-card__arrow {
	transform: translateX(6px);
}

/* Vehicle Booking Card - Warm accent */
.system-card--vehicle::before {
	background: linear-gradient(135deg, #e89980 0%, #ecaa96 100%);
}

.system-card--vehicle .system-card__icon .icon {
	color: #e89980 !important;
}

/* Meeting Room Card - Cool accent */
.system-card--meeting::before {
	background: linear-gradient(135deg, #5a9fd4 0%, #7eb8e0 100%);
}

.system-card--meeting .system-card__icon .icon {
	color: #5a9fd4 !important;
}

.system-card--meeting:hover .system-card__arrow {
	color: #5a9fd4;
}

/* Leave System Card - Green accent */
.system-card--leave::before {
	background: linear-gradient(135deg, #7fcdb8 0%, #9ad9c8 100%);
}

.system-card--leave .system-card__icon .icon {
	color: #7fcdb8 !important;
}

.system-card--leave:hover .system-card__arrow {
	color: #7fcdb8;
}

/* News Card - Purple accent */
.system-card--news::before {
	background: linear-gradient(135deg, #9b7cb8 0%, #b398d4 100%);
}

.system-card--news .system-card__icon .icon {
	color: #9b7cb8 !important;
}

.system-card--news:hover .system-card__arrow {
	color: #9b7cb8;
}

/* LMS Card - Amber accent (เส้นด้านบนเหมือนการ์ดอื่น — ใช้ border-top ให้เห็นชัดทุกเบราว์เซอร์) */
.system-card.system-card--lms::before {
	display: none;
}

.system-card.system-card--lms {
	border-top: 4px solid #c99a3c !important;
	border-radius: 16px;
}

.system-card.system-card--lms:hover {
	border-top-width: 6px !important;
}

.system-card--lms .system-card__icon .icon {
	color: #c99a3c !important;
}

.system-card--lms:hover .system-card__arrow {
	color: #c99a3c;
}

/* Responsive */
@media screen and (max-width: 1200px) {
	.system-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 900px) {
	.system-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 736px) {
	#systems {
		padding: 3em 1.5em 5em;
	}

	.system-cards {
		grid-template-columns: 1fr;
		gap: 2em;
	}

	.system-card {
		min-height: 280px;
		padding: 2.5em 2em;
	}
}
