/**
 * Home News Section
 */

.home-news {
	padding: 5rem 0;
}

.news-slider {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.news-slider__viewport {
	flex: 1;
	overflow: hidden;
}

.news-list {
	display: flex;
	gap: 1.5rem;
	transition: transform .35s ease;
	will-change: transform;
}

.news-slider__button {
	width: 52px;
	height: 52px;
	border: 1px solid #dee2e6;
	border-radius: 50%;
	background: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
	transition:
		background-color .25s ease,
		border-color .25s ease,
		color .25s ease,
		opacity .25s ease;
}

.news-slider__button:hover {
	background: #0d6efd;
	border-color: #0d6efd;
	color: #fff;
}

.news-slider__button:disabled {
	opacity: .35;
	cursor: not-allowed;
	pointer-events: none;
}

/* ===========================
   Compact Card
=========================== */

.news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	flex: 0 0 calc((100% - 3rem) / 3);
	box-sizing: border-box;
	border: 1px solid #e9ecef;
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
	transition:
		transform .25s ease,
		box-shadow .25s ease,
		border-color .25s ease;
}

.news-card:hover {
	transform: translateY(-2px);
	border-color: #d6dce3;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.news-card .news-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #fff;
}

.news-card__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.archive-news .news-card:hover .news-card__media img {
	transform: scale(1.04);
}

.archive-news .news-card__media .amed-image {
	box-shadow: none;
}

.archive-news .news-card__media .amed-image:hover {
	box-shadow: none;
}

.archive-news .news-card__media .amed-image:hover img {
	transform: none;
}

.news-card .news-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.news-card .news-card__meta {
	margin-bottom: .75rem;
	font-size: .875rem;
	color: #6c757d;
}

.news-card .news-card__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.45;
	color: #212529;
}

.news-card .news-card__excerpt {
	margin-top: .75rem;
	font-size: .95rem;
	line-height: 1.6;
	color: #6c757d;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.news-card__title-link {
	text-decoration: none;
	color: inherit;
}

.news-card__title-link:hover {
	color: inherit;
	text-decoration: none;
}

.home-news__actions {
	margin-top: 3rem;
	text-align: center;
}

/* ===========================
   Archive Header
=========================== */

.archive-news .archive-header {
	margin-bottom: 2.75rem;
	text-align: center;
}

.archive-news .archive-title {
	position: relative;
	margin: 0;
	padding: 0;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #343a40;
}

.archive-news .archive-title::after {
	display: block;
	width: 100px;
	height: 0.5px;
	margin: 1rem auto 0;
	background: #dee2e6;
	content: "";
}

.archive-description {
	margin-top: .75rem;
	font-size: 1rem;
	line-height: 1.7;
	color: #6c757d;
}

.archive-description:empty {
	display: none;
}

.archive-news__grid {
	margin-bottom: 3rem;
}

/* ===========================
   Single Post
=========================== */

.single-post-header {
	margin-bottom: 3rem;
}

.single-post-header__thumbnail {
	margin-bottom: 2rem;
	border-radius: 1rem;
	overflow: hidden;
}

.single-post-header__thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.single-post-title {
	margin: 0 0 1rem;
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: #212529;
}

.single-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 0;
	font-size: .95rem;
	color: #6c757d;
}

.single-post-content {
	font-size: 1.05rem;
	line-height: 1.9;
	color: #495057;
}

.single-post-content p {
	margin-bottom: 1.5rem;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.single-post-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2rem auto;
	border-radius: 1rem;
}

.single-post-content ul,
.single-post-content ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.single-post-content blockquote {
	margin: 2rem 0;
	padding: 1.5rem;
	border-left: 4px solid #0d6efd;
	background: #f8f9fa;
	font-style: italic;
	border-radius: .5rem;
}

.single-post-content table {
	width: 100%;
	margin: 2rem 0;
}

.single-post-content iframe {
	width: 100%;
	border: 0;
}

/* ===========================
   Related Posts
=========================== */

.related-posts {
	margin-top: 5rem;
	padding-top: 3rem;
	border-top: 1px solid #e9ecef;
}

.related-posts__title {
	margin-bottom: 2rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	color: #212529;
	text-align: center;
}

/* ===========================
   Post CTA
=========================== */

.post-cta {
	margin-top: 5rem;
	padding: 3rem;
	text-align: center;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 1rem;
}

.post-cta__title {
	margin-bottom: 1rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	color: #212529;
}

.post-cta__description {
	max-width: 640px;
	margin: 0 auto 2rem;
	font-size: 1.05rem;
	line-height: 1.8;
	color: #6c757d;
}

.post-cta .btn {
	min-width: 220px;
}

/* ===========================
   Post Tags
=========================== */

