/**
* PH Help — কাস্টম স্টাইল
* style.css ও ht-kb.css এর পরে লোড হয়, তাই এখানকার নিয়মগুলো জেতে
* থিম আপডেটে যেন হারিয়ে না যায় সেজন্য আলাদা ফাইলে রাখা
*/

/* ---------------------------------------------------------------
 * সাইডবারের উইজেট কার্ড
 * --------------------------------------------------------------- */

#sidebar .widget {
	background: #fff;
	border: 1px solid #e6ebef;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 16px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	overflow: hidden;
}

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

#sidebar .widget-title {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 12px;
	padding: 0 0 10px;
	border-bottom: 1px solid #eef2f5;
	letter-spacing: 0;
}

#sidebar .widget > ul > li {
	margin-bottom: 8px;
	padding-bottom: 8px;
}

#sidebar .widget > ul > li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

/* উইজেটের ভিতরের শেষ এলিমেন্টের বাড়তি মার্জিন কাটি */
#sidebar .widget > *:last-child {
	margin-bottom: 0;
}

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

/* ---------------------------------------------------------------
 * ছবি / ব্যানার উইজেট — ছবিই পুরো কার্ড, ভিতরে ফ্রেম নয়
 * --------------------------------------------------------------- */

#sidebar .widget img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

#sidebar .widget_media_image {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	line-height: 0;
}

#sidebar .widget_media_image img {
	width: 100%;
	border-radius: 10px;
}

#sidebar .widget_media_image .widget-title {
	padding: 0 0 10px;
	line-height: 1.4;
}

/* ---------------------------------------------------------------
 * Facebook Page ও YouTube Channel উইজেট
 * --------------------------------------------------------------- */

.ph-fb-page {
	line-height: 0;
	margin: 0;
}

.ph-fb-page iframe {
	display: block;
	max-width: 100%;
	border: 0;
	overflow: hidden;
}

.ph-yt-subscribe {
	margin: 0;
	line-height: 0;
	overflow: hidden;
}

.ph-yt-subscribe iframe {
	max-width: 100% !important;
}

/* ---------------------------------------------------------------
 * Knowledge Base উইজেট — ফাঁকা জায়গা কমানো
 * --------------------------------------------------------------- */

#sidebar .hkb_widget_articles > ul > li {
	margin: 0 0 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef2f5;
}

#sidebar .hkb_widget_articles > ul > li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

#sidebar .hkb_widget_articles .hkb-widget__entry-title {
	line-height: 1.45;
	margin-bottom: 2px;
}

#sidebar .hkb_widget_categories > ul > li {
	margin: 0 0 9px;
	padding-bottom: 9px;
	border-bottom: 1px solid #eef2f5;
}

#sidebar .hkb_widget_categories > ul > li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

/* ---------------------------------------------------------------
 * হোমপেজের ক্যাটাগরি ব্লক — উপর নিচের ফাঁক একটু কমানো
 * --------------------------------------------------------------- */

.hkb-archive > li {
	margin-bottom: 34px;
}

.hkb-category .hkb-article-list {
	margin-top: 12px;
}

.hkb-article-list > li {
	padding-bottom: 9px;
	margin-bottom: 9px;
}

/* ---------------------------------------------------------------
 * লাইভ সার্চ ড্রপডাউন
 * --------------------------------------------------------------- */

.hkb-site-search {
	position: relative;
}

.ph-livesearch {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 999;
	background: #fff;
	border: 1px solid #e6ebef;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
	max-height: 60vh;
	overflow-y: auto;
	text-align: left;
}

.ph-livesearch[hidden] {
	display: none;
}

.ph-livesearch__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ph-livesearch__item {
	border-bottom: 1px solid #f0f3f6;
	margin: 0;
}

.ph-livesearch__item:last-child {
	border-bottom: 0;
}

.ph-livesearch__item > a {
	display: block;
	position: relative;
	padding: 11px 14px 11px 38px;
	color: #333;
	text-decoration: none;
	line-height: 1.5;
}

/* বাঁ পাশে ডকুমেন্ট আইকন */
.ph-livesearch__item > a:before {
	content: "\f0f6";
	font-family: FontAwesome;
	position: absolute;
	left: 14px;
	top: 13px;
	font-size: 14px;
	line-height: 1;
	color: #9aa4ad;
}

.ph-livesearch__item:hover > a,
.ph-livesearch__current > a {
	background: #f5f8fa;
	color: #111;
}

.ph-livesearch__title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	padding-right: 46px;
}

.ph-livesearch__excerpt {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.55;
	color: #6b7280;
	font-weight: 400;
}

.ph-livesearch__views {
	position: absolute;
	top: 11px;
	right: 12px;
	font-size: 11px;
	font-weight: 400;
	color: #6d6d6d;
	background: #eef1f4;
	border-radius: 3px;
	padding: 3px 6px;
	line-height: 1;
}

.ph-livesearch__views:before {
	content: "\f06e";
	font-family: FontAwesome;
	margin-right: 4px;
}

.ph-livesearch__none {
	padding: 16px 14px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

.ph-livesearch__all {
	background: #f5f8fa;
	border-top: 1px solid #e6ebef;
	margin: 0;
}

.ph-livesearch__all > a {
	display: block;
	padding: 11px 14px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.ph-livesearch__all:hover > a,
.ph-livesearch__all.ph-livesearch__current > a {
	background: #eef2f5;
}

/* খোঁজার সময় ইনপুটের নিচের কোণা সোজা করি, যাতে ড্রপডাউনের সাথে মিশে যায় */
.hkb-site-search.ph-livesearch-open .hkb-site-search__field {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* ---------------------------------------------------------------
 * মোবাইল
 * --------------------------------------------------------------- */

@media screen and (max-width: 768px) {

	#sidebar .widget {
		padding: 14px 15px;
		margin-bottom: 14px;
	}

	.hkb-archive > li {
		margin-bottom: 26px;
	}
}
