/* DownloadKade polish — keep brand green (#4fba6f), fix widget cards + mobile */

:root {
	--dk-green: #4fba6f;
	--dk-green-dark: #3fa05c;
	--dk-text: #4a4d48;
	--dk-muted: #7a7d78;
	--dk-line: #e6e8e4;
	--dk-card: #ffffff;
	--dk-bg: #f3f5f2;
	--dk-radius: 10px;
	--dk-shadow: 0 2px 10px rgba(20, 40, 20, 0.08);
}

body {
	background: var(--dk-bg);
	color: var(--dk-text);
	-webkit-font-smoothing: antialiased;
}

a, p, h1, h2, h3, h4, h5, h6, span, i {
	color: var(--dk-text);
}

a:hover,
p:hover,
h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover,
span:hover {
	color: var(--dk-green);
}

/* Header / search */
header .main {
	border-radius: var(--dk-radius);
	box-shadow: var(--dk-shadow);
}

header .search .txt_search {
	border-color: var(--dk-green);
}

header .search .btn_search {
	background: var(--dk-green);
	transition: background .2s ease;
}

header .search .btn_search:hover {
	background: var(--dk-green-dark);
}

.menu {
	box-shadow: 0 2px 8px rgba(20, 40, 20, 0.07);
}

.navbar-toggle {
	border: 1px solid var(--dk-green);
	margin: 8px 0;
}

.navbar-toggle .icon-bar {
	background: var(--dk-green);
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	margin: 4px auto;
}

.navbar ul > li > a {
	transition: color .15s ease, background .15s ease;
}

.navbar ul > li > a:hover,
.navbar ul > li.active > a {
	color: var(--dk-green) !important;
	background: rgba(79, 186, 111, 0.08);
}

/* Content cards */
.ads,
article,
.tag,
.related,
.comment-warp {
	border-radius: var(--dk-radius);
	box-shadow: var(--dk-shadow);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

article .title h2 {
	line-height: 1.5;
	top: -8px;
	max-width: calc(100% - 120px);
	vertical-align: middle;
}

article .content,
article .content p {
	font-size: 14px;
	line-height: 1.9;
	color: var(--dk-text);
}

/* ===== Sidebar widgets (default WP + custom) ===== */
.r-sidebar aside,
.r-sidebar .widget {
	background: var(--dk-card);
	box-shadow: var(--dk-shadow);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--dk-radius);
	margin-bottom: 14px;
	overflow: hidden;
}

.r-sidebar aside .title,
.r-sidebar .widget .title,
.r-sidebar .widget .widgettitle,
.r-sidebar .widget > h4 {
	border-bottom: 2px solid var(--dk-green);
	padding: 10px 12px;
	margin: 0;
	font-size: 15px;
	font-weight: normal;
	background: linear-gradient(180deg, #fff 0%, #f7faf7 100%);
	display: block;
	position: relative;
}

.r-sidebar aside .title a,
.r-sidebar .widget .title a,
.r-sidebar .widget .widgettitle,
.r-sidebar .widget > h4 {
	font-size: 15px;
	margin: 0;
	color: var(--dk-text);
	display: inline-block;
}

.r-sidebar aside .title i,
.r-sidebar .widget .title i {
	float: left;
	font-size: 18px;
	margin: 0 4px;
	color: var(--dk-green);
	position: relative;
	top: 2px;
}

.r-sidebar aside ul,
.r-sidebar .widget ul {
	list-style: none;
	padding: 8px 10px 10px;
	margin: 0;
}

.r-sidebar aside ul li,
.r-sidebar .widget ul li {
	margin: 0;
	border-bottom: 1px solid var(--dk-line);
	padding: 9px 4px;
	line-height: 1.55;
}

.r-sidebar aside ul li:last-child,
.r-sidebar .widget ul li:last-child {
	border-bottom: none;
}

.r-sidebar aside ul li a,
.r-sidebar .widget ul li a {
	font-size: 13px;
	color: var(--dk-text);
	display: inline;
	transition: color .15s ease;
}

.r-sidebar aside ul li a:hover,
.r-sidebar .widget ul li a:hover {
	color: var(--dk-green);
}

/* Recent comments denser readability */
.r-sidebar .widget_recent_comments ul li,
.r-sidebar .widget_recent_entries ul li {
	padding: 10px 6px;
}

.r-sidebar .widget_recent_comments ul li::before,
.r-sidebar .widget_recent_entries ul li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dk-green);
	margin-left: 8px;
	vertical-align: middle;
	opacity: .75;
}

