/* Archive & Category Templates */
.itg-archive-container,
.itg-category-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.itg-archive-header,
.itg-category-header {
	margin-bottom: 3rem;
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 2rem;
}

.itg-archive-title,
.itg-category-title {
	font-size: 2.5rem;
	margin: 0 0 1rem;
	color: #333;
}

.itg-archive-description,
.itg-category-description {
	font-size: 1.1rem;
	color: #666;
	line-height: 1.6;
}

.itg-category-sidebar {
	background: #f9f9f9;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 2rem;
}

.itg-category-meta {
	font-size: 0.95rem;
	color: #555;
}

.itg-subcategories {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #ddd;
}

.itg-subcategories h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	color: #333;
}

.itg-subcategories ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.itg-subcategories li {
	margin: 0.5rem 0;
}

.itg-subcategories a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.3s;
}

.itg-subcategories a:hover {
	color: #004499;
	text-decoration: underline;
}

/* Post Card */
.itg-post-card {
	margin-bottom: 2.5rem;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.itg-post-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.itg-post-card-inner {
	display: flex;
	flex-direction: row;
}

.itg-post-thumbnail {
	flex: 0 0 30%;
	overflow: hidden;
	background: #f5f5f5;
}

.itg-post-thumbnail img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: transform 0.3s;
}

.itg-post-card:hover .itg-post-thumbnail img {
	transform: scale(1.05);
}

.itg-post-thumbnail a {
	display: block;
	height: 100%;
}

.itg-post-content {
	flex: 1;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
}

.itg-post-header {
	margin-bottom: 1rem;
}

.itg-post-title {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
	line-height: 1.3;
}

.itg-post-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s;
}

.itg-post-title a:hover {
	color: #0066cc;
}

.itg-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.9rem;
	color: #777;
	margin: 0.75rem 0;
}

.itg-post-date,
.itg-post-author,
.itg-post-categories {
	display: inline-flex;
	align-items: center;
}

.itg-post-author a,
.itg-post-categories a {
	color: #0066cc;
	text-decoration: none;
	margin-left: 0.3rem;
	transition: color 0.3s;
}

.itg-post-author a:hover,
.itg-post-categories a:hover {
	color: #004499;
	text-decoration: underline;
}

.itg-post-excerpt {
	flex: 1;
	margin: 1rem 0;
	color: #555;
	line-height: 1.6;
	font-size: 0.95rem;
}

.itg-read-more {
	display: inline-block;
	color: #0066cc;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s;
	margin-top: 0.5rem;
}

.itg-read-more:hover {
	color: #004499;
	margin-right: -0.25rem;
}

/* Single Post */
.itg-single-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem;
}

.itg-single-post {
	margin-bottom: 3rem;
}

.itg-single-header {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid #e0e0e0;
}

.itg-single-title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin: 0 0 1rem;
	color: #333;
}

.itg-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.9rem;
	color: #777;
}

.itg-single-date,
.itg-single-author,
.itg-single-categories,
.itg-single-tags {
	display: inline-flex;
	align-items: center;
}

.itg-single-author a,
.itg-single-categories a,
.itg-single-tags a {
	color: #0066cc;
	text-decoration: none;
	margin-left: 0.3rem;
	transition: color 0.3s;
}

.itg-single-author a:hover,
.itg-single-categories a:hover,
.itg-single-tags a:hover {
	color: #004499;
	text-decoration: underline;
}

.itg-single-thumbnail {
	margin: 2rem 0;
	border-radius: 8px;
	overflow: hidden;
}

.itg-single-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.itg-single-content {
	margin: 2rem 0;
	font-size: 1.05rem;
	line-height: 1.8;
	color: #444;
}

.itg-single-content h2,
.itg-single-content h3,
.itg-single-content h4 {
	margin: 1.5rem 0 0.75rem;
	color: #333;
	line-height: 1.3;
}

.itg-single-content p {
	margin: 1rem 0;
}

.itg-single-content ul,
.itg-single-content ol {
	margin: 1rem 0;
	padding-left: 2rem;
}

.itg-single-content li {
	margin: 0.5rem 0;
}

.itg-single-footer {
	margin: 2rem 0;
	padding: 1.5rem 0;
	border-top: 1px solid #e0e0e0;
}

.itg-tags-list {
	font-size: 0.9rem;
	color: #555;
}

.itg-tag {
	display: inline-block;
	margin: 0.25rem 0.5rem 0.25rem 0;
	padding: 0.5rem 0.75rem;
	background: #f0f0f0;
	border-radius: 4px;
	color: #0066cc;
	text-decoration: none;
	transition: all 0.3s;
}

.itg-tag:hover {
	background: #0066cc;
	color: #fff;
}

/* Post Navigation */
.itg-post-navigation {
	margin: 3rem 0;
	padding: 2rem 0;
	border-top: 2px solid #e0e0e0;
	border-bottom: 2px solid #e0e0e0;
}

.itg-post-navigation nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.itg-post-navigation .nav-previous,
.itg-post-navigation .nav-next {
	text-decoration: none;
	color: inherit;
	transition: all 0.3s;
	padding: 1rem;
	border-radius: 4px;
}

.itg-post-navigation .nav-previous {
	text-align: left;
	border: 1px solid #e0e0e0;
}

.itg-post-navigation .nav-next {
	text-align: right;
	border: 1px solid #e0e0e0;
	grid-column: 2;
}

.itg-post-navigation a:hover {
	background: #f9f9f9;
	border-color: #0066cc;
}

.itg-nav-label {
	display: block;
	font-size: 0.85rem;
	color: #777;
	margin-bottom: 0.5rem;
}

.itg-nav-title {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	color: #0066cc;
}

/* Pagination */
.itg-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 2rem 0;
	flex-wrap: wrap;
}

.itg-pagination a,
.itg-pagination span {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #0066cc;
	transition: all 0.3s;
}

.itg-pagination a:hover {
	background: #0066cc;
	color: #fff;
	border-color: #0066cc;
}

.itg-pagination .current {
	background: #0066cc;
	color: #fff;
	border-color: #0066cc;
}

/* No Posts */
.itg-no-posts {
	text-align: center;
	font-size: 1.1rem;
	color: #777;
	padding: 3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
	.itg-archive-container,
	.itg-category-container,
	.itg-single-container {
		padding: 1rem;
	}

	.itg-archive-title,
	.itg-category-title,
	.itg-single-title {
		font-size: 1.75rem;
	}

	.itg-post-card-inner {
		flex-direction: column;
	}

	.itg-post-thumbnail {
		flex: 1;
	}

	.itg-post-thumbnail img {
		height: 200px;
	}

	.itg-post-meta {
		gap: 1rem;
		font-size: 0.85rem;
	}

	.itg-single-meta {
		gap: 1rem;
		font-size: 0.85rem;
	}

	.itg-post-navigation nav {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.itg-post-navigation .nav-next {
		grid-column: auto;
		text-align: left;
	}
}
