/*!
Theme Name: Cargofive
Author: Nazim Husain
Author URI: https://nazimansari.com
Description: Custom Astra child theme
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cargofive
Template: astra
Version: 1.0
*/

/**********
* GLOBAL *
**********/

:root {
	--primary: #015FFF;
	--secondary: #1d2737;
	--headline: #111;
	--text: #5a5a5a;
}

/* html {
scroll-behavior: smooth;
} */

body {
	/* 	-webkit-font-smoothing: auto; */
}

a:focus,
button:focus {
	outline: none;
}

.ast-single-post .entry-content a {
    text-decoration: inherit;
}

.page-template .site-content > .ast-container,
.blog .site-content > .ast-container, .single-post .site-content > .ast-container, .single-success-stories .site-content > .ast-container{
	display: block;
	max-width: 100%;
	padding: 0 !important;
}

.ast-menu-toggle{
	background: none !important;
	box-shadow: none !important;
}

.site-container {
	max-width: 1140px;
	padding: 70px 20px;
	margin: 0 auto;
}

.section-title {
	font-size: 32px;
	line-height: 42px;
	font-weight: 700;
	color: var(--headline);
}

.desc {
	font-size: 15px;
	line-height: 27px;
	font-weight: 400;
	color: var(--text);
}

.btn a,
.btn button {
	display: inline-block;
	font-size: 16px;
	line-height: 26px;
	font-weight: 600;
	padding: 12px 36px;
	border-radius: 5px;
	color: var(--headline);
	background: var(--brand);
	transition: 0.3s ease-in-out;
}

/* Slick SLider */

#page .slick-track {
	display: flex;
	margin-left: 0;
}

#page .slick-list {
	margin: 0 -20px;
}

#page .slick-slide {
	margin: 0 20px;
}

#page .slick-prev,
#page .slick-next {
	top: 32%;
	width: 45px;
	height: 45px;
	z-index: 99;
	background: var(--primary);
	border: 1px solid var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	transition: 0.3s all;
}

#page .slick-prev {
	left: 89%;
	border: 1px solid var(--primary);
	background: none;
}

#page .slick-prev,
#page .slick-next {
	top: -80px;
	right: 0;
}

#page .slick-prev:before,
#page .slick-next:before {
	content: "";
	width: 23px;
	height: 23px;
	background-image: url("data:image/svg+xml,%3Csvg width='23' height='15' viewBox='0 0 23 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.881 8.207a1 1 0 0 1 0-1.414L7.245.429a1 1 0 0 1 1.414 1.414L3.002 7.5l5.657 5.657a1 1 0 1 1-1.414 1.414zm21.69-.707v1H1.587v-2H22.57z' fill='%23fff'/%3E%3C/svg%3E");
	background-position: center;
	display: inline-block;
	background-repeat: no-repeat;
	position: absolute;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	opacity: 1;
}

#page .slick-next:before { 
	transform: translate(-50%, -50%) rotate(180deg);
}

#page .slick-prev:before {
	background-image: url("data:image/svg+xml,%3Csvg width='23' height='15' viewBox='0 0 23 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.881 8.207a1 1 0 0 1 0-1.414L7.245.429a1 1 0 0 1 1.414 1.414L3.002 7.5l5.657 5.657a1 1 0 1 1-1.414 1.414zm21.69-.707v1H1.587v-2H22.57z' fill='%23015FFF'/%3E%3C/svg%3E");
}

#page .slick-prev:hover:before {
	background-image: url("data:image/svg+xml,%3Csvg width='23' height='15' viewBox='0 0 23 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.881 8.207a1 1 0 0 1 0-1.414L7.245.429a1 1 0 0 1 1.414 1.414L3.002 7.5l5.657 5.657a1 1 0 1 1-1.414 1.414zm21.69-.707v1H1.587v-2H22.57z' fill='%23fff'/%3E%3C/svg%3E");
}

#page .slick-prev:hover,
#page .slick-next:hover {
	opacity: .8;
}

#page .slick-prev:hover {
	background-color: var(--primary);
	opacity: 1;
}

/* Slick Dots */
#page .slick-dotted.slick-slider {
	margin-bottom: 50px;
}

#page .slick-dots {
	bottom: -50px;
}

