/* YTC Blog Details — base structural styles only.
   Visual styling (colors/fonts) to be applied per Figma design system. */

.ytc-blog-author-image img {
	border-radius: 50%;
	display: block;
	margin-bottom: 0 !important;
}

.ytc-blog-author-name {
	color: #18304D;
	font-weight: 700;
}

.ytc-blog-author-bio {
	font-size: 14px;
}

.ytc-blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 14px;
	gap: 16px;
}
/* Space between the category pills (replaces the comma that used to separate them). */
.ytc-blog-meta__categories {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ytc-blog-meta a {
	border-radius: 36px;
	background: #C9E3C1;
	padding: 4px 16px;
	color: #61BB46;
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
}
.ytc-blog-meta a:hover {
	opacity: 0.7s;
}
.ytc-blog-meta__author,
.ytc-blog-meta__date,
.ytc-blog-meta__reading-time{
	display: flex;
	gap: 6px;
	align-items: center;
}
.ytc-blog-meta__author::before,
.ytc-blog-meta__date::before,
.ytc-blog-meta__reading-time::before{
	content: '';
	width: 16px;
	height: 16px;
	display: inherit;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("/wp-content/uploads/2026/08/clock.svg");
}

.ytc-blog-meta__author::before{
	background-image: url("/wp-content/uploads/2026/08/user.svg");
}
.ytc-blog-meta__date::before{
	background-image: url("/wp-content/uploads/2026/08/calendar.svg");
}
.ytc-blog-meta__reading-time::before{
	background-image: url("/wp-content/uploads/2026/08/clock.svg");
}
/* Related posts */
.ytc-blog-related {
	display: flex;
	flex-direction: column;
}
.ytc-blog-related__item {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #eee;
	color: inherit;
	text-decoration: none;
}
.ytc-blog-related__item:first-child {
	padding-top: 0;
}
.ytc-blog-related__thumb {
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 16px;
	overflow: hidden;
	background: #eee; /* fallback if a related post has no featured image */
}
.ytc-blog-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ytc-blog-related__content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0; /* lets the title wrap/clamp instead of overflowing */
}
.ytc-blog-related__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	color: #18304D;
}
.ytc-blog-related__category {
	display: inline-block;
	background: rgba(97, 187, 70, 0.20);
	color: #4AA230;
	font-size: 14px;
	font-weight: 700;
	padding: 2px 16px;
	border-radius: 99px;
}
.ytc-blog-related__text{
	display: flex;
	gap: 12px;
}
.ytc-blog-related__text .ytc-blog-related__text-date{
	font-weight: 700;
}
.ytc-blog-related__title {
	font-weight: 700;
	font-size: 20px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media all and (max-width: 1199px){
	.ytc-blog-related__title {
		font-size: 16px;
	}
	.ytc-blog-related__text .ytc-blog-related__text-author,
	.ytc-blog-related__text .ytc-blog-related__text-seperator{
		display: none;
	}
}
/* Search bar */
.ytc-blog-search {
	position: relative;
	max-width: 480px;
}
.ytc-blog-search__form {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 0 25px 0 rgba(24, 48, 77, 0.13);
	padding: 8px 8px 8px 20px;
}
.ytc-blog-search__icon {
	display: flex;
	align-items: center;
	color: #999;
	margin-right: 10px;
	flex-shrink: 0;
}
.ytc-blog-search__input {
	flex-grow: 1;
	border: none !important;
	outline: none;
	font-size: 16px !important;
	background-color: transparent !important;
	color: #18304D;
	min-width: 0;
	padding-left: 0 !important;
}
.ytc-blog-search__input::placeholder {
	color: #999;
}
.ytc-blog-search__submit {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #61BB46; /* placeholder — swap for ICCA accent token */
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	display: none !important;
}

.ytc-blog-search__suggestions {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	padding: 8px 0;
	max-height: 360px;
	overflow-y: auto;
	z-index: 20;
}
.ytc-blog-search__group {
	padding: 4px 0;
}
.ytc-blog-search__group + .ytc-blog-search__group {
	border-top: 1px solid #eee;
}
.ytc-blog-search__group-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #999;
	padding: 8px 20px 4px;
}
.ytc-blog-search__item {
	display: block;
	padding: 8px 20px;
	font-size: 14px;
	color: #18304D;
	text-decoration: none;
}
.ytc-blog-search__item:hover,
.ytc-blog-search__item.is-active {
	background: #f5f7f8;
}
.ytc-blog-search__empty {
	padding: 12px 20px;
	font-size: 14px;
	color: #999;
}
input[type="text"].ytc-blog-search__input:focus {
  box-shadow: none;
}

/* Share row */
.ytc-blog-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.ytc-blog-share__label {
	font-size: 16px;
	font-weight: 700;
	color: #18304D;
}
.ytc-blog-share__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: #61BB46; /* the icons use currentColor, so this sets their colour */
	cursor: pointer;
	line-height: 0;
	transition: opacity 0.2s ease;
}
.ytc-blog-share__item:hover {
	opacity: 0.7;
}
.ytc-blog-share__item svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* "Link copied" message above the copy button, shown for 2s after copying. */
.ytc-blog-share__copied {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 10px;
	border-radius: 6px;
	background: #18304D;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.ytc-blog-share__item.is-copied .ytc-blog-share__copied {
	opacity: 1;
	visibility: visible;
}

/* ---------------------------------------------------------
 * [ytc_blog_featured_image]
 * --------------------------------------------------------- */
.ytc-blog-featured-image {
	margin: 0;
}
.ytc-blog-featured-image__img {
	display: block;
	width: 100%;
	height: auto;
}
.ytc-blog-featured-image__link {
	display: block;
}

/* Only when a ratio was set on the shortcode. object-fit crops rather
   than squashing, so a portrait image still fills a 16/9 frame. */
.ytc-blog-featured-image.has-ratio .ytc-blog-featured-image__img {
	aspect-ratio: var(--ytc-featured-ratio);
	height: 100%;
	object-fit: cover;
}

.ytc-blog-featured-image__caption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #5A6B7D;
}
