/**
 * Premium Blog Layout Styling for TechChartered
 *
 * @package Tech_Chartered
 * @since 1.0.0
 */

/* Color system variable mappings */
:root {
	--blog-dark: #061225;
	--blog-primary: #0f4c81;
	--blog-accent: #f4b400;
	--blog-text-main: #334155;
	--blog-text-muted: #64748b;
	--blog-border: #e2e8f0;
	--blog-bg-light: #f8fafc;
	--blog-white: #ffffff;
}

/* Base Wrapper & Page Layout */
.blog-landing-page {
	font-family: 'Inter', sans-serif;
	color: var(--blog-text-main);
	background-color: #fafbfc;
}

/* Hero Header styling */
.blog-hero {
	background: linear-gradient(135deg, var(--blog-dark) 0%, #0f172a 50%, var(--blog-primary) 100%);
	color: var(--blog-white);
	padding: 90px 0 80px;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.blog-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
	background-size: 24px 24px;
	pointer-events: none;
}

.blog-hero-content {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.blog-hero .internal-breadcrumbs {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.blog-hero .internal-breadcrumbs a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.25s ease;
}

.blog-hero .internal-breadcrumbs a:hover {
	color: var(--blog-accent);
}

.blog-hero .internal-breadcrumbs .sep {
	color: rgba(255, 255, 255, 0.3);
}

.blog-hero .internal-breadcrumbs .current {
	color: var(--blog-accent);
}

.blog-hero .internal-hero-title {
	font-family: 'Poppins', sans-serif;
	font-size: 3rem;
	font-weight: 800;
	color: var(--blog-white);
	margin: 0 0 15px 0;
	line-height: 1.2;
}

.blog-hero-subtitle {
	font-size: 1.15rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 35px;
	font-weight: 400;
}

/* Hero Search Bar */
.blog-hero-search-wrap {
	max-width: 600px;
	margin: 0 auto;
}

.blog-search-form .search-input-group {
	display: flex;
	background: var(--blog-white);
	border-radius: 50px;
	padding: 6px 6px 6px 20px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
	align-items: center;
}

.blog-search-form .search-icon {
	color: var(--blog-text-muted);
	margin-right: 12px;
	flex-shrink: 0;
}

.blog-search-form .search-field {
	border: none;
	background: transparent;
	width: 100%;
	padding: 10px 0;
	font-size: 1rem;
	color: var(--blog-dark);
	outline: none;
}

.blog-search-form .search-submit-btn {
	background: var(--blog-primary);
	color: var(--blog-white);
	border: none;
	border-radius: 50px;
	padding: 12px 30px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.25s ease;
}

.blog-search-form .search-submit-btn:hover {
	background: var(--blog-accent);
	color: var(--blog-dark);
}

/* Category Filter Bar */
.blog-nav-filter-section {
	background: var(--blog-white);
	border-bottom: 1px solid var(--blog-border);
	padding: 20px 0;
}

.blog-categories-filter {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.blog-categories-filter .filter-label {
	font-weight: 700;
	color: var(--blog-dark);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.blog-categories-filter .filter-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.blog-categories-filter .filter-list li a {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 30px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--blog-text-muted);
	border: 1px solid var(--blog-border);
	transition: all 0.25s ease;
}

.blog-categories-filter .filter-list li.active a,
.blog-categories-filter .filter-list li a:hover {
	background: var(--blog-primary);
	color: var(--blog-white);
	border-color: var(--blog-primary);
}

/* Featured Post Card styling */
.featured-post-card {
	display: flex;
	background: var(--blog-white);
	border: 1px solid var(--blog-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	margin-bottom: 60px;
	transition: all 0.3s ease;
}

.featured-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.featured-image-col {
	width: 55%;
	position: relative;
	min-height: 380px;
}

.featured-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.featured-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-card-img {
	transform: scale(1.03);
}

.featured-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: var(--blog-accent);
	color: var(--blog-dark);
	font-size: 0.75rem;
	font-weight: 800;
	padding: 6px 14px;
	border-radius: 30px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 10px rgba(244, 180, 0, 0.3);
}

.featured-info-col {
	width: 45%;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.post-meta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--blog-text-muted);
}

.post-cat-badge {
	background: rgba(15, 76, 129, 0.08);
	color: var(--blog-primary);
	padding: 4px 12px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.post-cat-badge:hover {
	background: var(--blog-primary);
	color: var(--blog-white);
}

.featured-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 15px 0;
}

.featured-title a {
	color: var(--blog-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

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

.featured-excerpt {
	color: var(--blog-text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 30px;
}

.featured-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--blog-border);
	padding-top: 25px;
	margin-top: auto;
}

.post-author-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.author-avatar-placeholder {
	width: 32px;
	height: 32px;
	background: var(--blog-primary);
	color: var(--blog-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
}

.post-author-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--blog-dark);
}

.featured-read-more-btn {
	color: var(--blog-primary);
	font-weight: 700;
	text-decoration: none;
	font-size: 0.9rem;
	transition: transform 0.25s ease;
}

.featured-read-more-btn:hover {
	transform: translateX(5px);
}

/* Two Column Blog Layout */
.internal-layout-columns {
	display: flex;
	gap: 40px;
}

.blog-posts-main {
	flex: 1;
	min-width: 0;
}

.section-subheading {
	font-family: 'Poppins', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--blog-dark);
	margin: 0 0 25px 0;
	position: relative;
	padding-bottom: 8px;
}

.section-subheading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--blog-primary);
}

