/* ==========================================================================
   RNCOE Events & Academic Calendar – Scoped Frontend Styles
   Prefix: rncoe-ec-
   Theme-proof button resets, 5 Calendar Templates, 100% CSS-var managed colors.
   Developed by PPGIA Umayanga Karunarathna
   ========================================================================== */

.rncoe-ec-root,
.rncoe-ec-modal {
	--rncoe-ec-navy: #071D35;
	--rncoe-ec-navy2: #0D3156;
	--rncoe-ec-blue: #15558A;
	--rncoe-ec-pink: #EC168C;
	--rncoe-ec-pink2: #FF5BB2;
	--rncoe-ec-light-pink: #FFF1F8;
	--rncoe-ec-light-blue: #EFF7FF;
	--rncoe-ec-section-bg: #F8FBFF;
	--rncoe-ec-card-bg: #FFFFFF;
	--rncoe-ec-ink: #172033;
	--rncoe-ec-muted: #687385;
	--rncoe-ec-line: #E5EAF0;
	--rncoe-ec-radius: 20px;
	--rncoe-ec-shadow: 0 8px 26px rgba(7, 29, 53, .06);
	--rncoe-ec-shadow-hover: 0 12px 35px rgba(7, 29, 53, .10);
	--rncoe-ec-font: Inter, Arial, Helvetica, sans-serif;
	--rncoe-ec-spacing: 64px;
	--rncoe-ec-max-width: 1240px;
	--rncoe-ec-modal-width: 860px;
	--rncoe-ec-carousel-cols: 3;
}

.rncoe-ec-root {
	padding: var(--rncoe-ec-spacing) 0;
	background: var(--rncoe-ec-section-bg);
	font-family: var(--rncoe-ec-font);
	color: var(--rncoe-ec-ink);
	line-height: 1.55;
	box-sizing: border-box;
}

.rncoe-ec-root *,
.rncoe-ec-root *::before,
.rncoe-ec-root *::after,
.rncoe-ec-modal *,
.rncoe-ec-modal *::before,
.rncoe-ec-modal *::after {
	box-sizing: border-box;
}

/* Bulletproof button reset against active WordPress theme / Elementor global button styles */
.rncoe-ec-root button,
.rncoe-ec-modal button {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	font-family: var(--rncoe-ec-font) !important;
	font-weight: 700 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	height: auto !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	outline-offset: 2px;
}

.rncoe-ec-theme-light {
	background: var(--rncoe-ec-card-bg);
}

.rncoe-ec-theme-navy {
	background: linear-gradient(180deg, var(--rncoe-ec-navy), var(--rncoe-ec-navy2));
}

.rncoe-ec-theme-navy .rncoe-ec-section-title,
.rncoe-ec-theme-navy .rncoe-ec-carousel-head h3 {
	color: #ffffff;
}

.rncoe-ec-theme-navy .rncoe-ec-intro,
.rncoe-ec-theme-navy .rncoe-ec-carousel-head p,
.rncoe-ec-theme-navy .rncoe-ec-carousel-status {
	color: #dce8f5;
}

.rncoe-ec-container {
	width: min(var(--rncoe-ec-max-width), 92%);
	margin: 0 auto;
}

/* Section Header */
.rncoe-ec-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.rncoe-ec-section-title {
	margin: 0;
	color: var(--rncoe-ec-navy);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
}

.rncoe-ec-section-title::before {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	background: var(--rncoe-ec-pink);
	border-radius: 10px;
	margin-bottom: 9px;
}

.rncoe-ec-view-all {
	color: var(--rncoe-ec-pink);
	font-size: 12px;
	font-weight: 900;
	text-decoration: none;
}

.rncoe-ec-view-all:hover {
	text-decoration: underline;
}

.rncoe-ec-intro {
	max-width: 720px;
	margin: 0 0 26px;
	color: var(--rncoe-ec-muted);
	font-size: 14px;
}

/* Category Filter Bar */
.rncoe-ec-cat-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
}

.rncoe-ec-root button.rncoe-ec-cat-pill {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 8px 15px !important;
	border: 1px solid var(--rncoe-ec-line) !important;
	border-radius: 999px !important;
	background: var(--rncoe-ec-card-bg) !important;
	color: var(--rncoe-ec-navy) !important;
	font-size: 11.5px !important;
	transition: .18s ease;
}

