/*
Theme Name: MA-HAL
Author URI:  www.itit.hu
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
body{
  margin:0;
  padding:0;
  display: block;
  background-color: #f4f4f4;
  background: linear-gradient(
  to bottom,
  white 0px,
  white 100px,
  #d53321 100px,
  #d53321 140px,
  #f4f4f4 100px
  );
}
a{
  text-decoration: none;
  font-weight: bold;
  color: #d53321;
}
a:hover{color: #691b12;}
h2.wp-block-heading {
  padding: 0;
  margin: 0px 0px 15px 0px;
  font-weight: bold;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	font-family: 'Open Sans', sans-serif;
	line-height: 1.6;
	background-color: #f4f4f4;
}

.header-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px 0px 80px;
  background-color: white;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 75px;
  margin-right: 10px;
}
h1#brand-name {
	margin: 0px 15px 0px 15px;
  padding: 0px;
	font-size: 22px;
	font-weight: bold;
	text-align: left;
	color: black;
	line-height: 34px;
	height: 49px;
}
#right-top-corner {
	margin-right: 150px;
	display: flex;
	gap: 10px;
	align-items: center;
}
#right-top-corner .circle-img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
}
#right-top-corner a {
  text-decoration: none;
  text-align: center;
  color: black;
	font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}
#right-top-corner p {
  text-decoration: none;
  text-align: center;
  margin: 0px;
}

nav.main-menu {
	width: 100%;
	background: #d53321;
}
nav.main-menu ul {
	display: flex;
	margin: 0px;
	padding: 7px 15px 7px 75px;
	gap: 8px;
}
nav.main-menu li {list-style-type: none;}

nav.main-menu li a {
	text-decoration: none;
	color: white;
	font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
	padding: 9px 6px 9px 6px;
	transition: color 0.3s ease, background-color 0.3s ease;
}

nav.main-menu li a:hover {
  color: #d53321;
  background: white;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.menu-toggle{display: none;}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  height: 485px;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  background-image: url('./img/banner-bg.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.banner-content{
  width: 1200px;
  height: 485px;
	margin: 0 auto;
}

.header-banner {
	width: 500px;
	margin-left: 77px;
	margin-top: 175px;
}
.banner h1 {
	color: white;
	font-size: 50px;
	font-weight: 300;
	line-height: 60px;
}

.banner-bold{font-weight: bold;}
#header-box {
	width: 215px;
	height: 270px;
	padding: 40px 10px 15px 10px;
	margin-top: -153px;
	margin-left: auto;
	margin-right: 80px;
	color: white;
	font-size: 14px;
  line-height: 20px;
	text-align: center;
	background-color: #d53321;
}
#header-box .circle-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
}

#fix-nav-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

#fix-nav-box .fnb-circle {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

#fix-nav-box a {
  max-width: 200px;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
#fix-nav-box img {
  order: 1;
}
#fix-nav-box h2 {
  order: 2;
  margin: 10px 0 0 0;
  font-size: 12px;
  font-weight: bold;
}

main {
  padding: 15px 80px 15px 80px;
	color: #333333;
}
article h1{
  margin-bottom: 5px;
  text-transform: uppercase;
}
article p{margin: 5px 0px 5px 0px;}
.hirek-category{margin:15px 0px;}
.hirek-category h2{
  margin-bottom: 5px;
  font-size: 24px;
  text-align: left;
  text-transform: uppercase;
}

.category-posts-container {
  display: flex;
  gap: 4%;
  flex-wrap: wrap; 
}

.category-post {
  width: 30%;
  height: 250px;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: white;
}
.category-post:hover{
  box-shadow: 2px 2px 10px silver;
}
.post-thumbnail {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
}

.post-content {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
}
.post-title{
  display: -webkit-box;
  margin: 5px 0px 5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-title a {
	font-size: 12px;
	font-weight: bold;
	color: black;
	text-decoration: none;
	line-height: 16px;
	display: block;
}
.post-date{
  margin: 0px 0px 5px 0px;
  font-size: 10px;
  color: gray;
}
.post-details {
  text-align: left;
}

.details-button {
  background-color: #4CAF50;
  color: white;
  padding: 6px 16px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
}

.details-button:hover {
  color: white;
  background-color: #45a049;
  box-shadow: 2px 2px 10px silver;
}
/* is not frontpage */
.is-not-frontpage h1{margin-bottom: 15px;}
.is-not-frontpage {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: flex-start !important;
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 15px;
}
.is-not-frontpage p {
  overflow: hidden; 
}
.is-not-frontpage img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}
#post-content h2{
  padding-left: 0px;
}
#post-content img {
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	margin: 0px 0px 0px 0px;
  max-height: 360px;
}
.pagination{
  text-align: center;
  padding: 15px 0px;
  font-weight: bold;
}
.pagination a{
  margin: 0px 15px 0px 15px;
  font-size: 18px;
}
.page-numbers.current {
	font-size: 18px;
	padding: 0px 15px 0px 15px;
	border-bottom: 1px solid #691b12;
	color: #691b12;
}
#front-page-hirek{padding-left:0px;}
/* category */
.category h1, h2 {
	font-weight: bold;
	font-size: 24px;
	padding-left: 80px;
	padding-right: 80px;
  padding-bottom: 15px;
	text-transform: uppercase;
}
.category h3, h4, h5, h6 {
  font-weight: bold;
	font-size: 20px;
	text-transform: uppercase;
}

