/*
Theme Name: AI Pro-Tech
Author: ITBox
Author URI: https://itbox.gr/
Version: 1.0
Template: hello-elementor
Text Domain: hello-elementor-child
*/


/*------------------------------------------------------------*/
/* General */

body {
	/* -webkit-font-smoothing: antialiased; */
	-webkit-font-smoothing: auto;
	/* -moz-osx-font-smoothing: grayscale; */
	-moz-osx-font-smoothing: auto;
	font-variant-ligatures: none;
}
svg {
	display: block;
}

::selection {
	color: #FFFFFF;
	background: var(--e-global-color-primary);
}


/* Breakpoints (Mobile First) */

@media (min-width: 768px) {
	/* Placeholder */
}
@media (min-width: 1024px) {
	/* Placeholder */
}


/* WordPress Fixes */

@media (max-width: 600px) {
	#wpadminbar {
		position: fixed;
	}
}


/* Typography Fixes */

strong, b {
	font-weight: 700;
}


/*------------------------------------------------------------*/
/* Variables */

/* WordPress Admin Bar */

body {
	--admin-bar: 0px;
}
body.admin-bar {
	--admin-bar: 32px;
}
@media (max-width: 782px) {
	body.admin-bar {
		--admin-bar: 46px;
	}
}
@media (max-width: 600px) {
	body.admin-bar {
		--admin-bar: 46px;
	}
}


/* Viewport Height (without the Admin Bar) */

body {
	--viewport-height: calc(100vh - var(--admin-bar, 0px));
	--viewport-height: calc(100svh - var(--admin-bar, 0px));
}


/*------------------------------------------------------------*/
/* Helper Classes */

/* Navigation Helpers */

.no-scroll {
	overflow: hidden;
	max-height: 100vh;
	max-height: var(--viewport-height, 100vh);
}
.no-select {
	user-select: none;
}


/*------------------------------------------------------------*/
/* Elementor: Fixes */

.e-con {
	transition: none; /* Disable transitions */
}
.e-con.e-parent {
	--z-index: 0; /* Act as default */
}

.elementor-element .elementor-widget-container {
	transition: none; /* Disable transitions */
}

/* Default Container Paddings */

.e-con.e-con-boxed {
	--padding-left: 20px!important;
	--padding-right: 20px!important;
}
@media (max-width: 1023px) {
	.e-con.e-con-boxed {
		--padding-left: 16px!important;
		--padding-right: 16px!important;
	}
}

/* Main Content: Fill the Screen */

main#content {
	min-height: var(--main-height-min, 512px);
}


/*------------------------------------------------------------*/
/* Elementor: Animations */

