/*
Theme Name: Rockbase
Theme URI: https://rockbase.co
Author: Chris Hufnagel & Rafal Tomal
Author URI: https://rockbase.co
Description: The foundation for your next WordPress project. 
Requires at least: 6.0
Tested up to: 6.0
Requires PHP: 5.6
Version: 1.0.2
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: rockbase
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, translation-ready, block-styles, template-editing, wide-blocks

Rockbase WordPress Theme, (C) Rockbase.
Rockbase is distributed under the terms of the GNU GPL.
*/

/*
Experiment - Control the gap on query loop
*/

:root {
	--wp--block--post-template--gap: 2%;
}

.wp-block-post-template.is-flex-container {
	gap: var(--wp--block--post-template--gap);
}

@media (min-width: 600px) {
	.wp-block-post-template.is-flex-container.is-flex-container.columns-2 > li  {
		width: calc( ( 100% / 2 ) - var(--wp--block--post-template--gap) + ( var(--wp--block--post-template--gap) / 2 ) );
	}

	.wp-block-post-template.is-flex-container.is-flex-container.columns-3 > li  {
		width: calc( ( 100% / 3 ) - var(--wp--block--post-template--gap) + ( var(--wp--block--post-template--gap) / 3 ) );
	}

	.wp-block-post-template.is-flex-container.is-flex-container.columns-4 > li  {
		width: calc( ( 100% / 4 ) - var(--wp--block--post-template--gap) + ( var(--wp--block--post-template--gap) / 4 ) );
	}

	.wp-block-post-template.is-flex-container.is-flex-container.columns-5 > li  {
		width: calc( ( 100% / 5 ) - var(--wp--block--post-template--gap) + ( var(--wp--block--post-template--gap) / 5 ) );
	}

	.wp-block-post-template.is-flex-container.is-flex-container.columns-6 > li  {
		width: calc( ( 100% / 6 ) - var(--wp--block--post-template--gap) + ( var(--wp--block--post-template--gap) / 6 ) );
	}

}

/*
Defaults
*/

html {
	overflow-x: hidden;
	overflow-y: scroll;
	scroll-behavior: smooth;
}

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

 body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

 a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25ch;
	transition: all ease-in-out 0.2s;
}

a:hover,
a:focus {
	text-decoration: none;
}

a:active {
	text-decoration: none;
}

input {
	border-radius: 4px;
	padding: var(--wp--preset--spacing--small) var(--wp--preset--spacing--small);
	border: none;
 }

/*
 * Footer
 */

 .wp-site-blocks > footer {
	margin-block-start: 0;
 }

 main > *:last-child {
	margin-block-start: 0;
 }

 footer a {
	text-decoration: none;
 }


/*
 * Experimental 
 * Extend wide block with background outside wide width.
 * Aligns content inside based on medium padding.
 *
 */

.wp-block-group.has-background.alignwide {
	max-width: calc(var(--wp--style--global--wide-size) + (var(--wp--preset--spacing--x-large) + var(--wp--preset--spacing--x-large)))!important;
}

.wp-block-group.has-background:not(footer .has-background) {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}


/* Utility Classes
--------------------------------------------- */
.hide-overflow {
	overflow: hidden!important;
}

.stretch-height {
	display: flex;
	align-self: stretch!important;
}

.stretch-height > div,
.stretch-height > li {
	align-self: stretch!important;
	display: flex;
	width: 100%;
}

.rockbase-chip,
.rockbase-chip.has-background {
	display: inline-block;
	border-radius: 20px;
	padding: 7px 13px;
	line-height: 1;
}

.green-circle-highlight {
	position: relative;
	z-index: 999;
}

