/*
Theme Name: Electrical Testing & Installations
Version: 1.0.0
Template: astra
*/

/* Astra Header Builder */

#ast-desktop-header, #ast-mobile-header {
	position: fixed;
	top: 0;
	left: 0;
	padding: 0;
	width: 100%;
	-webkit-transition: all ease-out .5s;
	-moz-transition: all ease-out .5s;
	-o-transition: all ease-out .5s;
	transition: all ease-out .5s;
}

#ast-desktop-header.active, #ast-mobile-header.active {
	background-color: rgba(0, 0, 0, 0.7);
	box-shadow: 5px 3px 20px 0 rgba(0, 0, 0, .1);
	padding: 0;
}

#ast-desktop-header.active img.custom-logo, #ast-mobile-header.active img.custom-logo {
    width: 300px;
	-webkit-transition: all ease-out .5s;
	-moz-transition: all ease-out .5s;
	-o-transition: all ease-out .5s;
	transition: all ease-out .5s;
}

.ast-below-header-wrap {
	max-height: 145px;
	opacity: 1;
	overflow: hidden;
	visibility: visible;
	transition: opacity 0.4s ease, visibility 0.4s ease, max-height 0.4s ease;
}

.ast-below-header-wrap.hidden {
	max-height: 0;
	opacity: 0;
	visibility: hidden;
}

.ast-logo-title-inline .ast-site-identity {
	padding: 0.4em 0;
}

/* End Astra Header Builder */

/* Mega Menu */

.service-item {
	display: flex;
	gap: 15px;
	padding: 12px;
	transition: background-color 0.3s ease;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.service-item:hover {
	background-color: #f5f5f5;
	cursor: pointer;
}

.service-item:hover .service-title {
	color: #ec1f26;
}

.service-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fce8e9;
	border-radius: 50%;
	color: #ec1f26!important;
	font-size: 20px;
}

/* For non-transparent header */
.ast-header-break-point .mega-menu-item .service-icon i,
.ast-desktop .mega-menu-item .service-icon i {
    color: #ec1f26 !important;
    font-size: 1em !important;
}

.service-content {
	flex: 1;
}

.service-title {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	transition: color 0.3s ease;
}

.service-description {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #999;
}

.blog #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link, .single-post #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link, .error404 #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
	color: #000000;
}

.blog #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover, .single-post #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover, .error404 #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover, .blog #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, .blog #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, .blog #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
	color: #ec1f26;
}

/* End Mega Menu */

/* Hero */

.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150' preserveAspectRatio='none'%3E%3Cpath d='M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7' fill='none' stroke='%23EC1F26' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
  transform-origin: left;
  animation: underline-draw 9s ease-in-out infinite;
}

@keyframes underline-draw {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  13% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  87% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
}

/* End Hero */

/* Services */

.service .service-txt, .service .service-btn {
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.4s ease;
}

.service:hover .service-txt, .service:hover .service-btn {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* End Services */

/* Content */

.project-con .elementor-widget-heading, .project-con .elementor-widget-text-editor, .project-con .elementor-widget-button {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-con:hover .elementor-widget-heading, .project-con:hover .elementor-widget-text-editor, .project-con:hover .elementor-widget-button {
	opacity: 1;
	transform: translateY(0);
}

.blog #content {
	margin-top: 100px;
}

@media screen and (max-width: 768px) {
	.ast-separate-container .site-content .ast-single-post-featured-section + article {
		margin-top: 0;
	}
}

.ast-separate-container .site-content .ast-single-post-featured-section + article

/* End Content */

/* Footer */

.marker-colour {
	color: #EC1F26;
}

/* End Footer */