.rncoe-ec-root button.rncoe-ec-cat-pill:hover {
	border-color: var(--rncoe-ec-pink) !important;
	color: var(--rncoe-ec-pink) !important;
	background: var(--rncoe-ec-light-pink) !important;
}

.rncoe-ec-root button.rncoe-ec-cat-pill.is-active {
	background: var(--rncoe-ec-pink) !important;
	border-color: var(--rncoe-ec-pink) !important;
	color: #ffffff !important;
}

.rncoe-ec-cat-swatch {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex: none;
}

.rncoe-ec-cat-pill.is-active .rncoe-ec-cat-swatch {
	background: #ffffff !important;
}

/* Two-Column Desktop Layout */
.rncoe-ec-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
	gap: 24px;
	align-items: stretch;
}

.rncoe-ec-layout-stacked .rncoe-ec-layout {
	grid-template-columns: 1fr;
}

.rncoe-ec-panel {
	min-width: 0;
	background: var(--rncoe-ec-card-bg);
	border: 1px solid var(--rncoe-ec-line);
	border-radius: var(--rncoe-ec-radius);
	padding: 24px;
	box-shadow: var(--rncoe-ec-shadow);
}

.rncoe-ec-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.rncoe-ec-panel-head h3 {
	margin: 0;
	color: var(--rncoe-ec-navy);
	font-size: 18px;
	font-weight: 800;
}

.rncoe-ec-meta-tag {
	font-size: 10px;
	color: var(--rncoe-ec-pink);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .8px;
}

/* Month & Carousel Navigation Arrows (compact, theme-proof) */
.rncoe-ec-month-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rncoe-ec-month-label {
	min-width: 132px;
	text-align: center;
	color: var(--rncoe-ec-navy);
	font-weight: 800;
	font-size: 14px;
}

.rncoe-ec-root button.rncoe-ec-nav-btn {
	width: 36px !important;
	height: 36px !important;
	border: 1px solid var(--rncoe-ec-line) !important;
	border-radius: 50% !important;
	background: var(--rncoe-ec-card-bg) !important;
	color: var(--rncoe-ec-navy) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	transition: .18s ease;
}

.rncoe-ec-root button.rncoe-ec-nav-btn:hover,
.rncoe-ec-root button.rncoe-ec-nav-btn:focus-visible {
	background: var(--rncoe-ec-light-pink) !important;
	border-color: var(--rncoe-ec-pink2) !important;
	color: var(--rncoe-ec-pink) !important;
}

/* ==========================================================================
   MONTHLY CALENDAR – BASE + 5 SELECTABLE TEMPLATES
   ========================================================================== */
.rncoe-ec-calendar {
	width: 100%;
	border-collapse: separate;
	border-spacing: 4px;
	table-layout: fixed;
	margin: 0;
	border: 0;
}

.rncoe-ec-calendar th {
	padding: 8px 2px;
	color: var(--rncoe-ec-muted);
	font-size: 10.5px;
	font-weight: 800;
	text-align: center;
	border: 0;
	background: transparent;
	letter-spacing: .5px;
}

.rncoe-ec-calendar td {
	height: 46px;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	border: 0;
	background: transparent;
}

/* Base Day Button: Normal clean calendar date (transparent/white, dark ink text) */
.rncoe-ec-root button.rncoe-ec-day {
	position: relative;
	width: 40px !important;
	height: 40px !important;
	margin: 0 auto !important;
	border: 1.5px solid transparent !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--rncoe-ec-ink) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: .18s ease;
}

.rncoe-ec-root button.rncoe-ec-day:hover,
.rncoe-ec-root button.rncoe-ec-day:focus-visible {
	background: var(--rncoe-ec-light-blue) !important;
	border-color: var(--rncoe-ec-light-blue) !important;
	color: var(--rncoe-ec-navy) !important;
}

.rncoe-ec-day-dots {
	position: absolute;
	bottom: 3px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 3px;
	pointer-events: none;
}

.rncoe-ec-day-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--rncoe-ec-pink);
	display: block;
}

