/*
 * Sahel Theme — Front-end styles
 *
 * @package Sahel
 */


@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn/Vazirmatn[wght].woff2') format('woff2');
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

:root {
		--sahel-font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--sahel-content-width: 1200px;
	--sahel-spacing-unit: 1rem;
	
	--sahel-border-color: #e5e7eb;
	--sahel-text-color: #1f2937;
	--sahel-muted-color: #6b7280;
	
	--sahel-surface: #f8fafc;

	
	--sahel-container: 78%;
	--sahel-content: 100%;
	--sahel-sidebar: 30%;

	--sahel-space-1: 0.25rem;
	--sahel-space-2: 0.5rem;
	--sahel-space-3: 0.75rem;
	--sahel-space-4: 1rem;
	--sahel-space-5: 1.5rem;
	--sahel-space-6: 2rem;
	--sahel-space-7: 3rem;
	--sahel-space-8: 4rem;

	--sahel-border-radius: 0.5rem;
	--sahel-border-radius-sm: 0.25rem;
	--sahel-border-radius-lg: 0.75rem;

	--sahel-border: #e5e7eb;

	--sahel-text: #1f2937;
	--sahel-text-light: #6b7280;
	--sahel-heading: #111827;

	--sahel-background: #ffffff;
	--sahel-background-alt: #f8fafc;

	--sahel-primary: #2563eb;
	--sahel-primary-hover: #1d4ed8;

	--sahel-success: #16a34a;
	--sahel-danger: #dc2626;

	--sahel-transition: 180ms ease;
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--sahel-background);
	color: var(--sahel-text-color);
	font-family: var(--sahel-font-family);
	line-height: 1.8;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--sahel-primary);
}

button,
input,
select
 {
	font: inherit;
}

textarea {
	font: inherit;
	width: 100%;
	border-radius: 7px;
}
.form-submit .submit {
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: var(--sahel-border-radius);
  background: var(--sahel-primary);
  color: #ffffff;
  cursor: pointer;
}
.sahel-container {
	width: min(
		calc(100% - 2rem),
		var(--sahel-content-width)
	);
	margin-inline: auto;
}
/*
 * Layout Modes
 */

/* Default */

.sahel-layout-default {
	width: 100%;
}

/* Boxed */

.sahel-layout-boxed {
	width: 100%;
}

.sahel-layout-boxed .sahel-container {
	width: min(
		calc(100% - 2rem),
		1000px
	);
}

/* Full Width */

.sahel-layout-full-width {
	width: 100%;
}

.sahel-layout-full-width .sahel-container {
	width: 100%;
	max-width: none;
	padding-inline: 2rem;
}
/*
 * ---------------------------------------------------------
 * Header Navigation
 * ---------------------------------------------------------
 */

.site-header {
	border-bottom: 1px solid var(--sahel-border-color);
	background: var(--sahel-background);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 80px;
}

.site-title {
	color: var(--sahel-text-color);
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

.site-description {
	margin: 0.25rem 0 0;
	color: var(--sahel-muted-color);
	font-size: 0.9rem;
}

.main-navigation ul,
.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a,
.footer-navigation a {
	text-decoration: none;
}


.site-header-inner {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.main-navigation {
	/* flex: 1; */
	margin: auto;
}

.header-navigation {
	margin-inline-start: auto;
}

.main-navigation ul,
.header-navigation ul {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a,
.header-navigation a {
	color: var(--sahel-text-color);
	text-decoration: none;
}

.main-navigation a:hover,
.header-navigation a:hover {
	color: var(--sahel-primary);
}
.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.entry-title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
}

.entry-meta {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}

.posted-on {
    display: inline-block;
}
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.6rem;
    }

    .entry-header {
        margin-bottom: 1.5rem;
    }
}

/*
 * Header Search Menu Item
 */

.header-navigation
.sahel-search-menu-item
> a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
}

.header-navigation
.sahel-search-menu-item
> a:hover {
	background: var(--sahel-surface);
}

.header-navigation
.sahel-search-menu-item
> a::before {
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.header-navigation
.sahel-search-menu-item
> a::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 2px;
	background: currentColor;
	transform: translate(
		6px,
		6px
	) rotate(45deg);
	transform-origin: center;
}

