/* ==========================================================================
   SIDEBAR & WIDGET STYLES
   ========================================================================== */

/* Sidebar container */
#secondary.sidebar-right {
	flex: 0 0 320px;
	width: 320px;
	min-width: 320px;
	background-color: #fff;
	overflow-y: auto;
}

/* Generic widget area styles (fallback) */
.widget-area:not(.sidebar-right) {
	background-color: #fff;
	width: 100%;
	flex-basis: auto;
}

/* No sidebar in single column layout */
.sidebar-widget {
	margin: 0 0 1.5rem 0;
	padding: 0;
	background: transparent;
	border: none;
}

/* Widget Styles */
.widget {
	margin: 0 0 10px 0;
	padding: 0;
	background-color: transparent;
}

.widget-title {
	margin: 0 0 1rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
	display: inline-block;
    
    line-height: 40px;
    font-size: 16px;
    font-weight: normal;
    padding: 0 5px;
    border-bottom: 1px solid #eee;
    text-transform: lowercase;
}

/* Widget Content */
.widget ul,
.widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	list-style: none;
	margin: 0 0 0.5rem 0;
	padding: 0.25rem 0;
}

.widget li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.widget a {
	color: #c00;
	text-decoration: none;
	transition: color 0.3s ease;
	padding: 0.5rem 0;
}

.widget a:hover {
	color: #444;
}

/* Recent Posts Widget */
.widget_recent_entries {
	padding: 0;
	background: transparent;
	border: none;
}

.widget_recent_entries ul {
	margin: 0;
	padding: 0;
}

.widget_recent_entries li {
	display: block;
	margin-bottom: 0.75rem;
	padding: 0;
	border-bottom: 1px solid #f0f0f0;
}

.widget_recent_entries li:last-child {
	border-bottom: none;
}

.widget_recent_entries a {
	color: #333;
	font-weight: 500;
	display: inline;
	padding: 0;
}

.widget_recent_entries a:hover {
	color: #c00;
	text-decoration: underline;
	padding-left: 0;
}

.widget_recent_entries .post-date {
	display: block;
	font-size: 0.8rem;
	color: #999;
	margin-top: 0.25rem;
}

/* Categories Widget */
.widget_categories {
	padding: 0;
	background: transparent;
	border: none;
}

.widget_categories ul {
	margin: 1rem 0 0 0;
	padding: 0;
}

.widget_categories li {
	margin-bottom: 0.5rem;
	padding: 0.25rem 0;
}

.widget_categories li:last-child {
	border-bottom: none;
}

.widget_categories a {
	color: #333;
	text-decoration: none;
	display: inline;
	padding: 0;
	padding-left: 0.5rem;
}

.widget_categories a:hover {
	color: #c00;
	text-decoration: underline;
}

.widget_categories .post-count {
	font-size: 0.8rem;
	color: #c00;
	font-weight: 600;
	margin-left: 0.5rem;
}

/* Tag Cloud Widget */
.widget_tag_cloud {
	padding: 0;
	background: transparent;
	border: none;
}

.widget_tag_cloud .tagcloud {
	margin: 1rem 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.widget_tag_cloud a {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	background-color: transparent;
	border: none;
	border-radius: 3px;
	color: #c00;
	text-decoration: none;
	font-size: 0.85rem !important;
	transition: all 0.3s ease;
	margin: 0;
}

.widget_tag_cloud a:hover {
	background-color: #c00;
	color: #fff;
	border-color: #c00;
	text-decoration: none;
	padding-left: 0;
}

/* Archives Widget */
.widget_archive {
	padding: 0;
	background: transparent;
	border: none;
}

.widget_archive ul {
	margin: 1rem 0 0 0;
	padding: 0;
}

.widget_archive li {
	margin-bottom: 0.5rem;
	padding: 0.25rem 0;
}

.widget_archive li:last-child {
	border-bottom: none;
}

.widget_archive a {
	color: #333;
	text-decoration: none;
	display: inline;
	padding: 0;
}

.widget_archive a:hover {
	color: #c00;
	text-decoration: underline;
}

.widget_archive .post-count {
	font-size: 0.8rem;
	color: #999;
	margin-left: 0.5rem;
}

/* Search Widget */
.widget_search {
	padding: 0;
	background: transparent;
	border: none;
}

.widget_search form {
	display: flex;
	gap: 0;
    border: 1px solid black;
}

.widget_search .search-field {
	flex: 1;
	padding: 0.5rem;
	border: none;
	border-radius: 3px 0 0 3px;
	font-size: 0.875rem;
}

.widget_search .search-submit {
	padding: 0.5rem 1rem;
	background-color: #c00;
	color: #fff;
	border: none;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
	font-size: 0.875rem;
	transition: background-color 0.3s ease;
}

.widget_search .search-submit:hover {
	background-color: #900;
}

/* Text Widget */
.widget_text {
	padding: 0;
	background: transparent;
	border: none;
}

.widget_text p {
	margin: 1rem 0 0 0;
}

.widget_text p:first-child {
	margin-top: 0;
}

/* Calendar Widget */
.widget_calendar {
	padding: 0;
	background: transparent;
	border: none;
}

.widget_calendar table {
	width: 100%;
	margin: 1rem 0 0 0;
	border-collapse: collapse;
}

.widget_calendar th {
	background-color: #c00;
	color: #fff;
	padding: 0.5rem;
	text-align: center;
	font-weight: 600;
}

.widget_calendar td {
	border: none;
	padding: 0.5rem;
	text-align: center;
	background-color: #fff;
}

.widget_calendar a {
	color: #c00;
	text-decoration: none;
	font-weight: 600;
}

.widget_calendar a:hover {
	text-decoration: underline;
}

.widget_calendar .today {
	background-color: #fff;
}

/* Featured Content Widget */
.featured-widget {
	background-color: #fff;
	border: none;
	border-radius: 3px;
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.featured-widget .featured-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #c00;
	margin-bottom: 0.75rem;
}

.featured-widget .featured-image {
	margin-bottom: 0.75rem;
	border-radius: 3px;
	overflow: hidden;
	line-height: 0;
}

.featured-widget .featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.featured-widget .featured-description {
	font-size: 0.85rem;
	color: #666;
	line-height: 1.6;
}

.widget > div {
    margin: 10px;
}
