/* =============================================
   News & Media — Single Post Widgets
   Semantic HTML + CSS Grid, no frameworks
   ============================================= */

/* ==========================================
   Widget: Single News Container (.nams-single)
   ========================================== */

.nams-single {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 740px;
	margin: 0 auto;
	padding-top: 64px;
	background-color: #ffffff;
	box-sizing: border-box;
}

/* ==========================================
   Post Header (.nams-header)
   ========================================== */

.nams-header {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

.nams-header__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.nams-header__category {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
	color: #2b7bb2;
	letter-spacing: 1.04px;
	text-transform: uppercase;
	white-space: nowrap;
}

.nams-header__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #6e7180;
	text-transform: uppercase;
	white-space: nowrap;
}

.nams-header__date-icon {
	display: block;
	flex-shrink: 0;
	color: #6e7180;
}

.nams-header__title {
	font-family: 'Inter', sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
	color: #1a1a1a;
	margin: 0 0 20px 0;
	padding: 0;
}

.nams-header__bar {
	width: 56px;
	height: 3px;
	background-color: #2b7bb2;
	border-radius: 2px;
	flex-shrink: 0;
	margin-bottom: 32px;
}

/* ==========================================
   Post Image (.nams-image)
   ========================================== */

.nams-image {
	display: block;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	margin: 32px 0 0 0;
	padding: 0;
}

.nams-image__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ==========================================
   Post Body (.nams-body)
   ========================================== */

.nams-body {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	margin-top: 32px;
}

/* ---------- Stats Box ---------- */
.nams-stats {
	display: flex;
	justify-content: space-evenly;
	width: 100%;
	padding: 33px;
	background: #F5F7FA;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	margin-top: 32px;
	margin-bottom: 32px;
}

.nams-stats__item {
	flex: 0 0 auto;
	text-align: left;
	padding: 0 33px;
	border-right: 1px solid #E5E7EB;
}

.nams-stats__item:last-child {
	border-right: none;
}

.nams-stats__value {
	display: block;
	margin-bottom: 7px;
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 24px;
	color: #1a3a5c;
}

.nams-stats__label {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	color: #6e7180;
	letter-spacing: 0.72px;
	text-transform: uppercase;
}

/* ---------- Post Content ---------- */
.nams-content {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	color: #3d3d3d;
	width: 100%;
}

.nams-content p {
	margin: 0 0 24px 0;
	padding: 0;
}

.nams-content p:last-child {
	margin-bottom: 0;
}

.nams-content h2,
.nams-content h3,
.nams-content h4 {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	color: #1a1a1a;
	margin: 32px 0 12px 0;
}

.nams-content h2 { font-size: 24px; line-height: 32px; }
.nams-content h3 { font-size: 20px; line-height: 28px; }
.nams-content h4 { font-size: 18px; line-height: 26px; }

.nams-content a {
	color: #2b7bb2;
	text-decoration: underline;
}

.nams-content a:hover {
	text-decoration: none;
}

.nams-content ul,
.nams-content ol {
	margin: 0 0 24px 0;
	padding-left: 24px;
}

.nams-content li {
	margin-bottom: 8px;
}

.nams-content blockquote {
	border-left: 3px solid #2b7bb2;
	margin: 24px 0;
	padding: 8px 0 8px 20px;
	color: #3d3d3d;
	font-style: italic;
}

/* ---------- Footer ---------- */
.nams-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #e5e7eb;
	padding-top: 33px;
	margin-top: 32px;
	gap: 16px;
}

.nams-footer__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	color: #2b7bb2;
	text-decoration: none;
	white-space: nowrap;
}

.nams-footer__back:hover,
.nams-footer__back:focus {
	text-decoration: underline;
}

/* ---------- Share ---------- */
.nams-share {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nams-share__label {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	color: #6e7180;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	margin-right: 4px;
}

.nams-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: #f5f7fa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #6e7180;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	padding: 0;
	box-sizing: border-box;
}

.nams-share__btn:hover,
.nams-share__btn:focus {
	background-color: #e5e7eb;
	color: #1a1a1a;
	border-color: #d1d5db;
}

.nams-share__btn--copied {
	background-color: #d1fae5;
	border-color: #6ee7b7;
	color: #065f46;
}

/* ==========================================
   Responsive — Single Post
   ========================================== */

@media (max-width: 768px) {
	.nams-single {
		padding: 48px 24px 0 24px;
	}

	.nams-header__title {
		font-size: 26px;
		line-height: 34px;
	}

	.nams-stats {
		flex-wrap: wrap;
		padding: 24px;
		row-gap: 24px;
	}

	.nams-stats__item {
		flex: 1 1 calc(50% - 24px);
	}

	.nams-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.nams-header__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.nams-header__title {
		font-size: 22px;
		line-height: 30px;
	}

	.nams-stats {
		flex-direction: column;
		padding: 24px;
		row-gap: 16px;
	}

	.nams-stats__item {
		border-right: none;
		border-bottom: 1px solid #E5E7EB;
		padding: 12px 0;
	}

	.nams-stats__item:first-child {
		padding-top: 0;
	}

	.nams-stats__item:last-child {
		border-bottom: none;
	}
}

/* ==========================================
   Widget: Post Hero (.nams-hero)
   ========================================== */

.nams-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.nams-hero,
.nams-hero * {
	box-sizing: border-box;
}

.nams-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.nams-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.nams-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1184px;
	margin: 0 auto;
	padding: 0 0 48px 0;
}

.nams-hero__title {
	font-family: 'Inter', sans-serif;
	font-size: 48px;
	font-weight: 300;
	line-height: 58px;
	color: #ffffff !important;
	margin: 0;
	padding: 0;
}

.nams-hero__title strong {
	font-weight: 700;
}

@media (max-width: 768px) {
	.nams-hero__title {
		font-size: 36px;
		line-height: 44px;
	}
	.nams-hero__content {
		padding: 0 24px 32px 24px;
	}
}

/* ==========================================
   Widget: Related News (.namr-related)
   ========================================== */

.namr-related {
	width: 100%;
}

.namr-related__divider {
	height: 1px;
	background-color: #e5e7eb;
	width: 100%;
}

.namr-related__heading {
	font-family: 'Inter', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 36px;
	color: #1a1a1a;
	margin: 49px 0 40px 0;
	padding: 0;
}

.namr-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.namr-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-top: 3px solid #2b7bb2;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	padding: 35px 33px 33px 33px;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
	min-height: 305px;
}

.namr-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
	text-decoration: none;
}

.namr-card__body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.namr-card__date {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #6e7180;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.namr-card__category {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	color: #2b7bb2;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.namr-card__title {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	color: #1a1a1a;
	margin: 0;
	padding: 0;
}

.namr-card__footer {
	border-top: 1px solid #e5e7eb;
	padding-top: 28px;
	margin-top: auto;
}

.namr-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #2b7bb2;
	text-decoration: none;
}

@media (max-width: 768px) {
	.namr-related__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

body.single-news_media,
body.single-news_media.ast-single-post,
body.single.single-news_media {
	background-color: #FFFFFF !important;
	background: #FFFFFF !important;
}
