/*
Theme Name: Serv
Theme URI: https://themegrill.com/themes/serv/
Author: ThemeGrill
Author URI: https://themegrill.com/
Description: Serv is the beautiful business FSE theme. Optimized for SEO and speed, and it is fast, light-weighted, GDPR compliant, translation & RTL ready.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.1
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serv
Tags: full-site-editing, blog, news, block-patterns, one-column, custom-menu, editor-style, custom-colors, custom-logo, featured-images, full-width-template, rtl-language-support, template-editing, translation-ready, wide-blocks, threaded-comments
*/
/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/
/* Normalize
--------------------------------------------- */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
.wp-block-post-author__avatar,
.wp-block-social-links,
.wp-block-post-excerpt__excerpt,
.wp-block-separator {
	margin: 0;
	padding: 0;
}

html,
body {
	overflow-x: hidden;
}

.no-margin-top {
	margin-top: 0 !important;
}

/* Box sizing
--------------------------------------------- */
/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html {
	font-size: 1em;
}

.wp-site-blocks,
.wp-block-group.alignfull,
.wp-block-group.has-background {
	padding-left: var(--wp--custom--spacing--outer);
	padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks .alignfull {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
}

button:hover, button:focus,
input[type=button]:hover,
input[type=button]:focus,
input[type=reset]:hover,
input[type=reset]:focus,
input[type=submit]:hover,
input[type=submit]:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.button:hover,
.button:focus {
	text-decoration: underline;
}

img {
	height: auto;
	max-width: 100%;
}

/*--------------------------------------------------------------
# Blocks
--------------------------------------------------------------*/
.wp-block-post-title a,
.wp-block-site-title a,
.wp-block-post-excerpt__more-text a,
.serv-sidebar-categories a,
.wp-block-query-pagination a,
.wp-block-post-terms a {
	text-decoration: none;
	color: var(--wp--preset--color--heading);
}
.wp-block-post-title a:hover,
.wp-block-site-title a:hover,
.wp-block-post-excerpt__more-text a:hover,
.serv-sidebar-categories a:hover,
.wp-block-query-pagination a:hover,
.wp-block-post-terms a:hover {
	text-decoration: underline;
	color: var(--wp--preset--color--primary);
}

.wp-block-search__button:hover,
.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
}

.serv-post-loop.wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.serv-post-loop a.wp-block-post-excerpt__more-link {
	padding: 0.75em 2em;
	border-radius: var(--wp--custom--border-radius);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous {
	display: inline-block;
	font-size: 1rem;
	padding: 0.75em 2em;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius);
}
.wp-block-query-pagination .page-numbers.current, .wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .wp-block-query-pagination-next.current,
.wp-block-query-pagination .wp-block-query-pagination-next:hover,
.wp-block-query-pagination .wp-block-query-pagination-previous.current,
.wp-block-query-pagination .wp-block-query-pagination-previous:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
@media screen and (max-width: 600px) {
	.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous {
		padding: 0.25em 0.8em;
	}
}

.wp-block-group:empty {
	display: none;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-panel {
	background-color: var(--wp--preset--color--background);
}

.wp-block-categories a,
.wp-block-archives a,
.wp-block-latest-posts a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}
.wp-block-categories a:hover, .wp-block-categories a:focus, .wp-block-categories a:active,
.wp-block-archives a:hover,
.wp-block-archives a:focus,
.wp-block-archives a:active,
.wp-block-latest-posts a:hover,
.wp-block-latest-posts a:focus,
.wp-block-latest-posts a:active {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

header li.wp-block-pages-list__item {
	padding: 16px 8px;
	border-radius: 20px 20px 20px 0;
}
header li.wp-block-pages-list__item:has(a:empty) {
	padding: 0;
}
header li.wp-block-pages-list__item.current-menu-item, header li.wp-block-pages-list__item:hover {
	background-color: var(--wp--preset--color--background);
}
header .wp-block-navigation__submenu-container li.wp-block-pages-list__item {
	border-radius: 0;
}

.is-style-serv-group-style-1 {
	border-radius: 20px 20px 20px 0;
	overflow: hidden;
}

.wp-block-media-text:not(.is-stacked-on-mobile).has-media-on-the-right .wp-block-media-text__content {
	padding-left: 0;
}
.wp-block-media-text:not(.is-stacked-on-mobile):not(.has-media-on-the-right) .wp-block-media-text__content {
	padding-right: 0;
}

@media screen and (min-width: 600px) {
	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		padding: 0 8% 0 8%;
	}
	.wp-block-media-text .wp-block-media-text__media {
		margin-bottom: 0;
	}
}
.wp-block-comment-template {
	margin-top: 32px;
}
.wp-block-comment-template > .comment {
	border: 1px solid var(--wp--preset--color--primary);
	padding: 32px;
}
.wp-block-comment-template > .comment:not(:first-child) {
	margin-top: 16px;
}
.wp-block-comment-template > .comment .wp-block-columns {
	column-gap: 24px;
}
.wp-block-comment-template .wp-block-comment-date a,
.wp-block-comment-template .wp-block-comment-author-name a {
	color: var(--wp-preset--color-base);
	text-decoration: none;
}
.wp-block-comment-template .comment-reply-link {
	font-style: italic;
}
.wp-block-comment-template + .wp-block-post-comments-form {
	margin-top: 60px;
}

.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input:not([type=submit]) {
	border: 1px solid var(--wp--preset--color--base);
	font-size: 1em;
	font-family: inherit;
}

.wp-block-cover.alignfull {
	width: unset;
}

.is-style-serv-group-style-1 {
	border-radius: 20px 20px 20px 0;
	overflow: hidden;
}

.wp-block-post-author {
	column-gap: 32px;
}
.wp-block-post-author .wp-block-post-author__avatar {
	align-self: center;
}
.wp-block-post-author .wp-block-post-author__avatar img {
	border-radius: 50%;
}
.wp-block-post-author .wp-block-post-author__name {
	font-weight: 600;
	font-size: 18px;
}
.wp-block-post-author .wp-block-post-author__bio {
	font-size: 16px;
}

.wp-block-post-navigation-link a {
	display: flex;
	flex-direction: column-reverse;
	text-decoration: none;
	color: var(--wp--preset--color--base);
	gap: 10px;
}
.wp-block-post-navigation-link a:hover, .wp-block-post-navigation-link a:focus, .wp-block-post-navigation-link a:active {
	color: var(--wp--preset--color--primary);
}
.wp-block-post-navigation-link .post-navigation-link__title {
	font-size: 24px;
	font-weight: 500;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.wp-block-post-title {
	word-break: break-word;
}