#topbar {
    padding: 9px 0;
    background: rgba(31, 61, 123, 0.1);
}
#topbar .container-wrap {
    display: flex;
    justify-content: flex-end;
}
#topbar .buttons {
    display: flex;
    align-items: center;
    column-gap: 20px;
    padding: 0 38px;
}
#topbar .buttons a {
    display: inline-block;
    color: #000;
    font-size: 16px;
	line-height: 24px;
}
#topbar .buttons a i {
	font-size: 20px;
	line-height: 24px;
}

#header {
	position: relative;
    padding: 21px 0;
    z-index: 99;
}
#header .container-wrap {
	position: relative;
	display: grid;
	column-gap: 20px;
}
.site-logo {
	position: relative;
	z-index: 9;
}
.site-navigation {
	display: flex;
	align-items: center;
	z-index: 1;
}
.site-navigation .navbar {
	position: static;
	padding-bottom: 0.35rem;
}

#navContainer {
	position: absolute;
	top: calc(100% + 21px);
	left: 0;
	right: 0;
	padding: 0 75px;
}
#mainNavbars {
	position: relative;
	max-width: 1156px;
	margin: auto;
	padding: 28px 3.25% 25px;
	border: 0;
	border-radius: 0px 0px 10px 10px;
	background: #218DC2;
}
.menu-block {
	display: inline-block;
	width: 100%;
	padding: 8px 0;
	border-bottom: 1px solid #fff;
}
.menu-block:last-of-type {
	border: none;
}
.menu-block h4 {
    position: relative;
	margin: 0;
}
.menu-block ul {
	margin: 0 0 0 8px;
}
.menu-block ul li {
	padding: 0 0 0 12px;
	line-height: 1.2;
}
.menu-block ul li:before {
	width: 4px;
	height: 4px;
	background-color: #fff;
}
.menu-block a {
  	color: #fff;
	font-size: 14px;
	font-weight: 400;
}
.menu-block a:hover {
	color: #003282;
}
.menu-block h4 a,
.menu-block > a {
	font-size: 16px;
	font-weight: 600;
	margin-right: 4px;
}
#mainNavbars .bt-close {
	display: block;
	cursor: pointer;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 27px;
	height: 27px;
	border: 1px solid #fff;
	border-radius: 50%;
	z-index: 99;
	transition: all 0.25s;
}
#mainNavbars .bt-close:before,
#mainNavbars .bt-close:after {
	content: '';
	position: absolute;
	top: 12px;
	left: 5px;
	width: 16px;
	height: 1px;
	background: #fff;
	transition: all 0.25s;
}
#mainNavbars .bt-close:before {
	transform: rotate3d(0, 0, 1, 45deg);
}
#mainNavbars .bt-close:after {
	transform: rotate3d(0, 0, 1, -45deg);
}
#mainNavbars .bt-close:hover {
	background-color: #fff;
}
#mainNavbars .bt-close:hover:before,
#mainNavbars .bt-close:hover:after {
	background: #218DC2;
}

