﻿/* Base Styles */
main-container-body {
	flex: 1;
	min-height: calc(100vh - 200px); /* adjust based on header/footer height */
	margin: 0;
	font-family: Arial, sans-serif;
	background-color: #121212;
	color: #ffffff;
	padding: 10px;
}

/* Container for consistent alignment */
.banner-container-latest-posts {
	max-width: 980px;
	margin: 0 auto;
	padding-top: 10px;
}

/* Post Banner */
.banner {
	margin-top: 0px; /* Add spacing above */
	padding-left: 10px;
	padding-right: 0px;
	padding-top: 3px;
	padding-bottom: 4px;
	text-align: left;
	font-size: 1.4em;
	font-family: Georgia, 'Times New Roman', Times, serif;
	background-color: #2a2a2a;
	color: rgb(53, 107, 255);
	border-radius: 8px;
	border-width: 1px;
	border-color: #323232;
	border-style: groove;
}

.latest-posts-container {
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
}

/* Latest Post Panels */
.latest-posts {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
	gap: 10px;
	margin-top: 10px;
}

.latest-post-panel {
	display: flex;
	flex-direction: column;
	flex: 1 1 300px;
	background-color: #2a2a2a;
	padding: 10px;
	border-radius: 8px;
	overflow: hidden;
}

.latest-post-link {
	text-decoration: none;
	color: #ffffff;
}

.latest-featured-img-home {
	width: 100%;
	max-width: 630px;
	height: 169px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0px;

}

img.latest-featured-img {
	transition: transform 0.3s ease;
}

	img.latest-featured-img:hover {
		transform: scale(1.105) translateY(-5px); /* Slightly enlarge by 5% */
	}

.latest-post-info-home {
	display: flex;
	flex-direction: column;
	justify-content: start;
	flex-grow: 1;
	margin-bottom: 4px;
}

.latest-post-title {
	font-weight: normal;
	font-size: 1.25em;
}

.latest-post-date {
	font-size: 0.8rem;
	color: rgb(107, 250, 119);
}

.latest-post-minutes {
	font-size: 0.8rem;
	color: rgb(107, 250, 119);
}

.latest-post-minutesgreen {
	font-size: 0.8rem;
	color: rgb(107, 250, 119);
}

.latest-post-author {
	font-size: 0.8rem;
	color: #ffffff;
}

.latest-post-author-name {
	font-size: 0.8rem;
	color: rgb(107, 250, 119);
}


.latest-post-category {
	font-size: 0.8rem;
	color: rgb(53, 107, 255);
	/*color: rgb(41,109,204);*/
	/* 107, 145, 250 */
	text-decoration: none;
}

.latest-post-tag {
	font-size: 0.8rem;
	text-decoration: none;
}

	.latest-post-tag a:link {
		color: rgb(229, 116, 46);
    }
	.latest-post-tag a:visited {
		color: rgb(229, 116, 46);
	}

	.latest-post-tag a:hover {
		color: orange;
	}
	.latest-post-tag a:active {
		color: rgb(229, 116, 46);
	}




.latest-post-summary {
	margin: 0;
	margin-top: 4px;
	font-size: 1.5em;
}

.latest-post-date strong,
.latest-post-category strong,
.latest-post-tag strong {
	color: #ffffff;
	font-weight: 500;
}


/* Latest Post Panels */






.container-topic-panels {
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
}



.container-banner {
	max-width: 980px;
	margin: 0 auto;
	margin-top: 20px;
}

.topic-panel-categories {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
	gap: 10px;
	margin-top: 10px;
}

.topic-panel-categories-section {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
	gap: 10px;
	margin-top: 10px;
	margin-bottom: 20px;
}

.topic-panel-categories-panel {
	display: flex;
	flex-direction: column;
	flex: 1 1 300px;
	background-color: #2a2a2a;
	padding: 0px;
	border-radius: 8px;
	overflow: hidden;
}

.topic-name-link-bg {
	display: block;
	height: 150px;
	background-image: url('learn-and-build-electronics.jpg');
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	margin-bottom: 0px;
}

/* Optional label styling */
.topic-name-label {
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color: rgba(0,0,0,0.6);
	color: rgb(107, 250, 119);
	text-align: center;
	padding: 10px;
	font-weight: bold;
}





/* Bottom Category, Tag and Pages Panels */
.bottom-cats-tags-pages-container {
	max-width: 980px;
	margin: 0 auto;
	padding-bottom: 0px;
	background: #1e1e1e;
}

.bottom-cats-tags-pages-banner {
	margin-top: 0px; /* Add spacing above */
	margin-bottom: 0px;
	height: 20px;
	background-color: #2a2a2a;
	border-radius: 7px;
	border-width: 1px;
	border-color: #323232;
	border-style: groove;
}

.bottom-ctp {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
	gap: 10px;
	margin-top: 10px;
}

.bottom-ctp-panel {
	display: flex;
	flex-direction: column;
	flex: 1 1 300px;
	background-color: #2a2a2a;
	color: #ffffff;
	padding: 10px;
	border-radius: 8px;
	overflow: hidden;
}

.bottom-ctp-panel-footer {
	display: flex;
	flex-direction: column;
	flex: 1 1 300px;
	background-color: #2a2a2a;
	color: #ffffff;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 8px;
	overflow: hidden;
}

.box-title {
	color: #ffffff;
	text-align: center;
	padding-bottom: 0px;
	font-weight: bold;
	font-size: 1.38em;
}

.box-title-hr {
	color: #ffffff;
	margin: 5px 0px 10px 0px;
}
	
	
.cat-listing-title-midbottom-section {
	padding-left: 5px;
	padding-right: 5px;
	font-size: .8em;
	margin-bottom: -2px;
	font-weight: bold;
}

.cat-listing-midbottom-section {
	padding-left: 5px;
	padding-right: 5px;
	font-size: .9em;
	margin-bottom: -2px;
}

.cat-listing-midbottom-section a {
	text-decoration: none;
}

	.cat-listing-midbottom-section a:link {
		text-decoration: none;
	}
	.cat-listing-midbottom-section a:hover {
		text-decoration: none;
	}

	.cat-listing-midbottom-section a:visited {
		text-decoration: none;
	}

	.cat-listing-midbottom-section a:active {
		text-decoration: none;
	}


.tag-listing {
	padding-left: 5px;
	padding-right: 5px;
	font-size: .8em;
}

.page-listing {
	font-size: .8em;
	margin: 0 auto;
}


img.hover-zoom {
	transition: transform 0.3s ease;
}

	img.hover-zoom:hover {
		transform: scale(1.10); /* Slightly enlarge by 5% */
	}


.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0px; /* reduce spacing between tags */
	line-height: .4; /* minimize vertical spacing */
	padding: 0;
	margin: 0;
}

	.tag-cloud a {
		text-decoration: none;
		padding: 2px 4px; /* optional: add subtle padding */
		border-radius: 4px; /* optional: rounded corners */
		transition: all 0.2s ease-in-out;
		font-weight: bold;
	}


		.tag-cloud a:hover {
			
			filter: brightness(2.0);
		}



