/*
 * THEME PATCH P3 (register: automation/audits/THEME-PATCHES-1311.md, table «د»; spec B1-HEADER-1411 §2 B1-10.2).
 * The mega menu cards (Foxiz Post Grid Small 1 widgets that carry our Elementor class `tq-mega-cards`: games, news,
 * products megas). Foxiz has no title-lines / word-break / badge-wrap option on grid-small-1.
 * Sherif 13/11 (593): the name never breaks inside a word, 2 lines max then «…», badges inside the card,
 * fewer cards on medium screens («3 then 2 then 1»; below 1025 the theme shows the mobile header, so no mega).
 * The theme lays the grid out with flex (`.rb-col-4 > .block-inner > *` flex-basis 25%), not CSS grid.
 * Removal condition: Foxiz adds a title-lines option to grid-small-1, or the megas move to the card v2 `mega` context
 * (PLUGIN-ARCH-1311 row 10, phase 5).
 */
.tq-mega-cards .p-wrap {
	min-inline-size: 0;
	overflow: hidden;
}

.tq-mega-cards .entry-title {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.tq-mega-cards .p-wrap .meta-inner {
	flex-wrap: wrap;
	min-inline-size: 0;
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.tq-mega-cards .rb-col-4 > .block-inner > * {
		flex-basis: 33.33%;
		inline-size: 33.33%;
	}

	.tq-mega-cards .rb-col-4 > .block-inner > :nth-child(n+4) {
		display: none;
	}
}
