:root {
	--bg: #f9f9f9;
	--card-bg: #fff;
	--accent: #3824e9;
	--text: #333;
}

/* ====== Base Styles ====== */
body {
	margin: 0;
	font-family: system-ui, sans-serif;
	background: var(--bg);
	color: var(--text);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-size: 1rem;
	line-height: 1.5;
}

header {
	text-align: center;
	padding: 2rem 1rem 1rem;
}

header h1 {
	margin: 0;
	font-size: clamp(1.8rem, 5vw, 2.5rem);
	color: var(--accent);
}

header p {
	margin: 0.5rem 0 0;
	font-size: clamp(0.9rem, 3vw, 1.2rem);
}

/* ====== Main Grid ====== */
main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1rem;
	padding: 2rem;
	flex: 1;
}

/* ====== Cards ====== */
.card {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	max-width: 320px;
	margin: 0 auto;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card h2 {
	margin-top: 0;
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	color: var(--accent);
}

.card p {
	flex-grow: 1;
	margin: 0.5rem 0 1rem;
	font-size: clamp(0.9rem, 2.5vw, 1rem);
	line-height: 1.4;
}

.card button {
	align-self: flex-start;
	padding: 0.6rem 1.2rem;
	font-size: clamp(0.9rem, 2.5vw, 1rem);
	border: none;
	border-radius: 6px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.card button:hover {
	background: #b02a54;
	transform: scale(1.03);
}

/* ====== Footer ====== */
footer {
	text-align: center;
	padding: 1rem;
	font-size: clamp(0.8rem, 2.5vw, 0.95rem);
	color: #777;
}

/* ====== Mobile / Small Screens ====== */
@media (max-width: 1080px) {
	main {
		padding: 1rem;
		gap: 0.8rem;
	}
	.card {
		padding: 1rem;
		max-width: 100%;
	}
	header h1 {
		font-size: clamp(1.6rem, 6vw, 2rem);
	}
	header p {
		font-size: clamp(0.85rem, 4vw, 1.1rem);
	}
}
