/*
Theme Name: SmartMag Customized
Theme URI: https://smartmag.theme-sphere.com/
Description: Tafasil v2.0
Author: Hussein Khalil
Author URI: mailto:husseinkhalil420@gmail.com
Template: smart-mag
Version: 1.1
*/

:root{
	--bs-gutter-x: 24px;
}

.item-mega-menu a::after{
	margin-left: unset !important;
	margin-right: 4px !important;
}
body {direction: rtl;}

.ltr{direction: ltr !important;}



@keyframes blink {
	0% {
    opacity: 0.1; 
  }
  50% {
    opacity: 1; 
  }
  100% {
    opacity: 0.1; 
  }
}

/* for single post page */
.s-head-large .post-title{
	font-size: 29px !important;
}

/* Unified post style */

.post-title{
	font-size: 16px !important;
}

/** Custom Sidebar Styling **/


.sidebar-section{
	font-family: "Noto Kufi Arabic", Sans-serif;
}

.custom-sidebar .sidebar-title {
	font-family: "Noto Kufi Arabic", Sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #FF0000 !important;
    padding-bottom: 10px;
}

.custom-sidebar .sidebar-section:nth-child(2) .sidebar-title{
	color: var(--c-main) !important;
}

.sidebar-divider {
	border-top: 3px solid var(--c-main);
    margin: -10px 0 0;
}


.custom-sidebar .sidebar-section:nth-child(2) .sidebar-post.post-pinned{
	padding: 22px;
}