/* Text / HTML widgets */
.r-sidebar .widget_text .textwidget,
.r-sidebar .widget_custom_html .textwidget {
	padding: 10px 12px 14px;
	font-size: 13px;
	line-height: 1.7;
}

/* Behtarinseo ads block */
.behtarinseo {
	background: var(--dk-card);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--dk-radius);
	box-shadow: var(--dk-shadow);
	padding: 10px;
	margin-bottom: 14px;
	overflow: hidden;
}

.behtarinseo a {
	word-break: break-word;
}

/* Keep custom soft/matni look, just unify card edge */
.r-sidebar .software,
.r-sidebar .matni,
.r-sidebar .adss {
	overflow: hidden;
}

.r-sidebar .software ul li {
	padding: 10px 4px;
}

/* Footer */
footer .main {
	border-radius: var(--dk-radius);
	box-shadow: var(--dk-shadow);
}

/* Pagination */
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
	background: var(--dk-green) !important;
	text-shadow: none !important;
	border-color: var(--dk-green-dark) !important;
}

/* ===== Mobile / tablet ===== */
@media (max-width: 991px) {
	header .logo h6 {
		display: none;
	}

	header .logo h1 {
		font-size: 16px;
		position: relative;
		top: 6px;
	}

	header .main,
	#contant,
	.main {
		margin-top: 10px;
	}

	.r-sidebar {
		margin-bottom: 8px;
	}

	.middle {
		order: -1;
	}

	article .title h2 {
		max-width: 100%;
		display: block;
		top: 0;
		padding: 8px 12px 10px;
		font-size: 14px;
	}

	article .title i {
		display: none;
	}

	article .title span {
		float: none;
		display: inline-block;
		top: 0;
		margin: 0 12px 8px;
		border-radius: 6px;
	}

	article .edame ul {
		display: block;
		border-radius: 0;
		margin: 0;
	}

	article .edamematlab,
	.share {
		float: none;
		display: block;
		text-align: center;
		border-radius: 0;
		top: 0;
		margin-top: 0;
	}
}

@media (max-width: 767px) {
	body {
		background: #eef1ee;
	}

	.container {
		width: auto !important;
		padding-left: 10px;
		padding-right: 10px;
	}

	header.container-fluid {
		padding: 0;
	}

	header .main {
		margin: 8px;
		padding: 8px;
	}

	header .search {
		margin-top: 8px;
		margin-bottom: 4px;
	}

	.menu .container {
		padding: 0 8px;
	}

	.navbar-nav {
		margin: 0;
	}

	.navbar-nav > li > a {
		padding: 12px 14px;
		border-bottom: 1px solid var(--dk-line);
	}

	#contant {
		margin-top: 8px;
	}

	.ads {
		padding: 8px;
		margin-bottom: 8px;
	}

	.r-sidebar aside,
	.r-sidebar .widget,
	.behtarinseo,
	article {
		margin-bottom: 10px;
	}

	.r-sidebar aside ul li a,
	.r-sidebar .widget ul li a {
		font-size: 13px;
		line-height: 1.6;
	}

	footer .main {
		margin: 8px;
	}
}

/* Prevent huge images breaking layout */
img {
	max-width: 100%;
	height: auto;
}

/* Reduce hover color spam on body text */
p:hover {
	color: var(--dk-text);
}
