/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/**
 * General design
 */

#TB_window {
	margin-left: auto !important;
	max-width: calc(100vw - 20px);
	transform: translate(-50%, 0) !important;
}
#TB_ajaxWindowTitle {
	display: none;
}
#TB_ajaxContent {
	width: 100% !important;
	overflow-x: hidden !important;
}
#TB_ajaxContent > div {
	margin: 10px 0 0;
}
#TB_ajaxContent form p {
	margin-bottom: 5px;
}
#TB_ajaxContent form > p {
	position: relative;
	margin-bottom: 0 !important;
}
#TB_ajaxContent form .wpcf7-response-output {
	margin: 5px 0;
}
#TB_closeWindowButton:focus .tb-close-icon {
	box-shadow: none !important; 
	-webkit-box-shadow: none !important;
	color: #666 !important;
}
#TB_window .tb-close-icon:before {
	content: "\e82c";
	font-family: "porto";
}
#requestOffer {
	display: none;
}
.reqoffer {
	white-space: nowrap !important;
}
.grecaptcha-badge {
	visibility: hidden;
}
body:not(.home) #main > div > .main-content-wrap {
	padding-top: 100px;
	padding-bottom: 75px;
}
.btn {
	font-family: "Helvetica-lt-condensed-bold" !important;
	font-weight: 400 !important;
}
.btn-xs,
.btn-sm {
	font-family: "Helvetica-lt-condensed" !important;
}
.btn-style-1 > a:hover {
	color: #fff !important;
}
#cookie-notice {
	font-family: "Helvetica-lt-condensed";
}
#cookie-notice .btn-primary {
	color: #fff;
	border-color: #fff;
}
.page-content strong,
.page-content p strong,
.post-content strong,
.post-content p strong {
	color: #000;
}
.page-content .widget_nav_menu .current-menu-item {
	color: #004b85;
}
.page-content .dataTables_length label select {
	min-width: 50px;
}
@media (min-width: 768px) and (max-width: 1169px) {
	.col-md-6.col-xl-1-5 {
		width: 50%;
	}
}
@media (max-width: 767px) {
	#TB_ajaxContent {
		height: 70vh !important;
	}
}

/**
 * Header design
 */

#header .logo .img-responsive {
	height: 40px;
}

#header ul.main-menu li.wpml-ls-item ul.sub-menu {
	min-width: 0;
}

#header ul.main-menu ul.sub-menu li.menu-item > a {
	font-family: "Helvetica-lt-condensed" !important;
	font-size: 15px !important;
	font-weight: 700 !important;
}

.hero-img img {
	height: 40vh;
}

/**
 * Main design
 */
#ms_content_navi {
	display: none;
	margin-bottom: 1.875rem;
	padding: 5px 10px;
	width: 100%;
	background-color: #004b85;
	color: #fff;
	text-align: center;
	border-radius: 0.25rem;
	cursor: pointer;
}
#ms_content_navi:after {
	content: "\f078";
	display: inline-block;
	margin-left: 5px;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
}
.ms_mobile_content_navi.ms_mobile_content_navi_open #ms_content_navi:after {
	content: "\f077";
}
#content .page-content .ms_mobile_content_navi {
	margin-bottom: 0 !important;
}
#content .page-content .ms_mobile_content_navi > div {
	display: -webkit-flex;
	-webkit-flex-direction: column;
	display: flex;
	flex-direction: column;
}
#content .page-content aside.widget_nav_menu {
	margin-top: 0;
}
@media (max-width: 767px) {
	#content .page-content .ms_mobile_content_navi aside.widget_nav_menu {
		display: none;
	}
}

/**
 * CF7 design
 */

span.wpcf7-list-item {
	display: block;
}
.one-half > p,
.one-third > p {
	display: -webkit-flex;
	-webkit-flex-wrap: wrap;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
}
.one-half > p > br,
.one-third > p > br {
	content: "";
	display: none;
}
.one-half > p > label {
	flex: 1 1 calc((50% / 3) - 10px);
}
.one-third > p > label {
	flex: 1 1 calc((100% / 3) - 10px);
}
.one-half input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.one-half select,
.one-half textarea,
.one-third input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.one-third select,
.one-third textarea,
.full-width > p > label,
.full-width input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.full-width select,
.full-width textarea {
	width: 100%;
}
@media (max-width: 767px) {
	.one-half > p > label,
	.one-third > p > label {
		flex: 1 1 100%;
	}
}