.rncoe-ec-day.is-outside {
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Today ring (normal calendar) */
.rncoe-ec-root button.rncoe-ec-day.is-today:not(.is-selected) {
	border-color: var(--rncoe-ec-navy) !important;
	color: var(--rncoe-ec-navy) !important;
	font-weight: 800 !important;
}

/* Selected date (filled pink circle by default) */
.rncoe-ec-root button.rncoe-ec-day.is-selected {
	background: var(--rncoe-ec-pink) !important;
	border-color: var(--rncoe-ec-pink) !important;
	color: #ffffff !important;
	font-weight: 800 !important;
	box-shadow: 0 5px 14px rgba(236, 22, 140, .28) !important;
}

.rncoe-ec-root button.rncoe-ec-day.is-selected.is-outlined {
	background: var(--rncoe-ec-light-pink) !important;
	color: var(--rncoe-ec-pink) !important;
	border-color: var(--rncoe-ec-pink) !important;
	box-shadow: none !important;
}

.rncoe-ec-root button.rncoe-ec-day.is-selected .rncoe-ec-day-dot {
	background: #ffffff;
}

.rncoe-ec-root button.rncoe-ec-day.is-selected.is-outlined .rncoe-ec-day-dot {
	background: var(--rncoe-ec-pink);
}

/* TEMPLATE 1: classic-circle (Default – Normal Calendar + Pink Circle Event Dates) */
.rncoe-ec-cal-tpl-classic-circle button.rncoe-ec-day.is-event:not(.is-selected) {
	background: var(--rncoe-ec-light-pink) !important;
	border: 2px solid var(--rncoe-ec-pink) !important;
	color: var(--rncoe-ec-pink) !important;
	font-weight: 800 !important;
}

.rncoe-ec-cal-tpl-classic-circle button.rncoe-ec-day.is-event:not(.is-selected):hover {
	background: var(--rncoe-ec-pink) !important;
	color: #ffffff !important;
}

.rncoe-ec-cal-tpl-classic-circle button.rncoe-ec-day.is-event:not(.is-selected) .rncoe-ec-day-dots {
	bottom: 2px;
}

/* TEMPLATE 2: rncoe-modern (Soft rounded cells + pink dot indicators) */
.rncoe-ec-cal-tpl-rncoe-modern button.rncoe-ec-day {
	width: 100% !important;
	height: 40px !important;
	border-radius: 11px !important;
	background: var(--rncoe-ec-card-bg) !important;
}

.rncoe-ec-cal-tpl-rncoe-modern button.rncoe-ec-day.is-event:not(.is-selected) {
	background: var(--rncoe-ec-light-pink) !important;
	color: var(--rncoe-ec-navy) !important;
	font-weight: 700 !important;
}

/* TEMPLATE 3: minimal-clean (Ultra-clean borderless + circle rings) */
.rncoe-ec-cal-tpl-minimal-clean .rncoe-ec-calendar thead tr {
	border-bottom: 1px solid var(--rncoe-ec-line);
}

.rncoe-ec-cal-tpl-minimal-clean button.rncoe-ec-day.is-event:not(.is-selected) {
	border: 2px solid var(--rncoe-ec-pink) !important;
	color: var(--rncoe-ec-navy) !important;
	font-weight: 800 !important;
}

/* TEMPLATE 4: bordered-grid (Institutional lined grid + pink circle event dates) */
.rncoe-ec-cal-tpl-bordered-grid .rncoe-ec-calendar {
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid var(--rncoe-ec-line);
	border-radius: 10px;
	overflow: hidden;
}

.rncoe-ec-cal-tpl-bordered-grid .rncoe-ec-calendar th {
	background: var(--rncoe-ec-light-blue);
	color: var(--rncoe-ec-navy);
	border: 1px solid var(--rncoe-ec-line);
	padding: 9px 2px;
}

.rncoe-ec-cal-tpl-bordered-grid .rncoe-ec-calendar td {
	border: 1px solid var(--rncoe-ec-line);
	height: 48px;
}

.rncoe-ec-cal-tpl-bordered-grid button.rncoe-ec-day.is-event:not(.is-selected) {
	background: var(--rncoe-ec-light-pink) !important;
	border: 2px solid var(--rncoe-ec-pink) !important;
	color: var(--rncoe-ec-pink) !important;
	font-weight: 800 !important;
}

/* TEMPLATE 5: navy-header (RNCOE Navy weekday header bar + clean grid + pink circles) */
.rncoe-ec-cal-tpl-navy-header .rncoe-ec-calendar {
	border-collapse: separate;
	border-spacing: 0 4px;
}

.rncoe-ec-cal-tpl-navy-header .rncoe-ec-calendar th {
	background: var(--rncoe-ec-navy);
	color: #ffffff;
	padding: 10px 2px;
}

.rncoe-ec-cal-tpl-navy-header .rncoe-ec-calendar th:first-child {
	border-radius: 10px 0 0 10px;
}

.rncoe-ec-cal-tpl-navy-header .rncoe-ec-calendar th:last-child {
	border-radius: 0 10px 10px 0;
}

.rncoe-ec-cal-tpl-navy-header button.rncoe-ec-day.is-event:not(.is-selected) {
	background: var(--rncoe-ec-light-pink) !important;
	border: 2px solid var(--rncoe-ec-pink) !important;
	color: var(--rncoe-ec-pink) !important;
	font-weight: 800 !important;
}

/* Calendar Legend & Selection Note */
.rncoe-ec-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 14px 2px 0;
	color: var(--rncoe-ec-muted);
	font-size: 11px;
}

