/*
Theme Name: НУ Петко Р. Славейков
Theme URI: https://nu-prslaveikov-plovdiv.eu/
Author: Max Vizia
Author URI: https://maxvizia.com
Description: Modern Block Theme
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: nu_pr_slaveikov
Tags: one-column, page-with-sidebar, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* Forms 
--------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"]:not(.site-header input[type="search"]),
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	box-sizing: border-box;
	max-width: 100%;
	color: inherit;
	line-height: inherit;
	font-size: inherit;
	font-family: inherit;
	padding: calc(0.667em + 2px);
	border: 1px solid #949494;
	border-radius: 4px;
}

textarea {
	resize: vertical;
}

.wpcf7-form-control:not(.wpcf7-submit),
.wpcf7-textarea {
	width: 100%;
}

.wpcf7-textarea {
	height: 150px;
}

.site-header input[type="search"] {
	padding-left: 1rem;
}

input:focus:not(.wpcf7-submit, .site-header input[type="search"]),
textarea:focus,
.site-header .wp-block-search:has(.wp-block-search__input:focus) {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 4px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.site-header .wp-block-search {
	border-radius: 8rem!important;
}

.wpcf7-submit {
	background-color: var(--wp--preset--color--secondary);
	border-radius: 4px;
	border-width: 0;
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	padding-top: calc(0.667em + 2px);
	padding-right: calc(1.333em + 2px);
	padding-bottom: calc(0.667em + 2px);
	padding-left: calc(1.333em + 2px);
	text-decoration: none;
	text-transform: inherit;
	cursor: pointer;
}

.wpcf7-submit:active,
.wpcf7-submit:focus,
.wpcf7-submit:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wp-element-button,
.wp-block-button.is-style-outline .wp-element-button,
.button,
.wpcf7-submit {
	transition: all 0.2s ease-in-out;
}

/* Images 
--------------------------------------------- */
img:not(.wp-block-site-logo img),
iframe:not(.alignfull iframe),
video {
	border-radius: 4px;
}

iframe {
	max-width: 100%;
}

:where(:not(.alignleft):not(.alignright):not(.alignfull)) iframe {
	max-width: 100%!important;
}

a img {
	transition: transform 0.2s ease;
}

a:active img,
a:hover img {
	transform: translateY(-2px);
}

/* Layout 
--------------------------------------------- */

/* Header */
@media (max-width: 1023px) {
	
	.header-middle .wp-block-group,
	.header-middle .wp-block-group .wp-block-group {
		justify-content: center;
	}
	
	.header-middle .wp-block-buttons {
		margin-bottom: var(--wp--preset--spacing--20);
	}
	
}

.home footer.wp-block-template-part,
.page-id-26 footer.wp-block-template-part {
	margin-block-start: 0;
}

