/*! ISBR Placement Ticker v1.2.1 */

/* Brand tokens: override these on .isbr-pt from Elementor custom CSS if needed. */
.isbr-pt {
	--isbr-pt-red: #b3151d;
	--isbr-pt-red-2: #c9262e;
	--isbr-pt-accent: #f6b23c;
	--isbr-pt-ink: #1b2130;
	--isbr-pt-muted: #5d6577;
	--isbr-pt-line: #eceef2;
	--isbr-pt-tint: #fbf0f0;
	--isbr-pt-bg: #fff;
	--isbr-pt-radius: 14px;

	container: isbr-pt / inline-size;
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: var(--isbr-pt-bg);
	border: 1px solid #e6e8ed;
	border-radius: var(--isbr-pt-radius);
	box-shadow: 0 14px 34px -22px rgba(27, 33, 48, .45);
	color: var(--isbr-pt-ink);
	line-height: 1.35;
	text-align: left;
}
.isbr-pt *,
.isbr-pt *::before,
.isbr-pt *::after { box-sizing: border-box; }

.isbr-pt.isbr-pt p,
.isbr-pt.isbr-pt ul,
.isbr-pt.isbr-pt li {
	margin: 0;
	padding: 0;
	font-family: inherit;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
}
.isbr-pt.isbr-pt ul,
.isbr-pt.isbr-pt li { list-style: none; }
.isbr-pt.isbr-pt li::before,
.isbr-pt.isbr-pt li::marker { content: none; }
.isbr-pt [hidden] { display: none !important; }

.isbr-pt .isbr-pt__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Header ---------------------------------------------------------- */
.isbr-pt__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: linear-gradient(120deg, var(--isbr-pt-red-2), var(--isbr-pt-red));
	color: #fff;
}
.isbr-pt.isbr-pt .isbr-pt__title {
	font-family: inherit;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 1.1rem;
	font-size: clamp(1.05rem, .85rem + 2.2cqi, 1.35rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: none;
}

/* Live badge doubles as the pause control. Reset theme button styles. */
.isbr-pt button.isbr-pt__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin: -6px -8px -6px 0;
	padding: 6px 10px;
	min-height: 32px;
	background: transparent;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: .85rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s;
}
.isbr-pt button.isbr-pt__live[hidden] { display: none !important; }
.isbr-pt button.isbr-pt__live:hover,
.isbr-pt button.isbr-pt__live:focus {
	background: rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: none;
}
.isbr-pt button.isbr-pt__live:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.isbr-pt__dot {
	position: relative;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--isbr-pt-accent);
}
.isbr-pt__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	animation: isbr-pt-pulse 2s ease-out infinite;
}
.isbr-pt.is-paused .isbr-pt__dot { background: rgba(255, 255, 255, .55); }
.isbr-pt.is-paused .isbr-pt__dot::after { animation: none; opacity: 0; }

@keyframes isbr-pt-pulse {
	0%   { transform: scale(1);   opacity: .65; }
	100% { transform: scale(2.6); opacity: 0; }
}

/* ---- Ticker window (mobile first) ------------------------------------ */
.isbr-pt__window {
	--row-h: 100px;
	--vis-now: var(--vis-sm, 4);
	position: relative;
	overflow: hidden;
	height: calc(min(var(--vis-now), var(--n, 5)) * var(--row-h));
	contain: layout paint;
}
.isbr-pt.isbr-pt .isbr-pt__list {
	list-style: none;
	margin: 0;
	padding: 0 16px;
	will-change: transform;
}

/* Phone: company block on top (full width), student + CTC below. */
.isbr-pt.isbr-pt .isbr-pt__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"brand brand"
		"who   ctc";
	align-content: center;
	align-items: center;
	column-gap: 12px;
	row-gap: 8px;
	min-height: var(--row-h);
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--isbr-pt-line);
	list-style: none;
}
.isbr-pt .isbr-pt__row::before,
.isbr-pt .isbr-pt__row::marker { content: none; }