.green-circle-highlight:after {
	content: "";
	position: absolute;
	background-image: url('../svg/underline.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	left: -9%;
	top: -3%;
	width: 118%;
	height: 118%;
	z-index: -1;
}

.since-2009 {
	position: relative;
	z-index: 999;
}

.since-2009:after {
	content: "";
	position: absolute;
	background-image: url('../webp/since2009.webp');
	background-size: contain;
	background-repeat: no-repeat;
	right: -10%;
	bottom: -50%;
	width: 138px;
	height: 70px;
	z-index: -1;
	-webkit-animation: slide-left 0.5s ease-in-out 0.8s both;
	        animation: slide-left 0.5s ease-in-out 0.8s both;
}

@-webkit-keyframes slide-left {
	0% {
	  -webkit-transform: translateX(200px) scale(0);
			  transform: translateX(200px) scale(0);
	}
	100% {
	  -webkit-transform: translateX(0) scale(1);
			  transform: translateX(0) scale(1);
	}
  }
  @keyframes slide-left {
	0% {
		-webkit-transform: translateX(200px) scale(0);
		transform: translateX(200px) scale(0);
	}
	100% {
		-webkit-transform: translateX(0) scale(1);
		transform: translateX(0) scale(1);
	}
  }
  
.spi-group-absolute-item {
	position: relative;
	z-index: 1;
}

.spi-group-absolute-item .spi-item-absolute {
	position: absolute;
	margin: auto;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;

}

.image-negative-top {
	margin-top: -20%!important;
}

.hide-desktop {
	display: none!important;
}

.hide-mobile {
	display: block!important;
}

@media (max-width: 781px) {
	.hide-desktop {
		display: block!important;
	}

	.hide-mobile {
		display: none!important;
	}

	.community-icon-mobile-small img {
		max-width: 100px;
	}
}

.has-green-squiggle {
	position: relative;
	z-index: 999;
}

.has-green-squiggle:after {
	content: "";
	position: absolute;
	background-image: url('../svg/squiggle.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	left: 0;
	bottom: -80%;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.has-text-wrap-balance {
	text-wrap: balance!important;
}


/* CTA Block Patterns
--------------------------------------------- */
 .avatars-stacked figure {
	margin-left: -8%;
 }

 .avatars-stacked figure:last-of-type {
	margin-right: 0;
 }

 .has-arrow-left,
 .has-arrow-right {
	display: block;
	position: relative;
 }

 .has-arrow-left:after {
	position: absolute;
	top: 0;
	left: -60px;
	width: 90px;
	height: 180px;
	content: '';
	background: url('../webp/cta_arrow_left.webp');
	background-size: contain;
	background-repeat: no-repeat;
 }

 .has-arrow-right:after {
	position: absolute;
	top: -55px;
	right: -100px;
	width: 57px;
	height: 142px;
	content: '';
	background: url('../cta_arrow_right.html');
	background-size: contain;
	background-repeat: no-repeat;
 }

 .spi-cta-main {
	position: relative;
 }

 .spi-cta-main .has-arrow-left:after {

	top: 0;
	left: -100px;
	width: 70px;
	height: 140px;
 }

.spi-cta-main-image-1 {
	position: absolute;
	bottom: -15%;
	left: 2%;
}

.spi-cta-main-image-2 {
	position: absolute;
	top: 15%;
	right: 2%;
}

@media (max-width: 1000px) {
	.spi-cta-main-image-2,
	.spi-cta-main-image-1 {
		display: none;
	}
}

@media (max-width: 800px) {
	.has-arrow-left:after,
	.has-arrow-right:after {
		display: none;
	}
}
 
/* Convertkit custom styles
--------------------------------------------- */
html .formkit-form {
	background-color: var(--wp--preset--color--background-1);
	border-radius: 40px;
	box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.10);
	overflow: hidden;
	padding: 4px 10px 4px 16px;
	border: 2px solid #fff;
	transition: all ease-in-out 0.2s;
}

html .formkit-form > div {
	padding: 0!important;
}

 html .formkit-form .formkit-fields {
	display: grid!important;
	grid-template-columns: 1.15fr 2fr 1.5fr;
 }

 html .formkit-form:focus-within {
	border: 2px solid var(--wp--preset--color--primary);
	transition: all ease-in-out 0.2s;
 }

 html .formkit-form .formkit-field, 
 html .formkit-form .formkit-submit {
	flex-grow: 1!important;
	flex: 1 0 10%!important;
	-webkit-box-flex: auto!important;
	margin-top: 0;
	margin-bottom: 0!important;
	margin-right: 0!important;
	margin-left: 0!important;
	font-size: var(--wp--preset--font-size--small)!important;
 }

 html .formkit-form .formkit-powered-by-convertkit-container {
	display: none!important;
 }

 html .formkit-form .formkit-input {
	border: none!important;
	padding: 12px 16px!important;
	font-size: 16px!important;
	line-height: 1;
	
 }

 html .formkit-form .formkit-button,
 html .formkit-form .formkit-submit {
	-webkit-transition: all ease-in-out 0.2s !important;
	transition: all ease-in-out 0.2s !important;
	background-color: var(--wp--preset--color--primary)!important;
	color: var(--wp--preset--color--background-1)!important;
	padding: 12px 16px!important;
	display: block;
	white-space: nowrap;
	width: 100%;
	border-radius: 30px!important;
	width: 100%;
	font-size: 16px!important;
	line-height: 1;
 }

 html .formkit-form .formkit-button > span,
 html .formkit-form .formkit-submit > span {
	padding: 0!important;
	-webkit-transition: none!important;
	transition: none!important;
 }

 html .formkit-form .formkit-button:hover > span,
 html .formkit-form .formkit-submit:hover > span {
	background: transparent!important;
 }

 html .formkit-form .formkit-button:hover,
 html .formkit-form .formkit-submit:hover {
	background-color: var(--wp--preset--color--foreground-1)!important;
 }

 html .formkit-form .formkit-field {
	position: relative;
 }

 html .formkit-form .formkit-field:first-of-type:after {
	display: block;
	content: "";
	width: 1px;
	height: 30px;
	background-color: var(--wp--preset--color--background-4);
	position: absolute;
	right: 0;
	top: calc(50% - 15px);
 }

 @media (max-width: 700px) {
	html .formkit-form {
		border-radius: 10px;
		padding: 4px;
	}
	html .formkit-form .formkit-fields {
		grid-template-columns: 1fr;
	}
	html .formkit-form .formkit-input {
		text-align: center;
	}
	html .formkit-form .formkit-field:first-of-type:after {
		display: none!important;
	 }
	 html .formkit-form .formkit-field:first-of-type {
		border-bottom: 1px solid var(--wp--preset--color--background-4);
	 }
	 html .formkit-form .formkit-button, 
	 html .formkit-form .formkit-submit {
		margin-top: 12px!important;
	 }

	 html .formkit-form .formkit-button,
	 html .formkit-form .formkit-submit {
		border-radius: 7px!important;
		max-width: calc(100% - 8px)!important;
		margin-left: 4px!important;
		margin-right: 4px!important;
	 }
}

 /* Single Post */

 .spi-single-meta-data a {
	text-decoration: none;
 }

 .spi-single-post-footer-cta * {
	display: inline-block;
	margin: 0;
	position: relative;
 }

 .has-speech-arrow-left {
	position: relative;
 }

.has-speech-arrow-left:after {
	right: 100%;
	top: 50%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(250, 251, 251, 0);
	border-right-color: #FAFBFB;
	border-width: 25px;
	margin-top: -25px;
}

 .spi-single-post-footer-cta .wp-block-post-title {
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
 }

 .spi-apple-podcasts-button {
	display: flex;
	background-color: var(--wp--preset--color--foreground-1);
	color: var(--wp--preset--color--background-1);
	border-radius: 10px;
	padding: 4px 24px 4px 4px;
	text-decoration: none;
	font-size: 16px;
	white-space: nowrap;
	border: 2px solid var(--wp--preset--color--foreground-1);
 }

 .spi-apple-podcasts-button:hover {
	background-color: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--foreground-1);
 }

 .spi-apple-podcasts-button img {
	float: left;
	margin-bottom: 0;
	margin-right: 10px;
	max-width: 32px;
 }

 .spi-apple-podcasts-button span.eyebrow {
	font-size: 10px;
	display: block;
	margin: 3px 0 1px 0;
 }

 .spi-apple-podcasts-button span {
	display: block;
	line-height: 1;
 }

  
  .moretext {
	display: none;
  }

  .moreless-button {
	margin: 20px auto 0;
	display: inline-block;
	cursor: pointer;
}

  .newsletter-fade {
	position: relative;
	width: 100%;
  }

  .newsletter-fade:after {
	content: "";
	height: 250px;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 10%, #FFF 100%);
	z-index: 1;
  }

  .newsletter-fade.clicked:after {
	background: transparent;
  }

  .similar-posts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: var(--wp--preset--spacing--small);
  }

  .similar-posts-grid .custom-author-info {
	margin-top: var(--wp--preset--spacing--small);
  }

  .similar-posts-grid a:hover .custom-author-info {
	color: var(--wp--preset--color--foreground-1);
  }

  .similar-posts-grid .similar-post a {
	display: block;
	padding: var(--wp--preset--spacing--medium);
	background-color: var(--wp--preset--color--tertiary);
	border-radius: 10px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--foreground-1);
	text-decoration: none;
  }

  .similar-posts-grid .similar-post a:hover {
	color: var(--wp--preset--color--primary);
  }


  /* Icons */

  .tools-has-icon-top-right {
	position: relative;
	z-index: 999!important;
  }

  .tools-has-icon-top-right:after {
	position: absolute;
	z-index: -1!important;
	content: "";
	background-image: url('../png/icon_products.png');
	background-size: contain;
	width: 200px;
	height: 200px;
	top: -130px;
	right: -70px;
  }

  @media (max-width: 700px) {
	.tools-has-icon-top-right:after {
		display: none;
	}
  }

  .tools-card-wrapper {
	display: flex;
	background-color: var(--wp--preset--color--background-1);
	border: 2px solid var(--wp--preset--color--background-3);
	border-radius: 10px;
	padding: var(--wp--preset--spacing--x-small);
	flex-direction: row;
	align-items: center;
	color: var(--wp--preset--color--foreground-1);
	text-decoration: none;
	transition: all ease-in-out 0.2s;
  }

  .tools-card-wrapper img {
	max-width: 60px;
	margin-bottom: 0;
	-webkit-transform: scale(1);
			transform: scale(1);
			transition: all ease-in-out 0.2s;
  }

  .tools-card-icon {
	margin-right: var(--wp--preset--spacing--x-small);
	align-items: center;
	display: flex;
  }

  .tools-card-title {
	font-size: 20px;
	font-weight: 600;
	transition: all ease-in-out 0.2s;
  }

  .tools-card-wrapper:hover img {
	-webkit-transform: scale(1.2);
			transform: scale(1.2);
  }
  .tools-card-wrapper:hover .tools-card-title {
	color: var(--wp--preset--color--primary);
  }

  .wp-block-post-excerpt__more-text {
	margin-top: var(--wp--preset--spacing--medium);
  }

  .wp-block-post-template-is-layout-grid > li {
	display: grid;
  }

  .wp-block-query-pagination .wp-block-query-pagination-numbers a {
	display: inline-block;
	background-color: var(--wp--preset--color--background-2);
	margin-right: 4px;
	margin-left: 4px;
	width: 32px;
	height: 32px;
	text-align: center;
	border-radius: 50%;
	line-height: 32px;
	text-decoration: none;
	color: var(--wp--preset--color--foreground-1);
	transition: all ease-in-out 0.2s;
  }

  .wp-block-query-pagination .wp-block-query-pagination-numbers a:hover {
	background-color: var(--wp--preset--color--background-4);
  }

  .wp-block-query-pagination .wp-block-query-pagination-numbers span.current {
	background-color: var(--wp--preset--color--foreground-1);
	color: var(--wp--preset--color--background-2);
	margin-right: 4px;
	margin-left: 4px;
	width: 32px;
	height: 32px;
	text-align: center;
	border-radius: 50%;
	line-height: 32px;
	text-decoration: none;
	display: inline-block;
  }

  .is-most-popular {
	position: relative;
  }

  .is-most-popular:before {
	content: "";
	position: absolute;
	top: -70px;
	left: calc(50% - 160px);
	right: calc(50% - 160px);
	text-align: center;
	background-image: url('../png/pricing_most_popular.png');
	background-size: contain;
	background-repeat: no-repeat;
	width: 320px;
	height: 70px;
  }

  .editor-styles-wrapper a.wpzoom-video-popup-block, 
  a.wpzoom-video-popup-block {
	min-height: 0;
	opacity: 0.75;
	transition: all ease-in-out 0.2s;
  }

  .editor-styles-wrapper a.wpzoom-video-popup-block:hover, 
  a.wpzoom-video-popup-block:hover {
	opacity: 1;
  }


