/**
Theme Name: QTSense®
Author: Webpuccino®
Author URI: https://webpuccino.com
Description: QTSense® theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qtsense
Template: astra
*/

.qt-section:hover .elementor-heading-title {
	color: #019083;
}

.qt-section .elementor-heading-title::before {
	background:  url(images/arrow-right.svg) no-repeat center center;
	background-size: contain;
	content:  '';
	display:  inline-block;
	height:  24px;;	
	overflow: hidden;
	transition: all .2s ease;
	width:  0;
}

.qt-section:hover .elementor-heading-title::before {
	margin-left: 20px;
	margin-right: 30px;
	width: 24px;
}

.qt-section.qt-section-alt .elementor-heading-title::before {
	transform: translateY(4px)
}

.qt-section.qt-section-alt:hover .elementor-heading-title::before {
	margin-left: 0;
	margin-right: 10px;	
}

@media (max-width: 767px) {
	.qt-section.qt-section .elementor-heading-title::before {
		transform: translateY(6px);
	}	
}


/* CTA */
/* .qt-cta:hover .elementor-heading-title,
.qt-cta:hover .elementor-widget-container p {
	color: #fff;
}

.qt-cta .elementor-button {
	transition: all .2s ease;
}

.qt-cta:hover .elementor-button {
	background: #fff !important;
	color: #000 !important;
	text-decoration: none !important;
	padding: 15px 35px !important;
} */

/* Review slider */
.qt-reviews-slider .swiper-slide {
	display: flex !important;
	align-items: center !important;	
}

.qt-reviews-slider .swiper-slide-bg {
	/* border-radius: 250px; */
	/* border: 5px solid #fff; */
	height: 250px;
	width: 250px;
	min-width: 250px;
	min-height: 250px;
}

.qt-reviews-slider .swiper-wrapper {
	min-height: 500px;
}

.qt-reviews-slider .swiper-slide-inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin-left: 150px;
	margin-top: 40px;
	max-width: 872px;
	align-items: center;
}

@media (max-width: 767px) {
	.qt-reviews-slider .swiper-wrapper {
		min-height: 400px;
	}
	.qt-reviews-slider .swiper-slide-bg {
		display: none;
	}
}

.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-prev,
.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-next {
		align-items: center;
		background: #fff;
		height: 48px;
		border-radius: 48px;
		bottom: 30px;
		display: inline-flex;
		justify-content: center;
		left: 350px;
		opacity: 1;
		right: auto;
		top: auto !important;
		width: 48px;
		z-index: 1000;
}

.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-next {
	left: 420px;
}

.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-prev svg,
.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-next svg {
	fill: #000;	
}

.qt-list a {
	flex-direction: row-reverse;
	justify-content: space-between;
}

@media (max-width: 1024px) {
	.qt-reviews-slider .swiper-slide-bg {
		height:  200px !important;
		width:  200px !important;
		min-width: 200px !important;
		min-height: 200px !important;
	}
}

@media (max-width: 767px) {
	.qt-reviews-slider .swiper-slide-bg {
		height:  250px !important;
		width:  250px !important;
		min-width: 250px !important;
		min-height: 250px !important;
	}
	
	.qt-reviews-slider .swiper-wrapper {
		min-height: 600px;
	}
	.qt-reviews-slider .swiper-slide {
		flex-direction: column;
	}
	.qt-reviews-slider .swiper-slide-inner {
		margin-left:  0;;
		position: static;
	}
	
	.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-prev, 
	.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-next {
		left: 45%;
	}
	
	.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-prev {
		margin-left:  -44px;
	}
	
	.qt-reviews-slider .elementor-swiper-button.elementor-swiper-button-next {
		margin-left:  24px;
	}
}



/* Header and banner animation styles */
/*#animated-page-header,
#animated-banner {
    overflow: hidden;
}

#animated-page-header .elementor-background-overlay,
#animated-banner .elementor-background-overlay {
    pointer-events: none;
    transition: none;
    z-index: 1;
}

#animated-page-header .elementor-container,
#animated-banner .elementor-container {
	z-index: 2;
}*/

/* Toggle lists */
.qt-toggle-list {
	height: 9em;
	overflow: hidden !important;
	transition: height 0.3s ease;
}

.qt-toggle-list + .qt-toggle-list-button.expanded .elementor-button-text {
	font-size: 0;
}
.qt-toggle-list + .qt-toggle-list-button.expanded .elementor-button-text::before {
	content: 'Collapse';
	display: inline-block;
	font-size: 19px;
	transform: translateY(2px);
}
.qt-toggle-list + .qt-toggle-list-button.expanded svg {
	transform: rotate(180deg) translateY(-2px);
}


.qt-search-form {
	font-size: 15px;
}

.qt-search-form .elementor-field-label,
.qt-search-form .elementor-button {
	display: none !important;
}

.qt-search-form [for="form-field-sort"] + .elementor-select-wrapper::after {
	content: 'Sort by';
	color: rgba(0, 0, 0, 0.6);
	display: inline-block;
	position: absolute; 
	left: 20px;
	top: 15px;
}

