/*
Theme Name: Hope Hasn't Died Yet Blog
Theme URI: https://mysite.com/blog/
Author: Hope Hasn't Died Yet
Description: A Persian RTL WordPress weblog theme inspired by the Hope Hasn't Died Yet storefront design language.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hhd-blog
*/

@font-face {
	font-family: "Yekan Bakh FaNum";
	src: url("assets/fonts/YekanBakhFaNum-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Yekan Bakh FaNum";
	src: url("assets/fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Yekan Bakh FaNum";
	src: url("assets/fonts/YekanBakhFaNum-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Yekan Bakh FaNum";
	src: url("assets/fonts/YekanBakhFaNum-Black.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #071a43;
	--ink: #102a57;
	--blue: #3f73df;
	--blue-soft: #eaf2ff;
	--teal: #12a7a1;
	--coral: #ef7b65;
	--muted: #627596;
	--line: #dfe7f4;
	--panel: #f8fbff;
	--white: #ffffff;
	--shadow: 0 14px 34px rgba(29, 63, 118, 0.1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--navy);
	direction: rtl;
	font-family: "Yekan Bakh FaNum", Tahoma, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.8;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--blue);
}

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

button,
input,
textarea,
select {
	font: inherit;
}

.shell {
	width: min(1580px, calc(100% - 64px));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	z-index: 10000;
	top: 12px;
	right: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--navy);
	color: #fff;
	border-radius: 12px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(223, 231, 244, 0.76);
	backdrop-filter: blur(16px);
}

.header-shell {
	min-height: 84px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.brand,
.logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 900;
	white-space: nowrap;
	flex: none;
}

.logo-link {
	margin-left: 20px;
}

.logo-image {
	display: block;
	width: auto;
	max-width: 128px;
	height: 51px;
	object-fit: contain;
}

.brand-word {
	font-size: 22px;
}

.brand .custom-logo {
	width: auto;
	max-width: 210px;
	max-height: 48px;
}

.brand-face {
	position: relative;
	width: 36px;
	height: 36px;
	border: 4px solid #9bb6ef;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(63, 115, 223, 0.13);
}

.brand-face::before,
.brand-face::after {
	content: "";
	position: absolute;
	top: 8px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--blue);
}

.brand-face::before {
	right: 7px;
}

.brand-face::after {
	left: 7px;
}

.brand-face i {
	position: absolute;
	right: 7px;
	bottom: 6px;
	width: 15px;
	height: 7px;
	border-bottom: 3px solid var(--blue);
	border-radius: 50%;
}

.primary-nav {
	flex: 1;
	min-width: 0;
}

.nav-list,
.footer-list {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav-list a {
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.header-search {
	width: 336px;
	height: 44px;
	display: flex;
	align-items: center;
	padding: 0 14px 0 6px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 7px 18px rgba(44, 70, 115, 0.08);
}

.header-search label {
	flex: 1;
	min-width: 0;
}

.header-search input,
.search-form input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--navy);
	text-align: right;
}

.header-search button {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	cursor: pointer;
}

.blog-hero {
	display: grid;
	grid-template-columns: 0.78fr 1.22fr;
	gap: 24px;
	align-items: stretch;
	min-height: 320px;
	margin-top: 24px;
	border: 1px solid #dce7f8;
	border-radius: 24px;
	overflow: hidden;
	background: linear-gradient(135deg, #f7fbff, #edf5ff 58%, #f8feff);
	box-shadow: var(--shadow);
}

.hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 38px 42px;
}

.eyebrow {
	display: inline-flex;
	width: max-content;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: #edf4ff;
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
}

.eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
}

.hero-copy h1,
.single-header h1,
.archive-header h1 {
	margin: 0;
	color: var(--navy);
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.38;
	font-weight: 900;
}

.hero-copy p,
.archive-header p,
.section-head p,
.featured-copy p,
.post-card p,
.footer-about p {
	color: var(--muted);
}

.hero-copy p {
	max-width: 540px;
	margin: 16px 0 24px;
	font-size: 16px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button-link,
.ghost-link,
.post-card-foot > a,
.search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
}

.button-link {
	background: linear-gradient(135deg, #244b85, #061a43);
	color: #fff;
}

.button-link:hover {
	color: #fff;
	filter: brightness(1.08);
}

.ghost-link,
.post-card-foot > a,
.search-form button {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--blue);
}

