/* =====================================================================
   NCU: научные мероприятия — карточки ([ncu_events], [ncu_events_home])
   и страница мероприятия. Цвета — как в ncu-carousel.css.
   ===================================================================== */

.ncu-events {
	--ncu-accent: #363b85;
	--ncu-accent-2: #12bde8;
}

.ncu-events__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ncu-events__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ncu-event-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	padding: 20px 22px;
	background: #ffffff;
	border: 1px solid #e3e6ea;
	border-left: 4px solid var(--ncu-accent);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ncu-event-card:hover {
	box-shadow: 0 6px 18px rgba(54, 59, 133, 0.15);
	transform: translateY(-2px);
}

.ncu-event-card__date {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #6b7280;
}

.ncu-events h3.ncu-event-card__title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ncu-accent);
}

.ncu-events h3.ncu-event-card__title a {
	color: var(--ncu-accent);
	text-decoration: none;
}

/* Вся карточка кликабельна. */
.ncu-events h3.ncu-event-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ncu-events h3.ncu-event-card__title a:hover,
.ncu-events h3.ncu-event-card__title a:focus {
	color: var(--ncu-accent-2);
}

.ncu-events h3.ncu-event-card__title a:focus-visible {
	outline: none;
}

.ncu-event-card:focus-within {
	box-shadow: 0 0 0 2px var(--ncu-accent-2);
}

/* ---------- Блок на главной ---------- */
.ncu-events--home h2.ncu-events__heading {
	margin: 0 0 20px;
	font-weight: 700;
	color: var(--ncu-accent);
}

.ncu-events__all {
	margin: 20px 0 0;
	text-align: right;
}

.ncu-events__all a {
	font-weight: 700;
	color: var(--ncu-accent);
	text-decoration: none;
}

.ncu-events__all a::after {
	content: " →";
}

.ncu-events__all a:hover,
.ncu-events__all a:focus {
	color: var(--ncu-accent-2);
}

/* ---------- Страница мероприятия ---------- */
.ncu-event-single__date {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #363b85;
}

.ncu-event-single__sources {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e3e6ea;
	font-size: 14px;
}

.ncu-event-single__sources h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #363b85;
}

.ncu-event-single__sources ul {
	margin: 0;
	padding-left: 18px;
}

.ncu-event-single__sources a {
	color: #363b85;
}

.ncu-event-single__sources a:hover,
.ncu-event-single__sources a:focus {
	color: #12bde8;
}