/* =========================================================
   Primary Menu - Submenu
   ========================================================= */

.main-navigation .menu {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation .menu > li {
	position: relative;
	margin: 0;
	padding: 0;
}

.main-navigation .menu > li > a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
}


/*
 * ---------------------------------------------------------
 * Items With Children
 * ---------------------------------------------------------
 */

.main-navigation .menu-item-has-children > a::after {
	content: '';
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.2rem;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}


/*
 * ---------------------------------------------------------
 * First-Level Submenu
 * ---------------------------------------------------------
 */

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 0.75rem);
	inset-inline-start: 0;
	z-index: 1000;

	min-width: 220px;
	margin: 0;
	padding: 0.5rem 0;

	list-style: none;

	background: var(--sahel-background);
	border: 1px solid var(--sahel-border-color);
	border-radius: var(--sahel-border-radius);

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);

	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.2s ease;
}


/*
 * ---------------------------------------------------------
 * Submenu Items
 * ---------------------------------------------------------
 */

.main-navigation .sub-menu li {
	position: relative;
	margin: 0;
	padding: 0;
}

.main-navigation .sub-menu li a {
	display: flex;
	align-items: center;
	justify-content: space-between;

	width: 100%;
	padding: 0.7rem 1rem;

	color: var(--sahel-text-color);
	text-decoration: none;
	white-space: nowrap;
}

.main-navigation .sub-menu li a:hover {
	color: var(--sahel-primary);
	background: rgba(0, 0, 0, 0.03);
}


/*
 * ---------------------------------------------------------
 * Show Submenu
 * ---------------------------------------------------------
 */

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}


/*
 * ---------------------------------------------------------
 * Parent Arrow When Submenu Is Open
 * ---------------------------------------------------------
 */

.main-navigation .menu-item-has-children:hover > a::after,
.main-navigation .menu-item-has-children:focus-within > a::after {
	transform: rotate(-45deg);
}


/*
 * ---------------------------------------------------------
 * Second-Level Submenu
 * ---------------------------------------------------------
 */

.main-navigation .sub-menu .sub-menu {
	top: -0.5rem;
	inset-inline-start: 100%;
	margin-inline-start: 0.25rem;

	transform: translateX(0.5rem);
}

.main-navigation .sub-menu .menu-item-has-children > a::after {
	transform: rotate(-45deg);
}

.main-navigation .sub-menu .menu-item-has-children:hover > .sub-menu,
.main-navigation .sub-menu .menu-item-has-children:focus-within > .sub-menu {
	transform: translateX(0);
}

.main-navigation .sub-menu .menu-item-has-children:hover > a::after,
.main-navigation .sub-menu .menu-item-has-children:focus-within > a::after {
	transform: rotate(135deg);
}


//* =========================================================
   RTL Submenu
   ========================================================= */

html[dir="rtl"] .main-navigation .sub-menu .sub-menu {
	top: -0.5rem;

	inset-inline-start: 100%;
	inset-inline-end: auto;

	margin-inline-start: 0.25rem;
	margin-inline-end: 0;

	transform: translateX(0.5rem);
}

html[dir="rtl"] .main-navigation .sub-menu .menu-item-has-children > a::after {
	transform: rotate(-45deg);
}

html[dir="rtl"] .main-navigation .sub-menu .menu-item-has-children:hover > .sub-menu,
html[dir="rtl"] .main-navigation .sub-menu .menu-item-has-children:focus-within > .sub-menu {
	transform: translateX(0);
}

html[dir="rtl"] .main-navigation .sub-menu .menu-item-has-children:hover > a::after,
html[dir="rtl"] .main-navigation .sub-menu .menu-item-has-children:focus-within > a::after {
	transform: rotate(45deg);
}

/* =========================================================
   Mobile Menu Toggle
   ========================================================= */

.sahel-menu-toggle {
	display: none;

	width: 44px;
	height: 44px;
	padding: 0;

	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;

	border: 0;
	background: transparent;
	color: var(--sahel-text-color);

	cursor: pointer;
}

.sahel-menu-toggle span {
	display: block;

	width: 24px;
	height: 2px;

	background: currentColor;

	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}


/* =========================================================
   Mobile Navigation
   ========================================================= */

