:root {
	--color-primary: #004e6f;
	--color-accent: #1fa67a;

	--enigma-panel-pink: #f22853;
	--enigma-panel-green: #1fa67a;
	--enigma-panel-black: #000000;
	--enigma-panel-orange: #ff8300;
	--enigma-panel-blue: #004e6f;
	--enigma-panel-red: #db2723;
	--enigma-panel-purple: #800080;
	--enigma-panel-brown: #555555;

	--font-nav: "Arimo", Arial, sans-serif;
	--font-body: "Rubik", sans-serif;
}

body {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.8;
	color: #19191a;
	background-color: #fff;
	font-weight: 400;
}

.row {
	margin-left: 0px;
	margin-right: 0px;
}

.container {
	padding-left: 0px;
	padding-right: 0px;
}
a:hover,
a:focus {
	text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
	font-family: "Open Sans", sans-serif;
}

/** Navbar Menu  **/
.navigation_menu {
	width: 100%;
	position: relative;
}

#header_shadow {
	background: url("../images/shadow.png") no-repeat top center;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 20px;
	z-index: 99;
	width: 100%;
}
.navbar-default {
	background-color: transparent;
	border: 0;
	font-family: "Arimo", Arial, Helvetica, sans-serif;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
	border-radius: 0;
	box-shadow: 3px 3px 0 rgba(201, 201, 201, 1);
	color: #fff;
	font-weight: normal;
	font-size: 15px;
}
.navbar-default .navbar-nav > li {
	margin-right: 7px;
}
.navbar-default .navbar-nav > li > a {
	color: #000;
	border-radius: 5px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 20px;
	padding-right: 20px;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 15px;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
	border-radius: 0;
	box-shadow: 3px 3px 0 rgba(201, 201, 201, 1);
	color: #fff;
	font-weight: normal;
	font-size: 15px;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	right: auto;
	left: 0;
	z-index: 1000;
	display: none;
	float: left;
	min-width: 200px;
	padding: 0px 0;
	margin: 2px 0 0;
	font-size: 14px;
	list-style: none;
	background-clip: padding-box;
	border: 0px solid rgba(0, 0, 0, 0.15);
	border-radius: 0px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	text-transform: uppercase;
	font-family: "Arimo", Arial, Helvetica, sans-serif;
}