.hero-visual {
	position: relative;
	min-height: 320px;
	background: linear-gradient(135deg, #e8f1ff, #f4f9ff);
}

.hero-visual img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	object-position: center;
}

.hero-visual--empty::after {
	content: "";
	position: absolute;
	inset: 18% 12%;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(63, 115, 223, 0.12), rgba(18, 167, 161, 0.1));
}

.category-strip {
	display: grid;
	grid-template-columns: 1.15fr repeat(4, 1fr);
	gap: 0;
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--shadow);
}

.strip-intro,
.category-tile {
	min-height: 104px;
	padding: 18px 22px;
	border-left: 1px solid var(--line);
}

.strip-intro h2,
.section-head h2,
.featured-copy h2,
.single-sidebar h2,
.widget-title {
	margin: 0;
	font-size: 21px;
	line-height: 1.5;
}

.strip-intro p,
.category-tile span {
	display: block;
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.category-tile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	transition: background 0.2s ease, color 0.2s ease;
}

.category-tile::before {
	content: "";
	position: absolute;
	inset-block: 22px;
	right: 0;
	width: 3px;
	border-radius: 4px;
	background: transparent;
}

.category-tile:hover {
	background: #f2f7ff;
	color: var(--navy);
}

.category-tile:hover::before {
	background: var(--blue);
}

.blog-panel,
.post-card {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(31, 63, 113, 0.06);
}

.featured-area,
.posts-section,
.archive-header,
.single-layout,
.comments-area,
.empty-state {
	margin-top: 28px;
}

.featured-post {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 26px;
	padding: 18px;
}

.featured-media,
.post-card-media,
.single-media {
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.featured-media img,
.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-media {
	min-height: 280px;
}

.featured-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 16px 8px;
}

.featured-copy h2 {
	font-size: 30px;
}

.featured-copy p {
	margin: 12px 0 18px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: #7385a3;
	font-size: 12px;
}

.post-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.post-meta span::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #9eb6e8;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.section-head h2 {
	font-size: 25px;
}

.section-head p {
	margin: 2px 0 0;
}

.section-head > a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--blue);
	font-weight: 700;
	white-space: nowrap;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.post-card {
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.post-card-media {
	display: block;
	height: 188px;
	border-radius: 0;
}

.post-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 24% 32%, rgba(18, 167, 161, 0.18), transparent 24%),
		linear-gradient(135deg, #edf5ff, #ffffff 52%, #e8f2ff);
}

.post-card-body {
	padding: 16px 16px 18px;
}

.post-card h2 {
	margin: 10px 0 8px;
	font-size: 18px;
	line-height: 1.55;
}

.post-card p {
	margin: 0 0 16px;
	font-size: 13px;
}

.post-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
}

.post-card-foot > span {
	color: var(--muted);
}

.archive-header {
	padding: 34px 38px;
	border-radius: 22px;
	background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.archive-header .search-form {
	margin-top: 18px;
	max-width: 560px;
}

.navigation.pagination {
	margin-top: 24px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	min-width: 38px;
	height: 38px;
	display: inline-grid;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--blue);
	font-weight: 700;
}

.page-numbers.current {
	background: var(--blue);
	color: #fff;
}

.single-header {
	max-width: 880px;
	margin: 0 auto 20px;
	text-align: center;
}

.breadcrumbs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 12px;
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
	content: "/";
	margin-right: 8px;
	color: #9eb0cb;
}

.breadcrumb-item a {
	color: var(--muted);
}

.breadcrumb-item a:hover {
	color: var(--blue);
}

.single-header .post-meta {
	justify-content: center;
	margin-top: 14px;
}

.single-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 22px;
	align-items: start;
}

.single-media {
	margin: 0 0 16px;
}

.single-media img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

.entry-content {
	padding: 34px 42px;
	color: #233d6b;
	font-size: 16px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--navy);
	line-height: 1.55;
}

.entry-content p {
	margin: 0 0 20px;
}

.entry-content a {
	color: var(--blue);
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	padding-right: 22px;
}

.entry-content blockquote {
	margin: 24px 0;
	padding: 18px 22px;
	border-right: 4px solid var(--blue);
	border-radius: 14px;
	background: #f4f8ff;
	color: #284675;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
}

.entry-content th,
.entry-content td {
	padding: 12px;
	border: 1px solid var(--line);
	text-align: right;
}

.entry-content th {
	background: #f2f7ff;
}

.single-sidebar {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 14px;
}