@media (max-width: 768px) {

	.site-header-inner {
		position: relative;
	}

	.sahel-menu-toggle {
		display: flex;
	}

	.main-navigation {
		display: none;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation .menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;

		width: 100%;
		margin: 0;
		padding: 0;
	}

	.main-navigation .menu > li {
		width: 100%;
		border-top: 1px solid var(--sahel-border-color);
	}

	.main-navigation .menu > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;

		width: 100%;
		padding: 0.9rem 0;

		text-decoration: none;
	}

	.main-navigation .menu-item-has-children > a::after {
		transform: rotate(45deg);
	}

	.main-navigation .menu-item-has-children:hover > a::after,
	.main-navigation .menu-item-has-children:focus-within > a::after {
		transform: rotate(45deg);
	}


	/* -------------------------------------------------------
	   Mobile Submenu
	   ------------------------------------------------------- */

	.main-navigation .sub-menu {
		position: static;

		display: none;

		width: 100%;
		min-width: 0;

		margin: 0;
		padding: 0;

		border: 0;
		border-radius: 0;
		box-shadow: none;

		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.main-navigation .menu-item-has-children:hover > .sub-menu,
	.main-navigation .menu-item-has-children:focus-within > .sub-menu {
		display: none;
	}

	.main-navigation .sub-menu li {
		width: 100%;
	}

	.main-navigation .sub-menu li a {
		width: 100%;
		padding: 0.75rem 1rem;

		white-space: normal;
	}

	.main-navigation .sub-menu .sub-menu {
		position: static;

		margin: 0;
		padding: 0;

		transform: none;
	}

	.main-navigation .sub-menu .menu-item-has-children > a::after {
		transform: rotate(45deg);
	}


	/* -------------------------------------------------------
	   Open Submenu
	   ------------------------------------------------------- */

	.main-navigation .menu-item-has-children.is-submenu-open > .sub-menu {
		display: block;
	}

	.main-navigation .menu-item-has-children.is-submenu-open > a::after {
		transform: rotate(225deg);
	}

	.main-navigation .sub-menu .menu-item-has-children.is-submenu-open > a::after {
		transform: rotate(225deg);
	}


	/* -------------------------------------------------------
	   Open Menu Icon
	   ------------------------------------------------------- */

	.sahel-menu-toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.sahel-menu-toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.sahel-menu-toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

}

/*
 * ---------------------------------------------------------
 * Top Menu
 * ---------------------------------------------------------
 */

.top-menu {
	width: 100%;
	border-bottom: 1px solid var(--sahel-border-color);
}

.top-menu-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	min-height: 44px;
}

.top-navigation {
	display: flex;
	align-items: center;
	margin: auto;
}

.top-navigation ul {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-navigation a {
	color: var(--sahel-muted-color);
	text-decoration: none;
}

.top-navigation a:hover {
	color: var(--sahel-primary);
}


/*
 * ---------------------------------------------------------
 * Search Trigger
 * ---------------------------------------------------------
 */

.sahel-search-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sahel-text-color);
	cursor: pointer;
}

.sahel-search-trigger:hover {
	background: var(--sahel-surface);
	color: var(--sahel-primary);
}

.sahel-search-trigger:focus-visible {
	outline: 2px solid var(--sahel-primary);
	outline-offset: 2px;
}


/*
 * ---------------------------------------------------------
 * Search Icon
 * ---------------------------------------------------------
 */

.sahel-search-icon {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.sahel-search-icon::after {
	content: '';
	position: absolute;
	right: -6px;
	bottom: -4px;
	width: 7px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: rotate(45deg);
	transform-origin: center;
}
/* Header Actions */

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.sahel-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sahel-text-color);
	cursor: pointer;
}

.sahel-search-toggle:hover {
	background: var(--sahel-surface);
	color: var(--sahel-primary);
}

.sahel-search-toggle:focus-visible {
	outline: 2px solid var(--sahel-primary);
	outline-offset: 2px;
}

.sahel-search-toggle svg {
	display: block;
}

/* Main */

.site-main {
	padding-block: 3rem;
}

/*
 * Content + Sidebar Layout
 */

.sahel-content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2rem;
	align-items: start;
}
.sahel-content-area--no-sidebar {
	grid-template-columns: minmax(0, 1fr);
}

