/*
 Theme Name: JNews Child
 Template: jnews
 Text Domain: jnews-child
*/
html,
body {
margin: 0;
padding: 0;
scroll-behavior: smooth;
}

body {
min-height: 100vh;
display: flex;
flex-direction: column;
background-color: #1A1A1A;
color: #E9E9E9;
}

.header-desktop {
background-color: #101010;
height: 70px;
width: 100%;
border-bottom: 1px solid #0B0B0B;
display: flex;
justify-content: center;
align-items: center;
}

.header-desktop-container {
width: 768px;
padding: 0 20px;
display: flex;
align-items: center;
}

.header-desktop-nav {
flex: 1;
}

.header-desktop-nav-list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
}

.header-desktop-title {
font-size: 15px;
font-weight: 600;
color: #3FAF7F;
text-decoration: none;
padding-bottom: 3px;
user-select: none;
}

.header-desktop-nav-link {
font-size: 14px;
color: #E9E9E9;
text-decoration: none;
padding: 6px 0;
border-bottom: 2px solid transparent;
transition: .2s;
}

.header-desktop-nav-link:hover {
border-bottom-color: #3FAF7F;
}

.header-desktop-nav-btn-drawer {
background: none;
border: none;
cursor: pointer;
font-size: 14px;
color: #E9E9E9;
display: flex;
align-items: center;
gap: 6px;
padding: 6px 0;
transition: .2s;
}

.header-desktop-nav-btn-drawer:hover {
color: #3FAF7F;
}

.drawer-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,.45);
backdrop-filter: blur(2px);
opacity: 0;
visibility: hidden;
transition: .25s ease;
z-index: 90;
}

.drawer-overlay.active {
opacity: 1;
visibility: visible;
}

.drawer {
position: fixed;
top: 0;
right: 0;
width: 260px;
height: 100vh;
background-color: #111;
border-left: 1px solid #222;
transform: translateX(100%);
transition: transform .3s ease;
z-index: 100;
display: flex;
flex-direction: column;
}

.drawer.active {
transform: translateX(0);
}

.drawer-header {
height: 70px;
border-bottom: 1px solid #222;
display: flex;
align-items: center;
justify-content: flex-end; /* در RTL یعنی سمت چپ دراور */
padding: 0 16px;
}

.drawer-close {
background: none;
border: none;
color: #E9E9E9;
padding: 6px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
cursor: pointer;
transition: .2s;
}

.drawer-close:hover {
color: #3FAF7F;
background-color: rgba(63, 175, 127, 0.1);
}

.drawer-close svg {
width: 22px;
height: 22px;
}

.drawer-content {
padding: 20px;
color: #DDD;
font-size: 14px;
}

.footer-desktop {
background-color: #163726;
padding: 32px 16px 20px;
box-sizing: border-box;
width: 100%;
color: #E9FFE4;
margin-top: 40px;
}

.footer-desktop-container {
max-width: 960px;
width: 100%;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 24px;
}

.footer-desktop-column-container {
display: flex;
flex-wrap: wrap;
gap: 32px;
align-items: flex-start;
justify-content: space-between;
}

.footer-desktop-column-wraper {
flex: 1 1 180px;
min-width: 0;
}

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

.footer-desktop-column-title {
color: #FFFFFF;
font-size: 15px;
font-weight: 600;
margin-bottom: 8px;
line-height: 1.8;
}

.footer-desktop-column-text {
margin-top: 4px;
font-size: 13px;
line-height: 1.9;
opacity: 0.85;
}

.footer-desktop-column-row-regular {
margin: 4px 0;
}

.footer-desktop-column-row-regular-link {
color: #E9FFE4;
text-decoration: none;
font-size: 13px;
font-weight: 400;
line-height: 1.9;
opacity: 0.9;
transition: color .2s ease, opacity .2s ease;
cursor: pointer;
}

.footer-desktop-column-row-regular-link:hover {
color: #ffa800;
opacity: 1;
}

.footer-desktop-column-row-info {
margin: 4px 0;
font-size: 13px;
line-height: 1.9;
}

.footer-desktop-column-row-info-lable {
color: #E9FFE4;
font-size: 13px;
font-weight: 400;
margin-left: 4px;
}

.footer-desktop-column-row-info-link {
color: #E9FFE4;
text-decoration: none;
font-size: 13px;
font-weight: 400;
direction: ltr;
text-align: left;
display: inline-block;
transition: color .2s ease;
}

.footer-desktop-column-row-info-link:hover {
color: #ffa800;
}

.footer-social-row {
margin-top: 10px;
}

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

.footer-social-item a {
width: 34px;
height: 34px;
border-radius: 999px;
border: 1px solid #E9FFE4;
display: flex;
align-items: center;
justify-content: center;
transition: background-color .2s, border-color .2s;
}

.footer-social-item svg {
width: 18px;
height: 18px;
fill: #E9FFE4;
transition: fill .2s;
}

.footer-social-item a:hover {
background-color: #E9FFE4;
border-color: #E9FFE4;
}

.footer-social-item a:hover svg {
fill: #1F5E43;
}

.footer-desktop-copyright-row {
color: #E9FFE4;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
font-weight: 300;
user-select: none;
padding-top: 12px;
margin-top: 4px;
border-top: 1px solid rgba(233, 255, 228, 0.12);
opacity: 0.85;
}

.footer-desktop-copyright-row span + span {
font-weight: 400;
}

@media (max-width: 768px) {
.header-nav-item--secondary {
	display: none;
}

.header-desktop-nav-list {
	justify-content: flex-start;
	gap: 16px;
}

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

.footer-desktop {
	padding: 28px 20px 18px;
}

.footer-desktop-column-container {
	flex-direction: column;
	gap: 24px;
	text-align: center;
	display: flex;
	align-items: center;
}

.footer-desktop-column-wraper {
	flex: 1 1 100%;
}

.footer-desktop-column-title {
	font-size: 15px;
	margin-bottom: 6px;
}

.footer-desktop-column-text {
	font-size: 13px;
	line-height: 1.9;
	opacity: 0.85;
	max-width: 320px;
	margin: 0 auto;
}

.footer-desktop-column-row-regular-link,
.footer-desktop-column-row-info,
.footer-desktop-column-row-info-link,
.footer-desktop-column-row-info-lable {
	font-size: 13px;
	line-height: 2.1;
}

.footer-desktop-column-row-info-link {
	display: inline-block;
	text-align: center;
}

.footer-social-list {
	justify-content: center;
}

.footer-social-item a {
	width: 32px;
	height: 32px;
}

.footer-desktop-column-wraper:first-child {
	padding-bottom: 12px;
	margin-bottom: 6px;
	border-bottom: 1px solid rgba(233, 255, 228, 0.15);
}

.footer-desktop-copyright-row {
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	text-align: center;
	padding-top: 12px;
	border-top: 1px solid rgba(233, 255, 228, 0.15);
}
}
.drawer-content h3 {
  font-weight: 600;
}

.drawer-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-category-list .children {
  margin-right: 12px; /* چون RTL هست، توی راست کمی تو رفتگی می‌ده */
}