/* Column 1: logo box + company name and role. */
.isbr-pt__brand {
	grid-area: brand;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.isbr-pt.isbr-pt .isbr-pt__logo-box {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 44px;
	padding: 3px;
	background: #fff;
	border: 1px solid var(--isbr-pt-line);
	border-radius: 8px;
	overflow: hidden;
}
.isbr-pt.isbr-pt .isbr-pt__logo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
	object-position: center;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.isbr-pt.isbr-pt .isbr-pt__logo-box--initials {
	background: var(--isbr-pt-tint);
	border-color: transparent;
	color: var(--isbr-pt-red);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: .02em;
}
.isbr-pt__job { min-width: 0; }
.isbr-pt.isbr-pt .isbr-pt__company {
	font-size: .94rem;
	font-weight: 700;
	color: var(--isbr-pt-ink);
	overflow-wrap: anywhere;
}
.isbr-pt.isbr-pt .isbr-pt__role {
	margin-top: 2px;
	font-size: .84rem;
	color: var(--isbr-pt-muted);
	overflow-wrap: anywhere;
}

/* Column 2: student. */
.isbr-pt__who {
	grid-area: who;
	min-width: 0;
}
.isbr-pt.isbr-pt .isbr-pt__name {
	font-size: .95rem;
	font-weight: 700;
	color: var(--isbr-pt-ink);
	overflow-wrap: anywhere;
}
.isbr-pt.isbr-pt .isbr-pt__meta {
	margin-top: 2px;
	font-size: .84rem;
	color: var(--isbr-pt-muted);
	overflow-wrap: anywhere;
}
.isbr-pt__sep { margin: 0 .45em; opacity: .55; }

/* Column 3: CTC. */
.isbr-pt.isbr-pt .isbr-pt__ctc {
	grid-area: ctc;
	align-self: center;
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	min-width: 68px;
	padding: 6px 10px;
	border-radius: 10px;
	background: var(--isbr-pt-tint);
	text-align: center;
}
.isbr-pt__ctc-label {
	font-size: .68rem;
	font-weight: 600;
	color: var(--isbr-pt-muted);
}
.isbr-pt__ctc-val {
	font-size: .95rem;
	font-weight: 700;
	color: var(--isbr-pt-red);
	white-space: nowrap;
}

/* ---- Footer ---------------------------------------------------------- */
.isbr-pt__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 14px 16px 16px;
}
.isbr-pt.isbr-pt .isbr-pt__more {
	font-size: .86rem;
	color: var(--isbr-pt-muted);
}
.isbr-pt a.isbr-pt__link,
.isbr-pt a.isbr-pt__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0 3px;
	border-bottom: 2px solid currentColor;
	color: var(--isbr-pt-red);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none;
}
.isbr-pt a.isbr-pt__link svg { transition: transform .2s; }
.isbr-pt a.isbr-pt__link:hover { color: var(--isbr-pt-red-2); }
.isbr-pt a.isbr-pt__link:hover svg { transform: translateX(3px); }
.isbr-pt a.isbr-pt__link:focus-visible {
	outline: 2px solid var(--isbr-pt-red);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---- Wider containers (tablet, desktop, wide Elementor columns) ------ */
@container isbr-pt (min-width: 540px) {
	.isbr-pt__head { padding: 16px 22px; }
	.isbr-pt__window {
		--row-h: 80px;
		--vis-now: var(--vis, 5);
	}
	.isbr-pt.isbr-pt .isbr-pt__list { padding: 0 22px; }
	.isbr-pt.isbr-pt .isbr-pt__row {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) auto;
		grid-template-areas: "brand who ctc";
		column-gap: 16px;
		padding: 12px 0;
	}
	.isbr-pt.isbr-pt .isbr-pt__logo-box { width: 80px; height: 48px; }
	.isbr-pt.isbr-pt .isbr-pt__name { font-size: .98rem; }
	.isbr-pt.isbr-pt .isbr-pt__ctc { min-width: 80px; }
	.isbr-pt__foot { padding: 14px 22px 18px; }
}

@container isbr-pt (min-width: 760px) {
	.isbr-pt.isbr-pt .isbr-pt__logo-box { width: 92px; height: 54px; }
	.isbr-pt.isbr-pt .isbr-pt__company { font-size: 1rem; }
	.isbr-pt.isbr-pt .isbr-pt__name { font-size: 1.02rem; }
}

/* Very narrow phones */
@container isbr-pt (max-width: 340px) {
	.isbr-pt__head { padding: 12px 12px; }
	.isbr-pt.isbr-pt .isbr-pt__list { padding: 0 12px; }
	.isbr-pt.isbr-pt .isbr-pt__ctc { min-width: 58px; padding: 5px 7px; }
	.isbr-pt.isbr-pt .isbr-pt__logo-box { width: 64px; height: 40px; }
	.isbr-pt__brand { gap: 10px; }
	.isbr-pt__foot { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.isbr-pt__dot::after { animation: none; }
	.isbr-pt.isbr-pt .isbr-pt__list { transition: none !important; }
}

/* Elementor: keep the shortcode widget full-width in flex containers so
   the ticker never collapses on mobile (same fix as the testimonial carousel). */
.elementor-widget-shortcode:has(.isbr-pt) {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	min-width: 0;
}

.isbr-pt-empty {
	padding: 12px 16px;
	border: 1px dashed #c9cdd6;
	border-radius: 8px;
	font-size: .9rem;
}