.sahel-content-area .sahel-content {
	min-width: 0;
}

.sahel-content-area .sahel-sidebar {
	min-width: 0;
}

/* Sidebar Right */

.sahel-content-area.sidebar-right {
	grid-template-columns: minmax(0, 1fr) 300px;
}

.sahel-content-area.sidebar-right .sahel-content {
	order: 1;
}

.sahel-content-area.sidebar-right .sahel-sidebar {
	order: 2;
}

/* Sidebar Left */

.sahel-content-area.sidebar-left {
	grid-template-columns: 300px minmax(0, 1fr);
}

.sahel-content-area.sidebar-left .sahel-content {
	order: 2;
}

.sahel-content-area.sidebar-left .sahel-sidebar {
	order: 1;
}

/* No Sidebar */

.sahel-content-area.no-sidebar {
	grid-template-columns: minmax(0, 1fr);
}

.sahel-content-area.no-sidebar .sahel-content {
	grid-column: 1 / -1;
	order: 1;
}

.sahel-content-area.no-sidebar .sahel-sidebar {
	display: none;
}

.sahel-content {
	min-width: 0;
}

.sahel-sidebar {
	min-width: 0;
}

.widget-area {
	display: grid;
	gap: 1.5rem;
}

.widget {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--sahel-border-color);
	border-radius: var(--sahel-border-radius);
	background: var(--sahel-surface);
}

.widget-title {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.widget:last-child {
	margin-bottom: 0;
}

/*
 * ---------------------------------------------------------
 * Post Cards
 * ---------------------------------------------------------
 */

.sahel-post-list {
	display: grid;
	gap: 2rem;
}

.sahel-post-card {
	display: grid;
	grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
	gap: 0.5rem;
	padding: 0.5rem;
	border: 1px solid var(--sahel-border-color);
	border-radius: var(--sahel-border-radius);
	background: var(--sahel-background);
}

.sahel-post-card-thumbnail {
	overflow: hidden;
	border-radius: var(--sahel-border-radius);
}

.sahel-post-card-thumbnail a {
	display: block;
}

.sahel-post-card-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	object-fit: cover;
}

.sahel-post-card-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sahel-post-card-header {
	margin-bottom: 0.75rem;
}

.sahel-post-card-title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.35;
}

.sahel-post-card-title a {
	color: var(--sahel-text-color);
	text-decoration: none;
}

.sahel-post-card-title a:hover {
	color: var(--sahel-primary);
}

.sahel-post-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1rem;
	color: var(--sahel-muted-color);
	font-size: 0.875rem;
	line-height: 1.6;
}

.sahel-post-card-meta-item {
	display: inline-flex;
	align-items: center;
}

.sahel-post-card-meta a {
	color: inherit;
	text-decoration: none;
}

.sahel-post-card-meta a:hover {
	color: var(--sahel-primary);
	text-decoration: underline;
}

.sahel-post-card-categories,
.sahel-post-card-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.sahel-post-card-category,
.sahel-post-card-tag {
	display: inline-flex;
	align-items: center;
}

.sahel-post-card-category + .sahel-post-card-category::before,
.sahel-post-card-tag + .sahel-post-card-tag::before {
	content: ',';
	margin-inline-end: 0.35rem;
}

.sahel-post-card-meta span {
	display: inline-flex;
	align-items: center;
}

.sahel-post-card-excerpt {
	color: var(--sahel-muted-color);
	line-height: 1.8;
}

.sahel-post-card-excerpt p {
	margin-top: 0;
}

.sahel-post-card-read-more {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--sahel-primary);
	font-weight: 600;
	text-decoration: none;
}

.sahel-post-card-read-more:hover {
	text-decoration: underline;
}


/*
 * ---------------------------------------------------------
 * Post Cards - Grid
 * ---------------------------------------------------------
 */

.sahel-post-list--grid {
	grid-template-columns: repeat(
		4,
		minmax(0, 1fr)
	);
}

.sahel-post-list--grid .sahel-post-card {
	grid-template-columns: minmax(0, 1fr);
}

.sahel-post-list--grid .sahel-post-card-thumbnail img {
	min-height: 220px;
	max-height: 280px;
}