/* 
.eir-video-negative-margin {
	margin-top: -8.5vw!important;
} */

.eir-left,
.eir-right {
	position: relative;

}

.eir-left img {
	position: absolute;
	right: -15%;
	top: clamp(60px, 4vw, 6vw);
	min-width: 226px;
  }

  .eir-right img {
	position: absolute;
	left: -15%;
	top: clamp(60px, 4vw, 6vw);
	min-width: 226px;
  }

  @media (max-width: 1200px) {

	.eir-left,
	.eir-middle-spacer,
	.eir-right {
		display: none!important;
	}

  }


  

  .slider-posts {
	position: relative;
	z-index: 9;
  }

  .slider-posts:before {
	content: "";
	position: absolute;
	top: -12px;
	right: -30px;
	width: 167px;
	height: 192px;
	background-image: url('../png/featured_posts_square.png');
	background-size: contain;
	background-repeat: no-repeat;
	z-index: -1;
  }

  .slider-posts:after {
	content: "";
	position: absolute;
	/* bottom: calc((0% + var(--wp--preset--spacing--xxx-large)) - 20px); */
	top: 53%;
	left: -40px;
	width: 78px;
	height: 78px;
	background-image: url('../png/featured_posts_circle.png');
	background-size: contain;
	background-repeat: no-repeat;
	z-index: -1;
  }


.custom-author-info {
	display: flex;
	gap: var(--wp--preset--spacing--xx-small);
	line-height: 1;
	align-items: center;
	font-weight: 600;
	font-size: 16px;
}

.custom-author-info img {
	max-width: 32px;
	border-radius: 50%;
	height: 100%;
}

/* Powered by Rockbase
--------------------------------------------- */
.powered-by-rockbase-button .wp-block-button__link{display:flex;align-items:center}.powered-by-rockbase-button .wp-block-button__link > *{opacity:.85;transition:all ease-in-out .2s}.powered-by-rockbase-button img{width:12px}.powered-by-rockbase-button .wp-block-button__link:hover,.powered-by-rockbase-button .wp-block-button__link:hover img{opacity:1}.powered-by-rockbase-button .wp-block-button__link:hover img{transform:scale(1.15) rotate(-12deg)}

.powered-by-rockbase-button img {
	display: inline-block;
	margin-right: 0.5em;
	margin-top: -1px;
	vertical-align: text-bottom;
	line-height: 1;
	max-width: 1.5em;
	max-height: 1.5em;
}