/* ===========================================================
   _starter — globális reset, alap form, alertbox.
   Vizuális téma a header.php / home.php / article.php-ban.
   Színek: --color-* CSS változók (lásd header.php).
   =========================================================== */

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Inter", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #222;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.clearfix::after { content: " "; display: table; clear: both; }

/* ===== Alertbox ===== */
.alertbox {
	padding: 16px 20px;
	border-radius: 6px;
	font-size: 15px;
	margin: 0 auto 24px;
	max-width: 800px;
	font-weight: 600;
}

.alertbox.success {
	background: #e8f5ec;
	color: #1d5b32;
	border: 1px solid #c5e3cf;
}

.alertbox.error {
	background: #fdecec;
	color: #7a1f1f;
	border: 1px solid #f0c4c4;
}

/* ===== Form ===== */
div.form-center {
	border: 1px solid #e0e0e0;
	margin: 30px auto;
	width: 100%;
	max-width: 600px;
	background: #fff;
	border-radius: 8px;
	padding: 0;
}

div.form-center form {
	padding: 30px;
}

div.form-center form h2 {
	text-align: center;
	margin-top: 0;
}

div.form-center label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

div.form-center input,
div.form-center textarea {
	width: 100%;
	padding: 10px 12px;
	margin: 4px 0 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 15px;
	background: #fff;
}

div.form-center input::placeholder,
div.form-center textarea::placeholder {
	color: #aaa;
}

div.form-center input[type=checkbox] {
	width: auto;
	display: inline-block;
	margin-right: 8px;
}

div.form-center input[type=submit] {
	cursor: pointer;
	background: #444;
	color: #fff;
	border: none;
	font-weight: 600;
	transition: background 0.2s;
}

div.form-center input[type=submit]:hover {
	background: #222;
}

div.form-center .form-row {
	margin-bottom: 16px;
}

@media screen and (max-width: 1024px) {
	div.form-center { max-width: 95%; }
	div.form-center form { padding: 20px; }
}

/* ===== Egyszerű cikk-grid (3 oszlop) ===== */
.grid3 {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0;
}

.grid3 > div {
	flex: 1 1 250px;
	background: #fafafa;
	border-left: 3px solid #888;
	padding: 16px;
	transition: border-color 0.2s;
}

.grid3 > div:hover {
	border-left-color: #222;
}

.grid3 .title,
.grid3 .title a {
	font-weight: 700;
	font-size: 16px;
	color: #222;
	text-decoration: none;
	margin-bottom: 10px;
	display: block;
}

.grid3 .excerpt {
	font-size: 14px;
	color: #555;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: calc(1.4em * 3);
	line-height: 1.4;
}

@media screen and (max-width: 768px) {
	.grid3 { display: block; }
	.grid3 > div { margin-bottom: 12px; }
}
