/* =====================================================================
   blog.css â€” Blog index (home.php), single post, category/tag/search,
   and the blog sidebar. Loaded only on those views (see AssetsService).
   ===================================================================== */

/* ---- Filter bar ---- */
.blog-filter-section {
	padding: 2rem 0 0;
}

.blog-filter {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background-color: var(--white);
}

.blog-filter__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-filter__pills .pill {
	display: inline-block;
	padding: 0.45rem 1.1rem;
	border-radius: var(--radius-pill);
	font-size: var(--small-size);
	font-weight: 500;
	color: var(--text-dark);
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid #E2E2E2;
}

.blog-filter__pills .pill:hover,
.blog-filter__pills .pill.is-active {
	background-color: var(--primary-color);
	color: var(--white);
}

.blog-search {
	position: relative;
	flex: 0 0 auto;
	min-width: 240px;
}

.blog-search .form-control {
	padding-right: 3rem;
	border-radius: var(--radius-pill);
	border: 1px solid #E2E2E2;
}

.blog-search button {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background-color: var(--primary-color);
	color: var(--white);
	cursor: pointer;
}

/* ---- Blog index layout ---- */
.blog-index-section {
	padding: 2.5rem 0 var(--section-spacing);
}

/* Featured post */
.blog-featured {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 0;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	margin-bottom: 2.5rem;
}

.blog-featured__media {
	position: relative;
	display: block;
}

.blog-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.blog-featured__media .blog-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
}

.blog-featured__body {
	padding: 2.5rem;
	align-self: center;
}

.blog-featured__title {
	font-size: 1.85rem;
	font-weight: 700;
	margin: 0.75rem 0 1rem;
}

.blog-featured__title a {
	color: var(--heading-color);
	text-decoration: none;
}

.blog-featured__title a:hover {
	color: var(--primary-color);
}

.blog-featured__body p {
	color: var(--text-color);
	margin-bottom: 1.25rem;
}

/* Index grid card extras (base .blog-card lives in pages/home.css) */
.blog-grid .blog-media {
	position: relative;
	display: block;
}

.blog-grid .blog-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 1;
}

.blog-cat {
	display: inline-block;
	color: var(--primary-color);
	font-family: var(--font-heading);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: 0.4rem;
}

.blog-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
	font-size: var(--small-size);
	color: var(--text-color);
}

/* ---- Single post ---- */
.post-banner__meta {
	justify-content: center;
	color: var(--text-light);
	margin-top: 1rem;
}

.blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	font-size: var(--small-size);
}

.blog-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.single-post__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	margin: 2rem 0;
}

.single-tags .label,
.single-share .label {
	font-weight: 600;
	margin-right: 0.5rem;
}

.single-share {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.single-share a {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--bg-dark);
	color: var(--white);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.single-share a:hover {
	background-color: var(--primary-color);
}

.entry-content blockquote p {
	margin-bottom: 0;
	font-family: var(--font-heading);
	color: #000;
	font-size: var(--h3-size);
}

.blog_img_wrap {
	display: flex;
	gap: 30px;
	margin: 15px 0;
}

.blog_img_wrap img {
	border-radius: var(--radius-md);
	width: 100%;
	height: 300px;
	margin-bottom: 17px;
}

.blog_img_wrap .img_single {
	text-align: center;
}

/* Author box */
.author-box {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	background-color: var(--bg-dark);
	color: var(--white);
	border-radius: var(--radius-md);
	padding: 1.75rem;
	margin: 2rem 0;
}

.author-box__avatar img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
}

.author-box__name {
	color: var(--white);
	font-size: var(--h4-size);
	margin: 0;
}

.author-box__role {
	display: block;
	color: var(--primary-color);
	font-family: var(--font-heading);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0.2rem 0 0.5rem;
}

.author-box__body p {
	color: var(--text-light);
	font-size: 0.95rem;
	margin: 0;
}

/* Post navigation */
.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
}

.post-nav__item {
	flex: 1;
}

.post-nav__item--next {
	text-align: right;
}

.post-nav__item a {
	display: inline-block;
	text-decoration: none;
}

.post-nav__item .dir {
	display: block;
	font-family: var(--font-heading);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--primary-color);
	margin-bottom: 0.35rem;
}

.post-nav__item .ttl {
	color: var(--heading-color);
	font-weight: 600;
}

.post-nav__item a:hover .ttl {
	color: var(--primary-color);
}

/* ---- Sidebar ---- */
.blog-sidebar .widget {
	background-color: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	margin-bottom: 1.75rem;
}

