/* Family Timeline */

.ftl-wrap {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ftl-wrap .timeline-container {
	position: relative;
	max-width: 1000px;
	margin: 25px auto;
	padding: 10px 0;
}

.ftl-wrap .timeline-line {
	position: absolute;
	width: 4px;
	background: #bfdbfe;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
}

.ftl-wrap .timeline-item {
	position: relative;
	width: 50%;
	padding: 20px 40px;
}

.ftl-wrap .timeline-item.left {
	left: 0;
	text-align: right;
}

.ftl-wrap .timeline-item.right {
	left: 50%;
	text-align: left;
}

.ftl-wrap .timeline-dot {
	position: absolute;
	width: 16px;
	height: 16px;
	background: #fff;
	border: 4px solid #2563eb;
	border-radius: 50%;
	top: 30px;
	z-index: 2;
}

.ftl-wrap .timeline-item.left .timeline-dot {
	right: -8px;
}

.ftl-wrap .timeline-item.right .timeline-dot {
	left: -8px;
}

.ftl-wrap .timeline-content {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow:
		0 4px 6px -1px rgba(0,0,0,.05),
		0 2px 4px -1px rgba(0,0,0,.03);
	border-left: 5px solid #2563eb;
	transition: transform .2s ease;
}

.ftl-wrap .timeline-item.left .timeline-content {
	border-left: none;
	border-right: 5px solid #2563eb;
}

.ftl-wrap .timeline-content:hover {
	transform: translateY(-3px);
}

.ftl-wrap .date {
	display: block;
	font-size: .82rem;
	font-weight: 700;
	color: #2563eb;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.ftl-wrap .ftl-category {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	color: #1e3a8a;
	background: #eff6ff;
	padding: 4px 8px;
	border-radius: 20px;
	margin-bottom: 8px;
}

.ftl-wrap .timeline-content h3 {
	font-size: 1.2rem;
	color: #1e3a8a;
	margin: 0 0 7px;
}

.ftl-wrap .timeline-content h3 a {
	color: inherit;
	text-decoration: none;
}

.ftl-wrap .timeline-content p {
	font-size: .93rem;
	color: #4b5563;
	line-height: 1.5;
	margin: 0 0 12px;
}

.ftl-wrap .ftl-author {
	font-size: .78rem;
	color: #6b7280;
	margin-bottom: 12px;
}

/* 250 x 250 timeline image */

.ftl-wrap .ftl-thumb {
	display: block;
	margin-bottom: 14px;
}

.ftl-wrap .ftl-thumb img {
	width: 250px !important;
	height: 250px !important;
	max-width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}

.ftl-wrap .timeline-item.left .ftl-thumb {
	margin-left: auto;
}

.ftl-wrap .timeline-item.right .ftl-thumb {
	margin-right: auto;
}

.ftl-wrap .ftl-card-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: .82rem;
}

.ftl-wrap .timeline-item.left .ftl-card-footer {
	justify-content: flex-end;
}

.ftl-wrap .ftl-like {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	color: #6b7280;
}

.ftl-wrap .ftl-like.is-liked {
	color: #dc2626;
}

.ftl-wrap .ftl-comments,
.ftl-wrap .ftl-read {
	color: #2563eb;
	text-decoration: none;
}

.ftl-wrap .ftl-read {
	font-weight: 700;
}

.ftl-wrap .ftl-actionbar {
	max-width: 1000px;
	margin: 0 auto 20px;
	text-align: right;
}

.ftl-wrap .ftl-button {
	display: inline-block;
	background: #2563eb;
	color: #fff !important;
	padding: 11px 18px;
	border-radius: 5px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.ftl-wrap .ftl-filters {
	display: flex;
	gap: 8px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto 25px;
	padding: 12px;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
}

.ftl-wrap .ftl-filters select,
.ftl-wrap .ftl-filters input {
	padding: 9px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.ftl-wrap .ftl-filters button {
	padding: 9px 14px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.ftl-wrap .ftl-submit-box {
	max-width: 1000px;
	margin: 45px auto 0;
	padding: 25px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
}

.ftl-wrap .ftl-submit-box input[type="text"],
.ftl-wrap .ftl-submit-box input[type="date"],
.ftl-wrap .ftl-submit-box select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.ftl-wrap .ftl-help {
	opacity: .75;
}

.ftl-wrap .ftl-editor {
	margin: 20px 0;
}

.ftl-wrap .ftl-form-message {
	margin-left: 10px;
	font-weight: 600;
}

.ftl-wrap .ftl-login-note {
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.ftl-wrap .ftl-pagination {
	max-width: 1000px;
	margin: 20px auto;
}

@media screen and (max-width: 768px) {

	.ftl-wrap .timeline-line {
		left: 20px;
	}

	.ftl-wrap .timeline-item {
		width: 100%;
		padding-left: 45px;
		padding-right: 0;
	}

	.ftl-wrap .timeline-item.left,
	.ftl-wrap .timeline-item.right {
		left: 0;
		text-align: left;
	}

	.ftl-wrap .timeline-item.left .timeline-content {
		border-right: none;
		border-left: 5px solid #2563eb;
	}

	.ftl-wrap .timeline-item.left .timeline-dot,
	.ftl-wrap .timeline-item.right .timeline-dot {
		left: 12px;
	}

	.ftl-wrap .timeline-item.left .ftl-thumb,
	.ftl-wrap .timeline-item.right .ftl-thumb {
		margin-left: 0;
		margin-right: 0;
	}

	.ftl-wrap .timeline-item.left .ftl-card-footer {
		justify-content: flex-start;
	}

	.ftl-wrap .ftl-filters {
		flex-wrap: wrap;
	}
}