/*
Theme Name: Hestia Пролет
Theme URI: https://proletoryahovo.eu/
Description: Child тема на Hestia за ДГ „Пролет“, гр. Оряхово. Палитрата е взета от логото на градината.
Author: ITSERVICE
Author URI: https://itservice-bg.net
Template: hestia
Version: 1.0.0
Text Domain: hestia-prolet
*/

/* =========================================================
   1. Палитра — цветовете са извадени от логото на градината
   ========================================================= */
:root {
	--pl-sky: #2E9BD6;        /* облаците и дрешките */
	--pl-sky-dk: #1E7AAD;
	--pl-sky-lt: #E9F5FC;
	--pl-sun: #F5B92B;        /* цветята и буквите */
	--pl-coral: #E8503A;      /* „ПРОЛЕТ“ и пеперудата */
	--pl-grass: #5CB85C;      /* тревата */
	--pl-plum: #B85FA8;       /* пеперудата */
	--pl-teal: #17A2A2;
	--pl-cream: #FFFCF5;      /* топлото бяло на фона */
	--pl-ink: #2B3038;        /* графит — основният текст */
	--pl-muted: #5C6673;
	--pl-line: #E7E2D6;
	--pl-radius: 18px;
	--pl-shadow: 0 4px 18px rgba(43, 48, 56, .07);
	--pl-shadow-h: 0 10px 26px rgba(43, 48, 56, .14);
}

/* =========================================================
   2. База
   ========================================================= */
body,
body.blog,
body.archive,
body.page,
body.single {
	background-color: var(--pl-cream) !important;
	color: var(--pl-ink);
	font-family: "Nunito", "Roboto", -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.68;
}

h1, h2, h3, h4, h5,
.hestia-title,
.title,
.card-title {
	font-family: "Nunito", "Roboto Slab", Georgia, serif !important;
	color: var(--pl-ink);
	font-weight: 800 !important;
	letter-spacing: -.2px;
}

a { color: var(--pl-sky-dk); }
a:hover, a:focus { color: var(--pl-coral); }

/* Бутоните на Hestia */
.btn.btn-primary,
.btn.btn-primary:not(.btn-just-icon):not(.btn-fab),
.hestia-about .btn-primary,
input[type="submit"].btn-primary {
	background-color: var(--pl-sky) !important;
	border-color: var(--pl-sky) !important;
	color: #fff !important;
	border-radius: 26px !important;
	font-weight: 700 !important;
	text-transform: none !important;
	letter-spacing: .2px;
	box-shadow: 0 3px 10px rgba(46, 155, 214, .30) !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
	background-color: var(--pl-sky-dk) !important;
	border-color: var(--pl-sky-dk) !important;
}

.pl-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 18px;
	border-radius: 22px;
	background: var(--pl-sky);
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	transition: background .18s ease, transform .18s ease;
}

.pl-btn:hover { background: var(--pl-sky-dk); transform: translateY(-1px); }

/* Рамката на съдържанието — махаме „повдигнатата карта“ на Hestia,
   защото с ниския светъл банер тя създаваше застъпване. */
.main.main-raised {
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: var(--pl-cream) !important;
}

