/* ==========================================================================
   GMR Press — Sidebar & footer widget restyle
   ========================================================================== */

:root {
	--wgt-accent: #15548f;
	--wgt-accent-soft: #eef3f9;
	--wgt-text: #2b3a52;
	--wgt-heading: #1f2a3c;
	--wgt-card: #ffffff;
	--wgt-border: #e6e9ef;
	--wgt-rule: #f0f2f6;
}

/* 1. Card shell */
.widget-area .widget,
.footer-widgets .widget {
	padding: 20px;
	background: var(--wgt-card);
	border: 1px solid var(--wgt-border);
	border-radius: 12px;
	box-shadow: none;
}

.sidebar .widget {
	margin-bottom: 16px;
}

/* 2. Widget titles */
.widget-area .widget-title,
.widget-area .widget .wp-block-heading,
.footer-widgets .widget-title,
.footer-widgets .widget .wp-block-heading {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--wgt-heading);
}

.widget-area .widget-title::before,
.widget-area .widget .wp-block-heading::before,
.footer-widgets .widget-title::before,
.footer-widgets .widget .wp-block-heading::before {
	content: "";
	flex: 0 0 auto;
	width: 4px;
	height: 17px;
	border-radius: 2px;
	background: var(--wgt-accent);
}

/* 3. Search */
.widget_search .wp-block-search__label,
.widget-area .widget_block .wp-block-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.widget-area .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 4px 4px 14px;
	border: 1px solid #d9dee8;
	border-radius: 999px;
	background: var(--wgt-card);
	transition: border-color .15s ease;
}

.widget-area .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wgt-accent);
}

.widget-area .wp-block-search__input,
.widget-area .widget .search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 30px;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	border-radius: 0;
	outline: none;
	background: transparent !important;
	font-size: 14px;
	color: var(--wgt-text);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.widget-area .wp-block-search__input::placeholder {
	color: #8b93a3;
	opacity: 1;
}

.widget-area .wp-block-search__button,
.widget-area .widget .search-submit {
	flex: 0 0 auto;
	height: 32px;
	padding: 0 16px;
	border: none;
	border-radius: 999px;
	background: var(--wgt-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 32px;
	cursor: pointer;
	transition: background .15s ease;
}

.widget-area .wp-block-search__button:hover,
.widget-area .widget .search-submit:hover {
	background: #0e3c67;
}

/* 4. List widgets */
.widget-area .wp-block-latest-posts__list,
.widget-area .wp-block-categories-list,
.widget-area .wp-block-archives-list,
.widget-area .wp-block-page-list,
.footer-widgets .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget-area .wp-block-latest-posts__list li,
.widget-area .wp-block-categories-list li,
.widget-area .wp-block-archives-list li,
.footer-widgets .widget ul li {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--wgt-rule);
	list-style: none;
}

.widget-area .wp-block-latest-posts__list > li:last-child,
.widget-area .wp-block-categories-list > li:last-child,
.widget-area .wp-block-archives-list > li:last-child,
.footer-widgets .widget ul > li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.widget-area .wp-block-latest-posts__list a,
.widget-area .wp-block-archives-list a {
	position: relative;
	display: block;
	padding-left: 20px;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--wgt-text);
	text-decoration: none;
	transition: color .15s ease;
}

.widget-area .wp-block-latest-posts__list a::before,
.widget-area .wp-block-archives-list a::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .72em;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 2px solid var(--wgt-accent);
	border-bottom: 2px solid var(--wgt-accent);
	transform: rotate(-45deg);
}

.widget-area .wp-block-latest-posts__list a:hover,
.widget-area .wp-block-archives-list a:hover,
.widget-area .wp-block-categories-list a:hover {
	color: var(--wgt-accent);
}

/* 5. Categories */
.widget-area .wp-block-categories-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 9px 0;
}

.widget-area .wp-block-categories-list a {
	flex: 1 1 auto;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--wgt-text);
	text-decoration: none;
	transition: color .15s ease;
}

.widget-area .wp-block-categories-list .post-count,
.widget-area .wp-block-categories-list li > span {
	flex: 0 0 auto;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--wgt-accent-soft);
	color: var(--wgt-accent);
	font-size: 12px;
	line-height: 1.6;
}

.widget-area .wp-block-categories-list li ul {
	flex: 1 0 100%;
	margin: 6px 0 0 14px;
}

/* 6. Recent comments */
.widget-area .wp-block-latest-comments {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget-area .wp-block-latest-comments__comment {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--wgt-rule);
	font-size: 14px;
	line-height: 1.5;
	color: var(--wgt-text);
}

.widget-area .wp-block-latest-comments__comment:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.widget-area .wp-block-latest-comments__comment-meta {
	font-size: 13.5px;
}

.widget-area .wp-block-latest-comments__comment-author,
.widget-area .wp-block-latest-comments__comment-link {
	color: var(--wgt-accent);
	text-decoration: none;
}

.widget-area .wp-block-latest-comments__comment-link:hover,
.widget-area .wp-block-latest-comments__comment-author:hover {
	text-decoration: underline;
}

/* 7. Footer widgets */
.footer-widgets .widget {
	margin-bottom: 20px;
}

.footer-widgets .widget a {
	color: var(--wgt-text);
	text-decoration: none;
}

.footer-widgets .widget a:hover {
	color: var(--wgt-accent);
}

/* 8. Mobile */
@media (max-width: 768px) {

	.widget-area .widget,
	.footer-widgets .widget {
		padding: 18px 16px;
	}

	.widget-area .widget-title,
	.widget-area .widget .wp-block-heading {
		font-size: 14px;
	}
}

/* ==========================================================================
   9. Header — single row: logo left, menu right
   ========================================================================== */
@media (min-width: 769px) {

	.main-navigation.has-branding .inside-navigation {
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 28px;
	}

	.main-navigation .navigation-branding {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		margin-right: auto;
	}

	.main-navigation .navigation-branding .site-logo {
		display: flex;
		align-items: center;
	}

	.main-navigation .navigation-branding .header-image {
		height: 38px;
		width: auto;
		max-height: 38px;
	}

	.main-navigation .main-nav {
		flex: 0 1 auto;
		min-width: 0;
	}

	.main-navigation .main-nav > ul {
		flex-wrap: nowrap;
		justify-content: flex-end;
	}

	.main-navigation .main-nav ul li a,
	.main-navigation .menu-bar-item > a {
		line-height: 56px;
		padding-left: 13px;
		padding-right: 13px;
		font-size: 14.5px;
		white-space: nowrap;
	}

	.main-navigation .main-nav > ul > li > a {
		position: relative;
	}

	.main-navigation .main-nav > ul > li > a::after {
		content: "";
		position: absolute;
		left: 13px;
		right: 13px;
		bottom: 14px;
		height: 2px;
		background: currentColor;
		opacity: 0;
		transition: opacity .15s ease;
	}

	.main-navigation .main-nav > ul > li:hover > a::after,
	.main-navigation .main-nav > ul > li.current-menu-item > a::after {
		opacity: .85;
	}
}

