/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.6
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

h1 span,
h2 span,
h3 span,
h4 span {
	color: #49C7AB;
}

/* Remove header shadow on all white pages */

.page-id-1489 #ms-header {
	box-shadow: none;
}

/* Scrolled header style */
.page-id-1489 .elementor-location-header.scrolled > section {
	box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.1) !important; 
}

/* What We Do component */
.ms-wwd-container {
    position: relative;
    display: flex;
    align-items: center;
	height: 300px;
}

.ms-wwd-container .vertical-line {
    width: 2px;
    height: 300px;
    background-color: #D3D3D3;
    position: relative;
    margin-right: 20px;
}

.ms-wwd-container-extended  {
    height: auto;
	margin-top: -60px;
}

.ms-wwd-container-extended .vertical-line {
    height: 580px;
}

.ms-wwd-container .headings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ms-wwd-container .heading {
    font-size: 25px;
	font-family: Urbanist, Montserrat, Sans-serif;
	font-weight: 600;
	line-height: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
}


.ms-wwd-container .heading.active,
.ms-wwd-container .heading:hover {
	color: #49C7AB;
}

.ms-wwd-container .circle {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #49C7AB;
    border-radius: 50%;
    left: 1px; /* Position the circle next to the line */
    top: 12px; 
    transform: translateX(-50%);
    transition: top 0.3s ease;
}



/* Show arrows at the container bottom for navigation */
.ms-wwd-container .arrow-up, .ms-wwd-container .arrow-down {
    display: block;
}

/* Style for sections */
.ms-wwd-section {
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 1.4s ease, height 1.4s ease !important; /* Smooth fade-in/fade-out transition with movement */
}

.ms-wwd-section .elementor-widget-text-editor {
	min-height: 100px;
}

/* Active section style */
.ms-wwd-section.active {
  visibility: visible;
  opacity: 1;
  height: auto; /* Set a sufficiently large value to allow smooth expansion */
  transition: opacity 1.4s ease, height 1.4s ease !important; /* Smooth fade-in/fade-out transition with movement */
}

.ms-diamond-wrapper img {
	transform: rotate(30deg);
	transition: transform 0.7s ease;
}

/* Rotate the image when any heading is clicked */
.ms-diamond-wrapper .heading-clicked {
	transform: rotate(390deg); /* Rotate image a full circle when a heading is clicked */
}

/* Why We Do It section */
.ms-why-container {
	width: 22% !important;
	transition: width 0.5s;
}

.ms-why-container .elementor-element-populated {
	min-height: 380px;
}

.ms-why-container .ms-why-inner {
	min-height: 360px;
}

.ms-why-container .elementor-inner-column:first-child {
	display: none;
	width: 0%;
	transition: width 0.5s;
}

.ms-why-container .elementor-inner-column:nth-child(2) {
	width: 100%;
	transition: width 0.5s;
}

.ms-why-container .ms-why-diamond img {
	opacity: 0.5;
}

.ms-why-container h3 {
	font-size: 30px !important;
	white-space: nowrap; /* Prevent heading from wrapping */
	color: #1E7864 !important;
}

.ms-why-container .elementor-widget-heading {
	margin-block-end: 0px !important;
}

.ms-why-container .elementor-widget-heading:hover {
	cursor: pointer !important;
}

.ms-why-container .elementor-widget-heading:hover h3 {
	color: #49C7AB !important
}

.ms-why-container .elementor-widget-text-editor {
	height: 0;
	opacity: 0;
}

/* Active styles */
.ms-why-container.active .elementor-inner-column:first-child {
	display: block;
	width: 50%;
	transition: width 0.5s;
}

.ms-why-container.active .elementor-inner-column:nth-child(2) {
	width: 50%;
	transition: width 0.5s;
}

.ms-why-container.active .elementor-widget-heading {
	margin-block-end: 20px !important;
}

.ms-why-container.active .elementor-widget-heading:hover {
	cursor: default !important;
}

.ms-why-container.active .elementor-widget-heading h3 {
	color: #49C7AB !important
}

.ms-why-container.active {
	width: 54% !important;
	transition: width 0.5s;
}
	
.ms-why-container.active .ms-why-diamond img {
	opacity: 1;
	transform: rotate(90deg);
	transition: transform 0.7s ease;
}

.ms-why-container.active .elementor-widget-text-editor {
	height: 160px;
	opacity: 1;
	transition: opacity 0.7s ease 0.3s, height 0.7s;
}

/* Comparison table */
.ms-sorting-table thead tr th:hover,
.ms-sorting-table tbody tr td:hover{
    color: #000 !important;
	cursor: default !important;
}

.ms-sorting-table  thead > tr th:nth-child(2),
.ms-sorting-table  tbody > tr td:nth-child(2) {
    background-color: rgba(200, 238, 230, 0.53) !important;
}

