/**
 * Saniyeh Theme
 * Main stylesheet
 *
 * @package Saniyeh
 */

/* ==========================================================
   1. CSS VARIABLES
   ========================================================== */

:root {
	--saniyeh-container: 78%;
	--saniyeh-content: 100%;
	--saniyeh-sidebar: 30%;

	--saniyeh-space-1: 0.25rem;
	--saniyeh-space-2: 0.5rem;
	--saniyeh-space-3: 0.75rem;
	--saniyeh-space-4: 1rem;
	--saniyeh-space-5: 1.5rem;
	--saniyeh-space-6: 2rem;
	--saniyeh-space-7: 3rem;
	--saniyeh-space-8: 4rem;

	--saniyeh-radius: 0.5rem;
	--saniyeh-radius-sm: 0.25rem;
	--saniyeh-radius-lg: 0.75rem;

	--saniyeh-border: #e5e7eb;

	--saniyeh-text: #1f2937;
	--saniyeh-text-light: #6b7280;
	--saniyeh-heading: #111827;

	--saniyeh-background: #ffffff;
	--saniyeh-background-alt: #f8fafc;

	--saniyeh-primary: #2563eb;
	--saniyeh-primary-hover: #1d4ed8;

	--saniyeh-success: #16a34a;
	--saniyeh-danger: #dc2626;

	--saniyeh-transition: 180ms ease;
}


/* ==========================================================
   2. RESET
   ========================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	font-size: 16px;
	scroll-behavior: smooth;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت به کل سایت و کارت‌های نئونی */
body, h1, h2, h3, h4, h5, h6, button, input, textarea, .saniyeh-content-card {
  font-family: 'Vazirmatn', sans-serif !important;
}

body {
	margin: 0;
	padding: 0;
	color: var(--saniyeh-text);
	background: var(--saniyeh-background);
	font-family:
		Vazirmatn,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		Arial,
		sans-serif;
	font-size: 1rem;
	line-height: 1.8;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	max-width: 100%;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	color: inherit;
}

a {
	color: var(--saniyeh-primary);
	text-decoration: none;
	transition: color var(--saniyeh-transition);
}

a:hover {
	color: var(--saniyeh-primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}


/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	margin-bottom: var(--saniyeh-space-4);
	color: var(--saniyeh-heading);
	font-weight: 700;
	line-height: 1.35;
}

h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.25rem;
}

h5 {
	font-size: 1.1rem;
}

h6 {
	font-size: 1rem;
}

p {
	margin-top: 0;
	margin-bottom: var(--saniyeh-space-4);
}

ul,
ol {
	margin-top: 0;
	margin-bottom: var(--saniyeh-space-4);
}

blockquote {
	margin: var(--saniyeh-space-6) 0;
	padding: var(--saniyeh-space-4) var(--saniyeh-space-5);
	border-inline-start: 4px solid var(--saniyeh-primary);
	background: var(--saniyeh-background-alt);
}

pre,
code,
kbd,
samp {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Monaco,
		Consolas,
		"Liberation Mono",
		"Courier New",
		monospace;
}

pre {
	overflow-x: auto;
	padding: var(--saniyeh-space-4);
	border-radius: var(--saniyeh-radius);
	background: #111827;
	color: #ffffff;
}


/* ==========================================================
   4. ACCESSIBILITY
   ========================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: var(--saniyeh-space-3) var(--saniyeh-space-4);
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: #ffffff;
	color: #000000;
}


/* ==========================================================
   5. LAYOUT / CONTAINER
   ========================================================== */

.saniyeh-container {
	width: min(
		calc(100% - 2rem),
		var(--saniyeh-container)
	);
	margin-inline: auto;
}

.site-main {
	min-height: 50vh;
	background: #f9f9f9;
}

.site-content {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		var(--saniyeh-sidebar);
	gap: var(--saniyeh-space-7);
	padding-block: var(--saniyeh-space-7);
}

/*
 * Full-width layout.
 *
 * Used by Home and Archive templates
 * where the sidebar is intentionally disabled.
 */
.site-content--full {
	grid-template-columns: minmax(0, 1fr);
}

.site-content--full .content-area {
	width: 100%;
	min-width: 0;
}

.content-area {
	min-width: 0;
	padding: var(--saniyeh-space-6);
	background: var(--saniyeh-background);
}

.widget-area {
	min-width: 0;
	padding: var(--saniyeh-space-6);
	background: var(--saniyeh-background);
}
/* Sidebar positions. */

