/*
 * Dokterin Widgets - widget sidebar: Cari Artikel & Kategori.
 *
 * .dps-widget-title dipakai versi shortcode/Elementor; di sidebar WordPress
 * judul widget memakai before_title sidebar (child theme: .dokterin-widget-title).
 */

.dps-widget,
.dps-search,
.dps-cat-list {
	--dps-sb-accent: #1a75bb;
	--dps-sb-text: #3d3d3d;
	--dps-sb-title: #1f1f1f;
	letter-spacing: 0;
}

.dps-widget .dps-widget-title {
	margin: 0 0 18px;
	color: var( --dps-sb-title );
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Cari Artikel                                                        */
/* ------------------------------------------------------------------ */

.dps-search {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.dps-search .dps-search-input {
	flex: 1;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	background: #fff;
	border: 1px solid #d9dee6;
	border-right: 0;
	border-radius: 8px 0 0 8px;
	color: var( --dps-sb-text );
	font-size: 15px;
	letter-spacing: 0;
	box-shadow: none;
	outline: none;
	transition: border-color 0.2s ease;
}

.dps-search .dps-search-input:focus {
	border-color: var( --dps-sb-accent );
}

.dps-search .dps-search-button {
	flex-shrink: 0;
	height: 48px;
	margin: 0;
	padding: 0 22px;
	background: var( --dps-sb-accent );
	border: 1px solid var( --dps-sb-accent );
	border-radius: 0 8px 8px 0;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dps-search .dps-search-button:hover,
.dps-search .dps-search-button:focus-visible {
	background: #145f98;
	border-color: #145f98;
}

/* ------------------------------------------------------------------ */
/* Kategori (list)                                                     */
/* ------------------------------------------------------------------ */

.dps-cat-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dps-cat-list .dps-cat-list-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dps-cat-list .dps-cat-list-item + .dps-cat-list-item {
	margin-top: 4px;
}

.dps-cat-list .dps-cat-list-item > a {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 10px 0 10px 20px;
	color: var( --dps-sb-text );
	font-size: 16px;
	line-height: 1.45;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

/* Ikon › */
.dps-cat-list .dps-cat-list-item > a::before {
	content: "";
	position: absolute;
	left: 2px;
	top: calc( 10px + 0.72em - 4px );
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate( 45deg );
	transition: left 0.2s ease;
}

.dps-cat-list .dps-cat-list-item > a:hover,
.dps-cat-list .dps-cat-list-item.is-active > a {
	color: var( --dps-sb-accent );
}

.dps-cat-list .dps-cat-list-item > a:hover::before {
	left: 5px;
}

.dps-cat-list .dps-cat-list-count {
	color: inherit;
	opacity: 0.8;
}
