.flex-group .sidebar {
    margin-top: 145px;
}
/* Sidebar */
.col-2cl .flex-group.flex-right {
    border-left: none;
}

/* Remove Pingback from comments section */
#pinglist-container,
.comment-tabs a[href="#pinglist-container"],
.comment-tabs li a[href="#pinglist-container"] {
  display: none !important;
}
/* Remove border in the post images */
.entry .wp-caption {
	padding-top: 0px;
	background: none;
	border-bottom: none;
}
.post-byline {
	display: none !important
}

.post-hover:hover .post-thumbnail { opacity: 0.85; }


.featured-date {
	display: none;
}

.page-title .pad {

}

.single .entry {
	max-width:none;
}

.post-header .post-title {
	text-align: right;
}
/* Fixing author's avatar */
img.avatar.avatar-64.photo {
	margin-left: 10px;
	margin-right: 0;
}

/* removing the clock icon and the date after it */
.post-meta li:has(i.far.fa-clock) {
    display: none !important;
}

/* Fixing next page / previous page */
li.next.right {
	float: left;
}

li.prev.left {
	float: right;
}

/* removing borders in the homepage */

.flex-item {
	border: none;
}

/* Fixing footer's copyright */
div.grid.one-half {
	float: right;
	margin-top: 15px;
}

/* Justify Posts */
div.entry {
	text-align: justify;
}
/* Ensure the header is a flexbox container with RTL support */
#header .container-inner .group.pad {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    direction: rtl; /* Maintain RTL flow for Persian text */
}
/* Hide date, time, and clock icon from related posts */
.related-posts .post-meta,
.related-posts .post-date,
.related-posts .post-date i {
  display: none !important;
}
#header .container-inner  .container {
	position: absolute;
	left: 80px
}
.search-expand {
	right: -205px;
	width: 200px;

		
}
.alx-tabs-container {
    background: #fbfbfb;
    padding: 15px;
    border: none;
}

/* Align title to the right */
.site-title {
    text-align: right;
}
.site-description {
	font-size: 20px;
	margin-right: 5px;
	
}
i.fas.fa-hand-point-right {
	display:none;
}

/* Handle mobile responsiveness */
@media (max-width: 768px) {
    #header .container-inner .group.pad {
        flex-direction: column;
        align-items: flex-end; /* Align to the right for RTL on mobile */
    }

    .site-title {
        margin-right: 0;
        text-align:right;
				font-size: 20px;
				font-weight: 200%;					
    }
/* Fix search box */
	#header .container-inner  .container {
		position: relative;
		left: 0;

	}
	.toggle-search {
		padding-top: 8px
	}
}



/* === Pages: big title like posts === */
.page .page-title {
	border: none;
}
.page .page-title h2 {
	font-size: 48px;
	letter-spacing: -1px;
	line-height: 1.2em;
	font-weight: 600;
	color: #000;
	text-align: right;
	margin: 0;
}
/* === end Pages: big title like posts === */
/* ===== RTL fix — mirror the featured "hero" grid for Persian · added 2026-06-14 ===== */
/* The agnar theme builds the homepage/category hero grid with PHYSICAL `float:left`
   and a physically left-pinned category ribbon. Those ignore `direction:rtl`, so the
   big "latest" post wrongly sticks to the LEFT. We mirror the physical bits to the
   right so it reads correctly right-to-left (big post + ribbon on the right, the
   other four filling leftward). Pure layout mirror — sizes/colors unchanged. */

/* 1 — Grid items: float right, and move the 4px inter-item gutter to the right side */
.featured-item { float: right; margin: 4px 4px 0 0; }
.featured-item:nth-child(1) { margin-right: 0; }   /* hero post flush to the right edge */

/* tablet (720–1023px): theme zeroes a LEFT margin on item 4 — mirror it to the right */
@media only screen and (min-width: 720px) and (max-width: 1023px) {
  .featured-count-5 .featured-item:nth-child(4) { margin-right: 0; }
}

/* 2 — Category ribbon: top-left → top-right, and mirror its pointed tail + corner fold */
.featured-category-title { left: auto; right: 10px; }
.featured-category-title span { padding: 15px 30px 15px 25px; } /* mirror of 15 25 15 30 */
.featured-category-title span:before {            /* the pointed tail (was pointing right) */
  left: -35px; right: auto;
  border-left: 35px solid transparent;
  border-right: 35px solid #dd9933;
}
.featured-category-title span:after {             /* the small corner fold/shadow */
  left: auto; right: -10px;
  border-left: 10px solid #dd9933;
  border-right: 10px solid transparent;
}

/* mobile (<720px): items already stack full-width (float:none) — just move the ribbon */
@media only screen and (max-width: 719px) {
  .featured-category-title { left: auto; right: 10px; }
}
/* ===== end RTL featured-hero fix ===== */
