/*
	Theme Name: Ranbron Child
	Theme URI: http://templatation.com
	Description: Child theme of Ranbron for Top Consulting SRL customisations.
	Author: Top Consulting
	Template: ranbron
	Version: 1.0
	Text Domain: ranbron-child
*/

/* ==========================================================================
   Modern news/blog card grid — scoped to the Blog 2 Column page template
   ========================================================================== */

.page-template-blog-2-col .blog-with-sidebar.two-col {
	background: #f7f8fb;
}

.page-template-blog-2-col .tc-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 991px) {
	.page-template-blog-2-col .tc-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.page-template-blog-2-col .tc-news-grid {
		grid-template-columns: 1fr;
	}
}

.tc-news-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(36, 36, 36, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tc-news-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 30px rgba(36, 36, 36, 0.13);
}

.tc-news-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.tc-news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tc-news-card:hover .tc-news-card__media img {
	transform: scale(1.05);
}

.tc-news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 26px 26px;
}

.tc-news-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
}

.tc-news-card__date {
	color: #797979;
	letter-spacing: 0.02em;
}

.tc-news-card__cat {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(62, 86, 170, 0.1);
	color: #3E56AA;
	font-weight: 500;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background 0.2s ease, color 0.2s ease;
}

.tc-news-card__cat:hover {
	background: #3E56AA;
	color: #fff;
}

.tc-news-card__title {
	margin: 0 0 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
}

.tc-news-card__title a {
	color: #242424;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.tc-news-card__title a:hover {
	color: #3E56AA;
}

.tc-news-card__excerpt {
	margin: 0 0 18px;
	color: #666;
	font-size: 15px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tc-news-card__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #3E56AA;
	transition: gap 0.2s ease, color 0.2s ease;
}

.tc-news-card__more i {
	font-size: 12px;
	transition: transform 0.2s ease;
}

.tc-news-card__more:hover {
	color: #2c3f82;
}

.tc-news-card__more:hover i {
	transform: translateX(4px);
}

/* Pagination */
.page-template-blog-2-col .blog-post-pagination {
	margin-top: 50px;
	text-align: center;
}

.page-template-blog-2-col .blog-post-pagination .nav-links {
	display: inline-flex;
	gap: 8px;
}

.page-template-blog-2-col .blog-post-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 8px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e3e3e3;
	color: #242424;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.page-template-blog-2-col .blog-post-pagination .page-numbers:hover {
	border-color: #3E56AA;
	color: #3E56AA;
}

.page-template-blog-2-col .blog-post-pagination .page-numbers.current {
	background: #3E56AA;
	border-color: #3E56AA;
	color: #fff;
}

/* ==========================================================================
   Modern single news article — scoped to single post pages
   ========================================================================== */

.single-post .tc-article {
	max-width: 820px;
	margin: 0 auto;
}

.single-post .tc-article__header {
	text-align: center;
	margin-bottom: 32px;
}

.single-post .tc-article__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
}

.single-post .tc-article__cat {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(62, 86, 170, 0.1);
	color: #3E56AA;
	font-weight: 500;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background 0.2s ease, color 0.2s ease;
}

.single-post .tc-article__cat:hover {
	background: #3E56AA;
	color: #fff;
}

.single-post .tc-article__date {
	color: #797979;
	letter-spacing: 0.02em;
}

.single-post .tc-article__title {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.3;
	color: #242424;
}

.single-post .tc-article__media {
	margin-bottom: 36px;
	border-radius: 14px;
	overflow: hidden;
}

.single-post .tc-article__media img {
	display: block;
	width: 100%;
	height: auto;
}

.single-post .tc-article__content {
	font-size: 17px;
	line-height: 1.8;
	color: #555;
}

.single-post .tc-article__content p {
	margin-bottom: 1.4em;
}

.single-post .tc-article__content h2,
.single-post .tc-article__content h3,
.single-post .tc-article__content h4 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: #242424;
	margin: 1.6em 0 0.7em;
	line-height: 1.35;
}

.single-post .tc-article__content ul,
.single-post .tc-article__content ol {
	margin: 0 0 1.4em;
	padding-left: 24px;
}

.single-post .tc-article__content li {
	margin-bottom: 0.5em;
}

.single-post .tc-article__content ul > li {
	list-style: none;
	position: relative;
	padding-left: 22px;
}

.single-post .tc-article__content ul > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3E56AA;
}

.single-post .tc-article__content blockquote {
	margin: 1.6em 0;
	padding: 20px 26px;
	border-left: 4px solid #3E56AA;
	background: #f7f8fb;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: #444;
}

.single-post .tc-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.single-post .tc-article__content a {
	color: #3E56AA;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.single-post .tc-article__content a:hover {
	color: #2c3f82;
}

/* Prev/next navigation cards */
.single-post .tc-article__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 50px 0 10px;
}

.single-post .tc-article__nav-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(36, 36, 36, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.single-post .tc-article__nav-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(36, 36, 36, 0.1);
	border-color: #3E56AA;
}

.single-post .tc-article__nav-card--next {
	text-align: right;
	margin-left: auto;
	grid-column: 2;
}

.single-post .tc-article__nav-card--prev {
	grid-column: 1;
}

.single-post .tc-article__nav-label {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #3E56AA;
}

.single-post .tc-article__nav-title {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #242424;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Comments */
.single-post .comments-area {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid #e8eaf2;
}

.single-post .comments-area .comment-reply-title,
.single-post .comments-area .comments-title {
	font-family: 'Poppins', sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: #242424;
}

.single-post .comments-area input[type="text"],
.single-post .comments-area input[type="email"],
.single-post .comments-area input[type="url"],
.single-post .comments-area textarea {
	width: 100%;
	padding: 13px 18px;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.single-post .comments-area input[type="text"]:focus,
.single-post .comments-area input[type="email"]:focus,
.single-post .comments-area input[type="url"]:focus,
.single-post .comments-area textarea:focus {
	border-color: #3E56AA;
	outline: none;
}

.single-post .comments-area input[type="submit"] {
	display: inline-block;
	padding: 13px 34px;
	border: none;
	border-radius: 10px;
	background: #3E56AA;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s ease;
}

.single-post .comments-area input[type="submit"]:hover {
	background: #2c3f82;
}

@media (max-width: 767px) {
	.single-post .tc-article__title {
		font-size: 26px;
	}

	.single-post .tc-article__content {
		font-size: 16px;
	}

	.single-post .tc-article__nav {
		grid-template-columns: 1fr;
	}

	.single-post .tc-article__nav-card--next {
		grid-column: 1;
		text-align: left;
		margin-left: 0;
	}
}