.animated {
	animation-duration: 1s;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translate3d(0, -25%, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translate3d(-5%, 0, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translate3d(5%, 0, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 25%, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}


/*------------------------------------------------------------*/
/* Element: Text Editor */

.elementor-widget-text-editor {
	font-size: 16px;
	line-height: 1.5;
}
.elementor-widget-text-editor p {
	margin-bottom: 12px;
}
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.elementor-widget-text-editor a {
	text-decoration: underline;
	color: var(--e-global-color-text);
}
.elementor-widget-text-editor a:hover {
	text-decoration: underline;
	color: var(--e-global-color-accent);
}

.elementor-widget-text-editor b,
.elementor-widget-text-editor strong {
	font-weight: 600;
}

.elementor-widget-text-editor ul {
	margin-bottom: 12px;
	padding-left: 20px;
	list-style-position: outside;
}
.elementor-widget-text-editor ul li {
	margin-bottom: 8px;
}
.elementor-widget-text-editor ul li:last-child {
	margin-bottom: 0;
}
.elementor-widget-text-editor ul:last-child {
	margin-bottom: 0;
}

.elementor-widget-text-editor ol {
	margin-bottom: 12px;
	padding-left: 20px;
	list-style-position: outside;
}
.elementor-widget-text-editor ol li {
	margin-bottom: 8px;
}
.elementor-widget-text-editor ol li:last-child {
	margin-bottom: 0;
}
.elementor-widget-text-editor ol:last-child {
	margin-bottom: 0;
}

.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6 {
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 16px 0;
}
.elementor-widget-text-editor h1 {
	font-size: 28px;
	line-height: 1.3;
}
.elementor-widget-text-editor h2 {
	font-size: 24px;
	line-height: 1.3;
}
.elementor-widget-text-editor h3 {
	font-size: 22px;
	line-height: 1.35;
}
.elementor-widget-text-editor h4 {
	font-size: 20px;
	line-height: 1.35;
}
.elementor-widget-text-editor h5 {
	font-size: 19px;
	line-height: 1.4;
}
.elementor-widget-text-editor h6 {
	font-size: 18px;
	line-height: 1.4;
}

/* Alternative Styling */

.elementor-widget-text-editor.alt-01 ol li,
.elementor-widget-text-editor.alt-01 ul li {
	margin-bottom: 12px;
}
.elementor-widget-text-editor.alt-01 ol li:last-child,
.elementor-widget-text-editor.alt-01 ul li:last-child {
	margin-bottom: 0;
}
.elementor-widget-text-editor.alt-01 ol li strong,
.elementor-widget-text-editor.alt-01 ul li strong {
	font-weight: 600;
}
.elementor-widget-text-editor.alt-01 ol li strong:first-of-type,
.elementor-widget-text-editor.alt-01 ul li strong:first-of-type {
	font-weight: 700;
	color: #FFFFFF;
}


/*------------------------------------------------------------*/
/* Element: Posts (Archives) */

/* Fixes */

.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__thumbnail > img,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__thumbnail > img {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #DDDDDD;
	-webkit-transform: none!important;
	-ms-transform: none!important;
	transform: none!important;
}
.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__thumbnail.elementor-fit-height > img,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__thumbnail.elementor-fit-height > img {
	width: 100%;
	height: 100%;
}
.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__title,
.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__title a,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__title,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__title a {
	display: block;
}


/* Default Styling */

.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__meta-data span+span:before,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__meta-data span+span:before {
	margin: 0 3px;
}
.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__meta-data a,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__meta-data a {
	color: inherit;
	/* color: var(--e-global-color-primary); */
}
.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__meta-data a:hover,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__meta-data a:hover {
	color: var(--e-global-color-primary);
}


/* Default Styling -> Cards Skin */

.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__thumbnail__link,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__thumbnail__link {
	margin-bottom: 0;
}


/* Custom Features -> Date Alternative Format */

.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__meta-data span > span:before,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__meta-data span > span:before {
	content: none!important;
}
.elementor-widget-posts .elementor-posts .elementor-post .elementor-post__meta-data .date-alt,
.elementor-widget-archive-posts .elementor-posts .elementor-post .elementor-post__meta-data .date-alt {
	display: none;
}
.elementor-widget-posts.date-alt .elementor-posts .elementor-post .elementor-post__meta-data .date-default,
.elementor-widget-archive-posts.date-alt .elementor-posts .elementor-post .elementor-post__meta-data .date-default {
	display: none;
}
.elementor-widget-posts.date-alt .elementor-posts .elementor-post .elementor-post__meta-data .date-alt,
.elementor-widget-archive-posts.date-alt .elementor-posts .elementor-post .elementor-post__meta-data .date-alt {
	display: inline;
}


/* Custom Features -> Meta Categories */

.elementor-widget-posts.category-primary .elementor-posts .elementor-post .elementor-post__meta-data .elementor-post-categories .category-primary,
.elementor-widget-archive-posts.category-primary .elementor-posts .elementor-post .elementor-post__meta-data .elementor-post-categories .category-primary {
	display: block;
}
.elementor-widget-posts.category-primary .elementor-posts .elementor-post .elementor-post__meta-data .elementor-post-categories .category-secondary,
.elementor-widget-posts.category-primary .elementor-posts .elementor-post .elementor-post__meta-data .elementor-post-categories .category-divider,
.elementor-widget-archive-posts.category-primary .elementor-posts .elementor-post .elementor-post__meta-data .elementor-post-categories .category-secondary,
.elementor-widget-archive-posts.category-primary .elementor-posts .elementor-post .elementor-post__meta-data .elementor-post-categories .category-divider {
	display: none!important;
}


/* Default Styling -> Pagination */

.elementor-pagination {
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin-top: 40px;
	user-select: none;
	gap: 6px 6px;
}
.elementor-pagination .page-numbers {
	display: block;
	font-size: 13px;
	line-height: 20px;
	font-weight: 600;
	min-width: 32px;
	padding: 5px 5px 5px 5px;
	margin: 0!important;
	border-radius: 2px;
	border: 1px solid var(--e-global-color-de3b24d);
	background: transparent;
	color: var(--e-global-color-de3b24d);
}
.elementor-pagination a.page-numbers:hover,
.elementor-pagination span.page-numbers.current {
	border: 1px solid var(--e-global-color-de3b24d);
	background: var(--e-global-color-de3b24d);
	color: #FFFFFF;
}
.elementor-pagination span.page-numbers {
	cursor: default;
}
.elementor-pagination span.page-numbers.prev,
.elementor-pagination span.page-numbers.next {
	opacity: 0.5;
}


/*------------------------------------------------------------*/
/* Element: Featured Image */

/* Default */

.elementor-widget-theme-post-featured-image .elementor-widget-container img {
	display: block;
	width: 100%;
	height: auto;
	background: #FFFFFF;
}

/* Posts */

body.single-post .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	aspect-ratio: 3/2;
	object-fit: cover;
}

/* CPT: Publication */

body.single-publication .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	aspect-ratio: 3/2;
	object-fit: cover;
	object-position: center top;
}
body.single-publication .elementor-widget-theme-post-featured-image .elementor-widget-container::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg,rgba(238, 238, 238, 1) 0%, rgba(238, 238, 238, 0) 5%);
}