.rncoe-ec-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rncoe-ec-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rncoe-ec-light-pink);
	border: 2px solid var(--rncoe-ec-pink);
	display: inline-block;
}

.rncoe-ec-legend-today {
	width: 10px;
	height: 10px;
	border: 1.5px solid var(--rncoe-ec-navy);
	border-radius: 50%;
	display: inline-block;
}

.rncoe-ec-selection-note {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 11px;
	background: var(--rncoe-ec-light-blue);
	color: var(--rncoe-ec-blue);
	font-size: 11.5px;
	line-height: 1.5;
}

/* Selected Event Feature Panel */
.rncoe-ec-feature {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.rncoe-ec-selected-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.rncoe-ec-multi-switcher {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	padding: 7px 11px;
	border-radius: 10px;
	background: var(--rncoe-ec-light-pink);
	color: var(--rncoe-ec-navy);
	font-size: 11px;
	font-weight: 700;
}

.rncoe-ec-multi-switcher-btns {
	display: flex;
	gap: 5px;
}

.rncoe-ec-root button.rncoe-ec-mini-btn {
	width: 26px !important;
	height: 26px !important;
	border: 1px solid var(--rncoe-ec-pink2) !important;
	border-radius: 7px !important;
	background: var(--rncoe-ec-card-bg) !important;
	color: var(--rncoe-ec-pink) !important;
	font-size: 14px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.rncoe-ec-root button.rncoe-ec-mini-btn:hover {
	background: var(--rncoe-ec-pink) !important;
	color: #ffffff !important;
}

.rncoe-ec-feature-image {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--rncoe-ec-navy), var(--rncoe-ec-blue));
}

.rncoe-ec-feature-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.rncoe-ec-feature-image:hover img {
	transform: scale(1.035);
}

.rncoe-ec-placeholder-art {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--rncoe-ec-navy), var(--rncoe-ec-blue));
	color: #ffffff;
	text-align: center;
	padding: 18px;
}

.rncoe-ec-placeholder-art span {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: .85;
}

.rncoe-ec-placeholder-art strong {
	font-size: 15px;
	margin-top: 4px;
	color: #ffffff;
}

.rncoe-ec-feature-date {
	position: absolute;
	left: 13px;
	top: 13px;
	padding: 7px 11px;
	border-radius: 10px;
	background: var(--rncoe-ec-pink);
	color: #ffffff;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.rncoe-ec-feature-copy {
	padding: 17px 2px 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.rncoe-ec-feature-category {
	color: var(--rncoe-ec-pink);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	display: inline-block;
}

.rncoe-ec-feature-copy h3 {
	margin: 7px 0 8px;
	color: var(--rncoe-ec-navy);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.22;
}

.rncoe-ec-feature-copy p {
	margin: 0 0 13px;
	color: var(--rncoe-ec-muted);
	font-size: 13px;
	line-height: 1.65;
}

.rncoe-ec-feature-meta {
	display: grid;
	gap: 7px;
	margin: 0 0 18px;
	color: var(--rncoe-ec-navy);
	font-size: 12px;
}

.rncoe-ec-feature-meta span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rncoe-ec-feature-meta b {
	color: var(--rncoe-ec-pink);
	font-size: 14px;
	font-weight: 700;
}

.rncoe-ec-feature-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
}

