/* AFAMS Research & News Section Widget Stylesheet */

.afam-research-news-wrapper {
	width: 100%;
	padding: 30px 0;
	font-family: 'Montserrat', 'Open Sans', sans-serif;
	box-sizing: border-box;
}

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

.afam-research-news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	width: 100%;
}

.afam-research-banner,
.afam-news-container {
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.afam-research-news-grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
}

@media (max-width: 600px) {
	.afam-news-item-desc {
		white-space: normal !important;
	}
	.afam-news-container {
		padding: 24px 18px !important;
	}
	.afam-research-banner {
		padding: 30px 20px !important;
		min-height: 300px !important;
	}
	.afam-research-title {
		font-size: 22px !important;
	}
}

/* LEFT BLOCK: RESEARCH BANNER */
.afam-research-banner {
	position: relative;
	border-radius: 18px;
	padding: 40px 36px;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	overflow: hidden;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	box-shadow: 0 8px 24px rgba(10, 25, 47, 0.08);
}

.afam-research-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #051429 0%, rgba(5, 20, 41, 0.94) 55%, rgba(12, 39, 77, 0.65) 100%);
	z-index: 1;
}

.afam-research-content {
	position: relative;
	z-index: 2;
	color: #ffffff;
	width: 100%;
	max-width: 100%;
}

.afam-research-badge {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-bottom: 20px;
}

.afam-research-banner .afam-research-title,
.afam-research-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px 0;
	letter-spacing: -0.3px;
}

.afam-research-banner .afam-research-desc,
.afam-research-desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: #b0c6e8;
	margin: 0 0 24px 0;
	font-weight: 400;
}

.afam-research-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	font-size: 13.5px;
	font-weight: 700;
	padding: 11px 24px;
	border-radius: 8px;
	text-decoration: none;
	backdrop-filter: blur(4px);
	transition: all 0.25s ease;
}

.afam-research-btn:hover {
	background: #ffffff;
	color: #051429;
	border-color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(255, 255, 255, 0.2);
}

.afam-research-btn .afam-arrow {
	transition: transform 0.25s ease;
}

.afam-research-btn:hover .afam-arrow {
	transform: translateX(4px);
}

/* RIGHT BLOCK: NEWS CONTAINER */
.afam-news-container {
	background: #ffffff;
	border-radius: 18px;
	padding: 32px 34px;
	box-shadow: 0 6px 20px rgba(10, 25, 47, 0.04);
	border: 1px solid #f0f4f8;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.afam-news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.afam-news-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #0a192f;
	margin: 0 0 4px 0;
}

.afam-news-accent {
	display: block;
	width: 34px;
	height: 3px;
	background-color: #d4af37;
	border-radius: 2px;
}

.afam-viewall-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: #0a192f;
	text-decoration: none;
	transition: color 0.2s ease;
}

.afam-viewall-link:hover {
	color: #d4af37;
}

.afam-viewall-link .afam-arrow {
	transition: transform 0.2s ease;
}

.afam-viewall-link:hover .afam-arrow {
	transform: translateX(3px);
}

/* NEWS LIST */
.afam-news-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.afam-news-item {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 10px;
	transition: background-color 0.2s ease;
}

.afam-news-item:hover {
	background-color: #f8fafc;
}

.afam-news-thumb-wrap {
	width: 95px;
	height: 68px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background-color: #0a192f;
}

.afam-news-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.afam-news-item:hover .afam-news-thumb {
	transform: scale(1.06);
}

.afam-news-info {
	flex: 1;
	overflow: hidden;
}

.afam-news-date {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 2px;
}

.afam-news-item-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: #0a192f;
	margin: 0 0 3px 0;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.afam-news-item:hover .afam-news-item-title {
	color: #0d3875;
}

.afam-news-item-desc {
	font-size: 12px;
	color: #64748b;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.afam-research-news-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 600px) {
	.afam-news-item-desc {
		white-space: normal;
	}
	.afam-news-container {
		padding: 24px 18px;
	}
	.afam-research-banner {
		padding: 30px 20px;
		min-height: 320px;
	}
	.afam-research-title {
		font-size: 22px;
	}
}