/* Blog Post Grid */
.blog-grid-system {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

.blog-card {
	background: var(--blog-white);
	border: 1px solid var(--blog-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.06);
	border-color: rgba(15, 76, 129, 0.15);
}

.blog-card-image-wrap {
	width: 100%;
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.blog-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
	transform: scale(1.04);
}

.blog-card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-card-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	font-size: 0.775rem;
}

.blog-card-cat a {
	color: var(--blog-primary) !important;
	background: rgba(15, 76, 129, 0.08);
	padding: 4px 10px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.blog-card-cat a:hover {
	background: var(--blog-primary);
	color: var(--blog-white) !important;
}

.blog-card-read-time {
	color: var(--blog-text-muted);
	font-weight: 500;
}

.blog-card-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.15rem;
	line-height: 1.45;
	margin: 0 0 10px 0;
	font-weight: 700;
}

.blog-card-title a {
	color: var(--blog-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

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

.blog-card-excerpt {
	color: var(--blog-text-muted);
	font-size: 0.875rem;
	line-height: 1.55;
	margin-bottom: 20px;
	flex-grow: 1;
}

.blog-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #f1f5f9;
	padding-top: 15px;
	margin-bottom: 15px;
	font-size: 0.8rem;
}

.blog-card-date {
	color: var(--blog-text-muted);
	font-weight: 500;
}

.blog-card-action {
	margin-top: auto;
}

.blog-card .blog-read-more-btn {
	display: inline-flex;
	align-items: center;
	color: var(--blog-primary);
	font-weight: 700;
	text-decoration: none;
	font-size: 0.875rem;
	transition: transform 0.2s ease;
}

.blog-card:hover .blog-read-more-btn {
	color: var(--blog-accent);
}

.blog-card .blog-read-more-btn:hover {
	transform: translateX(4px);
}

/* Sidebar Widgets Redesign */
.blog-sidebar {
	width: 340px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 35px;
}

.sidebar-widget {
	background: var(--blog-white);
	border: 1px solid var(--blog-border);
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.sidebar-widget-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--blog-dark);
	margin: 0 0 20px 0;
	position: relative;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

.sidebar-widget-title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--blog-primary);
}

/* Widget Lists */
.sidebar-menu, .sidebar-popular-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sidebar-menu li a, .popular-post-link, .recent-post-link {
	display: block;
	text-decoration: none;
	color: var(--blog-text-main);
	transition: all 0.2s ease;
}

.sidebar-menu li a {
	font-weight: 600;
	font-size: 0.9rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sidebar-menu li a .cat-count {
	font-weight: 400;
	color: var(--blog-text-muted);
	background: var(--blog-bg-light);
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.775rem;
}

.sidebar-menu li a:hover {
	color: var(--blog-primary);
	transform: translateX(4px);
}

.popular-post-link, .recent-post-link {
	padding: 10px;
	background: var(--blog-bg-light);
	border-left: 3px solid var(--blog-primary);
	border-radius: 0 6px 6px 0;
}

.popular-post-link:hover, .recent-post-link:hover {
	background: rgba(15, 76, 129, 0.04);
	border-left-color: var(--blog-accent);
}

.popular-post-title, .recent-post-title {
	display: block;
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--blog-dark);
	margin-bottom: 4px;
}

.popular-post-meta, .recent-post-meta {
	font-size: 0.75rem;
	color: var(--blog-text-muted);
}

.sidebar-popular-list, .sidebar-recent-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	padding: 0;
}

/* Tag Cloud Widget */
.tags-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-pill {
	display: inline-block;
	padding: 5px 12px;
	background: var(--blog-bg-light);
	border: 1px solid var(--blog-border);
	border-radius: 4px;
	font-size: 0.775rem;
	font-weight: 600;
	color: var(--blog-text-main);
	text-decoration: none;
	transition: all 0.2s ease;
}

.tag-pill:hover {
	background: var(--blog-primary);
	color: var(--blog-white);
	border-color: var(--blog-primary);
}

/* CTA Sidebar Widget */
.sidebar-cta-widget {
	background: linear-gradient(135deg, var(--blog-dark) 0%, var(--blog-primary) 100%);
	color: var(--blog-white);
	border: none;
	position: relative;
	overflow: hidden;
}

.sidebar-cta-widget::before {
	content: '';
	position: absolute;
	bottom: -40px;
	right: -40px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
}