.qt-search-form [for="form-field-filter"] + .elementor-select-wrapper::after {
	content: 'Filter by';
	color: rgba(0, 0, 0, 0.6);
	display: inline-block;
	position: absolute; 
	left: 20px;
	top: 15px;
}

.qt-search-form select {
	font-weight: bold;
	padding-left: 90px !important;

}

.qt-search-form .select-caret-down-wrapper {
	background: url(/wp-content/themes/qtsense/images/chevron-red.svg) center center no-repeat;
	background-size: contain;
	height: 25px;
	right: 15px;
	width: 25px;
}

.qt-search-form .select-caret-down-wrapper svg {
	display: none;
}

.qt-search-form input[type=text] {
	background: #fff url(/wp-content/themes/qtsense/images/search.svg) 20px center no-repeat;
	padding-left: 60px;
	font-size: 17px;
}

.qt-search-form input[type=text]::placeholder {
	color: #747474;
	opacity: 1;
}


/* Datasets table */
.qt-dataset-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: -50px;
  z-index: 500;
}

.qt-filter-label {
  margin-right: 15px;
  font-weight: 500;
}

.qt-filter-button {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: #00897b; /* Green text color for inactive state */
}

.qt-filter-button.active {
  background-color: #00897b !important; /* Green background for active state */
  color: white !important;
  border-color: #00897b !important;
}

.qt-remove-filter {
  margin-left: 5px;
  font-weight: bold;
}

/* Force CSS priority */
.qt-dataset-filters .qt-filter-button {
  background-color: #ffffff !important;
  color: #00897b !important;
  border: 1px solid #e0e0e0 !important;
}

.qt-dataset-filters .qt-filter-button.active {
  background-color: #00897b !important;
  color: white !important;
  border-color: #00897b !important;
}


/* Styles for publications / posts loading */
/*.qt-search-posts .elementor-widget-theme-post-title {
    min-height: 98px;
}*/

.qt-search-posts.loading {
     min-height: 300px;
     position: relative;
}
 
.qt-search-posts.loading .elementor-loop-container {
     opacity: 0.3;
}
 
.qt-search-posts.loading::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 50px;
     height: 50px;
     border: 5px solid #f3f3f3;
     border-top: 5px solid #019083;
     border-radius: 50%;
     animation: spin 1s linear infinite;
     z-index: 10;
}
 
@keyframes spin {
     0% { transform: translate(-50%, -50%) rotate(0deg); }
     100% { transform: translate(-50%, -50%) rotate(360deg); }
}
 
/* Pagination container */
.qt-pagination {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Center the navigation */
.qt-pagination .navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navigation links container */
.qt-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* All pagination links */
.qt-pagination .nav-links a,
.qt-pagination .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #019083;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: white;
}

/* Current page */
.qt-pagination .nav-links .current {
    background-color: #019083;
    color: white;
    border-color: #019083;
}

/* Hover states */
.qt-pagination .nav-links a:hover {
    background-color: #01908326;
    border-color: #019083;
    transform: translateY(-2px);
}

/* Previous and Next buttons */
.qt-pagination .nav-links .prev,
.qt-pagination .nav-links .next {
    padding: 0 16px;
    font-weight: 600;
}

/* Dots */
.qt-pagination .nav-links .dots {
    border: none;
    background: none;
    cursor: default;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .qt-pagination .nav-links {
        gap: 4px;
    }
    
    .qt-pagination .nav-links a,
    .qt-pagination .nav-links span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }
}


/* Disable search animation */
.mfp-bg, 
.mfp-container,
.ekit-promo-popup.my-mfp-slide-bottom .zoom-anim-dialog {
	-webkit-transition: none !important;
	transition: none !important;
	animation: none !important;
}
body .mfp-bg.ekit-promo-popup {
	transform: scale(2) translateY(0px);
    border-top-right-radius: 0%;
    border-top-left-radius: 0%;
    border-bottom-left-radius: 0%;
    border-bottom-right-radius: 0%;
    padding-bottom: 0px;
    opacity: 1;	
}

.mfp-container .ekit_search-button svg {	
	fill:  #fff !important;
	width:  24px !important;
}


/* Image carousel continuous animation */
.logo-sliders .swiper-wrapper {
    animation: continuous-scroll 20s linear infinite !important;
    transition: none !important;
}

.logo-sliders .swiper-slide {
    transition: none !important;
}

/* Disable Swiper's built-in transitions */
.logo-sliders .swiper-container {
    overflow: hidden;
}

@keyframes continuous-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hide first item of faq accordions */
.qt-faq .elementskit-card:first-child {
    display: none;
}

/* Make tabs responsive */
@media (max-width: 768px) {
  .ekit-wid-con .elementkit-tab-wraper.vertical {
    flex-wrap: wrap;
  }
  .ekit-wid-con .elementkit-tab-wraper.vertical .elementkit-tab-nav {
     display: inline-flex;
     flex-basis: 100% !important;
     margin: 0 !important;
  }
  .ekit-wid-con .elementkit-tab-wraper.vertical .elementkit-tab-nav .elementkit-nav-item {
      float: none;
      margin-bottom: 0;
      display: inline-block !important;
      width: auto !important;
  }
}