/*
Theme Name: University of Pannonia
Version: 1.1.1
Description: Unofficial WordPress website theme for the University of Pannonia, Veszprém. The theme has a few pre-built shortcodes that can be used to list posts in cards style, and also for a few other functionalities. PLease check the following link for details: https://doc.uni-pannon.hu/wp-shortcodes
Author: University of Pannonia
Author URI: https://uni-pannon.hu/
Template: twentytwentyfive
*/

body {
  overflow-x: hidden;
}

#header-main .wp-block-columns {
  flex-wrap: nowrap !important;
}

.site-logo-link {
  line-height: 0;
}

.content-section {
  max-width: calc(1300px + 4rem);
  margin: auto;
}

.h-padding-2 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.hv-padding-4-2 {
  padding: 4rem 2rem;
}

.pos-relative {
  position: relative;
}

.pos-absolute {
  position: absolute;
}

.hero-wave-wrapper {
  width: 100%;
  bottom: 0;
  height: 60px;
}

@media screen and (max-width: 767px) {
  .h-padding-2 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hv-padding-4-2 {
    padding: 3rem 1rem;
  }
}

::selection {
  background-color: #285780;
  color: white;
}

::-moz-selection {
  background-color: #285780;
  color: white;
}

/*
=====
home
=====
*/

#home-hero {
  background-image: url("https://wordpress.uni-pannon.hu/wp-content/uploads/images/alap-borito.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/*
=====
bejegyzés + archív oldal
=====
*/

.post-categories {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-posts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.custom-post-thumbnail br,
.post-meta-wrapper br,
p:empty {
  display: none;
}

.custom-post {
  background: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-meta-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.meta-separator {
  color: #666;
  line-height: 0;
}

.post-meta-wrapper p {
  margin: 0 !important;
  display: flex;
}

.custom-content-author {
  display: flex;
  align-items: center;
}

.custom-post a,
.product-categories a {
  text-decoration: underline;
  color: black;
}

a.custom-content-heading,
.custom-content-author a {
  text-decoration: none;
}

.custom-post a:hover,
.product-categories a:hover {
  text-decoration: none;
}

.custom-content-author a:hover {
  text-decoration: underline;
}

.custom-content h3 {
  margin: 0 0 0.5rem;
}

.custom-content-date,
.custom-content-author,
.custom-content-author a,
.custom-content-read-more {
  font-size: 0.825rem;
  color: #666;
}

.custom-post-thumbnail img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9 !important;
}

.custom-post li::marker {
  line-height: 0;
}

.custom-post h4,
.custom-post p {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.custom-post p {
  font-size: 1rem;
}

.uni-posts-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 90%;
}

@media screen and (max-width: 1024px) {
  .custom-posts-wrapper {
    grid-template-columns: 1fr;
  }

  .row-2col {
    gap: 3rem !important;
  }
}

@media screen and (max-width: 767px) {
  .custom-cats-wrapper ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 2em !important;
  }

  .row-2col {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}