/*
 * ---------------------------------------------------------
 * Post Card - Featured Image Position
 * ---------------------------------------------------------
 */

.sahel-post-card-thumbnail--left {
	order: 1;
}

.sahel-post-card-thumbnail--left + .sahel-post-card-content {
	order: 2;
}

.sahel-post-card-thumbnail--right {
	order: 2;
}

.sahel-post-card-thumbnail--right + .sahel-post-card-content {
	order: 1;
}

.sahel-post-card-thumbnail--top {
	order: 1;
}

.sahel-post-card-thumbnail--top + .sahel-post-card-content {
	order: 2;
}

/*
 * ---------------------------------------------------------
 * Post Card - Featured Image Layout
 * ---------------------------------------------------------
 */

.sahel-post-card--thumbnail-left,
.sahel-post-card--thumbnail-right {
	grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
}

.sahel-post-card--thumbnail-right {
	grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
}

.sahel-post-card--thumbnail-top {
	grid-template-columns: minmax(0, 1fr);
}

.sahel-post-card--thumbnail-right .sahel-post-card-thumbnail {
	order: 2;
}

.sahel-post-card--thumbnail-right .sahel-post-card-content {
	order: 1;
}

.sahel-post-card--thumbnail-left .sahel-post-card-thumbnail,
.sahel-post-card--thumbnail-left .sahel-post-card-content,
.sahel-post-card--thumbnail-top .sahel-post-card-thumbnail,
.sahel-post-card--thumbnail-top .sahel-post-card-content {
	order: initial;
}
.sahel-post-list--grid .sahel-post-card {
	grid-template-columns: minmax(0, 1fr);
}

.sahel-post-list--grid .sahel-post-card-thumbnail,
.sahel-post-list--grid .sahel-post-card-content {
	order: initial;
}
/*
 * ---------------------------------------------------------
 * Post Card - Featured Image Ratio
 * ---------------------------------------------------------
 */

.sahel-post-card-thumbnail--ratio-auto img {
	aspect-ratio: auto;
	height: auto;
	object-fit: contain;
}

.sahel-post-card-thumbnail--ratio-16-9 img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.sahel-post-card-thumbnail--ratio-4-3 img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.sahel-post-card-thumbnail--ratio-1-1 img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/*
 * ---------------------------------------------------------
 * Post Cards - Without Thumbnail
 * ---------------------------------------------------------
 */

.sahel-post-card:not(:has(.sahel-post-card-thumbnail)) {
	grid-template-columns: minmax(0, 1fr);
}


/*
 * ---------------------------------------------------------
 * Post Cards - Tablet
 * ---------------------------------------------------------
 */

@media (max-width: 1024px) {

	.sahel-post-list--grid {
		grid-template-columns: repeat(
			2,
			minmax(0, 1fr)
		);
	}

}


/*
 * ---------------------------------------------------------
 * Post Cards - Mobile
 * ---------------------------------------------------------
 */

@media (max-width: 768px) {

	.sahel-post-list--grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sahel-post-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.sahel-post-card-thumbnail img {
		min-height: 0;
		max-height: 280px;
	}

	.sahel-post-card-title {
		font-size: 1.3rem;
	}

}

@media (max-width: 768px) {

	.sahel-post-card--thumbnail-left,
	.sahel-post-card--thumbnail-right,
	.sahel-post-card--thumbnail-top {
		grid-template-columns: minmax(0, 1fr);
	}

	.sahel-post-card--thumbnail-left .sahel-post-card-thumbnail,
	.sahel-post-card--thumbnail-right .sahel-post-card-thumbnail,
	.sahel-post-card--thumbnail-top .sahel-post-card-thumbnail {
		order: initial;
	}

	.sahel-post-card--thumbnail-left .sahel-post-card-content,
	.sahel-post-card--thumbnail-right .sahel-post-card-content,
	.sahel-post-card--thumbnail-top .sahel-post-card-content {
		order: initial;
	}

}

/*
 * ---------------------------------------------------------
 * Post Card - No Thumbnail
 * ---------------------------------------------------------
 */

.sahel-post-card:not(:has(.sahel-post-card-thumbnail)) {
	grid-template-columns: minmax(0, 1fr);
}