/* Bootstrap 5.3 Container Sizes */
div[data-elementor-type="wp-page"],
div[data-elementor-type="ts-archive"]{
  width: 100%;
  padding-right: var(--bs-gutter-x, .75rem);
  padding-left: var(--bs-gutter-x, .75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  div[data-elementor-type="wp-page"] ,div[data-elementor-type="ts-archive"]{
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  div[data-elementor-type="wp-page"],
div[data-elementor-type="ts-archive"] {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  div[data-elementor-type="wp-page"],
div[data-elementor-type="ts-archive"]{
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  div[data-elementor-type="wp-page"],
div[data-elementor-type="ts-archive"] {
    max-width: 1140px;
  }
}

@media (min-width: 1200px) {
  div[data-elementor-type="wp-page"],
div[data-elementor-type="ts-archive"] {
    max-width: 1320px;
  }
}


.sidebar-post {
    overflow: hidden;
	padding: 10px 5px 15px 0;
    margin: 15px 0;
    position: relative;
    min-height: 100px;
    border-bottom: 1px solid var(--c-main);
}

.sidebar-post-content {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: start;
    justify-content: center;
}

.sidebar-post-content .thumb-bg {
	display: block;
    width: 100%;
    padding-top: 31%;
    flex-basis: 44%;
    border-radius: 15px;
}

.sidebar-post .pin-icon{
	position: absolute;
    top: 0;
    right: 5px;
}

.sidebar-post .pin-icon svg{
    width: 20px;
    height: 20px;
	rotate: 40deg;
	fill: #2264ad;
}

.text-wrapper {
		flex: 1;
	  padding: 5px;
    margin: 0;
    border-style: solid;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.5) inset;
}


.text-wrapper .post-title {
	font-size: 16px;
    margin: 0 0 4px;
    color: var(--c-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.text-wrapper .post-date {
	font-size: 10px;
    font-weight: 600;
    color: var(--c-post-meta);
    position: absolute;
    bottom: 3%;
    left: 5%;
    direction: ltr;
}


/** images fix **/

.bg-cover{
    background-repeat: round !important;
    background-size: cover !important;
	background-position: unset !important;
}

/** Header **/
.smart-head-bot{
	height: auto;
	border: unset;
}


.smart-head-bot .inner-wrap{
	height: auto;
}

.smart-head-bot .items-center{
	height: auto;
}


.smart-head-bot .items-center{
	height: auto;
}

.smart-head-bot .h-text.h-text2,
.smart-head-bot .h-text.h-text{
	max-width: 800px;
	width: fit-content;
	height: fit-content;
}

.smart-head-bot .h-text.h-text2 .breaking-news,
.smart-head-bot .h-text.h-text .breaking-news{
	padding: 15px;
}

.smart-head-bot .breaking-news{
	animation: blink 8s infinite;
}

.smart-head-mobile > :last-child{
	border-bottom: unset;
}

/** Mega Menu **/

.post-meta-items.meta-below {
	display: none !important
}

.navigation li:hover > ul, .navigation li:hover > .sub-menu{
	border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
}

.mega-menu-a .recent-posts{
    height: 423px;
    overflow: hidden;
    padding: 39px 31px 45px !important;
}


/* overrides default theme */
.small-post .media{
	margin-right: unset !important;
}

.loop-grid-sm{
	--grid-row-gap: 50px !important;
}

.loop.loop-grid.loop-grid-sm.grid.grid-5{
	--col: 20%;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-mega-menu article{
		border-radius: 15px;
		box-shadow: -4px 4px 4px rgba(21, 57, 133, 0.25);
	padding: 15px;
}

.item-mega-menu article .media{
		border-radius: 15px;
}


.item-mega-menu a{
	font-weight: 700 !important;
    
}

.sub-menu .loop-grid a{
	height: 200px !important;
}

.the-post-header > .post-meta{
	position: relative;
}


.post-meta{
	height: 90px;
}


.post-meta-items.meta-below{
	display: block !important;
}


time{
	position: absolute;
    left: 0;
    bottom: 10%;
    direction: ltr;
    font-size: 10px;
    font-weight: 600;
    color: var(--c-post-meta);
}

@media (max-width: 992px){
	#breaking-news time{
		margin-top: unset !important;
        bottom: 0;
	}
}



.main-pagination.pagination-numbers{
	direction: ltr;	
}



.pagination-numbers a{
		color: var(--e-global-color-primary) !important;
    border-color: var(--e-global-color-primary) !important;
}

.pagination-numbers a:hover{
	background-color: var(--e-global-color-primary) !important;
	color: white !important;
}

.main-pagination.pagination-numbers.tsi{
	transform: rotate(180deg) !important;
}


.main-pagination.pagination-numbers{
	margin-left: auto;
	margin-right: auto;
	width: fit-content;
}





.pagination-numbers .page-numbers.current{
	background-color: var(--e-global-color-primary) !important;
}




.spc-social-follow-split .service-link{
	border-radius: 10px;
}

.widget-title.block-head.block-head-f{
    border-bottom: 3px solid var(--e-global-color-primary) !important;
    border-top: none !important;
}

.widget-title.block-head h5{
	color: var(--e-global-color-primary) !important;
}





/** Contact Us Page **/
.contact-us-form{
box-shadow: -1px 1px 6px rgba(21, 57, 133, 0.25) !important;
	border-radius: 10px !important;
	padding: 20px !important;
	margin: auto !important;
}

.contact-us-form input,
.contact-us-form textarea{
	direction: rtl;
	margin: 10px 0;
	border-radius: 7px;
	color: var(--e-global-color-primary);
}

.contact-us-form label{
		color: var(--e-global-color-primary) !important;
}

.wpforms-submit-container{
	text-align: center;
}

.contact-us-form-button{
	width: 350px !important;
}


/** Homepage **/
.category-post{
	text-align: center;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    padding: 40px 20px 40px 20px;
}

.category-post time{
	font-weight: 500;
    font-size: 12px;
    color: var(--c-post-meta);
}

@media (max-width: 576px){
	.category-post time{
        bottom: unset !important;
	}
}


.category-post time,
.m-pos-left time{
	bottom: 0;
	margin-top: unset !important;
}

.cat-posts-read-more{
	display: inline-block;
    background: var(--c-main);
    color: #fff;
    padding: 10px;
    margin-top: 15px;
    border-radius: 10px;
    text-decoration: none;
    width: 100px;
    text-align: center;
}

.cat-posts-read-more:hover{
	color: #eee;
}

.homepage-query-list{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.homepage-post-container{
    width: 400px;
    text-align: center;
}

@media (min-width: 1400px){
	.homepage-post-container:last-child:nth-child(3n + 1){
        margin-left: auto;
        align-self: center;
	}
}


.homepage-post-container .category-title{
	margin: 15px 0;
	font-family: "Noto Kufi Arabic", Sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.homepage-post-container .category-title a{
		color: var(--c-headings);
}


.homepage-two-posts{
		display: flex;
    align-items: center;
    justify-content: space-between;
	  flex-wrap: wrap;
}


.homepage-query-list .l-post{
    box-shadow: -3px 4px 8px 0px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 40px 20px;
    display: block;
}


.homepage-query-list img{
	border-radius: 10px;
	width: 100%;
	height: 250px;
	object-fit: cover;
}

@media(max-width: 767px){
	.homepage-query-list img{
		object-fit: unset;
		height: auto;
	}
}



/** Homepage Carousel **/

#home-page-carousel{
	direction: ltr;
	margin-bottom: 5.8px;
}


#home-page-carousel .post-title{
	width: 100%;
	max-width: unset;
	text-align: right;
}



#home-page-carousel .post-title a{
	text-align: right;
	max-width: 0;
	background: unset !important;
}

#home-page-carousel .tsi-angle-right,
#home-page-carousel .tsi-angle-left{
	font-family: 'Font Awesome 5 Free';
	color: white;
}

.slick-arrow{
	border: none !important;
}

.slick-arrow button{
	background: transparent !important;
}

.slick-arrow button:hover{
	background: var(--c-main) !important;
}

.slick-arrow:hover{
	background: none !important;
}

.slick-next{
    right: 0 !important;
    left: unset !important;
    width: unset !important;
}

.home-slider-dots{
	display: flex;
    align-items: center;
    justify-content: center;
}

.home-slider-dots button{
	background: transparent;
    color: var(--c-main);
    border-radius: 50%;
    margin: 2px 10px;
}

.home-slider-dots button:hover{
	background: var(--c-main);
    color: white;
}

.home-slider-dots .slick-active button{
	background: var(--c-main) !important;
    color: white !important;
}


#home-page-carousel .bg-cover{
	background-size: unset !important;
}

#home-page-carousel .post-meta{
	height: unset;
}

/** Homepage - Category Section **/
.category-section section{
	display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.category-section section .view-link{
	margin-top: 14px;
}





.mobile-menu li a{
		color: var(--e-global-color-primary) !important;
}





/** About Us Page **/
#ceo,
.team-member{
	    box-shadow: -3px 4px 8px 0px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
	margin: 30px;
	flex: 1;
}


@media(max-width: 1024px){
	#ceo,
	.team-member{
			flex: unset !important;
	}
}


@media (max-width: 767px){
	#ceo,
	.team-member{
			flex: unset !important;
	}
}



/** Active footer page **/
.current-menu-item.page_item a{
	background: none !important;
	color: var(--c-bluesky) !important;
}

.eael-simple-menu-container.preset-1 .eael-simple-menu li.current-menu-ancestor>a.eael-item-active, .eael-simple-menu-container.preset-1 .eael-simple-menu li:hover>a, .eael-simple-menu-container.preset-1 .eael-simple-menu li.current-menu-item>a.eael-item-active{
	background-color: unset !important;
	color: var(--c-bluesky) !important;
}


/** Single Post **/
@media(max-width: 767px){
	.the-post-header .post-meta{
   	height: 115px !important;
	}
}


.l-post.grid-post.grid-base-post img{
	object-fit: fill !important;
	border-radius: 10px;
}

.s-head-has-sep .meta-below-has-right, .s-head-has-sep .post-meta > .meta-below{
	border-top: unset !important;
	width: 50%;
}

.single-featured{
	box-shadow: -4px 4px 4px rgba(21, 57, 133, 0.25);
	border-radius: 10px;
	padding: 20px;
	text-align: center;
}

.single-featured img{
	border-radius: 10px;
	max-height: 500px;
}

iframe{
		box-shadow: -4px 4px 4px rgba(21, 57, 133, 0.25) !important;
	border-radius: 10px !important;
}

.related-posts h4.heading{
	color: var(--c-main);
	font-weight: 900;
	font-size: 22px;
}

.related-posts .block-head-c:after{
		width: 100% !important;
    height: 3px !important;
}

.related-posts .l-post{
	box-shadow: -3px 4px 8px 0px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
	padding: 40px 20px;
}

.related-posts .l-post .media{
	border-radius: 10px !important;
}




@media(max-width: 1024px){
	#ceo,
	.team-member{
			flex: unset !important;
	}
}


@media (max-width: 767px){
	#ceo,
	.team-member{
			flex: unset !important;
	}
}