/* NCLE Site Extras — front-end styles. Colours/fonts come from the Elementor kit (globals) with fallbacks. */

/* ---------------------------------------------------------------------------------------------------------
 * 1) Reports & Presentations grid (Elementor loop item #2486): the "Download Reports" accordion is absolutely
 *    positioned in a 300px card; with many PDFs the open list ran past the card and under the next row.
 *    Cap the list to the space left inside the card (300 − 20 top − 30 button − 20 bottom) and scroll it.
 * ------------------------------------------------------------------------------------------------------- */
.elementor-2486 .elementor-element-c501091 {
	z-index: 3; /* stay above the card title (Elementor widgets are position:relative and later in the DOM) */
}
.elementor-2486 .elementor-element-c501091 .e-n-accordion-item > [role="region"] {
	/* Chrome drops the panel's backdrop blur once the list scrolls, letting the white card title show through:
	   give the list its own near-solid fill in the panel's rendered colour. */
	background-color: rgba(132, 152, 171, .95);
	border-radius: 0 0 4px 4px;
	max-height: 230px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(11, 15, 22, .35) transparent;
}
.elementor-2486 .elementor-element-c501091 .e-n-accordion-item > [role="region"]::-webkit-scrollbar { width: 6px; }
.elementor-2486 .elementor-element-c501091 .e-n-accordion-item > [role="region"]::-webkit-scrollbar-thumb {
	background: rgba(11, 15, 22, .35);
	border-radius: 3px;
}

/* ---------------------------------------------------------------------------------------------------------
 * 2) Meeting recordings ([ncle_recordings] / Elementor "Meeting Recordings" widget)
 * ------------------------------------------------------------------------------------------------------- */
.ncle-rec {
	--ncle-green: var(--e-global-color-fbdf4e4, #00A297);
	--ncle-green-dark: var(--e-global-color-9b38f19, #00887F);
	--ncle-green-light: var(--e-global-color-4e523f0, #D4ECEA);
	--ncle-ink: var(--e-global-color-4f1d7fb, #0B0F16);
	--ncle-card-bg: var(--e-global-color-6ba5586, #F2F7F7);
	--ncle-muted: #5b6470;
	--ncle-radius: 12px;
	--ncle-gap: 25px;
	--ncle-font: var(--e-global-typography-48f40bd-font-family, inherit);
	--ncle-heading-font: var(--e-global-typography-c2d89a3-font-family, inherit);
	font-family: var(--ncle-font), sans-serif;
}

.ncle-rec__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-block-end: 30px;
}
/* Reset the theme/kit global button styles (red borders, hover colours) inside the widget. */
.ncle-rec .ncle-rec__filter,
.ncle-rec .ncle-rec__play {
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	min-height: 0;
}
.ncle-rec .ncle-rec__filter {
	font: inherit;
	font-size: var(--e-global-typography-48f40bd-font-size, 16px);
	line-height: var(--e-global-typography-48f40bd-line-height, 1.5);
	padding: 5px 15px;
	border: 1px solid var(--e-global-color-2d88787, #d0d5dd);
	border-radius: 100px;
	background: transparent;
	color: var(--ncle-ink);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.ncle-rec .ncle-rec__filter:hover,
.ncle-rec .ncle-rec__filter:focus,
.ncle-rec .ncle-rec__filter[aria-pressed="true"] {
	background: var(--ncle-green);
	border-color: var(--ncle-green);
	color: #fff;
}
.ncle-rec__filter:focus-visible { outline: 2px solid var(--ncle-green-dark); outline-offset: 2px; }

.ncle-rec__grid {
	display: grid;
	grid-template-columns: repeat(var(--ncle-rec-cols, 3), minmax(0, 1fr));
	gap: var(--ncle-gap);
}
@media (max-width: 1024px) { .ncle-rec__grid { grid-template-columns: repeat(min(var(--ncle-rec-cols, 3), 2), minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 767px)  { .ncle-rec__grid { grid-template-columns: 1fr; } }

.ncle-rec__card {
	display: flex;
	flex-direction: column;
	background: var(--ncle-card-bg);
	border-radius: var(--ncle-radius);
	overflow: hidden;
}
.ncle-rec__card[hidden] { display: none; }

.ncle-rec__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--ncle-ink);
}
.ncle-rec__media iframe,
.ncle-rec__play,
.ncle-rec__play img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.ncle-rec .ncle-rec__play,
.ncle-rec .ncle-rec__play:hover,
.ncle-rec .ncle-rec__play:focus {
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 0;
}
.ncle-rec__play img { object-fit: cover; transition: transform .5s; }
.ncle-rec__play::after { /* same gradient as the report cards */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(2, 1, 1, .2) 0%, rgba(11, 15, 22, .55) 100%);
	transition: opacity .3s;
}
.ncle-rec__icon {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ncle-green);
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	transition: transform .3s, background-color .3s;
}
.ncle-rec__icon svg { margin-inline-start: 3px; }
[dir="rtl"] .ncle-rec__icon svg, .rtl .ncle-rec__icon svg { margin-inline-start: 0; margin-left: 3px; }
.ncle-rec__play:hover img { transform: scale(1.04); }
.ncle-rec__play:hover .ncle-rec__icon,
.ncle-rec__play:focus-visible .ncle-rec__icon { transform: scale(1.08); background: var(--ncle-green-dark); }
.ncle-rec__play:focus-visible { outline: 3px solid var(--ncle-green); outline-offset: -3px; }

.ncle-rec__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 20px 25px 25px;
}
.ncle-rec__period {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 100px;
	background: var(--ncle-green-light);
	color: var(--ncle-green-dark);
	font-size: 14px;
	line-height: 1.6;
}
.ncle-rec__title,
.ncle-rec__desc {
	unicode-bidi: plaintext; /* English text on Arabic pages (and vice versa) keeps its own direction… */
	align-self: stretch;
	text-align: left;       /* …while alignment follows the page */
}
[dir="rtl"] .ncle-rec__title, [dir="rtl"] .ncle-rec__desc,
.rtl .ncle-rec__title, .rtl .ncle-rec__desc { text-align: right; }
.ncle-rec__title {
	margin: 4px 0 0;
	font-family: var(--ncle-heading-font), sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ncle-ink);
}
.ncle-rec__date { font-size: 14px; color: var(--ncle-muted); }
.ncle-rec__desc { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--ncle-muted); }

.ncle-rec--empty p { margin: 0; color: var(--ncle-muted); }

@media (prefers-reduced-motion: reduce) {
	.ncle-rec__play img, .ncle-rec__icon { transition: none; }
}