/**
 * Services desgin
 */

#services-block .content-grid-item > div {
	height: 100%;
}
#services-block .content-grid-item .btn-style-1 {
	margin-top: auto;
}

/**
 * dataTables design
 */

#certified_wrapper {
	/*overflow: auto;*/
}
#certified_wrapper #certified_length select {
	min-width: 55px;
}
#certified_wrapper table.dataTable.nowrap li {
	white-space: initial;
}
.sertcomodal {
	display: none;
}
.certcotable {
	margin-top: 10px;
}
.certcotable td {
	padding: 2px;
}
.certcotable td:first-of-type {
	width: 160px;
}
#expertiseacts-search {
	margin-bottom: 5px;
	text-align: right;
}
#expertiseacts-search #reset-search {
	color: #fff;
	background-color: #ED5752;
	border-color: #e71f18;
}
#expertiseacts-search #reset-search:hover {
	background-color: #e71f18;
}
#expertiseacts-wrap {
	overflow-x: auto;
}
#expertiseacts-wrap th,
#expertiseacts-wrap tbody td {
	white-space: nowrap;
}
#expertiseacts-wrap tbody td {
	border-top: 1px solid #ddd;
}
#expertiseacts-wrap th:nth-of-type(1),
#expertiseacts-wrap th:nth-of-type(2) {
	width: 35%;
	min-width: 150px;
}
#expertiseacts-wrap th:nth-of-type(3),
#expertiseacts-wrap td:nth-of-type(3),
#expertiseacts-wrap th:nth-of-type(4),
#expertiseacts-wrap td:nth-of-type(4) {
	text-align: center;
}
#expertiseacts-pagi {
	display: -webkit-flex;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2px;
	margin-top: 10px;
	padding: 10px 0;
	text-align: center;
}
#expertiseacts-pagi > * {
	padding: 3px 3px;
	min-width: 30px;
	border: 1px solid #ddd;
}
#expertiseacts-pagi .current {
	background-color: #004b85;
	color: #fff;
}
#expertisemodals .expertactimg {
	display: none;
}
.expertactimgwrap {
	display: -webkit-flex;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}
@media (max-width: 767px) {
	body.page-id-13267 #TB_window {
		top: 0 !important;
		margin-top: 50px !important;
	}
	body.page-id-13267 #TB_ajaxContent {
		height: auto !important;
	}
}

/**
 * Koolitused design
 */

.training-block > div {
	display: -webkit-flex;
	display: flex;
	justify-content: space-between;
}
.training-block > div select {
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 14px;
}
.training-block ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.training-block ul.training-list li {
	display: -webkit-flex;
	display: flex;
}
.training-block ul.training-list li:not(:first-of-type) {
	border-top: 1px solid rgba(0,0,0,0.08);
}
.training-block ul.training-list div.training-period {
	flex: 0 0 120px;
	width: 120px;
}
.training-block .training-important {
	color: #ff6600;
}

.single-koolitused .page-content .btn-primary,
.single-koolitused .page-content .wpcf7-submit {
	background-color: #fff;
	border: 2px solid #004b85;
	border-radius: 5px;
	color: #004b85;
	font-family: "Helvetica-lt-condensed-bold" !important;
	font-size: 16px;
	padding: 12px 38px;
}
.single-koolitused .page-content .btn-primary:hover,
.single-koolitused .page-content .wpcf7-submit:hover {
	background-color: #004b85;
	border: 2px solid #004b85;
	border-radius: 5px;
	color: #fff;
	font-family: "Helvetica-lt-condensed-bold" !important;
	font-size: 16px;
	padding: 12px 38px;
}

/**
 * Tule tööle design
 */
body.page-id-1272 #content .porto-posts-grid .post-item .post-image,
body.page-id-1272 #content .porto-posts-grid .post-item .meta-date {
	display: none;
}

/**
 * Footer design
 */

#footer {
	border: 0 !important;
}
#footer > div > p {
	display: none;
}