.blog-sidebar .widget-title {
	font-size: var(--h5-size);
	font-weight: 600;
	margin-bottom: 1.1rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--primary-color);
	display: inline-block;
}

.widget--search .blog-search {
	min-width: 0;
	width: 100%;
}

.widget-cats {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget-cats li {
	display: flex;
	justify-content: space-between;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--border-color);
}

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

.widget-cats a {
	color: var(--text-dark);
	text-decoration: none;
}

.widget-cats a:hover {
	color: var(--primary-color);
}

.widget-recent {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget-recent li {
	margin-bottom: 1rem;
}

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

.widget-recent a {
	display: flex;
	gap: 0.85rem;
	text-decoration: none;
}

.widget-recent__thumb img {
	width: 64px;
	height: 64px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.widget-recent__meta .date {
	display: block;
	font-size: 0.78rem;
	color: var(--text-color);
	margin-bottom: 0.2rem;
}

.widget-recent__meta .title {
	color: var(--heading-color);
	font-weight: 500;
	font-size: 0.92rem;
	line-height: 1.4;
}

.widget-recent a:hover .title {
	color: var(--primary-color);
}

.widget-tags {
	display: flex;
	flex-wrap: wrap;
}

.widget--cta {
	background-color: var(--bg-dark) !important;
	color: var(--white);
	text-align: center;
	border-color: var(--bg-dark) !important;
}

.widget-cta__icon {
	display: inline-grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background-color: var(--primary-color);
	color: var(--white);
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.widget--cta h3 {
	color: var(--white);
	font-size: var(--h4-size);
	margin-bottom: 0.5rem;
}

.widget--cta p {
	color: var(--text-light);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.widget-cta__phone {
	display: inline-block;
	color: var(--white);
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
	.blog-featured {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.blog-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.blog-search {
		min-width: 0;
		width: 100%;
	}

	.single-section .col-lg-4 {
		margin-top: 2.5rem;
	}
}

/* ---- Search results (tabbed) ---- */
.search-results-section {
	padding-top: 2.5rem;
	padding-bottom: 1.4rem;
}
section.search-results-section .section-heading.text-center {
    margin: 0 auto;
}
.search-summary {
	margin-bottom: 2rem;
}
section.search-results-section .section-heading.text-center {
    margin: 0 auto;
}

input.search-submit {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    padding: .4rem 1.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.25s;
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    border-radius: 0px;
}
input.search-submit:hover{
	background:#000;
}
input.search-field {
    border: 2px solid var(--primary-color);
    font-weight: 400;
    font-size: 1rem;
    padding: .5rem 1rem;
}
.search-tabs {
	border-bottom: 1px solid var(--border-color);
	gap: 0.5rem;
	margin-bottom: 2.5rem;
}

.search-tabs .nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	padding: 0.75rem 1.25rem;
	font-family: var(--font-heading);
	font-size: var(--small-size);
	font-weight: 600;
	color: var(--text-color);
	background: none;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.search-tabs .nav-link i {
	font-size: 0.95em;
}

.search-tabs .nav-link:hover:not(.disabled):not(:disabled),
.search-tabs .nav-link:focus-visible {
	color: var(--primary-color);
	border-bottom-color: rgba(0, 0, 0, 0.1);
}

.search-tabs .nav-link.active {
	color: var(--primary-color);
	background: none;
	border-bottom-color: var(--primary-color);
}

.search-tabs .nav-link:disabled,
.search-tabs .nav-link.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.search-tabs__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.45rem;
	border-radius: var(--radius-pill);
	background-color: var(--bg-light, #f1f3f5);
	color: var(--text-color);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
}

.search-tabs .nav-link.active .search-tabs__count {
	background-color: var(--primary-color);
	color: var(--white);
}

/* Categories / Tags term pills */
.search-term-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-term-list .pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-pill);
	font-size: var(--small-size);
	font-weight: 500;
	color: var(--text-dark);
	background-color: var(--white);
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.search-term-list .pill:hover,
.search-term-list .pill:focus-visible {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white);
}

.search-term-list .pill:hover .search-tabs__count,
.search-term-list .pill:focus-visible .search-tabs__count {
	background-color: rgba(255, 255, 255, 0.25);
	color: var(--white);
}

.search-empty,
.search-no-results {
	padding: 2rem 0;
	color: var(--text-color);
}

.search-no-results .search-form,
.search-no-results form {
	max-width: 480px;
	margin: 1.5rem auto 0;
	justify-content: center;
}

@media (max-width: 575.98px) {
	.search-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start !important;
		-webkit-overflow-scrolling: touch;
	}

	.search-tabs .nav-item {
		flex: 0 0 auto;
	}
}