.site-content--sidebar-right {
	grid-template-columns:
		minmax(0, 1fr)
		var(--saniyeh-sidebar);
}

.site-content--sidebar-left {
	grid-template-columns:
		var(--saniyeh-sidebar)
		minmax(0, 1fr);
}

.site-content--sidebar-left .widget-area {
	grid-column: 1;
	grid-row: 1;
}

.site-content--sidebar-left .content-area {
	grid-column: 2;
	grid-row: 1;
}

.site-content--sidebar-hidden {
	grid-template-columns: minmax(0, 1fr);
}

.site-content--sidebar-hidden .content-area {
	grid-column: 1;
}

/* ==========================================================
   6. HEADER
   ========================================================== */

.site-header {
	position: relative;
	z-index: 1000;
	background: var(--saniyeh-background);
	border-bottom: 1px solid var(--saniyeh-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--saniyeh-space-5);
	min-height: 5rem;
}

.site-branding {
	min-width: 0;
}

.site-title {
	display: inline-block;
	color: var(--saniyeh-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.site-title:hover {
	color: var(--saniyeh-primary);
}

.site-description {
    display: none;
	margin: 0.25rem 0 0;
	color: var(--saniyeh-text-light);
	font-size: 0.875rem;
}


/* ==========================================================
   7. TOP BAR
   ========================================================== */

.site-topbar {
	width: 100%;
	border-bottom: 1px solid var(--saniyeh-border);
	background: var(--saniyeh-background-alt);
}

.site-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 2.75rem;
}

.top-navigation ul {
	display: flex;
	align-items: center;
	gap: var(--saniyeh-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-navigation a {
	color: var(--saniyeh-text-light);
	font-size: 0.875rem;
}

.top-navigation a:hover {
	color: var(--saniyeh-primary);
}
.footer-socials
{
width: 100%;
text-align: end;
padding-left: var(--saniyeh-space-4);
}
/* ==========================================================
   8. SEARCH
   ========================================================== */

.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	
}

.search-toggle__icon {
	position: relative;
	display: block;
	width: 1rem;
	height: 1rem;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.search-toggle__icon::after {
	content: "";
	position: absolute;
	right: -0.35rem;
	bottom: -0.25rem;
	width: 0.45rem;
	height: 2px;
	background: currentColor;
	transform: rotate(45deg);
}

.header-search {
	border-bottom: 1px solid var(--saniyeh-border);
	background: var(--saniyeh-background-alt);
}

.header-search[hidden] {
	display: none;
}

.header-search__inner {
	display: flex;
	align-items: center;
	gap: var(--saniyeh-space-4);
	padding-block: var(--saniyeh-space-4);
}

.header-search .search-form {
	display: flex;
	flex: 1;
	gap: var(--saniyeh-space-3);
}

.search-form label {
	display: block;
	flex: 1;
}

.search-field {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--saniyeh-border);
	border-radius: var(--saniyeh-radius-sm);
	background: #ffffff;
	color: var(--saniyeh-text);
}

.search-submit {
	min-height: 2.75rem;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--saniyeh-primary);
	border-radius: var(--saniyeh-radius-sm);
	background: var(--saniyeh-primary);
	color: #ffffff;
	cursor: pointer;
	transition: background var(--saniyeh-transition);
}

.search-submit:hover {
	background: var(--saniyeh-primary-hover);
}

.search-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}


/* ==========================================================
   9. PRIMARY NAVIGATION
   ========================================================== */

.main-navigation {
	min-width: 0;
	margin: 0 auto;
}
.main-navigation .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-start: 0.55rem;
  margin-top: 5px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.main-navigation .menu-item-has-children:hover > a::after, .main-navigation .menu-item-has-children:focus-within > a::after {
  transform: rotate(-45deg) translateY(-2px);
}
.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation > ul {
	display: flex;
	align-items: center;
	gap: var(--saniyeh-space-5);
}

.main-navigation li {
	position: relative;
}

.main-navigation li > a {
	display: inline-flex;
	align-items: center;
	padding-block: var(--saniyeh-space-4);
	color: var(--saniyeh-text);
	font-weight: 500;
}

.main-navigation li > a:hover {
	color: var(--saniyeh-primary);
}


/* ==========================================================
   10. SUBMENUS
   ========================================================== */

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-inline-start: 0.15rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.submenu-toggle__icon {
	width: 0.45rem;
	height: 0.45rem;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--saniyeh-transition);
}