.dropdown-menu > li > a {
	display: block;
	padding: 7px 32px 7px 10px;
	clear: both;
	font-weight: normal;
	line-height: 1.42857143;
	color: #fff;
	white-space: nowrap;
	transition: padding 400ms;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
	color: #000;
	text-decoration: none;
	background-color: #ffffff;
	padding: 7px 20px 7px 22px;
}
.dropdown-menu > li > a:before {
	content: "\f105";
	font-family: FontAwesome;
	margin-right: 10px;
	opacity: 0;
	font-size: 16px;
}
.dropdown-menu > li > a:hover:before {
	opacity: 1;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
	color: #333;
	text-decoration: none;
	background-color: #fff;
	outline: 0;
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
	color: #999;
}
.navbar-nav > .open > a:after {
	content: "\f0d8";
	font-family: FontAwesome;
	position: absolute;
	z-index: 9999;
	bottom: -6px;
	left: 80%;
	margin-left: -10px;
	font-size: 26px;
}
.navbar-nav > .open > a:after {
	color: #1fa67a;
	display: none;
}
.navbar-right .dropdown-menu {
	right: auto;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand {
	color: #999;
}
.navbar-brand,
.navbar-brand:hover {
	float: left;
	height: 50px;
	padding: 28px 20px 28px 50px;
	line-height: 20px;
	font-size: 30px;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	font-weight: 800;
	font-family: "Lato", sans-serif;
}
.navbar-brand {
	margin-bottom: 30px;
}
.navbar-collapse {
	max-height: 340px;
	padding-right: 15px;
	margin-top: 15px;
	margin-bottom: 15px;
	overflow-x: visible;
	overscroll-behavior-y: contain;
	border-top: 0px solid transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-toggle,
.navbar-toggle:hover {
	position: relative;
	float: right;
	padding: 9px 10px;
	margin: 28px 15px 8px 0;
	background-color: #049cfd;
	background-image: none;
	border: 1px solid #049cfd;
	border-radius: 4px;
	width: 3em;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
	background-color: #049cfd;
}
.navbar-default .navbar-toggle .icon-bar {
	background-color: #fff;
}
.navber {
	border-top: none;
}
.fa-angle-down {
	font-size: 18px !important;
	float: right;
	margin-right: -13px;
}

.dropdown-submenu {
	position: relative;
}
.dropdown-submenu > .dropdown-menu {
	top: 6px;
	left: 100%;
	margin-top: -6px;
	margin-left: -1px;
}

.dropdown-submenu .pull-left {
	float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
	left: -100%;
	margin-left: 10px;
	border-radius: 6px 0 6px 6px;
}

/** slider css ***/

.carousel-indicators li,
.carousel-indicators .active {
	width: 20px;
	height: 20px;
}

/*** page Header Breadcrum Title ******************************************************************************************************
**************************************************************************************************************************/

.enigma_header_breadcrum_title {
	margin-bottom: 70px;
	background: #edf0f2;
	opacity: 1;
	padding-top: 8px;
	padding-bottom: 8px;
}
.enigma_header_breadcrum_title h1 {
	color: #000000;
}
.breadcrumb {
	font-size: 17px;
	padding: 0;
	position: relative;
	display: inline-block;
	background: none;
	border-radius: 0;
	list-style: none;
}
.breadcrumb li {
	display: inline-block;
}
.breadcrumb li a {
	color: var(--color-primary);
}
.breadcrumb > .active {
	color: #000;
}
.breadcrumb > li + li:before {
	padding: 0 5px;
	color: #000;
	content: "/\00a0";
}
/** about us css ********/
.progress {
	height: 25px;
	margin-bottom: 12px;
	border-radius: 0px;
}
.progress-bar {
	font-size: 16px;
	line-height: 30px;
	color: #fff;
	text-align: left;
	background-color: var(--color-primary);
	padding-left: 20px;
}

/*** blog css **/
.enigma_blog_right_side {
	float: right;
}
.enigma_sidebar_left_side {
	float: left;
}
/* search btn css **/
.btn-search {
	color: #fff;
	background: var(--color-primary);
	border-radius: 0px;
	font-size: 14px;
}

.input-group {
	margin-top: 10px;
	margin-bottom: 30px;
}
.form-control {
	border-radius: 0px;
}
/** portfolio css **/
.nav-pills {
	margin-bottom: 50px;
}
.nav-pills > li > a,
.nav-stacked > li > a {
	background: #ffffff;
	color: #3b3b3b;
	border: 3px solid var(--color-primary);
	margin-bottom: 15px;
	border-radius: 0;
	background-size: 100% 200%;
	background-image: linear-gradient(to bottom, #fff 50%, var(--color-primary) 50%);
	transition: all ease 0.5s;
	font-family: "Open Sans", sans-serif;
}
.nav-pills > li > a {
	margin-right: 15px;
	padding: 9px 27px;
}

.nav-pills > li > a:hover,
.nav-stacked > li > a:hover {
	color: #fff;
	background-position: 0 -100%;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus,
.nav-stacked > li.active > a,
.nav-stacked > li.active > a:hover,
.nav-stacked > li.active > a:focus {
	color: #fff;
	background-image: linear-gradient(to bottom, var(--color-primary) 50%, var(--color-primary) 50%);
	transition: all ease 0.5s;
}

/*Accordion & Tabs Styles for shortcode*/

.nav-tabs li a {
	background: #f5f5f5;
	color: #666666;
	border: 1px solid #e8e8e8;
	border-radius: 0px;
	margin-right: 0px;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
}
.nav-tabs li.active > a {
	border: 1px solid #e8e8e8;
	background: #fff;
	color: #555;
	border-bottom-color: transparent;
}
.nav-tabs li > a:hover {
	border: 1px solid #e8e8e8;
	background: #fff;
	color: #555;
}
/** panels style **/
.panel {
	margin-bottom: 20px;
	background-color: #ffffff;
	border: 1px solid transparent;
	border-radius: 4px;
	box-shadow:
		0 1px 1px rgba(0, 0, 0, 0.05),
		0 10px 20px rgba(0, 0, 0, 0.175);
}
.panel-default {
	border-color: #e9e9e9;
}
.panel-default > .panel-heading {
	color: #333333;
	background-color: #f6f6f6;
	border-color: #e9e9e9;
}

[data-panel-color="pink"] {
	--panel-color: var(--enigma-panel-pink);
}
[data-panel-color="green"] {
	--panel-color: var(--enigma-panel-green);
}
[data-panel-color="black"] {
	--panel-color: var(--enigma-panel-black);
}
[data-panel-color="orange"] {
	--panel-color: var(--enigma-panel-orange);
}
[data-panel-color="blue"] {
	--panel-color: var(--enigma-panel-blue);
}
[data-panel-color="red"] {
	--panel-color: var(--enigma-panel-red);
}
[data-panel-color="purple"] {
	--panel-color: var(--enigma-panel-purple);
}
[data-panel-color="brown"] {
	--panel-color: var(--enigma-panel-brown);
}

[data-panel-color] {
	border-color: var(--panel-color);
}
[data-panel-color] > .panel-heading {
	color: #fff;
	background-color: var(--panel-color);
	border-color: var(--panel-color);
}

/*** search button css ***/

.input-group-btn {
	display: inherit;
}
#searchform .btn {
	font-size: 18px;
	font-weight: normal;
	height: 45px;
	width: 62px;
}

#searchform .form-control {
	display: block;
	width: 100%;
	height: 45px;
	padding: 6px 12px;
	font-size: 13px;
}
#searchform .input-group {
	margin-top: 15px;
	margin-bottom: 15px;
}

p.discipline_link a {
	color: white;
}

.social_networks a i:hover {
	color: bisque !important;
}

.social_networks a i {
	color: #fff;
	font-size: 32px;
	padding: 0px 4px 8px 4px;
}

.social_networks {
	padding-bottom: 1em;
}

/*
	Для профілю та списку викладачів на сторнці Викладачі
*/
tr:hover {
	background-color: #f7fcf5ff;
}
.teacher-info {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}
.teacher-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}
.teacher-photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #004e6f;
	transition: transform 0.2s ease-out;
	will-change: transform;
}
.teacher-photo:hover {
	transform: scale(1.05);
}
.teacher-name {
	font-size: 0.9em;
	line-height: 1.2;
}

