.haber-pro-widget {
	--haber-widget-accent: var(--haber-color-primary, #e51f2b);
	--haber-widget-border: var(--haber-color-border, #e5e7eb);
	--haber-widget-muted: var(--haber-color-text-muted, #697386);
	--haber-widget-ink: var(--haber-color-text, #1f2937);
	color: var(--haber-widget-ink);
	font-family: inherit;
}

.haber-pro-widget .widget-title,
.haber-pro-widget > .haber-widget__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}

.haber-pro-widget .widget-title::before,
.haber-pro-widget > .haber-widget__title::before {
	display: grid;
	width: 23px;
	height: 23px;
	place-items: center;
	border: 2px solid var(--haber-widget-accent);
	border-radius: 9px;
	color: var(--haber-widget-accent);
	content: "•";
	flex: 0 0 auto;
	font-size: 14px;
	line-height: 1;
}

.haber-pro-widget .widget-title::after,
.haber-pro-widget > .haber-widget__title::after {
	height: 3px;
	min-width: 16px;
	background: var(--haber-widget-accent);
	border-radius: 99px;
	content: "";
	flex: 1;
}

.haber-pro-widget > .haber-widget__title span::after { display: none; }
.haber-pro-widget > .haber-widget__title span { min-width: 0; overflow-wrap: anywhere; }
.haber-pro-social-widget > .haber-widget__title::before { border: 0; content: "♡"; font-size: 25px; }
.haber-pro-tags-widget > .haber-widget__title::before { border: 0; content: "◇"; font-size: 25px; transform: rotate(45deg); }
.haber-pro-news-widget--haber_popular_news > .haber-widget__title::before { content: "↗"; }
.haber-pro-news-widget--haber_latest_news > .haber-widget__title::before { content: "◷"; }

.haber-news-list {
	display: grid;
	gap: 14px;
}

.haber-news-card {
	min-width: 0;
	margin: 0;
}

.haber-news-card__media {
	display: block;
	overflow: hidden;
	background: #edf0f4;
	border-radius: 10px;
}

.haber-news-card__media img,
.haber-news-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.haber-news-card__placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #edf1f7, #dfe5ee);
}

.haber-news-card__placeholder svg {
	width: 34px;
	fill: none;
	stroke: #929cac;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.4;
}

.haber-news-card__title {
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.35;
}

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

.haber-news-card__title a:hover,
.haber-news-card__title a:focus-visible {
	color: var(--haber-widget-accent);
}

.haber-news-card__category {
	display: inline-block;
	color: var(--haber-widget-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .045em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.haber-news-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 7px 0 0;
	color: var(--haber-widget-muted);
	font-size: 13px;
	line-height: 1.48;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.haber-news-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 12px;
	margin-top: 8px;
	color: var(--haber-widget-muted);
	font-size: 11px;
}

.haber-news-list--large .haber-news-card {
	overflow: hidden;
	background: var(--haber-color-surface, #fff);
	border: 1px solid var(--haber-widget-border);
	border-radius: 12px;
}

.haber-news-list--large .haber-news-card__media {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.haber-news-list--large .haber-news-card__body {
	padding: 13px 14px 15px;
}

.haber-news-list--large .haber-news-card__title {
	font-size: 15px;
}

.haber-news-list--small .haber-news-card {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 11px;
	align-items: center;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--haber-widget-border);
}

.haber-news-list--small .haber-news-card:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.haber-news-list--small .haber-news-card__media {
	aspect-ratio: 16 / 10;
	border-radius: 7px;
}

.haber-news-list--small .haber-news-card__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 13.5px;
	overflow-wrap: anywhere;
}

/* Topic chips --------------------------------------------------------- */

.haber-widget-tags__intro {
	margin: -4px 0 18px;
	color: var(--haber-widget-ink);
	font-size: 13.5px;
	line-height: 1.5;
}

.haber-widget-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.haber-widget-tags a {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	padding: 6px 10px;
	border: 1px solid #d9e0e9;
	border-radius: 5px;
	background: #f3f6fa;
	box-shadow: 0 2px 5px rgb(15 23 42 / 7%);
	color: #34445c;
	font-size: 12.5px;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .18s, color .18s, transform .18s;
}

.haber-widget-tags a:nth-child(3n+2) { background: #eef4ff; color: #245dec; }
.haber-widget-tags a:nth-child(4n) { background: #eef9fc; color: #08647e; }
.haber-widget-tags a:hover,
.haber-widget-tags a:focus-visible { border-color: var(--haber-widget-accent); color: var(--haber-widget-accent); transform: translateY(-1px); }

:root[data-haber-theme="dark"] .haber-widget-tags a { border-color: #334155; background: #202a39; color: #d7dfec; }

.haber-news-list--list {
	gap: 0;
	counter-reset: haber-widget-item;
}

.haber-news-list--list .haber-news-card {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 11px;
	align-items: start;
	padding: 13px 0;
	border-bottom: 1px solid var(--haber-widget-border);
}

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

.haber-news-list--list .haber-news-card:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.haber-news-card__number {
	color: #c5cad2;
	font-size: 22px;
	font-weight: 850;
	line-height: 1;
}

.haber-widget-social__intro {
	margin: -6px 0 20px;
	color: var(--haber-widget-muted);
	font-size: 15px;
	line-height: 1.5;
}

.haber-widget-social {
	display: grid;
	gap: 10px;
}

.haber-pro-social-widget {
	container-type: inline-size;
}

.haber-widget-social--cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.haber-widget-social__channel {
	position: relative;
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 11px;
	color: #fff;
	text-decoration: none;
}

.haber-widget-social--cards .haber-widget-social__channel {
	min-height: 66px;
	padding: 11px 12px;
	background: var(--channel-color);
	border-radius: 9px;
}

.haber-widget-social__icon {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	flex: 0 0 auto;
}

.haber-widget-social__icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.haber-widget-social__copy {
	display: block;
	overflow: hidden;
	min-width: 0;
}

.haber-widget-social__copy strong,
.haber-widget-social__copy small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.haber-widget-social__copy strong {
	font-size: 14px;
	line-height: 1.2;
}

.haber-widget-social__copy small {
	margin-top: 3px;
	color: rgba(255,255,255,.82);
	font-size: 11px;
}

.haber-widget-social__heart {
	margin-left: auto;
	font-size: 22px;
	opacity: .75;
}

.haber-widget-social__channel:hover,
.haber-widget-social__channel:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.haber-widget-social__channel--facebook { --channel-color: #1769c2; }
.haber-widget-social__channel--x { --channel-color: #050505; }
.haber-widget-social__channel--instagram { --channel-color: linear-gradient(135deg, #7f37c9, #db3b83 65%, #f04b3c); }
.haber-widget-social__channel--youtube { --channel-color: #c90000; }
.haber-widget-social__channel--linkedin { --channel-color: #0967a9; }
.haber-widget-social__channel--tiktok { --channel-color: #18181b; }
.haber-widget-social__channel--telegram { --channel-color: #279ed1; }
.haber-widget-social__channel--whatsapp { --channel-color: #168c47; }

.haber-widget-social--compact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.haber-widget-social--compact .haber-widget-social__channel {
	min-height: 46px;
	padding: 9px 12px;
	background: var(--channel-color);
	border-radius: 8px;
}

.haber-widget-social--compact .haber-widget-social__copy small,
.haber-widget-social--compact .haber-widget-social__heart {
	display: none;
}

.haber-widget-social--compact .haber-widget-social__copy strong {
	font-size: 14px;
}

.haber-widget-social--icons {
	display: flex;
	flex-wrap: wrap;
}

.haber-widget-social--icons .haber-widget-social__channel {
	width: 44px;
	height: 44px;
	justify-content: center;
	background: var(--channel-color);
	border-radius: 50%;
}

.haber-widget-social--icons .haber-widget-social__copy,
.haber-widget-social--icons .haber-widget-social__heart {
	display: none;
}

@container (max-width: 340px) {
	.haber-widget-social--cards .haber-widget-social__channel {
		min-height: 66px;
		padding: 10px;
	}

	.haber-widget-social--cards .haber-widget-social__heart {
		display: none;
	}

	.haber-widget-social--cards .haber-widget-social__copy strong {
		font-size: 14px;
	}
}

@media (max-width: 420px) {
	.haber-widget-social--cards {
		grid-template-columns: 1fr;
	}

	.haber-widget-social--cards .haber-widget-social__channel {
		min-height: 64px;
	}

	.haber-news-list--small .haber-news-card {
		grid-template-columns: 82px minmax(0, 1fr);
	}

	.haber-pro-widget .widget-title,
	.haber-pro-widget > .haber-widget__title { font-size: 16px; }
}

/* Columnist cards shared by the homepage module and the WordPress widget. */
.haber-pro-columnists {
	--haber-columnist-gap: 14px;
	container-type: inline-size;
}

.haber-pro-columnists__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.haber-pro-columnists__toolbar > a {
	color: var(--haber-widget-accent);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.haber-pro-columnists__nav {
	display: flex;
	gap: 7px;
	margin-left: auto;
}

.haber-pro-columnists__nav button {
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--haber-widget-border);
	border-radius: 50%;
	background: var(--haber-color-surface, #fff);
	color: var(--haber-widget-ink);
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s, opacity .2s;
}

.haber-pro-columnists__nav button:hover:not(:disabled),
.haber-pro-columnists__nav button:focus-visible {
	border-color: var(--haber-widget-accent);
	background: var(--haber-widget-accent);
	color: #fff;
}

.haber-pro-columnists__nav button:disabled {
	cursor: default;
	opacity: .35;
}

.haber-pro-columnists__viewport {
	overflow: hidden;
}

.haber-pro-columnists__track {
	display: flex;
	gap: var(--haber-columnist-gap);
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.haber-pro-columnists__track::-webkit-scrollbar {
	display: none;
}

.haber-pro-columnist-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 255px;
	flex: 0 0 calc((100% - var(--haber-columnist-gap) - var(--haber-columnist-gap) - var(--haber-columnist-gap)) / 4);
	flex-direction: column;
	padding: 18px;
	overflow: hidden;
	border: 1px solid var(--haber-widget-border);
	border-radius: 14px;
	background: var(--haber-color-surface, #fff);
	box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
	scroll-snap-align: start;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.haber-pro-columnist-card::after {
	position: absolute;
	top: 3px;
	right: 12px;
	color: color-mix(in srgb, var(--haber-widget-accent) 16%, transparent);
	content: "“";
	font: 800 74px/1 Georgia, serif;
	pointer-events: none;
}

.haber-pro-columnist-card:hover {
	border-color: color-mix(in srgb, var(--haber-widget-accent) 42%, var(--haber-widget-border));
	box-shadow: 0 13px 30px rgb(15 23 42 / 11%);
	transform: translateY(-3px);
}

.haber-pro-columnist-card__person {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.haber-pro-columnist-card__avatar {
	width: 68px;
	height: 68px;
	flex: 0 0 auto;
	border: 3px solid color-mix(in srgb, var(--haber-widget-accent) 22%, #fff);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--haber-widget-accent) 8%, transparent);
}

.haber-pro-columnist-card__identity {
	min-width: 0;
}

.haber-pro-columnist-card__identity strong,
.haber-pro-columnist-card__identity small {
	display: block;
}

.haber-pro-columnist-card__identity strong {
	font-size: 16px;
	font-weight: 850;
	line-height: 1.2;
}

.haber-pro-columnist-card__identity small {
	margin-top: 5px;
	color: var(--haber-widget-accent);
	font-size: 11px;
	font-weight: 750;
}

.haber-pro-columnist-card__expertise {
	display: -webkit-box;
	overflow: hidden;
	margin: 15px 0 0;
	color: var(--haber-widget-muted);
	font-size: 12px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.haber-pro-columnist-card__count {
	align-self: flex-start;
	margin: 10px 0 0;
	padding: 4px 8px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--haber-widget-accent) 9%, transparent);
	color: var(--haber-widget-accent);
	font-size: 10px;
	font-weight: 800;
}

.haber-pro-columnist-card__latest {
	display: block;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--haber-widget-border);
	color: inherit;
	text-decoration: none;
}

.haber-pro-columnist-card__latest span,
.haber-pro-columnist-card__latest strong {
	display: block;
}

.haber-pro-columnist-card__latest span {
	margin-bottom: 5px;
	color: var(--haber-widget-accent);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.haber-pro-columnist-card__latest strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.haber-pro-columnist-card__latest:hover strong {
	color: var(--haber-widget-accent);
}

.haber-pro-columnists--list .haber-pro-columnists__nav {
	display: none;
}

.haber-pro-columnists--list .haber-pro-columnists__track {
	display: grid;
	overflow: visible;
}

.haber-pro-columnists--list .haber-pro-columnist-card {
	min-height: 0;
	width: 100%;
	padding: 13px;
}

.haber-pro-columnists--list .haber-pro-columnist-card__avatar {
	width: 52px;
	height: 52px;
}

.haber-pro-columnists--list .haber-pro-columnist-card__expertise,
.haber-pro-columnists--list .haber-pro-columnist-card__latest,
.haber-pro-columnists--list .haber-pro-columnist-card__count {
	display: none;
}

.haber-pro-columnists.is-inverse {
	--haber-widget-border: rgb(255 255 255 / 12%);
	--haber-widget-ink: #fff;
	--haber-widget-muted: rgb(255 255 255 / 62%);
	--haber-widget-accent: #ffc94a;
}

.haber-pro-columnists.is-inverse .haber-pro-columnist-card {
	background: linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 5%));
	box-shadow: none;
}

.haber-pro-columnists.is-inverse .haber-pro-columnist-card:hover {
	background: rgb(255 255 255 / 12%);
}

.haber-pro-columnists.is-inverse .haber-pro-columnists__nav button {
	border-color: rgb(255 255 255 / 20%);
	background: rgb(255 255 255 / 8%);
	color: #fff;
}

@container (min-width: 681px) {
	.haber-pro-columnists--columns-2 .haber-pro-columnist-card {
		flex-basis: calc((100% - var(--haber-columnist-gap)) / 2);
	}

	.haber-pro-columnists--columns-3 .haber-pro-columnist-card {
		flex-basis: calc((100% - var(--haber-columnist-gap) - var(--haber-columnist-gap)) / 3);
	}
}

@container (max-width: 900px) and (min-width: 681px) {
	.haber-pro-columnists--columns-4 .haber-pro-columnist-card {
		flex-basis: calc((100% - var(--haber-columnist-gap) - var(--haber-columnist-gap)) / 3);
	}
}

@container (max-width: 680px) {
	.haber-pro-columnists--slider .haber-pro-columnist-card {
		flex-basis: calc((100% - var(--haber-columnist-gap)) / 2);
	}
}

@container (max-width: 430px) {
	.haber-pro-columnists--slider .haber-pro-columnist-card {
		flex-basis: min(86%, 285px);
	}
}