/*
 * ---------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------
 */

.navigation.pagination {
	margin-top: 2.5rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--sahel-border-color);
	border-radius: 6px;
	color: var(--sahel-text-color);
	background: var(--sahel-background);
	text-decoration: none;
}

.navigation.pagination .page-numbers:hover {
	border-color: var(--sahel-primary);
	color: var(--sahel-primary);
}

.navigation.pagination .page-numbers.current {
	border-color: var(--sahel-primary);
	background: var(--sahel-primary);
	color: #ffffff;
}


/*
 * ---------------------------------------------------------
 * No Results
 * ---------------------------------------------------------
 */

.sahel-no-results {
	padding: 2rem;
	border: 1px solid var(--sahel-border-color);
	border-radius: var(--sahel-border-radius);
	background: var(--sahel-surface);
}

.sahel-no-results h1 {
	margin-top: 0;
}
/*
 * ---------------------------------------------------------
 * Archive / Search Headers
 * ---------------------------------------------------------
 */

.page-header {
	margin-bottom: 2rem;
}

.page-title {
	margin: 0;
	font-size: 2rem;
	line-height: 1.3;
}

.archive-description {
	margin-top: 1rem;
	color: var(--sahel-muted-color);
	line-height: 1.8;
}

.archive-description p {
	margin-top: 0;
}

@media (max-width: 768px) {

	.page-title {
		font-size: 1.6rem;
	}

}
/*
 * ---------------------------------------------------------
 * Search Form
 * ---------------------------------------------------------
 */

.search-form {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	width: 100%;
}

.search-form-label {
	display: block;
	flex: 1;
}

.search-field {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--sahel-border-color);
	border-radius: 6px;
	background: var(--sahel-background);
	color: var(--sahel-text-color);
	font: inherit;
	box-sizing: border-box;
}

.search-field:focus {
	border-color: var(--sahel-primary);
	outline: 2px solid color-mix(
		in srgb,
		var(--sahel-primary) 20%,
		transparent
	);
	outline-offset: 1px;
}

.search-submit {
	min-height: 44px;
	padding: 0.65rem 1rem;
	border: 1px solid var(--sahel-primary);
	border-radius: 6px;
	background: var(--sahel-primary);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-submit:hover {
	opacity: 0.9;
}

.search-submit:focus-visible {
	outline: 2px solid var(--sahel-primary);
	outline-offset: 2px;
}

@media (max-width: 480px) {

	.search-form {
		flex-direction: column;
	}

	.search-submit {
		width: 100%;
	}

}
.sahel-search-form {
	margin-bottom: 2rem;
}
/*
 * ---------------------------------------------------------
 * Search Overlay
 * ---------------------------------------------------------
 */

.sahel-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5rem 1rem 2rem;
	background: rgba(255, 255, 255, 0.98);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease;
}

.sahel-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.sahel-search-overlay-inner {
	position: relative;
	width: min(
		100%,
		720px
	);
	margin-top: 5%;
}

.sahel-search-overlay-content {
	padding: 2rem;
	border: 1px solid var(--sahel-border-color);
	border-radius: var(--sahel-border-radius);
	background: var(--sahel-background);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.08);
}

.sahel-search-overlay-title {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.75rem;
	line-height: 1.3;
}

.sahel-search-close {
	position: absolute;
	top: -3rem;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sahel-text-color);
	cursor: pointer;
}

.sahel-search-close:hover {
	background: var(--sahel-surface);
	color: var(--sahel-primary);
}

.sahel-search-close:focus-visible {
	outline: 2px solid var(--sahel-primary);
	outline-offset: 2px;
}

.sahel-search-close svg {
	display: block;
}

body.sahel-search-open {
	overflow: hidden;
}



/*
 * ---------------------------------------------------------
 * Search Overlay - Mobile
 * ---------------------------------------------------------
 */

@media (max-width: 768px) {

	.sahel-search-overlay {
		padding-top: 4rem;
	}

	.sahel-search-overlay-content {
		padding: 1.25rem;
	}

	.sahel-search-overlay-title {
		font-size: 1.5rem;
	}

	.sahel-search-close {
		top: -3rem;
	}

}