/* ── Header Search Form — стиль як кнопки соцмереж ───────────────────── */
.social {
	white-space: nowrap; /* Не дати переноситись іконкам та пошуку */
}

.social li {
	vertical-align: middle !important;
}

.social li.header-search-li {
	display: inline-block !important; /* Явно вказуємо */
	width: auto !important;
	height: 35px;
	vertical-align: middle !important;
	padding: 0;
	margin-left: 10px;
	border: none !important; /* remove border from li, keep on wrap */
	box-shadow: none !important;
	background: transparent !important;
}

.header-search-form {
	display: inline-block !important;
	height: 35px;
	margin: 0 !important;
	padding: 0 !important;
}

.header-search-wrap {
	display: inline-flex;
	align-items: center;
	height: 35px;
	width: 200px !important; /* Фіксована загальна ширина форми */
	border: 2px solid #ffffff;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.6);
	background: transparent;
	overflow: hidden;
	vertical-align: top;
	transition:
		width 0.35s ease,
		background 0.5s ease-in-out;
}

.header-search-wrap:focus-within {
	background: rgba(255, 255, 255, 0.18);
	width: 250px !important; /* Легке розширення при фокусі, якщо потрібно */
}

.header-search-input {
	background: transparent !important;
	border: none !important;
	outline: none !important;
	color: #fff;
	font-family: "Open Sans", sans-serif;
	font-size: 13px !important;
	padding: 0 10px !important;
	width: 100% !important; /* Займати весь доступний простір всередині .header-search-wrap */
	height: 31px !important;
	line-height: 31px !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.header-search-input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.header-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.header-search-btn {
	background: transparent !important;
	border: none !important;
	border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
	color: #fff !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	font-size: 14px !important;
	width: 35px !important;
	min-width: 35px !important;
	height: 31px !important;
	line-height: 31px !important;
	text-align: center !important;
	vertical-align: top !important;
	box-shadow: none !important;
	transition: background 0.5s ease-in-out;
}

.header-search-btn:focus {
	outline: none !important;
}

.header-search-btn:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 767px) {
	.social {
		white-space: normal !important; /* Дозволити перенос на мобільних */
		text-align: center;
		margin-top: 10px;
	}

	.social li.header-search-li {
		display: block !important; /* Перенесення пошуку з нового рядка */
		margin: 10px auto 0 !important;
	}

	.header-search-wrap {
		width: 100% !important;
		max-width: 250px; /* Обмеження до розміру екрану на телефоні */
	}

	.header-search-input {
		width: 100% !important;
		font-size: 13px !important;
	}
}
/* ── /Header Search Form ──────────────────────────────────────────────── */

