/**
 * Новини: /novyny/, одиночна новина, блок на головній.
 */

.tti-news-page #main,
.tti-news-single #main {
	padding: 24px 0 48px;
}

.tti-news-list {
	max-width: 820px;
	margin: 0 auto;
}

.tti-news-list--single {
	max-width: 720px;
}

.tti-news-list__empty {
	margin: 0;
	color: #777;
	font-size: 15px;
}

.tti-news-card {
	padding: 20px 0;
	border-bottom: 1px solid #ececec;
}

.tti-news-card:first-child {
	padding-top: 0;
}

.tti-news-list--single .tti-news-card {
	padding: 22px 22px 20px;
	border: 1px solid #ebebeb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tti-news-card__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	color: #222;
	text-transform: none;
}

.tti-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.tti-news-card__title a:hover {
	color: #ff7f0a;
}

.tti-news-card__date {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	color: #888;
}

.tti-news-card__excerpt {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.6;
	color: #444;
}

.tti-news-card__more {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	color: #ff7f0a;
	text-decoration: none;
}

.tti-news-card__more:hover {
	text-decoration: underline;
}

.tti-news-pagination {
	margin-top: 28px;
}

.tti-news-pagination .page-numbers {
	display: inline-block;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tti-news-pagination .page-numbers li {
	display: inline-block;
	margin: 0 4px;
}

.tti-news-pagination .page-numbers a,
.tti-news-pagination .page-numbers span {
	display: inline-block;
	min-width: 32px;
	padding: 6px 10px;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	color: #444;
	text-align: center;
	text-decoration: none;
	font-size: 14px;
}

.tti-news-pagination .page-numbers .current {
	background: #ff7f0a;
	border-color: #ff7f0a;
	color: #fff;
}

.tti-news-article {
	max-width: 820px;
	margin: 0 auto;
}

.tti-news-article__title {
	margin: 0 0 10px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	color: #222;
	text-transform: none;
}

.tti-news-article__date {
	display: block;
	margin: 0 0 22px;
	font-size: 13px;
	color: #888;
}

.tti-news-article__content {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
}

.tti-news-article__content p {
	margin: 0 0 14px;
}

.tti-news-article__content a {
	color: #ff7f0a;
}

.tti-news-article__content img,
.tti-news-article__content .wp-caption {
	display: none !important;
}

.tti-news-article__back {
	margin: 28px 0 0;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.tti-news-article__back a {
	color: #666;
	text-decoration: none;
	font-size: 14px;
}

.tti-news-article__back a:hover {
	color: #ff7f0a;
}

/* ===== Головна: компактний блок новин + сайдбар ===== */

.tti-home-news {
	padding: 28px 0 40px;
	background: #f7f7f7;
}

/*
 * base.css: #main .container { padding-right:0 } — ID сильніший за клас,
 * тому без #main падіння справа не зникало.
 * Кнопки: .services-button { width:76%; float:right } — зсув вправо.
 */
#main.tti-home-news > .container {
	padding-left: 20px !important;
	padding-right: 20px !important;
	box-sizing: border-box;
}

.tti-home-news__grid {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	width: 100%;
	box-sizing: border-box;
}

.tti-home-news__content {
	flex: 1 1 auto;
	min-width: 0;
}

.tti-home-news__aside {
	flex: 0 0 280px;
	width: 280px;
	max-width: 100%;
}

#main.tti-home-news .sidebar,
#main.tti-home-news #sidebar {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

#main.tti-home-news .services-button,
#main.tti-home-news .contact-center-widget {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 16px !important;
	box-sizing: border-box !important;
}

#main.tti-home-news .services-button a,
#main.tti-home-news .textwidget .services-button a {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	padding-left: 20px !important;
	padding-right: 16px !important;
}

#main.tti-home-news .contact-center,
#main.tti-home-news .textwidget .contact-center {
	margin-left: 0 !important;
}

#main.tti-home-news .contact-center-widget {
	padding: 15px 12px !important;
}

.tti-home-news__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.tti-home-news__heading {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #222;
	text-transform: none;
}

.tti-home-news__all {
	font-size: 13px;
	color: #ff7f0a;
	text-decoration: none;
	white-space: nowrap;
}

.tti-home-news__all:hover {
	text-decoration: underline;
}

.tti-home-news__card {
	padding: 18px 20px 16px;
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.tti-home-news--single .tti-home-news__card {
	/* одна новина — компактна картка, без «дірки» */
	max-width: 100%;
}

.tti-home-news__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #222;
	text-transform: none;
}

.tti-home-news__title a {
	color: inherit;
	text-decoration: none;
}

.tti-home-news__title a:hover {
	color: #ff7f0a;
}

.tti-home-news__date {
	display: block;
	margin: 0 0 10px;
	font-size: 12px;
	color: #888;
}

.tti-home-news__excerpt {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.55;
	color: #555;
}

.tti-home-news__more {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	background: #ff7f0a;
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.tti-home-news__more:hover {
	background: #e67309;
	color: #fff !important;
}

.tti-home-news__empty {
	margin: 0;
	padding: 16px 18px;
	background: #fff;
	border-radius: 8px;
	color: #777;
	font-size: 14px;
}

@media (max-width: 991px) {
	.tti-home-news__grid {
		flex-direction: column;
		gap: 20px;
	}

	.tti-home-news__aside {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.tti-news-page #main,
	.tti-news-single #main {
		padding: 16px 0 32px;
	}

	.tti-news-card__title {
		font-size: 18px;
	}

	.tti-news-article__title {
		font-size: 22px;
	}

	.tti-home-news {
		padding: 18px 0 28px;
	}

	/* як у тарифів: .container { padding:0 10px } на мобілці */
	#main.tti-home-news > .container {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.tti-home-news__heading {
		font-size: 18px;
	}

	.tti-home-news__card {
		padding: 16px;
	}

	.tti-home-news__title {
		font-size: 16px;
	}

	.tti-home-news__more {
		display: block;
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	.tti-news-list--single .tti-news-card {
		padding: 16px;
	}

	.tti-news-card__more {
		display: block;
		width: 100%;
		text-align: center;
		padding: 10px 12px;
		border-radius: 6px;
		background: #f3f3f3;
		box-sizing: border-box;
	}
}