.search-toggle {
	cursor: pointer;
	display: block;
	width: 30px;
	height: 31px;
    padding: 0;
	margin: 0 0 7px;
    border: none;
    background-image: url(../images/icon-search.png);
	background-repeat: no-repeat;
	background-position: center;
    background-size: 100%;
}
.search-active .search-toggle { display: none; }
.search-container {
	display: none;
	position: absolute;
  	bottom: 0;
  	right: 75px;
	width: calc(100% - 428px);
  	height: auto;
  	background: rgba(255,255,255,.2);
	z-index: 99;
	transition: all .2s;
}
.search-active .search-container {
	display: flex;
	justify-content: space-between;
  	align-items: center;
	padding-bottom: 4px;
  	background: rgba(255,255,255,1);
}
.search-container .search-form {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
	z-index: 7;
}
.search-form fieldset {
	display: inline-block;
	position: relative;
	width: 78%;
	max-width: 33.5rem;
	background-color: rgba(0,0,0,.4);
	border-radius: 20px;
	overflow: hidden;
}
.search-box {
	position: relative;
	width: 100%;
	padding: .55rem 1rem;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
  	border: 0;
	background-color: transparent !important;
	z-index: 1;
}
.search-box:-internal-autofill-selected {
	background-color: transparent !important;
}
.search-box::placeholder { color: #fff; }
.search-box::-ms-input-placeholder { color: #fff; }
.search-box:-moz-placeholder { color: #fff; }
.search-form button {
	cursor: pointer;
	display: block;
	position: absolute;
	top: 0;
	right: 6px;
	width: 40px;
	height: 40px;
	border: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg width='21' height='22' viewBox='0 0 21 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.2104 2.91682C12.5065 -0.972274 6.48195 -0.972274 2.77796 2.91682C-0.926028 6.80592 -0.925945 13.1317 2.77796 17.0209C4.62871 18.9642 7.06143 19.9371 9.49418 19.9371C11.5753 19.9371 13.6521 19.221 15.3698 17.7959L19.3717 22L20.9524 20.3403L16.9505 16.1383C19.8908 12.2274 19.6466 6.52447 16.2104 2.91682ZM14.632 15.3635C13.2608 16.8033 11.4357 17.5977 9.49631 17.5977C7.5571 17.5977 5.73199 16.8057 4.3606 15.3635C2.98942 13.9238 2.23284 12.0074 2.23284 9.97104C2.23284 7.93487 2.98938 6.01852 4.3606 4.57856C5.73182 3.13861 7.55689 2.3444 9.49631 2.3444C11.4355 2.3444 13.2606 3.13878 14.632 4.57856C16.0032 6.0183 16.7598 7.93466 16.7598 9.97104C16.7598 12.0071 16.0032 13.9212 14.632 15.3635Z' fill='%23ffffff'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 17px 18px;
	transition: all .2s;
	z-index: 8;
}
.search-form button:hover {
	opacity: .5;
}

.search-container .search-close {
	cursor: pointer;
	position: relative;
	display: inline-block;
	min-height: 1.25rem;
	padding-left: 28px;
	color: #000;
	font-size: 16px;
	z-index: 8;
}
.search-container .search-close:before,
.search-container .search-close:after {
	content: '';
	display: block;
	position: absolute;
	top: 10px;
	left: 0;
	width: 21px;
	height: 3px;
	border-radius: 1px;
	background: #000;
}
.search-container .search-close:before {
	transform: rotate3d(0, 0, 1, 45deg);
}
.search-container .search-close:after {
	transform: rotate3d(0, 0, 1, -45deg);
}

.bt-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 14px;
}
.bt-container h6 {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    margin: 0;
}
.navbar-toggler {
	width: 34px;
	height: 34px;
	padding: 2px;
	border: 0;
	background: none;
	transition: all .25s;
}
.navbar-toggler:hover, 
.navbar-toggler:focus {
	outline: none;
	box-shadow: none;
	background: none;
}
.navbar-toggler .icon-bar {
	position: relative;
    display: block;
	width: 100%;
	height: 5px;
	margin: 0;
    background: #000;
	transition: all .2s;
}
.navbar-toggler .icon-bar:before,
.navbar-toggler .icon-bar:after {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 5px;
  background: #000;
  transition: all .2s;
}
.navbar-toggler .icon-bar:after { top: -10px; }
.navbar-toggler:hover .icon-bar,
.navbar-toggler:hover .icon-bar:before,
.navbar-toggler:hover .icon-bar:after {
	background: #218DC2;
}
/*.navbar-toggler[aria-expanded="true"] .icon-bar {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .icon-bar:before, 
.navbar-toggler[aria-expanded="true"] .icon-bar:after {
  top: 0;
  transform: rotate3d(0, 0, 1, 45deg);
  transition: top .3s ease, transform .3s .4s ease, background 0.3s;
}

.navbar-toggler[aria-expanded="true"] .icon-bar:after {
  transform: rotate3d(0, 0, 1, -45deg);
}
*/

/* FOOTER */

#footer {
	color: #000;
	padding: 50px 0;
	border-top: 28px solid #218DC2;
}
#footer .container-wrap {
	display: flex;
	justify-content: space-between;
}
#footer .footer-column {
	display: flex;
}
.footer-left {
	justify-content: flex-start;
	column-gap: 10%;
	font-size: 16px;
	line-height: 1.35;
}
#footer .footer-left p {
	margin: 0;
}
.footer-right {
	flex-direction: column;
	align-items: flex-end;
	row-gap: 24px;
	padding-top: 10px;
}
#footer p a:hover {
	opacity: .7;
}
#footer .buttons {
	width: 100%;
	text-align: center;
}
#footer .buttons a {
	display: inline-block;
	font-size: 13px;
}

