/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

a {
	text-underline-offset: 5px;
}


hr {
  margin-bottom: 1em;
  margin-top: 1em;
}

/* Banner AD */
.before-content-media {
  display: flex;
  padding: 20px 20px 0 20px;
}

/* Navigation */

.main-navigation .main-nav ul li:first-child a {
  padding-left: 0;
}

#primary-menu li a {
  margin-right: 2em;
}

.main-navigation .menu-bar-item > a {
  margin-left: 2em;
}

#primary-menu .current-menu-item a {
  font-weight: 700;
  border-bottom: 2px solid;
}

.main-navigation ul ul {
  box-shadow: none;
  border-left: 1px solid var(--base);
  border-bottom: 1px solid var(--base);
}

.main-navigation .main-nav ul ul li a,
.main-navigation .main-nav ul ul li:first-child a {
  padding-left: 10px;
}

/* Off-Canvas Navigation */
.slideout-navigation.do-overlay .menu-item-has-children .dropdown-menu-toggle {
  border-left: 0 !important;
  padding: 0px !important;
}

.slideout-navigation.do-overlay ul ul {
  border: 0;
}

.slideout-navigation.do-overlay .slideout-menu li ul li a {
  color: rgb(34, 34, 34, .5);
}

/* Sisuturundus */
.news-tag {
  position: absolute;
  top: 0;
  right: 0;
}

.heading-padding {
	padding-left: .5em;
	padding-right: .5em;
	padding-bottom: 1em;
}

.external-icon:after {
  content: "";
background-image: url('data:image/svg+xml, %3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-external-link"%3E%3Cpath d="M15 3h6v6"/%3E%3Cpath d="M10 14 21 3"/%3E%3Cpath d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/%3E%3C/svg%3E');  background-size: contain;
  width: 16px;
  height: 16px;
  display: block;
}

/* Sidebar */
.sidebar hr {
  margin-top: 0;
}

.sidebar .wpp-list {
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.sidebar .wpp-list li {
  margin-bottom: .25em;
  border-bottom: 1px solid var(--base);
  padding-bottom: .5em;
  padding-top: .5em;
  list-style-type: disclosure-closed;
  list-style-position: inside;
}

/*
.wp-block-latest-posts li:before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' role='img' height='1em' width='1em' viewBox='0 0 256 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  height: 1em;
  width: 1em;
  display: inline-block;
  position: relative;
  top: 2px;
}
*/

.sticky-banner {
  position: fixed;
  right: 70px;
  margin-top: 20px;
  z-index: 1;
}

/* Sidebar Posts Slider */
.wppsac-post-carousel .slick-slide {
  background: var(--tamula);
  border: 2px solid #fcf3cf;
  border-radius: .25em;
}

.wppsac-post-carousel.design-1 .wppsac-carousel-slides {
  padding: 10px;
}

.wppsac-post-slider h2.wppsac-post-title a, 
.wppsac-post-carousel h2.wppsac-post-title a {
  font-size: 18px;
  line-height: 1.2em;
}
.wppsac-wrap {
  margin-bottom: 1em !important;
}

.wppsac-post-slider .slick-dots li button, 
.wppsac-post-carousel .slick-dots li button {
  background: rgb(240, 240, 240) !important;
  border: 0;
}

.wppsac-post-slider .slick-dots li.slick-active button, 
.wppsac-post-carousel .slick-dots li.slick-active button {
  background: #aaa !important;
}

.wppsac-wrap .wppsac-post-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.wppsac-post-carousel .slick-dots {
  margin-top: 10px !important;
}

.wppsac-wrap {
  position: relative;
}

.wppsac-wrap:after {
  content: "Sisuturundus";
  position: absolute;
  top: 0;
  right: 0;
  background: #fcf3cf;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  padding: .5em;
  border-top-left-radius: .25em;
}