body.post-type-archive-publication .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	aspect-ratio: 3/2;
	object-fit: cover;
	object-position: center top;
}

/* CPT: Presentation */

body.single-presentation .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	aspect-ratio: 3/2;
	object-fit: cover;
}

body.post-type-archive-presentation .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	aspect-ratio: 3/2;
	object-fit: cover;
	object-position: center center;
}

/* CPT: Event */

body.single-event .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	/* aspect-ratio: 3/2; */
	/* object-fit: cover; */
}

body.post-type-archive-event .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	aspect-ratio: 3/2;
	object-fit: cover;
	object-position: center center;
}

/* CPT: Testimonial */

body.single-testimonial .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	/* aspect-ratio: 3/2; */
	/* object-fit: cover; */
}

body.post-type-archive-testimonial .elementor-widget-theme-post-featured-image .elementor-widget-container img {
	aspect-ratio: 16/9;
	object-fit: cover;
	object-position: center center;
}


/*------------------------------------------------------------*/
/* Elementor: Post Content (Posts & Pages) */

/* Default Styling → Text */

body.single .elementor-widget-theme-post-content {
	font-size: 16px;
	line-height: 1.5;
}
body.single .elementor-widget-theme-post-content p {
	margin-bottom: 18px;
}
body.single .elementor-widget-theme-post-content p:last-child {
	margin-bottom: 0;
}

body.single .elementor-widget-theme-post-content a {
	text-decoration: underline;
	color: var(--e-global-color-text);
}
body.single .elementor-widget-theme-post-content a:hover {
	text-decoration: underline;
	color: var(--e-global-color-accent);
}

body.single .elementor-widget-theme-post-content b,
body.single .elementor-widget-theme-post-content strong {
	font-weight: 700;
}

body.single .elementor-widget-theme-post-content ul {
	margin-bottom: 24px;
	padding-left: 24px;
	list-style-position: outside;
}
body.single .elementor-widget-theme-post-content ul li {
	margin-bottom: 4px;
}
body.single .elementor-widget-theme-post-content ul li:last-child {
	margin-bottom: 0;
}

body.single .elementor-widget-theme-post-content ol {
	margin-bottom: 24px;
	padding-left: 24px;
	list-style-position: outside;
}
body.single .elementor-widget-theme-post-content ol li {
	margin-bottom: 4px;
}
body.single .elementor-widget-theme-post-content ol li:last-child {
	margin-bottom: 0;
}