#page .slick-dots li {
	font-size: 16px;
	width: fit-content;
	height: fit-content;
}

#page .slick-dots li button {
	box-shadow: none;
	width: 9px;
	height: 9px;
}

#page .slick-dots li button:before {
	font-size: 0;
	opacity: 1;
	width: 9px;
	height: 9px;
	background: #ddd;
	border-radius: 10px;
	box-shadow: none;
}

#page .slick-dots li.slick-active button:before {
	background: var(--primary) ;
}


/* Latest Blog */
#page #latest-blogs .slick-list {
	margin: 0 -10px;
}

#page #latest-blogs .slick-slide {
	margin: 0 10px;
	height: inherit
}

#latest-blogs .elementor-post__text {
	display:flex;
	flex-direction: column;
}

#latest-blogs .elementor-post__title {
	flex-grow: 1;
}


/* Header */
.site-header .main-header-menu .sub-menu .menu-link {
	font-size: 16px;
}

.site-header .main-navigation ul .btn a {
	background: var(--primary) !important;
	color: #fff !important;
	padding: 9px 18px !important;
	border-radius: 7px !important;
	font-size: 16px !important;
	line-height: 24px !important;
	text-align: center !important;
	border: 1px solid var(--primary) !important;
}

.site-header .main-navigation ul .btn-login {
	margin-left: 160px;
	margin-right: 15px;	
}

.site-header .main-navigation ul .btn-login a {
	background: #fff !important;
	color: var(--primary) !important;
} 

.site-header .main-navigation ul .btn-login a:hover {
	background: var(--primary) !important;
	color: #fff !important;
	opacity: 1 !important;
}

.site-header .main-navigation ul .btn a:hover {
	color: #fff;
	opacity: .9;
}

/* Homepage */
.home h1.elementor-heading-title {
	background: linear-gradient(133.67deg, #015FFF 42.37%, #EBF4FC 113.24%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Stats */
#stats .elementor-counter-title {
	text-align: center;
} 

/* Testimonials */
#testimonials .elementor-widget-container .elementor-loop-container .e-loop-item[data-elementor-type="loop-item"]{
	width: 54%;
}

#testimonials  .swiper .swiper-slide,
#about-slider  .swiper .swiper-slide {
	opacity: .4 ;
}

#testimonials .swiper .swiper-slide-active {
	width: 54%;
	opacity: 1;	
}


#testimonials .swiper .swiper-slide .e-con-inner,
#about-slider .swiper .swiper-slide .e-con-inner {
	padding-bottom: 0;
}

#testimonials .swiper-wrapper,
#about-slider .swiper-wrapper {
	align-items: center; 
}

#testimonials .elementor-loop-container,
#about-slider  .elementor-loop-container{
	display: block;	
}

#testimonials .elementor-image-box-title,
#about-slider .elementor-image-box-title {
	margin-bottom: 5px;
}

/* About slider */

#about-slider .swiper-slide {
	width: 45%;
}


#about-slider .swiper .swiper-slide-active {
	width: 48%;
	opacity: 1;	
}

#about-slider .swiper-slide .swiper-slide-image {
	border: 2px solid transparent;
	border-image: linear-gradient(135deg, #F2FCFF, #FFFFFF) 1;
	padding: 10px;
	background:#fff;
}

#about-slider .swiper-slide-inner {
	position: relative;
	margin: 15px;
}

#about-slider .swiper-slide-inner::before {
	content: '+';
	position: absolute;
	top: -15px;
	left: -10px;
	font-size: 30px;
	line-height: 1;
	font-weight: 500;
	color: #015FFF; 
}

/* Latest Blogs */
#latest-blogs .posts .elementor-posts-container {
	display: block ;
}

/* Footer */
.social-links {
	display: flex;
	justify-content: end;
	align-items: center;
}

.social-links a {
	display: flex;
}

.social-links a:not(:last-child)::after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 24px;
	background: #3C4674;
	margin: 0 24px;
	vertical-align: middle;
}

.site-footer {
	margin: 0 20px;
}

.site-footer .ast-builder-grid-row-5-equal .ast-builder-grid-row {
	grid-template-columns: 2.5fr repeat(4,1fr );
	grid-gap: 40px;
}