.menu-item-has-children.is-submenu-open
> .submenu-toggle
.submenu-toggle__icon {
	transform: rotate(225deg);
}

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	z-index: 100;
	min-width: 13rem;
	padding: var(--saniyeh-space-2) 0;
	border: 1px solid var(--saniyeh-border);
	border-radius: var(--saniyeh-radius);
	background: #ffffff;
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);

	visibility: hidden;
	opacity: 0;
	transform: translateY(0.5rem);

	transition:
		opacity var(--saniyeh-transition),
		visibility var(--saniyeh-transition),
		transform var(--saniyeh-transition);
}

.main-navigation
.menu-item-has-children:hover
> .sub-menu,

.main-navigation
.menu-item-has-children:focus-within
> .sub-menu,

.main-navigation
.menu-item-has-children.is-submenu-open
> .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.main-navigation .sub-menu li {
	width: 100%;
}

.main-navigation .sub-menu a {
	display: block;
	width: 100%;
	padding: 0.6rem 1rem;
	white-space: nowrap;
}

.main-navigation .sub-menu .submenu-toggle {
	position: absolute;
	top: 50%;
	inset-inline-end: 0.25rem;
	transform: translateY(-50%);
}


/* ==========================================================
   11. MOBILE MENU
   ========================================================== */

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.3rem;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle__line {
	display: block;
	width: 1.6rem;
	height: 2.2px;
	background: currentColor;
	transition:
		transform var(--saniyeh-transition),
		opacity var(--saniyeh-transition);
}

.menu-toggle.is-active
.menu-toggle__line:nth-child(1) {
	transform: translateY(0.4rem) rotate(45deg);
}

.menu-toggle.is-active
.menu-toggle__line:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active
.menu-toggle__line:nth-child(3) {
	transform: translateY(-0.4rem) rotate(-45deg);
}


/* ==========================================================
   12. POSTS / CARDS
   ========================================================== */

.archive-posts,
.posts-list,
.search-results {
	display: grid;
	grid-template-columns:
		repeat(3, minmax(0, 1fr));
	gap: var(--saniyeh-space-5);
}

.archive-posts .entry,
.posts-list .entry,
.search-results .entry {
	overflow: hidden;
	border: 1px solid var(--saniyeh-border);
	border-radius: var(--saniyeh-radius);
	background: #ffffff;
	transition:
		box-shadow var(--saniyeh-transition),
		transform var(--saniyeh-transition);
}

.archive-posts .entry:hover,
.posts-list .entry:hover,
.search-results .entry:hover {
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.07);
	transform: translateY(-2px);
}

.archive-posts .entry-thumbnail,
.posts-list .entry-thumbnail,
.search-results .entry-thumbnail {
	margin: 0;
}

.archive-posts .entry-thumbnail img,
.posts-list .entry-thumbnail img,
.search-results .entry-thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.archive-posts .entry-header,
.archive-posts .entry-summary,
.archive-posts .entry-footer,
.posts-list .entry-header,
.posts-list .entry-summary,
.posts-list .entry-footer,
.search-results .entry-header,
.search-results .entry-summary,
.search-results .entry-footer {
	padding-inline: var(--saniyeh-space-4);
}

.archive-posts .entry-header,
.posts-list .entry-header,
.search-results .entry-header {
	padding-top: var(--saniyeh-space-4);
}

.entry-title {
	margin-bottom: var(--saniyeh-space-2);
}

.entry-title a {
	color: inherit;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--saniyeh-space-3);
	color: var(--saniyeh-text-light);
	font-size: 0.875rem;
}

.entry-summary {
	color: var(--saniyeh-text-light);
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: var(--saniyeh-space-3);
	padding-top: var(--saniyeh-space-3);
	padding-bottom: var(--saniyeh-space-4);
	font-size: 0.875rem;
}


/* ==========================================================
   13. SINGLE / PAGE
   ========================================================== */

.entry-single,
.entry-page {
	max-width: var(--saniyeh-content);
	margin-inline: auto;
}

.entry-single .entry-header,
.entry-page .entry-header {
	margin-bottom: var(--saniyeh-space-6);
}

.entry-single .entry-title,
.entry-page .entry-title {
	margin-bottom: var(--saniyeh-space-3);
}

.entry-single .entry-thumbnail,
.entry-page .entry-thumbnail {
  text-align: center; /* برای وسط‌چین شدن کانتینر تصویر */
  margin-bottom: var(--saniyeh-space-4, 1.5rem);
}