.category-hirek.category-posts-container{
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 15px;
}
/* footer */
.footer-track{
  background: #d53321;
}
footer {
  margin: 15px auto 0px auto;
  padding-bottom: 15px;
  max-width: 1200px;
	text-align: center;
	color: white;
	background: #d53321;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  padding: 15px 80px 15px 80px;
}

.footer-widget {
  font-family: 'Open Sans', sans-serif;
  flex: 1;
}
.footer-widget h2 {
	margin: 0px;
	padding: 0px;
	text-align: left;
	font-size: 18px;
	text-transform: none;
}
.footer-text-2{padding-left: 15px;}
.footer-text-3{padding-left: 15px;}
.footer-row ul {
  padding: 0px;
  margin: 0px;
	list-style-type: none;
	text-align: left;
}
.footer-row li {margin: 3px 0px 3px 0px;}
.footer-row a {
  color: white;
  font-size: 14px;
  font-weight: normal;
}
.footer-row li:hover {text-decoration-line: underline}
.footer-row p {
  margin-top: 5px;
  color: white;
  font-size: 14px;
  text-align: left;
  line-height: 24px;
}
.copy-right {
	margin: 40px 0px 20px 0px;
	font-size: 12px;
	font-family: 'Open Sans', sans-serif;
}
@media (max-width: 1150px) {
  .menu-toggle {
    display: block;
    width: 60px;
    height: 50px;
    position: absolute;
    top: 19px;
    right: 10px;
    z-index: 1000;
    border: none;
    background: none;
    font-size: 35px;
    color: #d53321;
  }
  .menu-toggle[data-state="closed"]::before {content: "☰";}
  .menu-toggle[data-state="open"]::before {content: "✖";}
  nav.main-menu ul{display: none;}
  nav.main-menu.open ul{
    display: block;
  }
  nav.main-menu li{padding: 5px 0px;}
  .banner{display: none;}
  p{font-size:14px;}
}
@media (max-width: 1000px) {
  #right-top-corner {margin-right: 60px;}
  #right-top-corner p{font-size: 12px;}
  #right-top-corner .circle-img {
    width: 40px;
    height: 40px;
  }
  body .is-layout-flex {display: block;}
  .wp-block-embed iframe {padding:15px 15px 15px 0px;}
}
@media (max-width: 800px) {
  .header-track {padding: 0px 20px 0px 25px;}
  h1#brand-name {
    margin: 0px 15px 0px 10px;
    font-size: 16px;
    height: 46px;
  }
  #right-top-corner {margin-right: 40px;}
  #right-top-corner p {display: none;}
  nav.main-menu.open ul {padding:5px 15px 5px 20px;}
  main {
    padding-left: 25px;
    padding-right: 25px;
  }
  .category h1, h2 {
    padding-left: 25px;
    padding-right: 25px;
    text-transform: uppercase;
  }
  .footer-row {padding: 15px 40px 15px 40px;}
}
@media (max-width: 600px) {
  .logo img {
    max-height: 50px;
    margin-right: 10px;
  }
  h1#brand-name {
    margin: 0px 5px 0px 5px;
    font-size: 16px;
    height: 30px;
    line-height: 22px;
    
  }
  #fix-nav-box .fnb-circle {
    width: 40px;
    height: 40px;
  }
  #fix-nav-box a {
    display: inline-block;
    text-align: center;
    margin: 0px 10px;
  }
  #fix-nav-box img {
    display: block;
    margin: 0 auto;
  }
  #fix-nav-box h2 {
    margin: 10px 0px;
    padding: 0;
  }

  article h1 {text-align: center;}
  .is-not-frontpage {
    padding-left: 15px;
    padding-right: 15px;
  }
  .is-not-frontpage h1{font-size: 16px;}
  .category-post{
    width: 100%;
    max-width: 100%;
  }
  .category-posts-container {justify-content: left;}
  .footer-row{display: block;}
  .footer-widget{margin-top:15px;}
  .footer-text-2{padding: 0;}
  .footer-text-3{padding: 0;}
}
@media (max-width: 475px) {
  h1#brand-name {
    font-size: 13px;
    height: 69px;
    line-height: 21px;
  }
}