/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

@charset "UTF-8";

/* ============================================
   SINGLE POST PAGE STYLES
   ============================================ */

/* Hide default WordPress page title banner on single posts */
.single .wd-page-title,
.single .wd-page-title-bg {
	display: none !important;
}

/* Custom Banner */
.wd-custom-page-banner {
	background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
	background-color: #4a4a4a;
	padding: 30px 20px;
	position: relative;
	min-height: 80px;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	box-sizing: border-box;
}

.wd-custom-banner-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}

.wd-custom-banner-title {
	font-size: 32px;
	font-weight: 600;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	margin: 0;
}

/* Single Post Container */
.wd-single-post {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.wd-single-post-header {
	margin-bottom: 30px;
	text-align: center;
}

.wd-single-post-title {
	font-size: 32px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
	margin-bottom: 20px;
	text-align: center;
}

.wd-single-post-thumbnail {
	margin-bottom: 30px;
	text-align: center;
	width: 100%;
}

.wd-single-featured-img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	margin: 0 auto;
	display: block;
}

.wd-single-post-content {
	font-size: 17px;
	line-height: 1.8;
	color: #333;
	text-align: justify;
}

.wd-single-post-content p {
	margin-bottom: 18px;
	font-size: 17px;
	line-height: 1.8;
	text-align: justify;
}

.wd-single-post-content strong {
	font-weight: 600;
	color: #000;
}

/* Responsive adjustments for single post */
@media (max-width: 768px) {
	.wd-custom-page-banner {
		padding: 20px 15px;
		min-height: 60px;
	}
	
	.wd-custom-banner-inner {
		min-height: 60px;
	}
	
	.wd-custom-banner-title {
		font-size: 20px;
	}
	
	.wd-single-post {
		padding: 30px 15px;
	}
	
	.wd-single-post-title {
		font-size: 24px;
	}
	
	.wd-single-post-content {
		font-size: 15px;
		line-height: 1.7;
		text-align: left;
	}
	
	.wd-single-post-content p {
		font-size: 15px;
		line-height: 1.7;
		text-align: left;
	}
	
	.wd-single-featured-img {
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}
}

@media (max-width: 480px) {
	.wd-custom-banner-title {
		font-size: 16px;
	}
}

/* Ensure blog cards have equal height */
.wd-post,
article.wd-post {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
}

.wd-post-inner,
.wd-post-inner.article-inner {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	flex: 1 1 auto !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	overflow: hidden !important;
}

/* Card image - 20% larger than previous, ensure images are fully visible */
.wd-post-thumb {
	padding-bottom: 36% !important;
	min-height: 168px !important;
	max-height: 216px !important;
	overflow: hidden !important;
	border-radius: 8px 8px 0 0 !important;
}

.wd-post-img {
	max-height: 216px !important;
	overflow: visible !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.wd-post-img img {
	max-height: 216px !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
}

/* Card content padding - 20% larger */
.wd-post-content {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	padding: 18px !important;
	border-radius: 0 0 8px 8px !important;
}

/* Title - 20% larger */
.wd-post-title {
	margin-bottom: 12px !important;
	font-size: 22px !important;
	line-height: 1.3 !important;
}

/* Excerpt - 3 lines, 20% larger font, justified text */
.wd-post-excerpt {
	flex: 1 1 auto !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 3 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	max-height: 4.8em !important;
	font-size: 17px !important;
	line-height: 1.6 !important;
	margin-bottom: 12px !important;
	text-align: justify !important;
}

.wd-post-excerpt p {
	margin-bottom: 0 !important;
	font-size: 17px !important;
	line-height: 1.6 !important;
	text-align: justify !important;
}

/* Read more button - 20% larger */
.wd-post-read-more,
.wd-read-more-btn,
a[class*="read-more"] {
	margin-top: auto !important;
	flex-shrink: 0 !important;
	padding: 10px 20px !important;
	font-size: 15px !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.wd-post,
	article.wd-post {
		height: 100% !important;
	}
	
	.wd-post-thumb {
		padding-bottom: 42% !important;
		min-height: 156px !important;
		max-height: 192px !important;
	}
	
	.wd-post-img,
	.wd-post-img img {
		max-height: 192px !important;
	}
	
	.wd-post-content {
		padding: 14px !important;
	}
	
	.wd-post-title {
		font-size: 20px !important;
		margin-bottom: 10px !important;
	}
	
	.wd-post-excerpt {
		font-size: 15px !important;
		-webkit-line-clamp: 3 !important;
	}
}

@media (max-width: 768px) {
	.wd-post,
	article.wd-post {
		height: 100% !important;
	}
	
	.wd-post-thumb {
		padding-bottom: 48% !important;
		min-height: 144px !important;
		max-height: 180px !important;
	}
	
	.wd-post-img,
	.wd-post-img img {
		max-height: 180px !important;
	}
	
	.wd-post-content {
		padding: 14px !important;
	}
	
	.wd-post-title {
		font-size: 19px !important;
		margin-bottom: 10px !important;
	}
	
	.wd-post-excerpt {
		font-size: 15px !important;
		-webkit-line-clamp: 3 !important;
	}
	
}