@media (min-width: 768px) {

/*	#header {
		position: fixed; 
		top: 0;
		left: 0;
	}
	.logged-in #header { top: 46px; }
*/	
	#header .container-wrap {
		grid-template-columns: 258px auto;
	}
	.site-navigation {
		justify-content: flex-end;
		align-items: flex-end;
		column-gap: 10px;
	}

    #mainNavbars {
        column-count: 3;
        column-gap: 40px;
    }
	.menu-block:nth-child(4),
	.menu-block:nth-child(7) {
		border: none;
	}
	.menu-block:nth-child(4) {
		padding-bottom: 15px;
	}
	.footer-left { width: 60%; }

}

@media (min-width: 783px) {
/*	.logged-in #header { top: 32px; } */
}

@media (min-width: 991px) {
	

}

@media (min-width: 1100px) {
	
/*	#header { padding: 25px 0; } 
	#header .container {
		grid-template-columns: 118px auto;
	}*/
	.site-navigation { column-gap: 20px; }

	.search-active .navbar { visibility: hidden; }
	.search-container .search-form { width: calc(100% - 90px); }
	.search-container .search-close { margin-right: 5%; }

}

@media (min-width: 1160px) {

}

@media (max-width: 1099px) {

	.search-form fieldset { width: 88%; }
	.footer-left {
		flex-direction: column;
		row-gap: 76px;
	}
	#footer .footer-left p { margin: 0 0 10px; }
	.footer-right { padding-top: 60px; }

}

@media (max-width: 991px) {

	#navContainer { padding: 0 28px; }
	#mainNavbars { column-gap: 36px; }
	.search-container { right: 28px; }
	
}

@media (min-width: 768px) and (max-width: 991px) {
	#mainNavbars { min-width: 22.375rem; }
	.search-container { width: calc(100% - 328px); }
}

@media (max-width: 767px) {
	
	#topbar { padding: 13px 0; }
	#topbar .container-wrap { justify-content: center; }
	#topbar .social-networks { display: none; }
	#topbar .buttons { padding: 0; }
	#header .container-wrap {
		grid-template-rows: auto auto;
		row-gap: 38px;
	}
	.site-logo { text-align: center; }
	.site-navigation,
	.site-navigation .navbar { 
		position: static;
		padding: 0;
	}
  	.site-navigation {
		justify-content: flex-end;
		column-gap: 20px;
	}
	.bt-container h6 { display: none; }
	.search-toggle { margin: 0; }

	#navContainer { padding: 0 12px; }
	#mainNavbars { padding: 28px 24px; }
    #mainNavbars .has-posts .sub-toggle {
        position: absolute;
        right: 24px;
        color: #fff;
        font-size: 30px;
        line-height: 24px;
    }
    #mainNavbars .has-posts ul {
        display: none;
    }
    #mainNavbars .has-posts.open ul {
        display: block;
    }
	.search-container { 
        width: 100%;
        padding: 20px 22px 0;
        right: 0;
    }
	.search-active .search-container {
        top: auto;
        bottom: 0;
        padding-bottom: 0;
     }
	.search-container .search-form { justify-content: flex-start; width: 92%; }
	.search-form fieldset { width: 95%; border-radius: 22px; }
	.search-box { padding: 11px 8px; }
	.search-form button {
        height: 43px;
        right: 0;
        background-size: 15px 16px;
    }
	.search-container .search-close {
        padding-left: 22px;
	}
	.search-close span { display: none; }

	#footer .container-wrap {
		flex-direction: column;
		row-gap: 66px;
	}
	#footer .footer-column { align-items: center; }
	#footer .logo { text-align: center; }
	.footer-contact { width: 258px; }
	.footer-right { padding: 0 0 12px; }
	#footer .social { padding-bottom: .75rem; }
	
}