body.single .elementor-widget-theme-post-content h1,
body.single .elementor-widget-theme-post-content h2,
body.single .elementor-widget-theme-post-content h3,
body.single .elementor-widget-theme-post-content h4,
body.single .elementor-widget-theme-post-content h5,
body.single .elementor-widget-theme-post-content h6 {
	font-weight: 700;
	letter-spacing: -0.025em;
	margin: 0 0 12px 0;
}
body.single .elementor-widget-theme-post-content h1 {
	font-size: 28px;
	line-height: 1.3;
}
body.single .elementor-widget-theme-post-content h2 {
	font-size: 26px;
	line-height: 1.3;
}
body.single .elementor-widget-theme-post-content h3 {
	font-size: 24px;
	line-height: 1.35;
}
body.single .elementor-widget-theme-post-content h4 {
	font-size: 22px;
	line-height: 1.35;
}
body.single .elementor-widget-theme-post-content h5 {
	font-size: 20px;
	line-height: 1.4;
}
body.single .elementor-widget-theme-post-content h6 {
	font-size: 18px;
	line-height: 1.4;
}

body.single .elementor-widget-theme-post-content blockquote { /* TODO! */
	font-size: 20px;
	line-height: 1.35;
	font-weight: 400;
	font-style: italic;
	text-align: center;
	border: none;
	margin: 25px auto;
	padding: 0 10%;
	color: #000000;
}
body.single .elementor-widget-theme-post-content blockquote:before,
body.single .elementor-widget-theme-post-content blockquote:after {
	content: "";
	display: block;
	width: 20%;
	height: 1px;
	background: #00000044;
	margin: 20px auto;
}
@media (max-width: 767px) {
	body.single .elementor-widget-theme-post-content blockquote {
		padding: 0;
	}
}

/* Default Styling → Images */

body.single .elementor-widget-theme-post-content img {
	display: block;
	width: auto;
	margin: 24px 0 24px 0;
	border-radius: 2px;
}

body.single .elementor-widget-theme-post-content .alignnone {
	margin: 24px 0 24px 0;
}
body.single .elementor-widget-theme-post-content .aligncenter {
	margin: 24px auto 24px auto;
}
body.single .elementor-widget-theme-post-content .alignleft {
	margin: 24px auto 24px 0;
	float: none;
}
body.single .elementor-widget-theme-post-content .alignright {
	margin: 24px 0 24px auto;
	float: none;
}

body.single .elementor-widget-theme-post-content .wp-caption {
	width: auto!important;
	margin: 24px auto 24px auto;
}
body.single .elementor-widget-theme-post-content .wp-caption.alignnone,
body.single .elementor-widget-theme-post-content .wp-caption.aligncenter,
body.single .elementor-widget-theme-post-content .wp-caption.alignleft,
body.single .elementor-widget-theme-post-content .wp-caption.alignright {
	margin: 24px auto 24px auto;
}
body.single .elementor-widget-theme-post-content .wp-caption img {
	margin-top: 0;
	margin-bottom: 0;
}
body.single .elementor-widget-theme-post-content .wp-caption .wp-caption-text {
	margin: 5px 0 -2px 0;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: #666666;
}

body.single .elementor-widget-theme-post-content p:first-child img {
	margin-top: 0;
}
body.single .elementor-widget-theme-post-content p:last-child img {
	margin-bottom: 0;
}

body.single .elementor-widget-theme-post-content .wp-caption:first-child {
	margin-top: 0;
}
body.single .elementor-widget-theme-post-content .wp-caption:last-child {
	margin-bottom: 0;
}

/* Default Styling → Embeds */

body.single .elementor-widget-theme-post-content iframe {
	display: block;
	margin-top: 24px;
	margin-bottom: 24px;
}
body.single .elementor-widget-theme-post-content p:first-child iframe {
	margin-top: 0;
}
body.single .elementor-widget-theme-post-content p:last-child iframe {
	margin-bottom: 0;
}

body.single .elementor-widget-theme-post-content ins {
	background: transparent;
}