.home .site-footer,
.page-id-26 .site-footer {
	margin-top: 0!important;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:focus {
	text-decoration: underline dashed;
}

.site-footer a:hover:not(:focus) {
	text-decoration: underline;
}

/* Pages */
.page-id-26 main .wp-block-template-part:not(:has(*)) {
	display: none;
}

/* Sidebar */
.site-sidebar .sidebar-event-navigation ul,
.site-sidebar .sidebar-post-navigation ul {
	margin-bottom: 0;
}

.site-sidebar .sidebar-event-navigation .sidebar-event-navigation__item:not(:last-child),
.site-sidebar .sidebar-post-navigation .sidebar-post-navigation__item:not(:last-child) {
	border-bottom: 1px solid var(--wp--preset--color--septenary);
	padding-bottom: .5rem;
}

.site-sidebar .sidebar-page-navigation {
	margin-top: .5rem;
}

.site-sidebar .sidebar-page-navigation ul {margin-block-start: 0;
	margin-bottom: 0;
}

.site-sidebar .sidebar-page-navigation .sidebar-post-navigation__item a,
.site-sidebar .sidebar-event-navigation .sidebar-event-navigation__item a,
.site-sidebar .sidebar-post-navigation .sidebar-post-navigation__item a {
	text-decoration: none;
}

.site-sidebar .sidebar-event-navigation .sidebar-event-navigation__item a:focus,
.site-sidebar .sidebar-post-navigation .sidebar-post-navigation__item a:focus {
	text-decoration: underline dashed;
}

.site-sidebar .sidebar-event-navigation .sidebar-event-navigation__item a:hover:not(:focus),
.site-sidebar .sidebar-post-navigation .sidebar-post-navigation__item a:hover:not(:focus) {
	text-decoration: underline;
}

.site-sidebar .sidebar-page-navigation .sidebar-post-navigation__item a {
	display: block;
	padding: .5rem .75rem;
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-radius: 4px;
}

.site-sidebar .sidebar-page-navigation .sidebar-post-navigation__item a:focus,
.site-sidebar .sidebar-page-navigation .sidebar-post-navigation__item a:hover,
.site-sidebar .sidebar-page-navigation .sidebar-post-navigation__item.current_page_item a {
	background-color: var(--wp--preset--color--tertiary);
}

.site-sidebar .sidebar-event-navigation .sidebar-event-navigation__meta,
.site-sidebar .sidebar-post-navigation .sidebar-post-navigation__date {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
}

/* Navigation 
--------------------------------------------- */
.site-header .main-navigation .wp-block-navigation__submenu-container {
	border-top-width: 0px;
	border-color: var(--wp--preset--color--primary);
}

@media (min-width: 600px) {
	.site-header .main-navigation ul ul {
		box-shadow: var(--wp--preset--shadow--natural);
	}
}

.wp-block-navigation__responsive-container-close svg, 
.wp-block-navigation__responsive-container-open svg {
	height: 26px;
	width: 26px;
}

.wp-block-navigation__responsive-container-open {
	margin-left: auto!important;
	margin-right: auto!important;
}

.site-header .main-navigation ul li a {
	padding: .5rem!important;
}

@media (max-width: 599px) {
	
	.site-header .main-navigation li:not(:last-child) {
		border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	}

	.site-header .main-navigation ul li a {
		font-size: var(--wp--preset--font-size--medium);
	}
	
}

@media (min-width: 600px) {
	.site-header .main-navigation .wp-block-navigation__submenu-container li:not(:last-child) {
		border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	}	
}

.site-header .main-navigation button.wp-block-navigation__responsive-container-open {
	margin-top: .5rem;
	margin-bottom: .5rem;
}

.site-header .main-navigation ul li.current-menu-item:not( .wp-block-navigation__submenu-container a),
.site-header .main-navigation ul li.current-menu-ancestor,
.site-header .main-navigation ul li:hover {
	background: var(--wp--preset--color--tertiary);
}

.site-header .main-navigation ul li a:hover:not(:focus) {
	text-decoration: none;
}

@media (max-width: 599px) {

	.site-header .main-navigation ul {
		width: 100%!important;
		gap: 0!important;
	}
	
	.site-header .main-navigation .wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container {
		padding: 0!important;
	}
	
	.site-header .main-navigation .wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container ul {
		padding-left: 1rem!important;
	}
	
	.site-header .main-navigation ul li {
		position: relative;
		width: calc(100%);
	}
	
	.site-header .main-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
		display: block !important;
	}

	.site-header .main-navigation .wp-block-navigation .has-child .wp-block-navigation__submenu-icon {
		align-self: center;
		background-color: inherit;
		border: none;
		color: currentColor;
		display: inline-block;
		position: absolute;
		top: 1rem;
		right: .5rem;
		font-size: inherit;
		line-height: 0;
		margin-left: 0;
		width: .75rem;
		height: .75rem;
		z-index: 1000;
	}

	.site-header .main-navigation .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		height: 0;
		overflow: hidden;
		visibility: hidden;
		width: 0;
	}

	.site-header .main-navigation .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		opacity: 1;
		overflow: visible;
		visibility: visible;
		height: inherit;
		width: inherit;
	}
	
}

@media (min-width: 600px) {

	.site-header .main-navigation .wp-block-navigation .has-child {
		padding-right: .5rem;
	}
	
	.site-header .main-navigation .wp-block-navigation .wp-block-navigation__submenu-icon {
		margin-left: 0;
	}
	
}

/* Elements 
--------------------------------------------- */

/* Top Contacts */
.site-header .top-contacts {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
}

@media (min-width: 600px) {
	.site-header .top-contacts {
		justify-content: end;
	}
}

.site-header .top-contacts li {
	white-space: nowrap;
	flex-shrink: 0;
	padding: .5rem;
	font-size: var(--wp--preset--font-size--small);
}

.site-header .top-contacts a {
	text-decoration: none;
}

.site-header .top-contacts a:focus {
	text-decoration: underline dashed;
}

.site-header .top-contacts a:hover:not(:focus) {
	text-decoration: underline;
}