.rncoe-ec-root button.rncoe-ec-detail-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 11px 20px !important;
	background: var(--rncoe-ec-pink) !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	box-shadow: 0 6px 16px rgba(236, 22, 140, .20) !important;
	transition: .2s ease;
}

.rncoe-ec-root button.rncoe-ec-detail-btn:hover,
.rncoe-ec-root button.rncoe-ec-detail-btn:focus-visible {
	background: var(--rncoe-ec-pink2) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.rncoe-ec-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 290px;
	text-align: center;
	padding: 25px;
	color: var(--rncoe-ec-muted);
}

.rncoe-ec-empty-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 15px;
	background: var(--rncoe-ec-light-pink);
	color: var(--rncoe-ec-pink);
	font-size: 22px;
}

.rncoe-ec-empty h4 {
	margin: 0 0 6px;
	color: var(--rncoe-ec-navy);
	font-size: 17px;
	font-weight: 800;
}

.rncoe-ec-empty p {
	max-width: 270px;
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
}

/* ==========================================================================
   UPCOMING EVENT HIGHLIGHTS CAROUSEL – REFINED LAYOUT, SPACING & BUTTON SIZES
   ========================================================================== */
.rncoe-ec-carousel-wrap {
	margin-top: 34px;
}

.rncoe-ec-carousel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.rncoe-ec-carousel-head h3 {
	margin: 0;
	color: var(--rncoe-ec-navy);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
}

.rncoe-ec-carousel-head p {
	margin: 4px 0 0;
	color: var(--rncoe-ec-muted);
	font-size: 12.5px;
}

.rncoe-ec-carousel-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.rncoe-ec-carousel-viewport {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	padding: 4px 2px 14px;
}

.rncoe-ec-carousel-viewport::-webkit-scrollbar {
	display: none;
}

.rncoe-ec-carousel-card {
	flex: 0 0 calc((100% - (var(--rncoe-ec-carousel-cols) - 1) * 18px) / var(--rncoe-ec-carousel-cols));
	min-width: 0;
	overflow: hidden;
	scroll-snap-align: start;
	border: 1px solid var(--rncoe-ec-line);
	border-radius: 16px;
	background: var(--rncoe-ec-card-bg);
	box-shadow: var(--rncoe-ec-shadow);
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}

.rncoe-ec-carousel-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rncoe-ec-shadow-hover);
}

.rncoe-ec-carousel-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--rncoe-ec-light-blue);
	overflow: hidden;
}

.rncoe-ec-carousel-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.rncoe-ec-carousel-card:hover .rncoe-ec-carousel-image img {
	transform: scale(1.03);
}

.rncoe-ec-carousel-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.rncoe-ec-carousel-date {
	color: var(--rncoe-ec-pink);
	font-size: 10.5px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .6px;
}

.rncoe-ec-carousel-body h4 {
	margin: 2px 0 0;
	color: var(--rncoe-ec-navy);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
}

.rncoe-ec-carousel-body p {
	margin: 0 0 8px;
	color: var(--rncoe-ec-muted);
	font-size: 12px;
	line-height: 1.45;
}

.rncoe-ec-root button.rncoe-ec-carousel-open {
	margin-top: auto !important;
	align-self: flex-start !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px;
	padding: 7px 14px !important;
	border-radius: 999px !important;
	border: 1px solid var(--rncoe-ec-pink) !important;
	background: var(--rncoe-ec-light-pink) !important;
	color: var(--rncoe-ec-pink) !important;
	font-size: 11.5px !important;
	font-weight: 800 !important;
	transition: .18s ease;
}

.rncoe-ec-root button.rncoe-ec-carousel-open:hover,
.rncoe-ec-root button.rncoe-ec-carousel-open:focus-visible {
	background: var(--rncoe-ec-pink) !important;
	color: #ffffff !important;
}

.rncoe-ec-carousel-status {
	margin-top: 6px;
	color: var(--rncoe-ec-muted);
	font-size: 11px;
	text-align: right;
}

/* ==========================================================================
   ACCESSIBLE EVENT DETAILS POPUP MODAL – WIDER + 100% CSS-VAR MANAGED
   ========================================================================== */
.rncoe-ec-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(4, 18, 34, .74);
	backdrop-filter: blur(5px);
	font-family: var(--rncoe-ec-font);
}

