/* AFAMS Research Support & Editorial Board Widget Stylesheet */

.afam-research-editorial-wrapper {
	width: 100%;
	padding: 50px 0;
	background-color: transparent;
	font-family: 'Montserrat', 'Open Sans', sans-serif;
	box-sizing: border-box;
}

.afam-research-editorial-wrapper *,
.afam-research-editorial-wrapper *::before,
.afam-research-editorial-wrapper *::after {
	box-sizing: border-box;
}

.afam-research-editorial-wrapper .afam-container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

/* MAIN GRID */
.afam-research-editorial-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	align-items: stretch;
	width: 100%;
}

/* LEFT CARD: RESEARCH SUPPORT */
.afam-research-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 36px 30px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 4px 18px rgba(11, 28, 63, 0.03);
	height: 100%;
}

.afam-research-card-content {
	position: relative;
	z-index: 2;
	max-width: 62%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.afam-research-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #0b1c3f;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 14px 0;
	line-height: 1.3;
}

.afam-research-desc {
	font-family: 'Open Sans', 'Montserrat', sans-serif;
	font-size: 14px;
	color: #4a5568;
	line-height: 1.55;
	margin: 0 0 22px 0;
}

.afam-research-list {
	list-style: none;
	padding: 0;
	margin: 0 0 28px 0;
	width: 100%;
}

.afam-research-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: #0b1c3f;
	margin-bottom: 12px;
	line-height: 1.3;
}

.afam-list-icon {
	color: #d4a359;
	font-size: 16px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.afam-list-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* SOLID GOLD BUTTON */
.afam-btn-gold {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: #d4a359;
	color: #ffffff;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: 5px;
	text-decoration: none;
	border: 1.5px solid #d4a359;
	box-shadow: 0 4px 12px rgba(212, 163, 89, 0.25);
	transition: all 0.3s ease;
	cursor: pointer;
}

.afam-btn-gold:hover,
.afam-btn-gold:focus {
	background-color: #0b1c3f;
	border-color: #0b1c3f;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(11, 28, 63, 0.2);
	transform: translateY(-2px);
}

/* RIGHT SIDE BACKGROUND IMAGE ON LEFT CARD */
.afam-research-card-img-wrap {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 50%;
	height: 85%;
	z-index: 1;
	pointer-events: none;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}

.afam-research-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom right;
	mask-image: linear-gradient(to right, transparent 0%, black 25%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* RIGHT CARD: EDITORIAL BOARD */
.afam-editorial-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 36px 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 4px 18px rgba(11, 28, 63, 0.03);
	height: 100%;
}

.afam-editorial-card-content {
	display: flex;
	flex-direction: column;
}

.afam-editorial-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #0b1c3f;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 14px 0;
	line-height: 1.3;
}

.afam-editorial-desc {
	font-family: 'Open Sans', 'Montserrat', sans-serif;
	font-size: 14px;
	color: #4a5568;
	line-height: 1.55;
	margin: 0 0 28px 0;
}

/* MEMBERS ROW */
.afam-editorial-members-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 30px;
	width: 100%;
}

.afam-editorial-member {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.afam-member-avatar-wrap {
	width: 78px;
	height: 78px;
	border-radius: 50%;
	border: 2px solid #d4a359;
	overflow: hidden;
	margin-bottom: 12px;
	box-shadow: 0 4px 12px rgba(11, 28, 63, 0.06);
	background-color: #f8fafc;
	flex-shrink: 0;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.afam-editorial-member:hover .afam-member-avatar-wrap {
	transform: scale(1.06);
	border-color: #0b1c3f;
}

.afam-member-avatar-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afam-member-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	color: #0b1c3f;
	margin: 0 0 4px 0;
	line-height: 1.25;
}

.afam-member-role {
	font-family: 'Open Sans', 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin: 0;
	line-height: 1.25;
}

/* OUTLINE BUTTON */
.afam-editorial-btn-wrap {
	text-align: center;
	margin-top: auto;
	padding-top: 10px;
}

.afam-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: transparent;
	color: #0b1c3f;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 12px 28px;
	border-radius: 6px;
	border: 1.5px solid #0b1c3f;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.afam-btn-outline:hover,
.afam-btn-outline:focus {
	background-color: #0b1c3f;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(11, 28, 63, 0.18);
	transform: translateY(-2px);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1199px) {
	.afam-research-card-content {
		max-width: 60%;
	}

	.afam-editorial-members-row {
		gap: 12px;
	}

	.afam-member-avatar-wrap {
		width: 70px;
		height: 70px;
	}
}

@media (max-width: 991px) {
	.afam-research-editorial-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.afam-research-card-content {
		max-width: 65%;
	}
}

@media (max-width: 650px) {
	.afam-research-card {
		padding: 30px 20px;
	}

	.afam-research-card-content {
		max-width: 100%;
	}

	.afam-research-card-img-wrap {
		display: none;
	}

	.afam-editorial-card {
		padding: 30px 20px;
	}

	.afam-editorial-members-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}