/* Home About Section */
.home-about .wp-block-media-text__media {
	padding: var(--wp--preset--spacing--10);
	border-radius: 10px;
	box-shadow: var(--wp--preset--shadow--natural);
}

.home-about .wp-block-media-text > .wp-block-media-text__content {
	padding-left: 0;
}

/* Home Top Buttons Section */
.home-top-buttons .wp-element-button {
	display: flex;
	flex-wrap: nowrap;
	justify-content: start;
	gap: var(--wp--preset--spacing--10);
	align-items: center;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

@media (max-width: 599px) {
	.home-top-buttons.wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
		width: calc(100%)!important;
	}
}

@media(min-width: 600px) and (max-width: 1023px) {
	.home-top-buttons.wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
		width: calc(50% - var(--wp--style--block-gap, .5em)*.75)!important;
	}
}

.home-top-buttons svg {
	vertical-align: -.25em;
}

/* Events */
.home-events .pr-events-list {
	margin-left: 0;
	padding-left: 0;
}

.home-events .pr-events-list .wp-block-group {
	gap: .25rem;
	flex-direction: column;
	align-items: flex-start;
}

.home-events .pr-events-list .pr-event-item {
	display: flex;
	gap: var(--wp--preset--spacing--10);
	align-items: center;
	margin-block-start: 0;
}

.home-events .pr-events-list .pr-event-item:not(:last-child) {
	margin-bottom: calc(var(--wp--preset--spacing--10) * 1.5);
	border-bottom: 1px solid var(--wp--preset--color--septenary);
	padding-bottom: calc(var(--wp--preset--spacing--10) * 1.5);
}

.home-events .pr-events-list .pr-event-item .pr-event-title {
	margin-top: 0;
	margin-bottom: 0;
}

.home-events .pr-events-list .pr-event-item .pr-event-date,
.post-type-archive-event .pr-event-date {
	background-color: var(--wp--preset--color--quaternary);
	color: var(--wp--preset--color--base);
	padding: .5rem;
	text-align: center;
	min-width: 4rem;
	border-radius: 4px;
	height: fit-content;
}

.home-events .pr-events-list .pr-event-item .pr-event-date span,
.post-type-archive-event .pr-event-date span {
	display: block;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.2;
	text-shadow: 0 0 1px rgba(0, 0, 0, 0.8);
}

.home-events .pr-events-list .pr-event-item .pr-event-date .pr-event-date-time,
.post-type-archive-event .pr-event-date .pr-event-date-time {
	margin-top: .25rem;
	padding-top: .25rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	border-top: 1px solid rgba(255,255,255,.5);
}

.home-events .pr-events-list .pr-event-item:nth-child(2) .pr-event-date {
	background-color: var(--wp--preset--color--quinary);
}

.post-type-archive-event .pr-event-date {
	background-color: var(--wp--preset--color--secondary);
}

.home-events .pr-events-list .pr-event-item:nth-child(3) .pr-event-date {
	background-color: var(--wp--preset--color--tertiary);
}

.home-events .pr-events-list .pr-event-item:nth-child(4) .pr-event-date {
	background-color: var(--wp--preset--color--secondary);
}

.post-type-archive-event .pr-event-location {
	font-size: var(--wp--preset--font-size--small);
}

.single-event-info {
	text-align: center;
}
	
.home-events .pr-events-list .pr-event-item .pr-event-location span,
.post-type-archive-event .pr-event-location span, {
	display: inline-block;
}

.post-type-archive-event .pr-event-location span {
	margin-right: .25rem;
}

.single-event-info span {
	margin-right: .5rem;
}

.home-events .pr-events-list .pr-event-item .pr-event-location svg,
.post-type-archive-event .pr-event-location svg {
	vertical-align: baseline;
}

.single-event-info svg {
	vertical-align: middle;
}

.home-events .pr-events-list .pr-event-item .pr-event-location svg,
.post-type-archive-event .pr-event-location svg {
	opacity: .8;
}

.single-event-info svg {
	font-size: 1.125em;
	color: var(--wp--preset--color--secondary);
}

.home-messages ul li {
	margin-block-start: 0;
}

.home-messages ul li:not(:last-child) {
	margin-bottom: calc(var(--wp--preset--spacing--10) * 1.5);
	border-bottom: 1px solid var(--wp--preset--color--septenary);
	padding-bottom: calc(var(--wp--preset--spacing--10) * 1.5);
}

.home-messages ul li .wp-block-group {
	position: relative;
	padding-left: 1.5rem;
}

