/*
Theme Name: porki.hu
Description: A régi porki.hu (Joomla Beez3) kinézetét követő egyszerű, háromhasábos téma: felül menü és fejléckép, balra menük, középen tartalom, jobbra kiegészítő információk.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: porki
*/

* { box-sizing: border-box; }

body {
	margin: 0;
	background: #eee;
	color: #444;
	font-family: Arial, sans-serif;
	font-size: 16px;
}

#all {
	max-width: 1010px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 20px 10px #555;
	font-size: 0.8em;
	line-height: 1.5;
}

a { color: #095197; }
a:hover, a:focus { color: #333; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- header ---------- */
#header {
	position: relative;
	padding: 0 10px;
}

.felso-menu {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	text-align: center;
	background: #fff;
	border: 1px solid #d5d5d5;
	border-top: 0;
	box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0, 0, 0, .1);
	display: table;
	position: relative;
	z-index: 2;
}
.felso-menu li { display: inline-block; margin: 0; }
.felso-menu a {
	display: block;
	padding: 6px 15px;
	color: #333;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 1px 0 0 #f5f5f5;
}
.felso-menu a:hover,
.felso-menu .current-menu-item > a { color: #095197; }

.logoheader {
	height: 112px;
	margin-top: -27px;
	background-color: #8a9aa5;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	position: relative;
}
.logoheader .site-title {
	position: absolute;
	right: 10px;
	bottom: 4px;
	margin: 0;
	font-size: 14px;
	font-weight: normal;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.logoheader .site-title a { color: #fff; text-decoration: none; }

/* ---------- three columns ---------- */
#wrapper {
	display: flex;
	gap: 25px;
	padding: 25px 15px 30px;
	align-items: flex-start;
}
#nav { flex: 0 0 165px; }
#main { flex: 1 1 auto; min-width: 0; }
#right { flex: 0 0 160px; }

/* left menus */
#nav h3, #right h3 {
	font-size: 1.4em;
	font-weight: normal;
	color: #444;
	margin: 0 0 10px;
	padding: 0 0 5px;
	border-bottom: 1px solid #ddd;
}
#nav .moduletable { margin-bottom: 25px; }
#nav ul { list-style: none; margin: 0; padding: 0; }
#nav li { border-bottom: 1px solid #ddd; }
#nav li a {
	display: block;
	padding: 5px 0;
	color: #444;
	text-decoration: none;
}
#nav li a:hover,
#nav li.current-menu-item > a { color: #095197; }

/* right column */
#right .widget { margin-bottom: 25px; }
#right .search-form { display: flex; }
#right .search-field {
	width: 100%;
	padding: 4px 5px;
	border: 1px solid #ccc;
	font-size: 1em;
}
#right .search-submit { display: none; }
#right ul { list-style: none; margin: 0; padding: 0; }
#right li { padding: 3px 0; }
.nap-vicce { line-height: 1.8; }

/* main content */
#main h1.oldalcim,
#main h2.cikkcim,
#main h2.entry-title {
	font-size: 1.5em;
	font-weight: normal;
	color: #095197;
	margin: 0 0 15px;
	padding: 5px 0;
	border-bottom: 1px solid #ddd;
}
#main h2.cikkcim { margin-top: 25px; }
#main > .tartalom > h2.cikkcim:first-child { margin-top: 0; }
#main p { margin: 0 0 12px; }
#main h3 { font-size: 1.2em; margin: 20px 0 8px; }
#main h3.betu { color: #095197; margin: 15px 0 5px; }

.ket-oszlop {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

table.szotar { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
table.szotar td { padding: 2px 6px; border-bottom: 1px dotted #ddd; vertical-align: top; }
table.szotar td:first-child { width: 45%; }

.search-results-list article { margin-bottom: 20px; }

/* ---------- footer ---------- */
#footer {
	background: #555;
	color: #fff;
	font-size: 0.8em;
	padding: 10px 15px;
	margin: 0 12px 12px;
	text-align: center;
}
#footer a { color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 800px) {
	#wrapper { flex-direction: column; }
	#nav, #right, #main { flex: none; width: 100%; }
	#main { order: 1; }
	#nav { order: 2; }
	#right { order: 3; }
	.felso-menu { display: block; border: 0; }
	.felso-menu a { padding: 6px 8px; }
	.logoheader { margin-top: 0; height: 80px; }
	.ket-oszlop { grid-template-columns: 1fr; }
}