/* 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 {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: #fff;
	border: 2px solid currentColor;
}

/* =========================================================
   Featured Image Ratio
   ========================================================= */

.entry-thumbnail {
	overflow: hidden;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-thumbnail--ratio-16-9 img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.entry-thumbnail--ratio-4-3 img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.entry-thumbnail--ratio-1-1 img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.entry-thumbnail--ratio-auto img {
	aspect-ratio: auto;
	height: auto;
	object-fit: contain;
}

/* =========================================================
   Social Links
   ========================================================= */

.sahel-social-links {
	margin: 0;
	padding: 0;
}

.sahel-social-links-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;

	margin: 0;
	padding: 0;

	list-style: none;
}

.sahel-social-link {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.sahel-social-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 2.5rem;
	height: 2.5rem;

	color: var(--sahel-text-color);
	text-decoration: none;

	transition:
		color 0.2s ease,
		opacity 0.2s ease,
		transform 0.2s ease;
}

.sahel-social-link a:hover {
	color: var(--sahel-primary);
	transform: translateY(-2px);
}

.sahel-social-icon {
	display: block;

	width: 1.25rem;
	height: 1.25rem;

	fill: currentColor;
}

.sahel-social-link a:focus-visible {
	outline: 2px solid var(--sahel-primary);
	outline-offset: 3px;
	border-radius: 0.25rem;
}
/*
 * ---------------------------------------------------------
 * Footer
 * ---------------------------------------------------------
 */
/* Footer */

.site-footer {
	margin-top: 4rem;
	padding-block: 0.3rem;
	border-top: 1px solid var(--sahel-border-color);
	background: var(--sahel-surface);
}

.site-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-info {
	color: var(--sahel-muted-color);
	font-size: 0.9rem;
	text-align: center;
	border-top: 1px solid #e1e1e1;
padding: 0.2rem 0;
}

.footer-widgets {
	padding-block: 0.3rem;
}

.footer-widgets-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}

.footer-column {
	min-width: 0;
}

.footer-column .widget {
	padding: 0;
	border: 0;
	background: transparent;
}

.footer-navigation-wrapper {
	border-top: 1px solid var(--sahel-border-color);
	border-bottom: 1px solid var(--sahel-border-color);
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin: 0;
	padding: 1rem 0;
	list-style: none;
}

.footer-navigation a {
	color: var(--sahel-text-color);
	text-decoration: none;
}

.footer-navigation a:hover {
	color: var(--sahel-primary);
}

.back-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: #221919d4;
    color: #fff;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #555;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 21px;
    }
}

@media (max-width: 900px) {

	.footer-widgets-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 600px) {

	.footer-widgets-grid {
		grid-template-columns: minmax(0, 1fr);
	}

}

/* Responsive */

@media (max-width: 768px) {

	.site-header-inner,
	.site-footer-inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 1rem;
	}

	.site-main {
		padding-block: 2rem;
	}

	.sahel-post,
	.sahel-single-post,
	.sahel-page {
		padding: 1.25rem;
	}

	/*
	 * On small screens the sidebar moves below
	 * the main content regardless of its position.
	 */

	.sahel-content-area,
	.sahel-content-area.sidebar-left,
	.sahel-content-area.sidebar-right {
		grid-template-columns: minmax(0, 1fr);
	}


	.sahel-sidebar {
		order: 2;
	}

	.sahel-content {
		order: 1;
	}
	.sahel-layout-full-width .sahel-container {
	padding-inline: 1rem;
}
.sahel-post-card {
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.sahel-post-card-thumbnail img {
	min-height: 0;
	max-height: 280px;
}

.sahel-post-card-title {
	font-size: 1.3rem;
}
@media (max-width: 768px) {

	.top-menu-inner {
		min-height: 40px;
	}

	.top-navigation ul {
		gap: 0.5rem;
	}

	.sahel-search-trigger {
		width: 34px;
		height: 34px;
	}

	.site-header-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding-block: 1rem;
	}

	.main-navigation ul {
		flex-wrap: wrap;
		gap: 0.75rem 1rem;
	}

}
}

/* EDD */
.edd-blocks__columns .edd-blocks__download {
  border: 1px solid var(--sahel-border-color);
  border-radius: var(--sahel-border-radius);
}