.cta-badge {
	display: inline-block;
	background: var(--blog-accent);
	color: var(--blog-dark);
	font-weight: 800;
	font-size: 0.75rem;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	letter-spacing: 0.05em;
}

.sidebar-cta-widget .sidebar-widget-title {
	border-bottom: none;
	margin-bottom: 12px;
	padding-bottom: 0;
}

.sidebar-cta-widget .sidebar-widget-title::after {
	display: none;
}

.cta-text {
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 22px;
}

.sidebar-cta-btn {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 0.9rem;
	padding: 12px;
	background: var(--blog-accent);
	color: var(--blog-dark) !important;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(244, 180, 0, 0.2);
	transition: all 0.25s ease;
}

.sidebar-cta-btn:hover {
	background: var(--blog-white);
	color: var(--blog-primary) !important;
	transform: translateY(-2px);
}

/* Pagination Section styling */
.blog-pagination .nav-links {
	display: flex;
	gap: 6px;
	justify-content: center;
	align-items: center;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: var(--blog-white);
	border: 1px solid var(--blog-border);
	color: var(--blog-dark);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	transition: all 0.25s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
	background: var(--blog-primary);
	border-color: var(--blog-primary);
	color: var(--blog-white) !important;
	box-shadow: 0 4px 10px rgba(15, 76, 129, 0.3);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
	width: auto;
	padding: 0 16px;
}

/* Bottom CTA Grid */
.blog-bottom-cta {
	background: var(--blog-bg-light);
	border-top: 1px solid var(--blog-border);
	padding: 80px 0;
}

.bottom-cta-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.cta-newsletter-box, .cta-consult-box {
	background: var(--blog-white);
	border: 1px solid var(--blog-border);
	border-radius: 16px;
	padding: 45px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	transition: all 0.3s ease;
}

.cta-newsletter-box:hover, .cta-consult-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cta-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: rgba(15, 76, 129, 0.06);
	color: var(--blog-primary);
	border-radius: 12px;
	margin-bottom: 24px;
}

.cta-newsletter-box h3, .cta-consult-box h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--blog-dark);
	margin: 0 0 12px 0;
}

.cta-newsletter-box p, .cta-consult-box p {
	font-size: 0.925rem;
	line-height: 1.6;
	color: var(--blog-text-muted);
	margin-bottom: 30px;
}

/* Newsletter Input Form */
.blog-newsletter-form {
	display: flex;
	width: 100%;
	gap: 10px;
	margin-top: auto;
}

.blog-newsletter-form input {
	flex: 1;
	border: 1px solid var(--blog-border);
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 0.9rem;
	outline: none;
	transition: border-color 0.25s ease;
}

.blog-newsletter-form input:focus {
	border-color: var(--blog-primary);
}

.newsletter-submit-btn {
	background: var(--blog-primary);
	color: var(--blog-white);
	border: none;
	border-radius: 6px;
	padding: 12px 24px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.25s ease;
}

.newsletter-submit-btn:hover {
	background: var(--blog-dark);
}

.cta-consult-box .tech-chartered-btn {
	display: inline-block;
	background: var(--blog-accent);
	color: var(--blog-dark) !important;
	border: none;
	padding: 14px 28px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	text-align: center;
	transition: all 0.25s ease;
	box-shadow: 0 4px 15px rgba(244, 180, 0, 0.2);
	margin-top: auto;
}

.cta-consult-box .tech-chartered-btn:hover {
	background: var(--blog-primary);
	color: var(--blog-white) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(15, 76, 129, 0.2);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
	.featured-post-card {
		flex-direction: column;
	}
	.featured-image-col {
		width: 100%;
		min-height: 300px;
	}
	.featured-info-col {
		width: 100%;
		padding: 30px;
	}
}

@media (max-width: 992px) {
	.internal-layout-columns {
		flex-direction: column;
		gap: 50px;
	}
	.blog-sidebar {
		width: 100%;
	}
	.bottom-cta-grid {
		grid-template-columns: 1fr;
	}
	.blog-hero .internal-hero-title {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	.blog-grid-system {
		grid-template-columns: 1fr;
	}
	.blog-hero {
		padding: 60px 0;
	}
	.blog-hero .internal-hero-title {
		font-size: 2rem;
	}
	.blog-hero-subtitle {
		font-size: 1rem;
		margin-bottom: 25px;
	}
	.blog-search-form .search-input-group {
		flex-direction: column;
		border-radius: 12px;
		padding: 10px;
		gap: 10px;
	}
	.blog-search-form .search-icon {
		display: none;
	}
	.blog-search-form .search-field {
		text-align: center;
		padding: 5px;
	}
	.blog-search-form .search-submit-btn {
		width: 100%;
		border-radius: 6px;
	}
	.blog-categories-filter {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.cta-newsletter-box, .cta-consult-box {
		padding: 30px;
	}
	.blog-newsletter-form {
		flex-direction: column;
	}
	.newsletter-submit-btn {
		width: 100%;
	}
}