.entry-single .entry-thumbnail img,
.entry-page .entry-thumbnail img {
  width: auto;
  max-width: 650px; /* اندازه دلخواه را اینجا تنظیم کنید */
  height: auto;
  display: inline-block;
  border-radius: var(--saniyeh-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* سایه ملایم برای جذابیت بیشتر */
}

.entry-content > * {
	margin-bottom: var(--saniyeh-space-4);
}

.entry-content img {
	border-radius: var(--saniyeh-radius-sm);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.75rem;
	border: 1px solid var(--saniyeh-border);
	text-align: start;
}


/* ==========================================================
   14. PAGE HEADER
   ========================================================== */

.page-header {
	margin-bottom: var(--saniyeh-space-6);
}

.page-title {
	margin-bottom: var(--saniyeh-space-3);
}

.archive-description {
	color: var(--saniyeh-text-light);
}


/* ==========================================================
   15. SIDEBAR / WIDGETS
   ========================================================== */

.widget {
	margin-bottom: var(--saniyeh-space-2);
}

.widget-title {
	margin-bottom: var(--saniyeh-space-3);
	font-size: 1.2rem;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding-block: var(--saniyeh-space-1);

}

.widget li:last-child {
	border-bottom: 0;
}


/* ==========================================================
   16. PAGINATION
   ========================================================== */

.navigation.pagination,
.posts-navigation,
.post-navigation {
	margin-top: var(--saniyeh-space-7);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--saniyeh-space-2);
}

.page-numbers,
.nav-previous a,
.nav-next a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--saniyeh-border);
	border-radius: var(--saniyeh-radius-sm);
	background: #ffffff;
}

.page-numbers.current {
	border-color: var(--saniyeh-primary);
	background: var(--saniyeh-primary);
	color: #ffffff;
}


/* ==========================================================
   17. COMMENTS
   ========================================================== */

.comments-area {
	max-width: var(--saniyeh-content);
	margin: var(--saniyeh-space-8) auto 0;
	padding-top: var(--saniyeh-space-7);
	border-top: 1px solid var(--saniyeh-border);
}

.comments-title {
	margin-bottom: var(--saniyeh-space-5);
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	padding: var(--saniyeh-space-5) 0;
	border-bottom: 1px solid var(--saniyeh-border);
}

.comment-meta {
	margin-bottom: var(--saniyeh-space-3);
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	margin-bottom: var(--saniyeh-space-2);
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--saniyeh-border);
	border-radius: var(--saniyeh-radius-sm);
}

.comment-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.form-submit .submit {
	padding: 0.65rem 1.25rem;
	border: 0;
	border-radius: var(--saniyeh-radius-sm);
	background: var(--saniyeh-primary);
	color: #ffffff;
	cursor: pointer;
}


/* ==========================================================
   18. 404
   ========================================================== */

.error-404 {
	max-width: 700px;
	margin-inline: auto;
	padding-block: var(--saniyeh-space-8);
	text-align: center;
}

.error-code {
	margin: 0;
	color: var(--saniyeh-primary);
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 800;
	line-height: 1;
}


/* ==========================================================
   19. FOOTER
   ========================================================== */
.site-footer__widgets
{
	display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--saniyeh-space-2);
padding-block: var(--saniyeh-space-7);
}

.site-footer {
	margin-top: var(--saniyeh-space-8);
	border-top: 1px solid var(--saniyeh-border);
	background: var(--saniyeh-background-alt);
}

.footer-widgets {
	display: grid;
	grid-template-columns:
		repeat(3, minmax(0, 1fr));
	gap: var(--saniyeh-space-6);
	padding-block: var(--saniyeh-space-7);
}

.site-info {
	padding-block: var(--saniyeh-space-1);
	border-top: 1px solid var(--saniyeh-border);
	color: var(--saniyeh-text-light);
	font-size: 0.875rem;
}
.site-footer__bottom
{
	padding-block: var(--saniyeh-space-2);
text-align: center;
}

.site-footer__column .widget_media_image , .site-footer__column .widget_custom_html
{
    margin: 30px;
}
@media (max-width: 780px){ 
    .site-footer__widgets
    {
       display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--saniyeh-space-2);
padding: var(--saniyeh-space-5);
    }
}


