/**
 * Страница /search/ — отступы секций (карточки: листинги компаний, вакансий, промокодов).
 */

/* Форма поиска на странице результатов — те же стили, что в модалке шапки */
.search-results-page .search-results-form-panel .search-overlay--inline {
	position: static;
	inset: auto;
	opacity: 1;
	visibility: visible;
	background: transparent;
	backdrop-filter: none;
	z-index: auto;
	pointer-events: auto;
}

.search-results-page .search-results-form-panel .search-overlay-content--inline {
	height: auto;
	display: block;
	padding: 0;
	max-width: none;
	margin: 0;
}

.search-results-page .search-results-form-panel .search-form-large {
	max-width: none;
	margin-bottom: 0;
}

.search-results-page .search-results-form-panel .title {
	margin-bottom: 1rem;
}

/* Заголовки разделов — как на странице тега (post-tag.css) */
.search-results-page h3.category-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #40f3f7;
	margin-top: 36px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #40f3f7;
	width: 100%;
}

.search-results-page h3.category-title:first-of-type {
	margin-top: 0;
}

.search-results-page h3.category-title .category-title-count {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
}

.search-results-page .search-section-more-actions {
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
	margin: 4px 0 12px;
	text-align: center;
}

.search-results-page .search-section-more-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border: 1px solid #40f3f7;
	border-radius: 8px;
	color: #40f3f7;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.search-results-page .search-section-more-link:hover {
	background: #40f3f7;
	color: #0b1b2a;
}

@media (max-width: 768px) {
	.search-results-page h3.category-title {
		font-size: 22px;
		margin-top: 28px;
		margin-bottom: 16px;
		padding-bottom: 8px;
	}
}

/* blog_left — flex-wrap: секции не должны сжиматься в колонку как .item */
.search-results-page .blog_left > h3.category-title,
.search-results-page .blog_left > .items_wrap,
.search-results-page .blog_left > .companies-list-container,
.search-results-page .blog_left > .igaming-jobs-container.search-section-jobs,
.search-results-page .blog_left > .search-section-promocodes,
.search-results-page .blog_left > .blog_bg_glossary.search-section-glossary,
.search-results-page .blog_left > .search-section-more-actions {
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.search-results-page .search-section-companies,
.search-results-page .search-section-jobs,
.search-results-page .search-section-promocodes,
.search-results-page .blog_bg_glossary.search-section-glossary {
	margin-bottom: 8px;
}

/* Глоссарий на /search/: без сайдбара, на всю ширину blog_left */
.search-results-page .blog_bg_glossary.search-section-glossary {
	padding: 0;
}

.search-results-page .blog_bg_glossary.search-section-glossary .blog_left.blog_article {
	width: 100%;
	margin-right: 0;
	flex: 0 0 100%;
	max-width: 100%;
}

.search-results-page .blog_bg_glossary.search-section-glossary #post-glossary {
	width: 100%;
}

.search-results-page .search-section-companies.companies-list-container {
	margin-bottom: 8px;
}

.search-results-page .search-section-companies .service-group {
	margin-top: 0;
}

.search-results-page .search-section-jobs .igaming-jobs-list,
.search-results-page .search-section-jobs .job-item {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.search-results-page .search-jobs-list {
	margin-top: 0;
}

.search-results-page .job-content,
.search-results-page .job-content-html,
.search-results-page .job-content-excerpt {
	display: block;
	width: 100%;
	max-width: 100%;
}

.search-results-page .job-content-html.post-content {
	margin-top: 10px;
}

/* На листинге промокодов 5+ карточки скрыты (превью); в поиске показываем все */
.search-results-page .search-section-promocodes .promocodes .promocode:nth-child(n+5) {
	display: block;
}

@media (min-width: 768px) {
	.search-results-page .search-section-promocodes .promocodes .promocode:nth-child(n+5) {
		display: grid;
	}
}