.home-messages ul li .wp-block-group::before {
	background-color: var(--wp--preset--color--quaternary);
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: .75rem;
	height: .75rem;
	border-radius: 8rem;
}

.home-messages ul li:nth-child(2) .wp-block-group::before {
	background-color: var(--wp--preset--color--quinary);
}

.home-messages ul li:nth-child(3) .wp-block-group::before {
	background-color: var(--wp--preset--color--tertiary);
}

.home-messages ul li:nth-child(4) .wp-block-group::before {
	background-color: var(--wp--preset--color--secondary);
}

/* Blocks 
--------------------------------------------- */
.wp-block-post-excerpt__more-text {
	margin-top: var(--wp--preset--spacing--10);
}

/* WP Grid & Columns */
@media (min-width: 600px) and (max-width: 1023px) {

	.home-news .wp-block-post-template,
	.home-achievements .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	.wp-block-post-template.is-flex-container.is-flex-container.columns-3 > li {
		width: calc(50% - .83333em);
	}
}

/* Other 
--------------------------------------------- */
.svg-inline--fa {
	box-sizing: content-box;
	display: var(--fa-display,inline-block);
	height: 1em;
	overflow: visible;
	vertical-align: -.125em;
	width: var(--fa-width,1.25em);
}

.category-galeriya .wp-block-read-more {
	color: var(--wp--preset--color--base);
}

.line-after{
	position: relative;
}

.line-after::after {
	display: block;
	content: '';
	margin-top: 1rem;
	width: 50%;
	height: 4px;
	background: linear-gradient(to left, #ffffff, #2E7D4F);
	transform: translateY(-50%);
}

@media screen and (min-width: 768px) {
	.line-after::after {
		width: 8rem;
	}
}

.site-footer .line-after::after {
	background: linear-gradient(to left, transparent, #ffffff);
}

/* Font Awesome Icons */
.contact-info .svg-inline--fa {
	width: var(--fa-width,1.25em);
}

.fa-icon-address .wp-block-navigation-item__content::before {
	content: "";
	box-sizing: content-box;
	display: inline-block;
	width: var(--fa-width,1.25em);
	height: 1em;
	margin-right: .25rem;
	vertical-align: -.125em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path fill='black' d='M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z'/></svg>") no-repeat center;
	-webkit-mask-size: contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path fill='black' d='M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z'/></svg>") no-repeat center;
	mask-size: contain;
}

.fa-icon-phone .wp-block-navigation-item__content::before {
	content: "";
	box-sizing: content-box;
	display: inline-block;
	width: var(--fa-width,1.25em);
	height: 1em;
	margin-right: .25rem;
	vertical-align: -.125em;
	background-color: currentColor;
	-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z'/></svg>") no-repeat center;
	-webkit-mask-size: contain;
	mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z'/></svg>") no-repeat center;
	mask-size: contain;
}

.fa-icon-envelope .wp-block-navigation-item__content::before {
	content: "";
	box-sizing: content-box;
	display: inline-block;
	width: var(--fa-width,1.25em);
	height: 1em;
	margin-right: .25rem;
	vertical-align: -.125em;
	background-color: currentColor;
	-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M48 64c-26.5 0-48 21.5-48 48 0 15.1 7.1 29.3 19.2 38.4l208 156c17.1 12.8 40.5 12.8 57.6 0l208-156c12.1-9.1 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48L48 64zM0 196L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-188-198.4 148.8c-34.1 25.6-81.1 25.6-115.2 0L0 196z'/></svg>") no-repeat center;
	-webkit-mask-size: contain;
	mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M48 64c-26.5 0-48 21.5-48 48 0 15.1 7.1 29.3 19.2 38.4l208 156c17.1 12.8 40.5 12.8 57.6 0l208-156c12.1-9.1 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48L48 64zM0 196L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-188-198.4 148.8c-34.1 25.6-81.1 25.6-115.2 0L0 196z'/></svg>") no-repeat center;
	mask-size: contain;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumb-item {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0;
}

.breadcrumb-item:not(:last-child)::after {
	content: "/";
	opacity: .5;
	margin-left: .25rem;
	margin-right: .25rem;
}

.breadcrumb-item.current {
	font-weight: 500;
}

.breadcrumbs a {
	text-decoration: none;
}

.breadcrumbs a:focus {
	text-decoration: underline dashed;
}

.breadcrumbs a:hover:not(:focus) {
	text-decoration: underline;
}