.ms-sorting-table  tbody > tr:last-child td:nth-child(2) {
	border-radius: 0 0 20px 20px;
}

.ms-sorting-table  tbody > tr td:first-child {
	font-weight: 600;
}

.ms-sorting-table  tbody > tr:last-child td {
	border-bottom: none !important;
}

.ms-sorting-table  thead > tr th:nth-child(2) {
	border-radius: 20px 20px 0 0;
}

.ms-table-tick,
.ms-table-cross {
    padding-top: 10px !important;
    padding-bottom: 0px !important;
}


.ms-table-logo span {
	font-size: 0px;
}

.ms-table-tick .td-content,
.ms-table-cross .td-content {
	text-indent: -3000px;
}

.ms-table-tick .td-content,
.ms-table-cross .td-content {
    padding-top: 10px;
    padding-bottom: 10px;
}


.ms-table-logo {
	background: url('https://mistoneuk.co.uk/wp-content/uploads/2024/10/mistone-logo-reduced-1.png') center center no-repeat !important;
	background-size: 60px !important;
}

.ms-table-tick .td-content {
	background: url('https://mistoneuk.co.uk/wp-content/uploads/2024/10/icon-_check.svg') center center no-repeat;
	background-size: 38px;
}

.ms-table-cross .td-content {
	background: url('https://mistoneuk.co.uk/wp-content/uploads/2024/10/icon-_cross.svg') center center no-repeat;
	background-size: 30px;
}

/* Hero Section Animated Diamonds */
.ms-hero-section {
  position: relative;
  overflow: hidden;
}

.ms-hero-section .elementor-widget-image.diamond {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: scale(0) rotate(0deg);
  animation: diamondAnimation 6s ease-in-out 8s infinite;
  opacity: 0;
}

.ms-hero-section .elementor-widget-image.diamond.first  {
  top: -25%;
  right: 15%;
  animation-delay: 0s;
}

.ms-hero-section .elementor-widget-image.diamond.second {
  top: -14%;
  right: 15%;
  animation-delay: 2s;
  animation: diamondAnimationSecond 10s ease-in-out 8s infinite;
}

.ms-hero-section .elementor-widget-image.diamond.third {
  top: -19%;
  right: 15%;
  animation-delay: 4s;
  animation: diamondAnimationThird 14s ease-in-out 8s infinite;
}

@keyframes diamondAnimation {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.2;
  }
  50% {
    transform: scale(1.5) rotate(180deg) translate(30px, -30px);
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1) rotate(360deg) translate(-20px, 20px);
    opacity: 0;
  }
}

@keyframes diamondAnimationSecond {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.2;
  }
  50% {
    transform: scale(1.5) rotate(180deg) translate(30px, -30px);
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1) rotate(405deg) translate(-20px, 20px);
    opacity: 0;
  }
}

@keyframes diamondAnimationThird {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.2;
  }
  50% {
    transform: scale(1.5) rotate(180deg) translate(30px, -30px);
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1) rotate(395deg) translate(-20px, 20px);
    opacity: 0;
  }
}


@media (max-width: 1024px) {
	/* Why We Do It section */
	.ms-why-container,
	.ms-why-container.active {
		width: 100% !important;
	}
	
	.ms-why-container .elementor-element-populated {
		min-height: 0px;
	}
	
	.ms-why-container .elementor-inner-column:first-child {
		display: block;
		width: 100% !important;
		transition: width 0.5s;
	}

	.ms-why-container .elementor-inner-column:nth-child(2) {
		width: 100% !important;
		transition: width 0.5s;
	}	
	
	.ms-why-container .elementor-element-populated {
		min-height: 0px;
	}
	
	.ms-why-container .elementor-inner-column:nth-child(2) .elementor-element-populated {
		padding-top: 70px;
	}

	.ms-why-container .elementor-widget-heading {
		margin-block-end: 20px !important;
	}

	.ms-why-container .elementor-widget-heading:hover {
		cursor: default !important;
	}

	.ms-why-container .elementor-widget-heading h3 {
		color: #49C7AB !important
	}


	.ms-why-container .ms-why-diamond img {
		opacity: 1;
		transform: rotate(90deg);
		transition: transform 0.7s ease;
	}

	.ms-why-container .elementor-widget-text-editor {
		height: auto !important;
		opacity: 1;
		transition: opacity 0.7s ease 0.3s, height 0.7s;
	}
	
	
	/* Comparison table */
	.ms-sorting-table thead tr th,
	.ms-sorting-table tbody tr td {
		font-size: 14px !important;
	}
	
	.ms-sorting-table thead tr th:last-child,
	.ms-sorting-table tbody tr td:last-child {
		display: none !important;
	}
	
}