.site-footer .ast-builder-grid-row-5-equal {
	border-radius: 32px 32px 0  0;
}

.site-footer .site-footer-primary-section-1 .widget p {
	font-size: 34px;
	line-height: 42px;
	margin-bottom: 0;
} 

.site-footer .widget  p,
.site-footer .widget  a {
	color: #fff;
}

.site-footer .widget .widget-title {
	font-size: 18px;
	line-height; 28px;
	font-weight: 500;
	margin-bottom: 20px;
	color: #fff;
}

.site-footer .widget ul li a {
	font-size: 16px;
	line-height; 26px;
	font-weight: 400;
	display: block;
}

.site-footer .widget ul li a:hover {
	text-decoration: underline;	
}

.site-footer .widget ul li:not(:last-child) {
	margin-bottom: 12px;
}

/* Newsletter */
.email-wrapper {
	max-width: 500px;
	margin: auto;
	border: 1px solid #CDE3EA;
	border-radius: 8px;
	background: #FBFEFF;
	display: flex;
	height: 66px;
	align-items: center;
	padding: 8px;
}

.email-wrapper p {
	height: 100%;
	display: flex;
	margin-bottom: 0;
	line-height: 1;
	align-items: center;
}

.email-wrapper input[type="email"] {
	border: none;
	padding: 0;
	font-size: 16px;
	outline: none;
	background: #FBFEFF;
	padding: 10px 25px 10px 16px  !important;
	box-shadow: none;
	height: auto;
	border: 0 !important;
	background: none !important;
}


.email-wrapper .wpcf7-spinner{
	display: none;
}

.email-wrapper ::placeholder{
	color: #626262;
	opacity: 1;
}

.email-wrapper .wpcf7-submit{
	height: 100%;
	padding: 12px 20px !important;
}

.email-wrapper ::-ms-input-placeholder {
	color: #626262;
}


/****************
* MEDIA QUERIES *
*****************/

@media (max-width: 1024px) {
	#page .slick-prev {
		left: 87%;
	}
	/* Header */
	.site-header .main-navigation ul .btn-login {
		margin-left: 40px;
		margin-right: 10px;	
	}

}

@media (max-width: 921px) {
	/* Header */
	.site-header .main-header-menu {
		box-shadow: rgba(33, 35, 38, 0.4) 0px 10px 10px -10px;
	}

	.site-header .wpml-ls-item {
		width: fit-content !important;
		margin-left: 10px;
	}

	.site-header .wpml-ls-item img {
		vertical-align: -webkit-baseline-middle;
		width: 30px !important;
	}

	.site-header .main-navigation ul .btn {
		margin: 0 !important;
		width: fit-content;
		padding: 10px 0 10px 20px;
	}

	.site-header .main-navigation ul .btn a {
		font-size: 15px !important;
	}

	/* Testimonials */
	#testimonials .elementor-widget-container .elementor-loop-container .e-loop-item[data-elementor-type="loop-item"] {
		width: 64%;
	}

	#testimonials .swiper .swiper-slide-active {
		width: 64%;
	}

	/* Footer */
	.site-footer .ast-builder-grid-row-5-equal .ast-builder-grid-row {
		grid-template-columns: 2fr repeat(2,1fr );
		grid-gap: 40px;
	}

	.site-footer .site-footer-primary-section-1 .widget p {
		font-size: 26px;
		line-height: 36px;
	} 


}

@media (max-width: 768px) {
	/**********
	* GLOBAL *
	**********/

	.site-container {
		max-width: 100%;
		padding: 50px 20px;
	}

	.section-title {
		font-size: 26px;
		line-height: 36px;
	}

	/* Footer */
	.social-links {
		justify-content: start;
	}

	.site-footer .ast-builder-grid-row-5-equal {
		border-radius: 15px 15px 0  0;
	}

	.site-footer .ast-builder-grid-row-2-equal .ast-builder-grid-row {
		grid-gap: 20px;
	}

	.site-footer .ast-builder-grid-row-5-equal .ast-builder-grid-row {
		grid-template-columns: repeat(2, 1fr );
		grid-gap: 25px;
	}

	.site-footer .site-footer-primary-section-1 .widget img {
		width: 130px;
	}

	.site-footer .site-footer-primary-section-1 .widget p {
		font-size: 22px;
		line-height: 30px;
	}
}