.single-sidebar .blog-panel,
.widget {
	padding: 18px;
}

.quick-list {
	padding: 0;
	margin: 12px 0 0;
	list-style: none;
	color: var(--muted);
	font-size: 13px;
}

.quick-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.quick-list li:last-child {
	border-bottom: 0;
}

.single-footer {
	margin-top: 18px;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-list a {
	padding: 7px 12px;
	border-radius: 999px;
	background: #eef5ff;
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}

.post-nav span {
	display: inline-flex;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-weight: 700;
}

.search-form {
	display: flex;
	height: 46px;
	padding: 0 14px 0 5px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
}

.search-form label {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}

.search-form button {
	margin: 5px 0;
}

.empty-state .blog-panel,
.no-results {
	padding: 36px;
	text-align: center;
}

.comments-area .blog-panel {
	padding: 28px;
}

.comment-list {
	padding-right: 20px;
}

.site-footer {
	margin-top: 40px;
	padding: 27px 0 15px;
	background: linear-gradient(100deg, #f6f9fe, #eef4fc);
	border-top: 1px solid var(--line);
	border-radius: 17px 17px 0 0;
}

.footer-shell {
	display: grid;
	grid-template-columns: 1.25fr repeat(3, 0.7fr);
	gap: 35px;
	align-items: start;
}

.footer-about h4,
.footer-menu-column h4 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 800;
	color: #24436c;
}

.footer-about p {
	margin: 0;
	font-size: 13px;
	line-height: 2;
	color: #607394;
}

.footer-menu-column a,
.footer-menu-list a {
	display: block;
	color: #596d90;
	font-size: 13px;
	margin: 10px 0;
}

.footer-menu-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-menu-list li {
	margin: 0;
}

.footer-list {
	align-items: flex-start;
	flex-direction: column;
	gap: 9px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px;
	padding-top: 14px;
	border-top: 1px solid #dbe5f3;
	color: #72829b;
	font-size: 12px;
}

@media (max-width: 1100px) {
	.shell {
		width: calc(100% - 32px);
	}

	.header-shell {
		flex-wrap: wrap;
		padding: 12px 0;
		gap: 14px;
	}

	.primary-nav {
		order: 4;
		flex-basis: 100%;
		overflow-x: auto;
	}

	.nav-list {
		gap: 22px;
	}

	.header-search {
		margin-right: auto;
	}

	.blog-hero,
	.featured-post,
	.single-grid {
		grid-template-columns: 1fr;
	}

	.footer-shell {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer-about {
		grid-column: span 3;
	}

	.category-strip {
		grid-template-columns: repeat(2, 1fr);
	}

	.strip-intro {
		grid-column: 1 / -1;
	}

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

	.single-sidebar {
		position: static;
	}
}

@media (max-width: 680px) {
	body {
		font-size: 14px;
	}

	body.admin-bar .site-header {
		top: 0;
	}

	.shell {
		width: calc(100% - 20px);
	}

	.logo-link {
		margin-left: auto;
	}

	.logo-image {
		height: 46px;
		max-width: 112px;
	}

	.brand-word {
		font-size: 18px;
	}

	.brand-face {
		width: 31px;
		height: 31px;
		border-width: 3px;
	}

	.header-search {
		order: 3;
		width: 100%;
	}

	.blog-hero {
		grid-template-columns: 1fr;
		min-height: 0;
		border-radius: 18px;
	}

	.hero-copy {
		padding: 26px 20px 8px;
	}

	.hero-copy h1,
	.single-header h1,
	.archive-header h1 {
		font-size: 28px;
	}

	.hero-visual {
		min-height: 190px;
	}

	.footer-shell {
		grid-template-columns: 1fr 1fr;
		gap: 23px 18px;
	}

	.footer-about {
		grid-column: span 2;
	}

	.category-strip,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.strip-intro,
	.category-tile {
		min-height: auto;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}

	.featured-post {
		padding: 10px;
	}

	.featured-media {
		min-height: 210px;
	}

	.featured-copy h2,
	.section-head h2 {
		font-size: 21px;
	}

	.section-head,
	.footer-bottom,
	.post-nav {
		align-items: flex-start;
		flex-direction: column;
	}

	.archive-header,
	.entry-content,
	.empty-state .blog-panel,
	.comments-area .blog-panel {
		padding: 24px 18px;
	}

	.single-layout {
		margin-top: 22px;
	}

	.post-card-media {
		height: 170px;
	}
}