/* Додаткові стилі для сітки викладачів */
.teacher-info-grid {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

@container (min-width: 768px) {
	.teacher-info-grid {
		gap: 20px;
	}
	.teacher-info-grid.columns-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.teacher-info-grid.columns-4 {
		grid-template-columns: repeat(4, 1fr);
	}
	.teacher-info-grid.columns-5 {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* ── Rendering performance: content-visibility для поза-екранних секцій ───
   Браузер пропускає layout/paint поза-екранних секцій.
   contain-intrinsic-size: auto — резервує місце для скролу без вимірювання.
   УВАГА: не застосовувати до sticky/fixed елементів та hero-секції. */
.enigma_service,
.enigma_blog_area,
.enigma_counter_section_wrapper,
.enigma_portfolio_section,
.enigma_testimonial_section,
.enigma_team_section,
.enigma_contact_section {
	content-visibility: auto;
	contain-intrinsic-size: auto 400px;
}
/* ── /content-visibility ──────────────────────────────────────────────── */

.enigma_scrollup {
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}
.enigma_scrollup.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Counter Section Options */
.enigma_counter_section_wrapper {
	margin-top: 50px;
	padding: 40px 0;
	border-top: 1px solid #eaeaea;
}
.enigma_counter_title_wrap {
	text-align: center;
	margin-bottom: 40px;
}
.enigma_counter_title {
	font-size: 20px;
	font-weight: 700;
	color: #024b6b;
	text-transform: uppercase;
	position: relative;
	display: inline-block;
	padding-bottom: 5px;
}
.enigma_counter_title::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: #024b6b;
	bottom: 0;
	left: 0;
}
.enigma_counter_icon {
	font-size: 48px;
	color: #024b6b;
	margin-bottom: 10px;
}
.enigma_counter_number {
	font-size: 32px;
	font-weight: 500;
	color: #024b6b;
	line-height: 1;
	margin-bottom: 5px;
}
.enigma_counter_label {
	font-size: 14px;
	color: #333;
	font-weight: 400;
}

/* Pure CSS Counters Animation (Level 4 @property spec) */
@property --num {
	syntax: "<integer>";
	initial-value: 0;
	inherits: false;
}

@keyframes cssCounterAnim {
	from {
		--num: 0;
	}
	to {
		--num: var(--target-num);
	}
}

.css-counter {
	font-size: 0 !important;
	color: transparent !important;
	counter-reset: count var(--num);

	animation: cssCounterAnim 2.5s ease-out forwards;

	/* Запускається лише коли елемент входить у viewport */
	animation-timeline: view();
	animation-range: entry 0% entry 100%;
}

.css-counter::after {
	content: counter(count);
	font-size: 32px;
	font-weight: 500;
	color: #004d73;
	display: block;
}

/* Стилі для стандартних акардеонів з WordPress */

/* ─── Єдина обгортка з рамкою ─── */
.wp-block-accordion-item {
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 10px;
	background: #f5f5f5;
	/* Скидаємо все що могло розривати блок */
	display: block;
}

/* ─── Заголовок — без власного border ─── */
.wp-block-accordion-heading {
	margin: 0;
	padding: 0;
}

.wp-block-accordion-heading__toggle {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 14px 18px;
	background: #f5f5f5;
	border: none;
	border-radius: 0; /* важливо — інакше кути "виглядають" з рамки */
	cursor: pointer;
	text-align: left;
	gap: 0;
	box-sizing: border-box;
}

.wp-block-accordion-heading__toggle:hover {
	background: #ebebeb;
}

/* ─── Панель — прилипає до заголовка без розривів ─── */
.wp-block-accordion-panel {
	display: block;
	padding: 16px 20px 18px 48px;
	border-top: 1px solid #d0d0d0;
	background: #ffffff;
	margin: 0; /* обов'язково — прибираємо будь-який зовнішній відступ */
	box-sizing: border-box;
}

/* ─── Скидаємо відступи параграфів що "розпирають" панель ─── */
.wp-block-accordion-panel > p:first-child {
	margin-top: 0;
}
.wp-block-accordion-panel > p:last-child {
	margin-bottom: 0;
}
.wp-block-accordion-panel p {
	margin: 4px 0;
}

/* ─── Toggle-icon ─── */
.wp-block-accordion-heading__toggle-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	flex: 1;
}

.wp-block-accordion-heading__toggle-title .svg-inline--fa {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #555;
}

.wp-block-accordion-heading__toggle-icon {
	font-size: 24px;
	font-weight: 300;
	color: #888;
	flex-shrink: 0;
	margin-left: 12px;
	line-height: 1;
	display: inline-block;
	transition: transform 0.2s ease;
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
	transform: rotate(45deg);
}