.rncoe-ec-modal.is-open {
	display: flex;
}

.rncoe-ec-modal-dialog {
	position: relative;
	width: min(var(--rncoe-ec-modal-width), 94vw);
	max-height: min(90vh, 880px);
	overflow-y: auto;
	border-radius: var(--rncoe-ec-radius);
	background: var(--rncoe-ec-card-bg);
	color: var(--rncoe-ec-ink);
	border: 1px solid var(--rncoe-ec-line);
	box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
	animation: rncoeEcModalIn .22s ease-out;
}

@keyframes rncoeEcModalIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.rncoe-ec-modal button.rncoe-ec-modal-close {
	position: absolute !important;
	z-index: 3;
	right: 16px;
	top: 16px;
	width: 38px !important;
	height: 38px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--rncoe-ec-navy) !important;
	color: #ffffff !important;
	font-size: 22px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25) !important;
	transition: .18s ease;
}

.rncoe-ec-modal button.rncoe-ec-modal-close:hover,
.rncoe-ec-modal button.rncoe-ec-modal-close:focus-visible {
	background: var(--rncoe-ec-pink) !important;
	color: #ffffff !important;
	outline: 2px solid #ffffff;
}

.rncoe-ec-modal-image {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	display: block;
	background: var(--rncoe-ec-light-blue);
}

.rncoe-ec-modal-content {
	padding: 28px 32px 32px;
}

.rncoe-ec-modal-content h3 {
	margin: 8px 0 14px;
	color: var(--rncoe-ec-navy);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.25;
}

.rncoe-ec-modal-desc {
	margin: 0 0 22px;
	color: var(--rncoe-ec-ink);
	font-size: 14.5px;
	line-height: 1.75;
}

.rncoe-ec-modal-desc p {
	margin: 0 0 12px;
}

.rncoe-ec-modal-desc p:last-child {
	margin-bottom: 0;
}

.rncoe-ec-modal-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.rncoe-ec-modal-meta-item {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--rncoe-ec-light-blue);
	border: 1px solid var(--rncoe-ec-line);
}

.rncoe-ec-modal-meta-item.is-full {
	grid-column: 1 / -1;
}

.rncoe-ec-modal-meta-item small {
	display: block;
	color: var(--rncoe-ec-muted);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .7px;
}

.rncoe-ec-modal-meta-item strong {
	display: block;
	margin-top: 4px;
	color: var(--rncoe-ec-navy);
	font-size: 13.5px;
}

.rncoe-ec-modal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.rncoe-ec-modal-ext-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--rncoe-ec-pink);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.rncoe-ec-modal-ext-btn:hover {
	background: var(--rncoe-ec-pink2);
	color: #ffffff;
}

.rncoe-ec-modal-map-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--rncoe-ec-light-blue);
	color: var(--rncoe-ec-navy);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	border: 1px solid var(--rncoe-ec-line);
}

.rncoe-ec-modal-map-btn:hover {
	background: var(--rncoe-ec-light-pink);
	color: var(--rncoe-ec-pink);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
	.rncoe-ec-layout {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
	.rncoe-ec-panel {
		padding: 18px;
	}
	.rncoe-ec-carousel-card {
		flex-basis: calc((100% - 18px) / 2);
	}
}

@media (max-width: 700px) {
	.rncoe-ec-root {
		padding: 44px 0;
	}
	.rncoe-ec-layout {
		grid-template-columns: 1fr;
	}
	.rncoe-ec-panel {
		padding: 18px;
	}
	.rncoe-ec-calendar td {
		height: 44px;
	}
	.rncoe-ec-root button.rncoe-ec-day {
		width: 38px !important;
		height: 38px !important;
	}
	.rncoe-ec-feature-copy h3 {
		font-size: 20px;
	}
	.rncoe-ec-carousel-card {
		flex-basis: 84%;
	}
	.rncoe-ec-modal {
		padding: 12px;
	}
	.rncoe-ec-modal-image {
		max-height: 220px;
	}
	.rncoe-ec-modal-content {
		padding: 20px;
	}
	.rncoe-ec-modal-content h3 {
		font-size: 21px;
	}
	.rncoe-ec-modal-meta {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rncoe-ec-root *,
	.rncoe-ec-modal-dialog {
		scroll-behavior: auto !important;
		animation: none !important;
		transition: none !important;
	}
}