.post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e9ecef;
}

.post-tags__label {
	font-size: .9rem;
	font-weight: 600;
	color: #495057;
}

.post-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.post-tags__item {
	display: inline-flex;
	align-items: center;
	padding: .35rem .75rem;
	border: 1px solid #dee2e6;
	border-radius: 999px;
	background: #fff;
	color: #495057;
	font-size: .85rem;
	line-height: 1.4;
	text-decoration: none;
	transition:
		background-color .25s ease,
		border-color .25s ease,
		color .25s ease;
}

.post-tags__item:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
	color: #212529;
	text-decoration: none;
}

/* ===========================
   Post Share
=========================== */

.post-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-top: 1.5rem;
}

.post-share__label {
	font-size: .9rem;
	font-weight: 600;
	color: #495057;
}

.post-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.post-share__item {
	display: inline-flex;
	align-items: center;
	padding: .35rem .75rem;
	border: 1px solid #dee2e6;
	border-radius: 999px;
	background: #fff;
	color: #495057;
	font-size: .85rem;
	line-height: 1.4;
	text-decoration: none;
	transition:
		background-color .25s ease,
		border-color .25s ease,
		color .25s ease;
}

.post-share__item:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
	color: #212529;
	text-decoration: none;
}

/* ===========================
   Reading Time
=========================== */

.post-reading-time {
	color: #6c757d;
}

/* ===========================
   Post Breadcrumb
=========================== */

.post-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1.5rem;
	font-size: .875rem;
	line-height: 1.5;
}

.post-breadcrumb__item {
	color: #6c757d;
	text-decoration: none;
}

.post-breadcrumb__item:hover {
	color: #212529;
	text-decoration: none;
}

.post-breadcrumb__separator {
	color: #adb5bd;
}

.post-breadcrumb__item--current {
	color: #495057;
	font-weight: 500;
}

/* Breadcrumb */
.amed-breadcrumb {
	margin-bottom: 2rem;
}

.amed-breadcrumb .breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amed-breadcrumb .breadcrumb-item {
	display: inline-flex;
	align-items: center;
	color: #495057;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.5;
}

.amed-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	margin: 0 0.2rem;
	color: #adb5bd;
	content: "/";
}

.amed-breadcrumb .breadcrumb-link {
	color: #495057;

	text-decoration: none;
	transition: color 0.2s ease;
}

.amed-breadcrumb .breadcrumb-link:hover,
.amed-breadcrumb .breadcrumb-link:focus {
	color: #0d6efd;
	text-decoration: none;
}

.amed-breadcrumb .breadcrumb-link:focus-visible {
	outline: 2px solid #0d6efd;
	outline-offset: 3px;
}

.amed-breadcrumb .breadcrumb__item--current {
	color: #171c20;
	font-weight: 600;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 991.98px) {

	.news-slider {
		flex-wrap: wrap;
	}

	.news-slider__viewport {
		width: 100%;
	}

	.news-list {
		gap: 1rem;
	}

	.news-card {
		flex: 0 0 calc((100% - 1rem) / 2);
	}

	.archive-title {
		font-size: 2.125rem;
	}

}

@media (max-width: 767.98px) {

	.news-slider {
		align-items: center;
		gap: 1rem;
	}

	.news-slider__viewport {
		width: 100%;
	}

	.news-list {
		gap: 1rem;
	}

	.news-card {
		flex: 0 0 100%;
		min-width: 100%;
	}

	.news-slider__button {
		width: 44px;
		height: 44px;
	}

	.archive-header {
		margin-bottom: 2rem;
	}

	.archive-title {
		font-size: 1.75rem;
	}

	.archive-news__grid {
		margin-bottom: 2rem;
	}

	.archive-news__grid {
		row-gap: 3rem;
	}

	.archive-news .archive-header {
		margin-bottom: 2rem;
	}

	.archive-news .archive-title {
		font-size: 1.5rem;
	}

	.single-post-header {
		margin-bottom: 2rem;
	}

	.single-post-title {
		font-size: 2rem;
	}

	.single-post-meta {
		gap: .75rem;
		font-size: .9rem;
	}

	.related-posts {
		margin-top: 4rem;
		padding-top: 2.5rem;
	}

	.related-posts__title {
		font-size: 1.6rem;
		margin-bottom: 1.5rem;
	}

	.post-cta {
		margin-top: 4rem;
		padding: 2rem 1.5rem;
	}

	.post-cta__title {
		font-size: 1.6rem;
	}

	.post-cta__description {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}

	.post-cta .btn {
		width: 100%;
		min-width: 0;
	}

}

@media (max-width: 575.98px) {

	.home-news {
		padding: 3rem 0;
	}

}