/* ==========================================================
   20. RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 780px) {

	.site-content {
		grid-template-columns:
			minmax(0, 1fr)
			280px;
	}

	.archive-posts,
	.posts-list,
	.search-results {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}
}


/* ==========================================================
   21. RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 768px) {

	.saniyeh-container {
		width: min(
			calc(100% - 1.5rem),
			var(--saniyeh-container)
		);
	}

	.site-content {
		grid-template-columns: 1fr;
		gap: var(--saniyeh-space-6);
		padding-block: var(--saniyeh-space-6);
	}
	

	.site-content--sidebar-left,
	.site-content--sidebar-right {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-content--sidebar-left .widget-area,
	.site-content--sidebar-left .content-area {
		grid-column: 1;
		grid-row: auto;
	}



	.widget-area {
		order: 2;
	}
	
	.site-content--sidebar-left .widget-area {
	min-width: 0;
}

.site-content--sidebar-left .content-area {
	min-width: 0;
}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		display: none;
		width: 100%;
		order: 3;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation > ul {
		display: block;
	}

	.main-navigation li {
		width: 100%;
		border-top: 1px solid var(--saniyeh-border);
	}

	.main-navigation li > a {
		display: flex;
		width: 100%;
		padding-block: 0.75rem;
	}

	.main-navigation .sub-menu {
		position: static;
		display: none;
		width: 100%;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.main-navigation
	.menu-item-has-children.is-submenu-open
	> .sub-menu {
		display: block;
	}

	.main-navigation .sub-menu a {
		padding-inline-start: 1.5rem;
		white-space: normal;
	}

	.main-navigation .submenu-toggle {
		position: absolute;
		top: 0.55rem;
		inset-inline-end: 0;
	}

	.archive-posts,
	.posts-list,
	.search-results {
		grid-template-columns: 1fr;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.header-search__inner {
		align-items: stretch;
	}

	.header-search .search-form {
		flex-direction: column;
	}

	.search-submit {
		width: 100%;
	}

	.search-close {
		flex-shrink: 0;
	}
}


/* ==========================================================
   22. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

.archive-posts,
.posts-list,
.search-results {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--saniyeh-space-6);
}

.entry-card {
	overflow: hidden;
}

.entry-card__thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-card__body {
	padding: var(--saniyeh-space-5);
}

.entry-card__title {
	margin: 0;
}

.entry-card__title a {
	text-decoration: none;
}

.entry-card__excerpt {
	margin-top: var(--saniyeh-space-4);
}

.entry-card__read-more {
	display: inline-block;
	margin-top: var(--saniyeh-space-4);
}
@media (max-width: 1100px) {
	.archive-posts,
	.posts-list,
	.search-results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.saniyeh-container {
  width: 95%;
  margin-inline: auto;
}

}
@media (max-width: 900px) {
	.archive-posts,
	.posts-list,
	.search-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.saniyeh-container {
  width: 95%;
  margin-inline: auto;
}
}
@media (max-width: 768px) {

	.archive-posts,
	.posts-list,
	.search-results {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	.saniyeh-container {
  width: 95%;
  margin-inline: auto;
}
}

/* ==========================================================
   23. Latest Posts
   ========================================================== */

/*
 * Recent Posts Widget.
 */

.saniyeh-recent-posts {
	display: flex;
	flex-direction: column;
	gap: var(--saniyeh-space-4);
}

.saniyeh-recent-posts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--saniyeh-space-3);
}

.saniyeh-recent-posts__thumbnail {
	position: relative;
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	overflow: hidden;
}

.saniyeh-recent-posts__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.saniyeh-recent-posts__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--saniyeh-radius);
}

.saniyeh-recent-posts__thumbnail::before,
.saniyeh-recent-posts__thumbnail::after {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	content: '';
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
		border-radius: var(--saniyeh-radius);
}

.saniyeh-recent-posts__thumbnail::before {
	width: 100%;
	height: 100%;
	background: rgb(0 0 0 / 45%);
	transform: translate(-50%, -50%);
}

.saniyeh-recent-posts__thumbnail::after {
	width: 18px;
	height: 18px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
}

.saniyeh-recent-posts__thumbnail:hover::before,
.saniyeh-recent-posts__thumbnail:hover::after {
	opacity: 1;
}

.saniyeh-recent-posts__content {
	flex: 1;
	min-width: 0;
}

.saniyeh-recent-posts__title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.saniyeh-recent-posts__title a {
	text-decoration: none;
}

.saniyeh-recent-posts__title a:hover,
.saniyeh-recent-posts__title a:focus {
	text-decoration: underline;
}

.saniyeh-recent-posts__date {
	display: block;
	margin-top: var(--saniyeh-space-1);
	font-size: 0.8rem;
	opacity: 0.7;
}

@media (max-width: 480px) {

	.saniyeh-recent-posts__thumbnail {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}

}

