* {
	padding: 0;
	margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
body {
	margin: 0;
	padding: 0;
	font-weight: 400;
	line-height: 1.4;
	font-display: swap; 
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.elementor svg{
	width: 16px;
}
.ansarel-d-flex{
	display: flex;
}
.ansarel-d-none{
	display: none;
}
//Typography
h1, .h1 {
	font-size: 34px;
}
h2, .h2 {
	font-size: 32px;
}
h3, .h3 {
	font-size: 28px;
}
h4, .h4 {
	font-size: 24px;
}
h5, .h5 {
	font-size: 20px;
}
h6, .h6 {
	font-size: 16px;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	line-height: 1.3;
	margin-bottom: 0.5rem;
	font-display: swap;
	word-break: break-word;
	text-rendering: optimizelegibility;
	-webkit-font-smoothing: antialiased;
}
.back-img{
	background-color: #555;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
// Site Title
.ansarel-site-title-wrapper .ansarel-site-title a{
	color :inherit;
}
// Site Logo
.ansarel-site-logo-wrapper a{
	display: inline-block;
}

// Copyright
.ansarel-copyright-text {
    display: inline-flex;
    align-items: center;
	flex-wrap: wrap;
    gap: 5px;
}
.ansarel-copyright-site-info{
	color: #5751E1;
	&:hover{
		color: #676ced;
	}
}
// Date & Time 
.ansarel-date-time-wrapper{
	display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 16px;
    line-height: 1.3;
	.ansarel-time{
		background: #5751E1;
		color: #fff;
		font-size: 14px;
		padding: 2px 5px;
		border-radius: 2px; 
	}
}

// Swiper Navigation
.slider{
	.swiper-button-prev, .swiper-button-next {
		width: 40px;
		height: 40px;
		transition: all 0.3s ease;
		opacity: 0;
		border-radius: 4px;
		background-color: #fff;
		color: #5751E1;
		box-shadow: 0 0 10px 5px #5751E114;

		&:after {
			font-size: 16px;
		}
		&:hover{
			background-color: #5751E1;
			color: #fff;
		}
	}
	&:hover .swiper-button-prev {
		left: 2%;
		opacity: 1;
	}
	&:hover .swiper-button-next {
		right: 2%;
		opacity: 1;
	}
	.swiper-pagination-bullet{
		opacity: 1;
		background-color: #fbf5ff;
	}
	.swiper-pagination-bullet-active{
		background-color: #5751E1;
	}
}

// Hover Animations
.animate-one{
    a {     
        background-repeat: no-repeat;
        background-size: 0% 2px;
        background-position: left 100%;
        background-image: linear-gradient(to bottom, var(--title-main-color) 0%, var(--title-main-color) 98%);
        transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
        
        &:hover {
          background-image: linear-gradient(to bottom, var(--title-hover-color) 0%, var(--title-hover-color) 98%);
          color: var(--title-hover-color);
          background-size: 100% 2px;
        }
    }
}
// two
.animate-two{
    a {           
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 200% 100%;
        background-position: 100%;
        transition: all 0.7s cubic-bezier(0, 0, .23, 1);
        -webkit-transition: all 0.7s cubic-bezier(0, 0, .23, 1);
        word-break: break-word;
        background-image: linear-gradient(to right, var(--title-hover-color), var(--title-hover-color) 50%, currentColor 50%);
        &:hover {
          background-position: 0%;
        }
    }
}
// three
.animate-three {
    a {
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 100% 200%;
        background-position: 0% 100%;
        transition: all 0.7s cubic-bezier(0, 0, 0.23, 1);
        word-break: break-word;
        background-image: linear-gradient(to bottom,var(--title-hover-color), var(--title-hover-color) 50%, currentColor 50%);
        &:hover {
            background-position: 0% 0%;
        }
    }
}
// four
.animate-four {
    a {
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 100% 200%;
        background-position: 0% 0%;
        transition: all 0.7s cubic-bezier(0, 0, 0.23, 1);
        word-break: break-word;
        background-image: linear-gradient(to bottom, currentColor, currentColor 50%, var(--title-hover-color) 50%);
        &:hover {
            background-position: 0% 100%;
        }
    }
}
// Five
.animate-five {
  a { 
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: right 100%;
    background-image: linear-gradient(to bottom, currentColor 0%, currentColor 98%);
    transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  
    &:hover {
     	background-size: 100% 2px;
		background-image: linear-gradient(to bottom, var(--title-hover-color) 0%, var(--title-hover-color) 98%);
		color: var(--title-hover-color);
    }
  }
}
// six
.animate-six{
  a {           
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: center 100%;
    background-image: linear-gradient(to bottom, currentColor 0%, currentColor 98%);
    transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

    &:hover {
		background-size: 100% 2px;
		background-image: linear-gradient(to bottom, var(--title-hover-color) 0%, var(--title-hover-color) 98%);
		color: var(--title-hover-color);
    }
  }
}
/*--------------- Scroll to top ------------- */
.ansarel-upscr {
    text-align: center;
    z-index: 9999;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    bottom: 20px;
    opacity: 0;
    padding: 10px 16px;
    position: fixed;
    transform: translateY(100px);
    transition: all 0.5s ease;
    background-color: #5751e1;
    color: #fff;
	fill: #fff;
    display: inline-flex;
    align-items: center;
	border-radius: 4px;

	&:hover{
		color: #fff;
		background-color: #676ced;
	}
	i {
		font-size: 16px;
		line-height: 1.3; 
		font-weight: 900;
		transition: all 0.5s ease;
	}
	.title { 
		transition: all 0.5s ease;
		margin-left: 5px;
	}
	&.fixed{
		position: fixed;
	}
	&.showBtn {
		opacity: 1;
		transform: translateY(0);
	}
	&.inherit {
		opacity: 1;
		transform: translateY(0);
		position: inherit;
	}
}
.ansarel-scroll-to-top{

	&.right {
		text-align: right;
		.ansarel-upscr {
			right: 20px;
			left: unset;
		}
	}
	&.left{
		text-align: left;
		 .ansarel-upscr {
			left: 20px;
			right: unset;
		}
	}
}

.ima-over-box .img-overlay {
	img{
		transition: 1s;
	}
	&:hover img{
		object-position: bottom center !important;
		transition: 2s;
	}
}
/*Light and Dark toggle css*/
body.ansarel-dark-mode {
	background: var(--dark-bg-color) !important;
	p, div:not(.slider .swiper-button-prev, .slider .swiper-button-next), h1, h2, h3, h4, h5, h6, &:not( #wpadminbar span){
		color: var(--dark-title-color) !important;
	}
	span:not(.mobile-nav span.arrow-sb, span.ansarel-time, span.ansarel-filter-tab){
		color: var(--dark-title-color) !important;
	}
	#wpadminbar span {
		color: #f0f0f1 !important;
	}
	.ansarel-offcanvas-top .ansarel-close svg{
		fill: var(--dark-title-color) !important;
	}
	.elementor-element, .elementor-element::before, .ansarel-small-post, .ansarel-post-item, .ansarel-latest-news, .ansarel-inner:not(.overlay.layout-one .ansarel-inner, .overlay.ansarel-overlay-style-four .ansarel-inner, .ansarel-post-grid.pg1 .ansarel-inner, .ansarel-post-grid.pg2-layout-one .ansarel-inner,  .ansarel-accordian-wrapper .ansarel-inner, .ansarel-post-item.overlay.featured-list-two .ansarel-inner), .ansarel-offcanvas, .ansarel-offcanvas-inner, .ansarel-latest-title, .ansarel-ticker-button, .post-navigation, .ansarel-single-post-author-wrapper, .ansarel-post-comment-wrapper, .ansarel-navigation.navigation a, .ansarel-navigation.navigation span.dots, textarea{
		background: var(--dark-bg-color) !important;
	}
	a:not(.ansarel-category a, #wpadminbar a, .ansarel-more-link, .ansarel-category-item a, .show a.dropdown-item, .show .sub-link.ansarel-menu-item, a.dropdown-item) {
		color: var(--dark-link-color) !important;
		&:hover{
			color: var(--dark-link-hover-color) !important;
			--title-hover-color: var(--dark-link-hover-color) !important;
		}
	}
	a, span{
		i, svg{
			color: var(--dark-link-color) !important;
			fill: var(--dark-link-color) !important;
			&:hover{
			color: var(--dark-link-hover-color) !important;
			fill: var(--dark-link-hover-color) !important;
		}
		}
	}
	.ansarel-menu-hamburger-icon{
		color: var(--dark-link-color) !important;
		color: var(--dark-link-hover-color) !important;
	}
	.elementor-element:not(.elementor-motion-effects-element-type-background):has(:before){
		cursor: help;
	}
}
.ansarel-light-dark-wrapper{
	&.layout-one{
		line-height: 0;
	}
}
.ansarel-switch{
	position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    border-radius: 20px;
	z-index: 99;
}
.ansarel-switch input {
    display: none;
}

.ansarel-switch {
	.ansarel-light-mode{
		background-color: #fff;
		color: #000;
	}
}
.ansarel-light-dark-wrapper{
	&.layout-two{
		.ansarel-switch{
			width: 25px;
			input:checked + .ansarel-slider::before {
				left: 0;
				background-color: #fff;
				color: #000;
			}
		}
	}
}
.ansarel-switch input:checked + .ansarel-slider::before {
	// transform: translateX(0px);
	content: "\f186";
	left: 100%;
}