/* Default Styling → YouTube (Native) */

body.single .elementor-widget-theme-post-content iframe[src*="youtube.com"] {
	aspect-ratio: 16/9;
	width: 100%;
	height: auto;
}


/*------------------------------------------------------------*/
/* Header */

.elementor-location-header {
	z-index: 2;
}

body .elementor-location-header .header-navbar-mobile {
	box-shadow: none;
	transition: box-shadow 200ms ease;
}
body.header-scrolled .elementor-location-header .header-navbar-mobile {
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

body .elementor-location-header .header-navbar-desktop {
	height: 100px!important;
	box-shadow: none;
	transition: height 200ms ease, box-shadow 200ms ease;
}
body.header-scrolled .elementor-location-header .header-navbar-desktop {
	height: 80px!important;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}


/*------------------------------------------------------------*/
/* Main */

main#content {
	z-index: 1;
}


/*------------------------------------------------------------*/
/* Footer */

.elementor-location-footer {
	z-index: 1;
}


/*------------------------------------------------------------*/
/* Homepage */

/* Slider */ /* TODO: Move this inside the element!!! */

.homepage-slider .homepage-slide {
	/* min-height: 940px; */
	aspect-ratio: 2.75;
}
@media (max-width: 1959px) {
	.homepage-slider .homepage-slide {
		/* min-height: 760px; */
		aspect-ratio: 2.5;
	}
}
@media (max-width: 1023px) {
	.homepage-slider .homepage-slide {
		/* min-height: 600px; */
		aspect-ratio: 1.5;
	}
}
@media (max-width: 767px) {
	.homepage-slider .homepage-slide {
		/* min-height: 280px; */
		aspect-ratio: 1.25;
	}
}


/*------------------------------------------------------------*/
/* Page: Experts */

.expert-grid .expert-card {
	cursor: pointer;
}

body.page-id-320 .expert-popup {
	opacity: 1;
	transition: opacity 200ms ease;
}
body.page-id-320 .expert-popup.popup-loading {
	opacity: 0;
}


/*------------------------------------------------------------*/
/* InMobi CMP */

.qc-cmp2-consent-info {
	max-width: 100%!important;
	padding: 20px 15px!important;
}
.qc-cmp2-consent-info .qc-cmp2-publisher-logo-container > div {
	padding: 0!important;
	margin-top: 0!important;
	margin-bottom: 12px!important;
}
.qc-cmp2-consent-info .qc-cmp2-publisher-logo-container figure {
	width: 100%!important;
	text-align: center!important;
}
.qc-cmp2-consent-info .qc-cmp2-publisher-logo-container figure .logo-container {
	margin-bottom: 10px!important; /* Logo Gap! */
	width: 180px!important; /* Logo Width! */
}
.qc-cmp2-consent-info .qc-cmp2-publisher-logo-container figure .logo-container img {
	display: block!important;
	width: auto!important;
	height: auto!important;
	max-width: 100%!important;
	margin-bottom: 0!important;
}
.qc-cmp2-consent-info .qc-cmp2-publisher-logo-container .qc-cmp2-summary-info {
	padding-bottom: 60px!important;
}
@media (min-width: 768px) {
	.qc-cmp2-consent-info {
		padding: 20px 30px!important;
	}
	.qc-cmp2-consent-info .qc-cmp2-publisher-logo-container figure .logo-container {
		margin-bottom: 10px!important; /* Logo Gap! */
	}
	.qc-cmp2-consent-info .qc-cmp2-publisher-logo-container .description {
		max-height: 200px!important;
	}
}

.qc-cmp2-footer .qc-cmp2-summary-buttons button {
	margin: 4px 10px!important;
}
@media (max-width: 767px) {
	.qc-cmp2-footer {
		margin-top: 0!important;
	}
	.qc-cmp2-footer .qc-cmp2-summary-buttons button {
		width: auto!important;
	}
}

.qc-cmp2-persistent-link {
	font-size: 14px!important;
	background: #CF2727!important;
	color: #FFFFFF!important;
}
.qc-cmp2-persistent-link:hover {
	color: #FFFFFF!important;
}
