/* Research Filter Cards — base styles.
   Every value here is a default; the Elementor Style tab overrides all of it. */

.rfc-wrap,
.rfc-wrap *,
.rfc-wrap *::before,
.rfc-wrap *::after { box-sizing: border-box; }

.rfc-wrap { position: relative; width: 100%; }
.rfc-wrap [hidden] { display: none !important; }

.rfc-wrap .rfc-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.rfc-wrap .rfc-ico i { line-height: 1; }
.rfc-wrap .rfc-ico svg { width: 1em; height: 1em; fill: currentColor; }

/* ------------------------------------------------ Filter bar */
.rfc-wrap .rfc-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

/* ------------------------------------------------ Dropdown */
.rfc-wrap .rfc-dd { position: relative; min-width: 190px; }

.rfc-wrap .rfc-dd__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	background: #fff;
	color: #4b5563;
	border: 1px solid #e3e8f0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s, color .2s;
}
.rfc-wrap .rfc-dd__toggle:hover { background: #fff; color: #4b5563; border-color: #c9d3e6; }
.rfc-wrap .rfc-dd__toggle:focus-visible { outline: 2px solid #6d84d6; outline-offset: 2px; }
.rfc-wrap .rfc-dd.is-open .rfc-dd__toggle { border-color: #6d84d6; }

.rfc-wrap .rfc-dd__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rfc-wrap .rfc-dd__arrow { flex: 0 0 auto; font-size: 12px; color: #6b7280; transition: transform .2s; }
.rfc-wrap .rfc-dd.is-open .rfc-dd__arrow { transform: rotate(180deg); }

.rfc-wrap .rfc-dd__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	min-width: 100%;
	max-height: 280px;
	margin: 0;
	padding: 6px;
	list-style: none;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e3e8f0;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(30, 50, 100, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.rfc-wrap .rfc-dd.is-open .rfc-dd__menu { opacity: 1; visibility: visible; transform: none; }

.rfc-wrap .rfc-dd__option {
	margin: 0;
	padding: 9px 12px;
	border-radius: 8px;
	color: #374151;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
	outline: none;
	transition: background-color .15s, color .15s;
}
.rfc-wrap .rfc-dd__option:hover,
.rfc-wrap .rfc-dd__option:focus { background: #f1f4fb; }
.rfc-wrap .rfc-dd__option.is-selected { background: #e8edfb; color: #2b3a67; font-weight: 600; }

/* ------------------------------------------------ Category chips */
.rfc-wrap .rfc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }

.rfc-wrap .rfc-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 18px;
	background: var(--rfc-cat-bg, #eef1f8);
	color: var(--rfc-cat-color, #3b4a7a);
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.rfc-wrap .rfc-chip:hover { transform: translateY(-1px); }
.rfc-wrap .rfc-chip:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.rfc-wrap .rfc-chip.is-active { box-shadow: 0 0 0 2px var(--rfc-cat-color, #3b4a7a); }
.rfc-wrap .rfc-chip__icon { font-size: 16px; }

/* ------------------------------------------------ Grid & card */
.rfc-wrap .rfc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.rfc-wrap .rfc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8ecf4;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(40, 60, 120, .06);
	transition-property: transform, box-shadow, background-color, border-color;
	transition-duration: .3s;
	transition-timing-function: ease;
}
.rfc-wrap .rfc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(40, 60, 120, .13); }

.rfc-wrap.rfc-anim .rfc-card { animation: rfc-fade .45s ease backwards; }
@keyframes rfc-fade {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------ Media (always ABOVE the content) */
.rfc-wrap .rfc-media { flex: 0 0 auto; margin: 0; }

.rfc-wrap .rfc-media__image { width: 100%; height: 200px; overflow: hidden; }
.rfc-wrap .rfc-media__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .5s ease, opacity .3s ease;
}
.rfc-wrap .rfc-card:hover .rfc-media__image img { transform: scale(1.05); }

.rfc-wrap .rfc-media--icon { display: flex; justify-content: flex-start; padding: 22px 22px 0; }
.rfc-wrap .rfc-media__icon {
	width: 64px;
	height: 64px;
	font-size: 28px;
	background: #eef1fb;
	color: #3b4a7a;
	border-radius: 16px;
	transition: background-color .3s, color .3s;
}

/* ------------------------------------------------ Body */
.rfc-wrap .rfc-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 20px 22px 22px; }

.rfc-wrap .rfc-year { margin: 0 0 2px; font-size: 15px; font-weight: 700; line-height: 1.3; color: #111827; }
.rfc-wrap .rfc-journal { margin: 0 0 12px; font-size: 13px; line-height: 1.4; color: #6b7280; }
.rfc-wrap .rfc-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; line-height: 1.55; color: #1e2a4a; }
.rfc-wrap .rfc-desc { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #4b5563; }

.rfc-wrap .rfc-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.rfc-wrap .rfc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	background: var(--rfc-cat-bg, #eef1f8);
	color: var(--rfc-cat-color, #3b4a7a);
	border: 0 solid transparent;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .3s, color .3s;
}

.rfc-wrap .rfc-readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	color: #2b3a67;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: color .2s, background-color .2s;
}
.rfc-wrap a.rfc-readmore:hover { text-decoration: none; }
.rfc-wrap .rfc-readmore__text { font-size: inherit; font-weight: inherit; }
.rfc-wrap .rfc-readmore__arrow { font-size: 12px; transition: transform .25s ease, color .2s; }
.rfc-wrap .rfc-readmore__ext { margin-left: 10px; font-size: 14px; color: #2b3a67; transition: color .2s; }

.rfc-wrap .rfc-card--clickable .rfc-readmore::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ------------------------------------------------ Empty state */
.rfc-wrap .rfc-empty { padding: 48px 16px; text-align: center; font-size: 16px; color: #6b7280; }

/* ------------------------------------------------ Pagination (numbers) */
.rfc-wrap .rfc-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.rfc-wrap .rfc-page-numbers { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.rfc-wrap .rfc-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	background: #fff;
	color: #374151;
	border: 1px solid #e3e8f0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.rfc-wrap .rfc-page-btn:hover:not(:disabled) { background: #eef1fb; color: #2b3a67; border-color: #c9d3e6; }
.rfc-wrap .rfc-page-btn.is-active,
.rfc-wrap .rfc-page-btn.is-active:hover { background: #2b3a67; color: #fff; border-color: #2b3a67; cursor: default; }
.rfc-wrap .rfc-page-btn:disabled { opacity: .45; cursor: not-allowed; }
.rfc-wrap .rfc-page-btn:focus-visible { outline: 2px solid #6d84d6; outline-offset: 2px; }
.rfc-wrap .rfc-page-dots { min-width: 24px; text-align: center; color: #9ca3af; user-select: none; }

/* ------------------------------------------------ Load more */
.rfc-wrap .rfc-loadmore-wrap { display: flex; justify-content: center; margin-top: 32px; }
.rfc-wrap .rfc-loadmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 14px 36px;
	background: #2b3a67;
	color: #fff;
	border: 1px solid #2b3a67;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.rfc-wrap .rfc-loadmore:hover { background: #1f2b4d; color: #fff; border-color: #1f2b4d; }
.rfc-wrap .rfc-loadmore:focus-visible { outline: 2px solid #6d84d6; outline-offset: 3px; }
.rfc-wrap .rfc-loadmore.is-loading { opacity: .75; pointer-events: none; }
.rfc-wrap .rfc-loadmore__loading { display: none; }
.rfc-wrap .rfc-loadmore.is-loading .rfc-loadmore__text { display: none; }
.rfc-wrap .rfc-loadmore.is-loading .rfc-loadmore__loading { display: inline; }

/* ------------------------------------------------ Infinite scroll */
.rfc-wrap .rfc-infinite { display: none; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; color: #6b7280; font-size: 14px; }
.rfc-wrap .rfc-infinite.is-loading { display: flex; }
.rfc-wrap .rfc-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(43, 58, 103, .15);
	border-top-color: #2b3a67;
	border-radius: 50%;
	animation: rfc-spin .8s linear infinite;
}
@keyframes rfc-spin { to { transform: rotate(360deg); } }
.rfc-wrap .rfc-sentinel { width: 100%; height: 1px; }

/* ------------------------------------------------ Responsive */
@media (max-width: 1024px) {
	.rfc-wrap .rfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rfc-wrap .rfc-chips { margin-left: 0; }
}
@media (max-width: 767px) {
	.rfc-wrap .rfc-grid { grid-template-columns: minmax(0, 1fr); }
	.rfc-wrap .rfc-filters { gap: 12px; }
	.rfc-wrap .rfc-dd { flex: 1 1 100%; }
	.rfc-wrap .rfc-chips { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.rfc-wrap.rfc-anim .rfc-card { animation: none; }
	.rfc-wrap .rfc-card,
	.rfc-wrap .rfc-media__image img,
	.rfc-wrap .rfc-dd__menu { transition: none; }
}