@media (max-width: 580px) {
	/* Footer */
	.site-footer .ast-builder-grid-row-5-equal .ast-builder-grid-row {
		grid-template-columns: repeat(1, 1fr );
	}

	.site-footer .site-footer-primary-section-1 .widget p {
		font-size: 18px;
		line-height: 28px;
		margin-bottom: 10px;
	}
}


.rank-math-list-item {
	background-color: #F7FDFF;
	border-radius: 10px;
	border: 1px solid #CDF3FF;
	padding: 30px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}


.rank-math-question {
	font-size: 20px;
	font-weight: 400;
	cursor: pointer;
	position: relative;
	padding-right: 40px;
	margin: 0 !important;
}


.rank-math-question::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translatey(-50%);
	width: 30px;
	height: 30px;
	background-image: url('/wp-content/themes/cargofive/assets/img/arrow-down.svg');
	background-repeat: no-repeat;
	background-size: contain;
	transition: transform 0.3s ease;
}

.rank-math-question.active::after {
	transform: translatey(-50%) rotate(180deg);
}


.rank-math-answer {
	margin-top: 20px !important;
	display: none;
	font-size: 15px;
	line-height: 1.6;
	animation: fadeIn 0.3s ease-in-out;
	background: #fff;
	border: 1px solid #ccf3ff;
	border-radius: 10px;
	padding: 20px;
}

.rank-math-answer p:last-child{
	margin-bottom:0;
}

.rank-math-answer.show {
	display: block;
}



.wp-block-quote {
	position: relative;
	background: linear-gradient(180deg, #ECF7FE 0%, #FFFFFF 100%) !important;
	padding: 60px !important;
	border-radius: 10px !important;
	color: #1E2648;
	font-size: 20px !important;
	font-weight: 400;
	font-style: normal;
	border: none !important;
	margin-top: 80px !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


.wp-block-quote::before {
	content: "";
	position: absolute;
	top: -34px;
	left: 63px;
	width: 84px;
	height: 60px;
	background-image: url('/wp-content/themes/cargofive/assets/img/quote.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

.wp-block-quote .author-details {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 30px;
}
.wp-block-quote .author-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.author-info .name{
	font-size: 16px;
}
.author-info .position{
	font-size: 14px;
}

.single h2.wp-block-heading,
.single h3.wp-block-heading,
.single h4.wp-block-heading,
.single h5.wp-block-heading,
.single h6.wp-block-heading {
	color: #016BFD;
	font-weight:400; 
}

.single h2.wp-block-heading {
	font-size: 34px;  
}

.single h3.wp-block-heading {
	font-size: 24px;  
}

.single-post-content p,
.single-post-content .wp-block-list,
.single-post-content table {
	color: #1E2648;
}

.single-post-content .wp-block-heading,
.single-post-content .wp-block-image,
.single-post-content p,
.single-post-content .wp-block-list,
.single-post-content .wp-block-image
.single-post-content table,
.single-post-content iframe,
.single-post-content blockquote{
	margin-bottom: 35px;
}

@media (max-width:480px) {
	.wp-block-quote {
		padding: 20px !important;
	}
	.wp-block-quote p{
		font-size:18px;
	}
	.wp-block-quote::before {
		top: -29px;
		width: 60px;
		height: 40px;
	}

	.rank-math-list-item {
		padding: 20px;
	}

	.single h2.wp-block-heading {
		font-size: 28px;  
	}

	.single h3.wp-block-heading {
		font-size: 24px;  
	}

	/* Newsletter */
	.email-wrapper {
		max-width: 100%;
		display: block;
		height: auto;
		padding: 30px 20px 20px;
	}

	.email-wrapper p {
		display: flex;
	}

	.email-wrapper input[type="email"] {
		padding: 12px 20px !important;
		border: 1px solid #CDE3EA !important;
		background: #fff !important;
		border-radius: 5px;
	}
	
	.email-wrapper .wpcf7-submit{
		width: 100%;
		height: auto;
		padding: 15px 20px !important;
		margin-top: 15px;	
		font-size: 16px;
	}

}
