/* Base UI primitives for TBN pages.
   Keep selectors generic and reusable across templates. */

.tbn-section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 20px 16px;
}

.tbn-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.tbn-section__title {
	font-size: 22px;
	margin: 0;
}

.tbn-section__subtitle {
	margin: 8px 0 0;
	color: #d3d8eb;
}

.tbn-section__more {
	font-size: 14px;
	color: #46b4ff;
	text-decoration: none;
}

.tbn-grid {
	display: grid;
	gap: 16px;
}

.tbn-grid--news,
.tbn-grid--popular {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tbn-card {
	background: #050b1e;
	border-radius: 16px;
	overflow: hidden;
}

.tbn-card__image-link {
	display: block;
	overflow: hidden;
}

.tbn-card__image {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	background: #0a1536;
}

.tbn-card__body {
	padding: 12px 14px 14px;
}

.tbn-card__title {
	font-size: 15px;
	line-height: 1.4;
	margin: 0 0 6px;
}

.tbn-card__title a {
	color: #ffffff;
	text-decoration: none;
}

.tbn-card__date {
	font-size: 12px;
	color: #7b8aa6;
}

/* Generic slider chrome for Swiper blocks. */
.tbn-slider {
	position: relative;
}

.tbn-slider__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.tbn-slider__pagination {
	position: static;
	width: auto;
}

.tbn-slider__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: rgba(255, 255, 255, 0.4);
	opacity: 1;
	margin: 0 4px !important;
}

.tbn-slider__pagination .swiper-pagination-bullet-active {
	background: #ffffff;
}

.tbn-slider__arrows {
	display: flex;
	gap: 8px;
}

.tbn-slider__arrow {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(3, 14, 40, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
}

.tbn-slider__arrow::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border-top: 2px solid #ffffff;
	border-right: 2px solid #ffffff;
	transform: rotate(135deg);
}

.tbn-slider__arrow--next::before {
	transform: rotate(-45deg);
}

@media (max-width: 767px) {
	.tbn-section {
		padding-inline: 16px;
	}
}