body:not(.home) .main.main-raised { background: #fff !important; }

/* =========================================================
   3. Хедър и меню — плътно бяло, логото четимо
   ========================================================= */
.navbar.navbar-default,
.navbar.navbar-default.navbar-transparent,
.navbar.navbar-color-on-scroll.navbar-transparent,
.navbar.navbar-color-on-scroll {
	background-color: #fff !important;
	box-shadow: 0 2px 14px rgba(43, 48, 56, .10) !important;
	border-bottom: 3px solid var(--pl-sun) !important;
	padding: 4px 0 !important;
	min-height: 0 !important;
}

/* ⚠️ Additional CSS се зарежда СЛЕД темата — оттук нататък всичко е !important. */
.navbar .navbar-header .navbar-brand {
	padding: 5px 0 !important;
	height: auto !important;
	margin: 0 !important;
}

.navbar .navbar-header .navbar-brand img {
	max-height: 62px !important;
	height: 62px !important;
	width: auto !important;
	margin: 0 !important;
}

.navbar .title-logo-wrapper { max-width: none !important; }

/* И двете лога сочат един файл — показваме само едното. */
.navbar .navbar-brand img.hestia-transparent-logo { display: none !important; }
.navbar .navbar-brand img.hestia-hide-if-transparent { display: inline-block !important; }

.navbar .navbar-nav > li > a {
	color: var(--pl-ink) !important;
	font-family: "Nunito", "Roboto", sans-serif !important;
	font-weight: 700 !important;
	font-size: 14.5px !important;
	text-transform: none !important;
	letter-spacing: .1px !important;
	padding: 10px 14px !important;
	margin: 4px 2px !important;
	border-radius: 24px !important;
	transition: background .18s ease, color .18s ease;
}

.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus,
.navbar .navbar-nav > li.active > a,
.navbar .navbar-nav > li.current-menu-item > a,
.navbar .navbar-nav > li.current-menu-parent > a,
.navbar .navbar-nav > li.current-category-ancestor > a {
	color: var(--pl-sky-dk) !important;
	background-color: var(--pl-sky-lt) !important;
}

.navbar .navbar-nav > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 7px;
	vertical-align: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.navbar .navbar-nav .dropdown-menu {
	border: none !important;
	border-radius: 14px !important;
	padding: 8px !important;
	box-shadow: var(--pl-shadow-h) !important;
	background: #fff !important;
	width: max-content !important;
	min-width: 240px !important;
	max-width: min(440px, 92vw) !important;
}

.navbar .navbar-nav .dropdown-menu > li > a {
	color: var(--pl-ink) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-transform: none !important;
	border-radius: 10px !important;
	padding: 9px 16px !important;
	white-space: nowrap !important;
}

.navbar .navbar-nav .dropdown-menu > li > a:hover,
.navbar .navbar-nav .dropdown-menu > li > a:focus {
	background: var(--pl-sky-lt) !important;
	color: var(--pl-sky-dk) !important;
}

/* Търсачката в менюто */
.navbar .navbar-nav .hestia-search-in-menu > a,
.navbar .nav > li > a > i { color: var(--pl-ink) !important; }

/* Хамбургерът */
.navbar .navbar-toggle .icon-bar { background-color: var(--pl-ink) !important; }
.navbar .navbar-toggle { border: none !important; }

/* ⚠️ Hestia държи navbar-а absolute на ВСЯКА страница — извън началната
   той покрива съдържанието под себе си. */
body:not(.home) .navbar.navbar-fixed-top { position: fixed !important; }

/* =========================================================
   4. Банер на началната страница
   ⚠️ При hestia_slider_type=image фонът е в ОТДЕЛЕН .header-filter,
   а размерите идват inline от JS — оттам идват !important-ите.
   ========================================================= */
.home .page-header,
.home .page-header.header-filter {
	min-height: 0 !important;
	height: auto !important;
	padding: 96px 0 30px !important;
	background: linear-gradient(168deg, #E9F5FC 0%, #FFFCF5 56%, #FFF4DC 100%) !important;
	position: relative;
	overflow: hidden;
	max-height: none !important;
}

.home .page-header > .header-filter,
.home .page-header .header-filter {
	background-image: none !important;
	background: transparent !important;
	opacity: 1 !important;
}

.home .page-header .header-filter::before,
.home .page-header .header-filter::after,
.home .page-header::before {
	display: none !important;
	content: none !important;
	background: none !important;
}

/* ⚠️⚠️ Празнината под логото идваше ОТТУК — `.container` в банера носи
   голям padding-bottom (~108px), не самата лента. */
.home .page-header > .container {
	min-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	position: relative;
	z-index: 2;
}

.home .page-header .hestia-big-title-content,
.home .page-header .big-title-slider-content {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Меки „облачета“ във фона — детско, но ненатрапчиво */
.home .page-header::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(50px 28px at 11% 34%, rgba(255, 255, 255, .95) 60%, transparent 62%),
		radial-gradient(34px 21px at 16% 40%, rgba(255, 255, 255, .95) 60%, transparent 62%),
		radial-gradient(60px 33px at 88% 28%, rgba(255, 255, 255, .9) 60%, transparent 62%),
		radial-gradient(38px 23px at 93% 34%, rgba(255, 255, 255, .9) 60%, transparent 62%),
		radial-gradient(9px 9px at 80% 76%, rgba(245, 185, 43, .55) 60%, transparent 62%),
		radial-gradient(7px 7px at 20% 80%, rgba(232, 80, 58, .40) 60%, transparent 62%);
	z-index: 1;
}

/* Логото над заглавието в банера */
.home .big-title-slider-content::before {
	content: "";
	display: block;
	width: min(330px, 68vw);
	height: min(245px, 51vw);
	margin: 0 auto;
	background: url("https://proletoryahovo.eu/wp-content/uploads/2026/09/prolet-logo-720.png") center/contain no-repeat;
}

/* Текстовото лого ВЛЯВО ОТ МЕНЮТО — буквите носят цветовете на логото. */
.navbar .navbar-header .navbar-brand .pl-brand {
	display: inline-block;
	font-family: "Nunito", sans-serif;
	font-weight: 800;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: 1.5px;
	white-space: nowrap;
}

.navbar .navbar-header .navbar-brand .pl-brand > span { display: inline-block; }
.navbar .navbar-header .navbar-brand .pl-brand > span:nth-child(odd) { transform: rotate(-3deg); }
.navbar .navbar-header .navbar-brand .pl-brand > span:nth-child(even) { transform: rotate(3deg); }

.pl-brand .w1 { color: #E8503A; }
.pl-brand .w2 { color: #F5B92B; }
.pl-brand .w3 { color: #2E9BD6; }
.pl-brand .w4 { color: #5CB85C; }
.pl-brand .w5 { color: #B85FA8; }
.pl-brand .w6 { color: #17A2A2; }

.pl-wm {
	display: block;
	font-family: "Nunito", sans-serif;
	font-weight: 800;
	font-size: 68px;
	line-height: 1.16;
	letter-spacing: 3px;
	margin: 0;
}

.pl-wm > span {
	display: inline-block;
	transform: rotate(-3deg);
}

.pl-wm > span:nth-child(even) { transform: rotate(3deg); }

.pl-wm .w1 { color: #E8503A; }
.pl-wm .w2 { color: #F5B92B; }
.pl-wm .w3 { color: #2E9BD6; }
.pl-wm .w4 { color: #5CB85C; }
.pl-wm .w5 { color: #B85FA8; }
.pl-wm .w6 { color: #17A2A2; }

.pl-wm-sub {
	display: block;
	font-size: 23px;
	font-weight: 700;
	color: var(--pl-ink);
	letter-spacing: 0;
	margin-top: 4px;
}

/* ⭐ Банерът е САМО логото. h1 остава в DOM (SEO + екранни четци), но е скрит
   визуално — иначе началната страница остава без h1 изобщо. */
.home .page-header .hestia-title,
.home .page-header h1.hestia-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Подзаглавието е празно в theme mods и не се рендира; правилото пази
   срещу връщане на дефолта от Customizer-а. */
.home .page-header .sub-title,
.home .page-header .hestia-description {
	display: none !important;
}

.home .page-header .buttons { margin-top: 22px !important; }

/* =========================================================
   5. Заглавна лента на вътрешните страници
   ⚠️ navbar-ът е absolute върху нея — оттам голямото горно поле.
   ========================================================= */
/* ⭐ Лентата е висока точно колкото заглавието — горното поле е само
   мястото за фиксирания navbar (78px), долното е един ред въздух. */
body:not(.home) .page-header.header-small,
body:not(.home) .page-header {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 92px 0 18px !important;
	background: linear-gradient(180deg, #EEF7FC 0%, #FBFDFE 100%) !important;
	display: block !important;
	border-bottom: 1px solid var(--pl-line);
}

/* ⚠️⚠️ Истинската височина идваше оттук, не от самата лента:
   `.page .page-header.header-small .container { padding: 120px 15px 50px }`. */
body:not(.home) .page-header.header-small .container,
body:not(.home) .page-header .container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	min-height: 0 !important;
}

body:not(.home) .page-header .header-filter,
body:not(.home) .page-header .header-filter-gradient {
	background: transparent !important;
	background-image: none !important;
}

body:not(.home) .page-header .header-filter::before,
body:not(.home) .page-header .header-filter::after {
	display: none !important;
	content: none !important;
}

body:not(.home) .page-header .hestia-title,
body:not(.home) .page-header .title,
body:not(.home) .page-header h1 {
	color: var(--pl-ink) !important;
	text-shadow: none !important;
	font-size: 31px !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:not(.home) .page-header .container,
body:not(.home) .page-header .row { margin: 0 auto !important; }

body:not(.home) .page-header h5.description { margin: 4px 0 0 !important; font-size: 15px !important; }

body:not(.home) .page-header .description,
body:not(.home) .page-header .sub-title,
body:not(.home) .page-header h5 {
	color: var(--pl-muted) !important;
	text-shadow: none !important;
}

/* =========================================================
   6. Трохи
   ========================================================= */
.pl-crumbs {
	background: #fff;
	border-bottom: 1px solid var(--pl-line);
	padding: 10px 0;
	font-size: 13.5px;
}

.pl-crumbs p { margin: 0; color: var(--pl-muted); }
.pl-crumbs a { color: var(--pl-sky-dk); font-weight: 600; }

/* =========================================================
   7. Плочките за бърза навигация
   ========================================================= */
.pl-tiles-wrap { padding: 40px 0 6px; }

.pl-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}

.pl-tile { margin: 0; }

.pl-tile > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
	padding: 26px 14px 22px;
	background: #fff;
	border-radius: var(--pl-radius);
	border-bottom: 4px solid var(--pl-c, var(--pl-sky));
	box-shadow: var(--pl-shadow);
	text-decoration: none !important;
	color: var(--pl-ink) !important;
	transition: transform .18s ease, box-shadow .18s ease;
}

.pl-tile > a:hover,
.pl-tile > a:focus {
	transform: translateY(-4px);
	box-shadow: var(--pl-shadow-h);
	color: var(--pl-ink) !important;
}

.pl-tile-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	margin-bottom: 12px;
	background: var(--pl-c-lt, var(--pl-sky-lt));
	color: var(--pl-c, var(--pl-sky));
}

.pl-ico { width: 26px; height: 26px; }

.pl-tile-t {
	font-family: "Nunito", sans-serif;
	font-weight: 800;
	font-size: 16px;
	line-height: 1.25;
	margin-bottom: 4px;
}

.pl-tile-d { font-size: 13px; color: var(--pl-muted); line-height: 1.4; }

/* Цветовете на плочките и картите */
.pl-sky   { --pl-c: #2E9BD6; --pl-c-lt: #E9F5FC; }
.pl-grass { --pl-c: #4FA84F; --pl-c-lt: #EAF6EA; }
.pl-coral { --pl-c: #E8503A; --pl-c-lt: #FDEDEA; }
.pl-sun   { --pl-c: #D99A0B; --pl-c-lt: #FEF5E0; }
.pl-plum  { --pl-c: #B85FA8; --pl-c-lt: #F9EDF7; }
.pl-teal  { --pl-c: #17A2A2; --pl-c-lt: #E6F6F6; }

/* =========================================================
   8. Секция „Нашите групи“ (features)
   ========================================================= */
.hestia-features {
	padding: 46px 0 54px !important;
	background: transparent !important;
}

.hestia-features .hestia-features-title-area { margin-bottom: 8px; }

.hestia-features .hestia-title { font-size: 32px !important; margin-bottom: 6px !important; }

.hestia-features h5.description,
.hestia-about h5.description,
.hestia-blogs h5.description {
	color: var(--pl-muted) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	font-family: "Nunito", sans-serif !important;
}

/* ⚠️ Hestia слага по един .row на всеки ТРИ групи — затова гридът е върху
   контейнера, а самите .row се разтварят с display:contents. */
.hestia-features .hestia-features-content {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.hestia-features .hestia-features-content > .row {
	display: contents !important;
	margin: 0 !important;
}

/* ⚠️⚠️ Bootstrap clearfix-ът (.row::before/::after) при display:contents
   СТАВА grid елемент и избутва картите с една колона. */
.hestia-features .hestia-features-content > .row::before,
.hestia-features .hestia-features-content > .row::after {
	content: none !important;
	display: none !important;
}

.hestia-features .hestia-features-content .feature-box {
	width: auto !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
}

.hestia-features .feature-box .hestia-info {
	background: #fff;
	border-radius: var(--pl-radius);
	box-shadow: var(--pl-shadow);
	padding: 24px 20px 22px;
	margin: 0 !important;
	width: 100%;
	border-top: 5px solid var(--pl-sky);
	transition: transform .18s ease, box-shadow .18s ease;
}

.hestia-features .feature-box:hover .hestia-info {
	transform: translateY(-4px);
	box-shadow: var(--pl-shadow-h);
}

/* Цветът се задава по (ред, позиция в реда), защото .row се рестартира. */
.hestia-features-content .row:nth-of-type(1) .feature-box:nth-of-type(1) .hestia-info { border-top-color: #2E9BD6; }
.hestia-features-content .row:nth-of-type(1) .feature-box:nth-of-type(2) .hestia-info { border-top-color: #4FA84F; }
.hestia-features-content .row:nth-of-type(1) .feature-box:nth-of-type(3) .hestia-info { border-top-color: #E8503A; }
.hestia-features-content .row:nth-of-type(1) .feature-box:nth-of-type(4) .hestia-info { border-top-color: #D99A0B; }
.hestia-features-content .row:nth-of-type(1) .feature-box:nth-of-type(5) .hestia-info { border-top-color: #B85FA8; }
.hestia-features-content .row:nth-of-type(1) .feature-box:nth-of-type(6) .hestia-info { border-top-color: #17A2A2; }
.hestia-features-content .row:nth-of-type(2) .feature-box:nth-of-type(1) .hestia-info { border-top-color: #D99A0B; }
.hestia-features-content .row:nth-of-type(2) .feature-box:nth-of-type(2) .hestia-info { border-top-color: #B85FA8; }
.hestia-features-content .row:nth-of-type(2) .feature-box:nth-of-type(3) .hestia-info { border-top-color: #17A2A2; }

.hestia-features .feature-box .info-title,
.hestia-features .feature-box h4 {
	color: var(--pl-ink) !important;
	font-size: 19px !important;
	margin: 0 0 10px !important;
}

.hestia-features .feature-box p {
	color: var(--pl-muted) !important;
	font-size: 15px;
	margin: 0;
}

.hestia-features .feature-box .icon,
.hestia-features .feature-box .icon i { display: none !important; }

/* =========================================================
   9. Секция „За нас“ (съдържанието на страница „Начало“)
   ⚠️ Hestia ѝ слага фоновата снимка + затъмнение — гасим ги.
   ========================================================= */
.hestia-about,
section.hestia-about {
	background-image: none !important;
	background: transparent !important;
	padding: 40px 0 20px !important;
}

.hestia-about::after,
.hestia-about::before { display: none !important; content: none !important; }

.hestia-about h1,
.hestia-about h2 { font-size: 30px !important; }

.hestia-about p { color: var(--pl-ink); }

/* =========================================================
   10. Новини
   ========================================================= */
.hestia-blogs { padding: 46px 0 60px !important; background: transparent !important; }

.hestia-blogs .hestia-title { font-size: 32px !important; }

.hestia-blogs .card,
.blog .card,
.archive .card,
.card.card-blog {
	background: #fff;
	border-radius: var(--pl-radius);
	box-shadow: var(--pl-shadow);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.hestia-blogs .card:hover,
.archive .card:hover { transform: translateY(-4px); box-shadow: var(--pl-shadow-h); }

.card .card-body,
.card .content { padding: 20px !important; }

.card .card-title,
.card .card-title a {
	font-size: 19px !important;
	color: var(--pl-ink) !important;
	line-height: 1.3 !important;
}

.card .card-title a:hover { color: var(--pl-sky-dk) !important; }

.pl-date {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--pl-sky-dk);
	background: var(--pl-sky-lt);
	border-radius: 14px;
	padding: 3px 12px;
	margin-bottom: 10px;
}

/* ⚠️ Hestia слага запетая след категорията през ::after */
.card .category::after,
.card-category::after { content: "" !important; display: none !important; }

.card .author, .single-post .hestia-title + .author { display: none !important; }

/* Ред „документ“ в архивите */
.pl-docrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }

.pl-doclink {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 16px 9px 12px;
	border-radius: 24px;
	background: var(--pl-sky-lt);
	color: var(--pl-sky-dk) !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	max-width: 100%;
	transition: background .18s ease;
}

.pl-doclink:hover { background: #D8ECF8; color: var(--pl-sky-dk) !important; }
.pl-doclink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-doclink .pl-ico { flex: 0 0 auto; width: 20px; height: 20px; }

/* Пагинация */
.pagination > li > a,
.pagination > li > span {
	border-radius: 50% !important;
	color: var(--pl-ink) !important;
	font-weight: 700;
}

.pagination > .active > a,
.pagination > .active > span {
	background: var(--pl-sky) !important;
	border-color: var(--pl-sky) !important;
	color: #fff !important;
}

/* =========================================================
   11. Карти и хора (шорткодове)
   ========================================================= */
.pl-cards {
	display: grid;
	gap: 18px;
	margin: 26px 0 10px;
}

.pl-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pl-card {
	background: #fff;
	border-radius: var(--pl-radius);
	box-shadow: var(--pl-shadow);
	padding: 24px 22px;
	border-left: 5px solid var(--pl-c, var(--pl-sky));
	transition: transform .18s ease, box-shadow .18s ease;
}

.pl-card:hover { transform: translateY(-3px); box-shadow: var(--pl-shadow-h); }

.pl-card h3 { font-size: 20px !important; margin: 0 0 10px !important; color: var(--pl-ink) !important; }
.pl-card p { color: var(--pl-muted); margin: 0; font-size: 15px; }

.pl-doccard {
	display: block;
	text-align: center;
	text-decoration: none !important;
	border-left: none;
	border-top: 5px solid var(--pl-c, var(--pl-sky));
}

.pl-doccard h3 { font-size: 17px !important; }
.pl-count { font-size: 13px; color: var(--pl-muted); font-weight: 600; }

.pl-team {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 26px 0 10px;
	align-items: stretch;
}

.pl-person {
	background: #fff;
	border-radius: var(--pl-radius);
	box-shadow: var(--pl-shadow);
	padding: 16px 14px 20px;
	text-align: center;
}

.pl-person img {
	width: 100%;
	height: 230px;
	object-fit: cover;
	object-position: top center;
	border-radius: 14px;
	margin-bottom: 12px;
}

.pl-person h4 { font-size: 16px !important; margin: 0 0 3px !important; }

.pl-role {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--pl-sky-dk);
	background: var(--pl-sky-lt);
	border-radius: 12px;
	padding: 2px 11px;
}

.pl-person p { font-size: 13px; color: var(--pl-muted); margin: 9px 0 0; line-height: 1.45; }

/* Контактен блок */
.pl-contact {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 24px 0;
}

.pl-map {
	margin-top: 22px;
	border-radius: var(--pl-radius);
	overflow: hidden;
	box-shadow: var(--pl-shadow);
	line-height: 0;
}

.pl-map iframe { width: 100%; height: 380px; border: 0; }

/* =========================================================
   12. Съдържание на страници и публикации
   ========================================================= */
.single .main article.section,
.page .main article.section,
.archive .main article.section { padding: 34px 0 !important; }

.entry-content h2,
.page-content h2 { font-size: 26px !important; margin-top: 28px !important; }

.entry-content h3 { font-size: 21px !important; }

blockquote {
	border-left: 4px solid var(--pl-sun);
	background: #FFF9EC;
	border-radius: 0 12px 12px 0;
	padding: 14px 18px;
	color: var(--pl-ink);
}

/* PDF бутоните на embed-any-document */
.edd-download-link a,
.wp-block-file a.wp-block-file__button {
	background: var(--pl-coral) !important;
	border-radius: 22px !important;
	color: #fff !important;
	font-weight: 700 !important;
	padding: 8px 18px !important;
}

/* =========================================================
   13. Футер
   ========================================================= */
footer.footer,
.footer.footer-black,
.footer {
	background: var(--pl-sky-dk) !important;
	color: rgba(255, 255, 255, .92) !important;
	padding: 34px 0 18px !important;
}

.footer h2, .footer h3, .footer h4, .footer h5,
.footer .widget-title { color: #fff !important; font-size: 17px !important; margin-bottom: 12px !important; }

.footer, .footer p, .footer li, .footer span { color: rgba(255, 255, 255, .92) !important; }
.footer a { color: #fff !important; text-decoration: none !important; }
.footer a:hover { color: var(--pl-sun) !important; text-decoration: underline !important; }

/* ⚠️ Разстоянието в „Бързи връзки“ идваше от line-height 1.68 на body
   плюс padding на връзките — и двете се свиват тук. */
.footer ul { list-style: none; padding: 0; margin: 0; }

.footer li {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.35 !important;
}

.footer a {
	text-transform: none !important;
	letter-spacing: 0 !important;
}

/* ⚠️ display:block САМО за връзките в списъците — сложено на всяко .footer a
   то избутваше „ITSERVICE“ в кредита на нов ред. */
.footer li > a {
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	display: block;
	padding: 2px 0 !important;
	margin: 0 !important;
}

.footer p { margin-bottom: 6px; line-height: 1.5; }

.pl-footer-map { border-radius: 14px; overflow: hidden; line-height: 0; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.pl-footer-map iframe { width: 100%; height: 210px; border: 0; display: block; }

/* ⚠️ `.hestia-bottom-footer-content` е двуколонен (меню | кредит). Футер
   менюто е празно, но кредитът пак получаваше половин ширина и се пренасяше. */
.footer .hestia-bottom-footer-content {
	display: block !important;
	text-align: center;
}

.footer hr {
	border-color: rgba(255, 255, 255, .22);
	margin: 20px 0 12px;
}

.footer .copyright { margin: 0 !important; padding: 0 !important; font-size: 13.5px; }
.footer .copyright p { margin: 0 !important; }

/* Плъгинът маха ТЕКСТА „ThemeIsle“, но празният <a> към themeisle.com остава. */
.footer .copyright a[href*="themeisle"] { display: none !important; }

/* Разделител в кредита — иначе градината и ITSERVICE четат като едно име. */
.footer .copyright .pl-sep {
	display: inline-block;
	margin: 0 10px;
	opacity: .55;
}

/* ⚠️ Bootstrap pull-right държеше кредита вдясно */
.footer .copyright.pull-right {
	float: none !important;
	text-align: center;
	width: 100% !important;
	max-width: none !important;
	display: block !important;
}

.hestia-scroll-to-top { background-color: var(--pl-sky) !important; }
.hestia-scroll-to-top:hover { background-color: var(--pl-coral) !important; }

/* =========================================================
   14. Скрити демо-остатъци на Hestia
   ========================================================= */
.hestia-clients-bar,
#clients_bar,
.hestia-testimonials,
#testimonials,
.hestia-subscribe { display: none !important; }

/* =========================================================
   15. Десктоп — 4 колони за групите
   ⚠️ Всички flex правила за navbar-а живеят САМО тук.
   ========================================================= */
@media (min-width: 992px) {
	.navbar .navbar-collapse { display: flex !important; justify-content: flex-end; align-items: center; }
	.navbar > .container { display: flex; align-items: center; justify-content: space-between; }
	.navbar .navbar-header { float: none; }
}

/* =========================================================
   16. Мобилно
   ========================================================= */
@media (max-width: 991px) {
	.navbar .navbar-header .navbar-brand img {
		max-height: 46px !important;
		height: 46px !important;
	}

	.navbar .navbar-header .navbar-brand .pl-brand { font-size: 26px; letter-spacing: 1px; }

	.navbar .navbar-collapse {
		background: #fff !important;
		box-shadow: var(--pl-shadow-h);
	}

	.navbar .navbar-nav > li > a {
		border-radius: 0 !important;
		margin: 0 !important;
		border-bottom: 1px solid var(--pl-line) !important;
	}

	.navbar .navbar-nav .dropdown-menu { box-shadow: none !important; background: var(--pl-cream) !important; }

	.home .page-header,
	.home .page-header.header-filter { padding: 84px 0 22px !important; }

	body:not(.home) .page-header.header-small,
	body:not(.home) .page-header { padding: 80px 0 14px !important; }

	body:not(.home) .page-header .hestia-title,
	body:not(.home) .page-header .title,
	body:not(.home) .page-header h1 { font-size: 24px !important; }

	/* Мобилното меню е списък — там пренасянето е ОК, nowrap би го изрязало. */
	.navbar .navbar-nav .dropdown-menu {
		width: auto !important;
		max-width: none !important;
	}

	.navbar .navbar-nav .dropdown-menu > li > a { white-space: normal !important; }

	.pl-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }

	.hestia-features .hestia-features-content { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
	.pl-tile-d { display: none; }
	.pl-tile > a { padding: 18px 10px 16px; }

	.pl-cards-3,
	.pl-cards-4,
	.pl-contact { grid-template-columns: 1fr; }

	.pl-team { grid-template-columns: repeat(2, 1fr); }

	.hestia-features .hestia-title,
	.hestia-blogs .hestia-title { font-size: 25px !important; }
}

@media (max-width: 480px) {
	.pl-team { grid-template-columns: 1fr; }
	.pl-person img { height: 240px; }
	.hestia-features .hestia-features-content { grid-template-columns: 1fr !important; }
}
