/* 
 * Nowoczesne style dla szablonu single-modern.php
 * @package blogrid
 */

/* Główny kontener dla nowoczesnego wpisu */

.content-wrap {
  width: 100%;
  max-width: 100%;
}


.modern-single-post {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.site-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 100%;
  gap: 60px;
}



/* RELATED POSTS */

.related-posts-modern {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: min(450px, 100%);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0px 2px 6.3px 0px #30303033;
  max-height: max-content;
  gap: 30px;
}

.related-posts-modern h2 {
  font-family: Lato;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  margin-top: 0;
  margin: 0;
  /* margin-bottom: 30px; */
  color: #112434;
  position: relative;
  width: 100%;
  padding: 0;
}

.related-posts-modern-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.related-post-box {
  display: grid;
  grid-template-columns: 155px 1fr;
  grid-template-rows: auto auto auto;
  width: 100%;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-post-thumb {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 155px;
  height: 155px;
  min-width: 155px;
  min-height: 155px;
  max-width: 155px;
  max-height: 155px;
  overflow: hidden;
  background-color: #f5f5f5;
  box-shadow: 0px 2px 6.3px 0px #1e1e1ec2;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.related-post-link {
  text-decoration: none;
  display: contents;
}

.related-post-title {
  font-family: Lato;
  grid-column: 2;
  grid-row: 2;
  font-family: Lato;
  font-weight: 700;
  font-size: 20px;
  /* line-height: 1; */
  margin: 0;
  padding: 10px 0 0 15px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: wrap;
  color: #112434;
}

.related-post-link:hover .related-post-title {
  color: #2BA6F5;
}

.related-post-date {
  grid-row: 1;
  font-family: Lato;
  font-size: 12px;
  color: #A9A9A9;
  margin-bottom: 8px;
  padding: 10px 0 0 15px;
}

.related-post-arrow {
  grid-row: 3;
  display: flex;
  justify-content: flex-start;
  /* align-items: center; */
  /* margin-top: 10px; */
  padding-left: 15px;
}

.related-post-arrow svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.related-post-arrow path {
  stroke: #A9A9A9;
  transition: stroke 0.3s ease;
}

.related-post-link:hover .related-post-arrow path {
  stroke: #2BA6F5;
}

@media screen and (max-width: 768px) {
  .related-post-box {
    max-width: 100%;
    grid-template-columns: 120px 1fr;
  }
  
  .related-post-thumb {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
  }
  
  .related-post-title {
    font-size: 18px;
  }
}


/* POST ARTICLE BOX */

.modern-post-style {
  display: flex;
  flex-direction: column;
  width: min(815px, 100%);
  /* margin: 0 auto; */
  /* padding: 20px; */
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0px 2px 6.3px 0px #30303033;
}



/* POST CATEGORIES */

.post_categories_wrapper {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	/* gap: 10px; */
  justify-content: center;
  align-items: center;
  gap: 10px;
	/* position: absolute; */
	/* bottom: 0; */
	/* padding: 20px; */
}


.post_categories_wrapper .post_category_btn {
	background-color: #000;
	color: #fff;
	padding: 5px 10px;
	border-radius: 20px;
	padding-top: 3px;
	padding-right: 10px;
	padding-bottom: 3px;
	padding-left: 10px;
	text-decoration: none;
}


.post_categories_wrapper .category_purple {
	background-color: #AA8BD2;
}

.post_categories_wrapper .category_blue {
	background-color: #93B3E3;
}

.post_categories_wrapper .category_orange {
	background-color: #DE8930;
}

.post_categories_wrapper .category_yellow {
	background-color: #C5B828;
}

.post_categories_wrapper .category_green {
	background-color: #75C538;
}


/* POST HEADER */

.modern-post-style header {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* POST TITLE */

.post_title_wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.post_title_wrapper .post-title {
  font-family: Lato;
  font-weight: 700;
  font-style: Bold;
  font-size: 32px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
  margin: 0;
  padding: 0;
}


/* POST PUBLISH */

.post_publish_wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.post_publish_wrapper .post_publish_date {
  font-family: Lato;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: #A9A9A9;
}


/* POST IMAGE */

.post_image_wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.post_image_wrapper .post_image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  box-shadow: 0px 2px 6.3px 0px #30303033;
}


/* POST CONTENT */

.post_content_wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 50px 20px 30px;
  color: #333333;
}


.quick-answer {
  position: relative;
  padding: 20px;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-style: italic;
  border-left: 5px solid #2BA6F5;
}

/* .post_content_wrapper .quick-answer::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 40px;
  font-family: Georgia, serif;
  color: #2BA6F5;
  /* background-color: #f9f9f9; */
  /* padding: 0 10px;
  line-height: 1; */
/* } */

.post_content_wrapper h2 {
  font-family: Lato;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  leading-trim: NONE;
  line-height: 33px;
  letter-spacing: 0%;
  color: #333333;
}

.post_content_wrapper p {
  font-family: Lato;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: justify;
  color: #333333;
}

.post_content_wrapper a {
  color: #78c7f7;
  line-height: 120%;
  text-decoration: none;
  border-bottom: 1px solid #78c7f7;
  padding-bottom: 1px;
}

.post_content_wrapper a:hover {
  border-bottom: 2px solid #78c7f7;
  padding-bottom: 0px;
}