/* Global Flatsome blog card beautification for UX Builder compatibility */
.post-item .box {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02) !important;
    border: 1px solid #f1f3f5 !important;
    transition: all 0.25s ease-in-out !important;
}
.post-item .box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
    border-color: #dee2e6 !important;
    border: 1px solid #dee2e6 !important;
}
.post-item .box-image {
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}
.post-item .box-image img {
    transition: transform 0.5s ease !important;
}
.post-item .box:hover .box-image img {
    transform: scale(1.04) !important;
}
.post-item .box-text {
    padding: 20px !important;
}
.post-item .box-text h5 {
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}
.post-item .box-text h5 a {
    color: #111 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.post-item .box:hover .box-text h5 a {
    color: #db0404 !important;
}

/* Single Post styling overrides, loaded only on singular post pages */
.entry-header.text-center {
    padding: 40px 0 20px 0 !important;
}
.entry-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #111 !important;
    margin-bottom: 15px !important;
    text-transform: none !important;
}
.entry-meta {
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #8c92a0 !important;
}

/* Single Post Content Area */
.entry-content {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
}
.entry-content p {
    margin-bottom: 25px !important;
}
.entry-content h2, .entry-content h3 {
    font-weight: 800 !important;
    color: #111 !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}
.entry-content h2 {
    font-size: 26px !important;
}
.entry-content h3 {
    font-size: 20px !important;
}

/* Blockquote Styling */
.entry-content blockquote {
    border-left: 4px solid #db0404 !important;
    padding: 15px 25px !important;
    margin: 30px 0 !important;
    background-color: #f8f9fa !important;
    font-style: italic !important;
    color: #555 !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 50px 0 30px 0;
    border: 1px solid #e9ecef;
}
.author-box-avatar {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}
.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-box-content {
    flex: 1;
}
.author-box-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: #111;
}
.author-box-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Related Posts */
.related-posts-section {
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
}
.related-posts-heading {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #111;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.01);
    transition: all 0.2s ease;
}
.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
    border-color: #dee2e6;
}
.related-post-image {
    height: 140px;
    overflow: hidden;
}
.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-post-body {
    padding: 15px;
}
.related-post-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.related-post-title a {
    color: #111;
    text-decoration: none;
}
.related-post-title a:hover {
    color: #db0404;
}
.related-post-date {
    font-size: 11px;
    color: #8c92a0;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .entry-title {
        font-size: 26px !important;
    }
}

/* ==========================================================================
   2. Premium Blog Template Styles (from template-blog-premium.php)
   ========================================================================== */

.blog-premium-container {
	padding: 40px 0;
	background-color: #fafbfc;
}
.blog-hero-section {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.04);
	border: 1px solid #f1f3f5;
	margin-bottom: 50px;
	transition: all 0.3s ease;
}
.blog-hero-section:hover {
	box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.blog-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
}
.blog-hero-image {
	height: 400px;
	overflow: hidden;
	position: relative;
}
.blog-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.blog-hero-section:hover .blog-hero-image img {
	transform: scale(1.03);
}
.blog-hero-content {
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cat-badge {
	display: inline-block;
	background: #db0404;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
	margin-bottom: 20px;
	letter-spacing: 1px;
	width: fit-content;
}
.blog-hero-title {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 15px;
	color: #111;
}
.blog-hero-title a {
	color: #111;
	text-decoration: none;
	transition: color 0.2s ease;
}
.blog-hero-title a:hover {
	color: #db0404;
}
.blog-hero-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
}
.post-meta-details {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #8c92a0;
}
.author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
}
.author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.author-name {
	font-weight: 700;
	color: #333;
}

/* Category Filter Bar */
.blog-filter-bar {
	display: flex;
	gap: 10px;
	margin-bottom: 40px;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 15px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}
.blog-filter-bar::-webkit-scrollbar {
	height: 4px;
}
.blog-filter-bar::-webkit-scrollbar-thumb {
	background-color: #dee2e6;
	border-radius: 4px;
}
.filter-tab {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 30px;
	background: #f1f3f5;
	color: #495057;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}
.filter-tab:hover,
.filter-tab.active {
	background: #252525;
	color: #fff;
	transform: translateY(-1px);
}

/* Post Cards Grid */
.blog-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin-bottom: 50px;
}
.blog-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.02);
	border: 1px solid #f1f3f5;
	display: flex;
	flex-direction: column;
	height: 440px;
	transition: all 0.25s ease-in-out;
}
.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.06);
	border-color: #dee2e6;
}
.blog-card-image {
	height: 200px;
	overflow: hidden;
	position: relative;
}
.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img {
	transform: scale(1.04);
}
.blog-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.blog-card-cat {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	color: #db0404;
	letter-spacing: 1px;
	margin-bottom: 10px;
}
.blog-card-title {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
	margin-bottom: 10px;
	color: #111;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	height: 45px;
}
.blog-card-title a {
	color: #111;
	text-decoration: none;
	transition: color 0.2s ease;
}
.blog-card-title a:hover {
	color: #db0404;
}
.blog-card-excerpt {
	font-size: 13px;
	line-height: 1.5;
	color: #666;
	margin-bottom: 15px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	flex: 1;
}
.blog-card-footer {
	border-top: 1px solid #f1f3f5;
	padding-top: 12px;
	margin-top: auto;
}

/* AJAX Loader Styles */
.blog-ajax-loading {
	position: relative;
	pointer-events: none;
}
.blog-ajax-loading::after {
	content: "";
	position: absolute;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #db0404;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	z-index: 99;
}
@keyframes spin {
	0% { transform: translateX(-50%) rotate(0deg); }
	100% { transform: translateX(-50%) rotate(360deg); }
}

@media (max-width: 990px) {
	.blog-hero-grid {
		grid-template-columns: 1fr;
	}
	.blog-hero-image {
		height: 280px;
	}
	.blog-hero-content {
		padding: 25px;
	}
}

@media (max-width: 768px) {
	.blog-cards-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.blog-card {
		height: auto;
	}
	.blog-card-image {
		height: 180px;
	}
}

.meta-dot {
	margin: 0 5px;
}
.blog-pagination-wrapper {
	text-align: center;
	margin-top: 40px;
}
.brand__title {
	margin-bottom: 30px;
}
