body {
	background: url('assets/jub-bg1.jpg') no-repeat center center fixed;
	background-size: cover;
	margin: 0;
	padding: 0;
}

#history-wrapper {
	width: 100%;
	max-width: 1240px;
	margin: 40px auto;
	padding: 20px;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.history-panel {
	position: relative;
	padding: 24px;
}

.history-title {
	margin: 0 0 25px;
	font-size: 32px;
	line-height: 1.1;
	color: #1f2d1f;
	display: flex;
	align-items: center;
	gap: 14px;
}

.history-title a {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.history-title-logo {
	width: 80px;
	height: auto;
	display: block;
}

.history-subtitle {
	margin: 0 0 20px;
	color: #3f493f;
}

.history-slider-wrap {
	position: relative;
	max-width: 100%;
	padding-top: 24px;
	padding-bottom: 0;
}

.history-slider-nav-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.history-year-nav {
	flex: 0 0 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid #80b600;
	background: #fffffe;
	color: #1e4d2a;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.history-year-nav:hover:not(:disabled) {
	background: #80b600;
	color: #fff;
}

.history-year-nav:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.history-range-labels {
	display: none;
	justify-content: space-between;
	margin-bottom: 10px;
	color: #273427;
	font-weight: 600;
}

.history-year-slider {
	display: block;
	width: 100%;
	max-width: 100%;
	cursor: pointer;
	height: 25px;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: none;
	outline: none;
}

.history-year-slider::-webkit-slider-runnable-track {
	height: 25px;
	border-radius: 12px;
	background: #80b600;
}

.history-year-slider::-moz-range-track {
	height: 25px;
	border-radius: 12px;
	background: #80b600;
}

.history-year-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	border: 2px solid #80b600;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.history-year-slider::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #80b600;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.history-event-markers {
	position: absolute;
	height: 0;
	top: 0;
	left: 0;
	width: 0;
	pointer-events: none;
	z-index: 2;
}

.history-event-markers span {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	color: #1e4d2a;
	font-size: 12px;
	line-height: 1;
}

.history-decade-ticks {
	position: relative;
	height: 20px;
	margin-top: 8px;
	color: #334133;
	font-size: 12px;
	line-height: 1;
}

.history-decade-ticks span {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	white-space: nowrap;
}

.history-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-50%, -100%);
	width: min(280px, 80vw);
	background: #fffffe;
	border: 1px solid #b9c8b7;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(28, 47, 28, 0.16);
	padding: 10px 12px;
	pointer-events: none;
	z-index: 10;
}

.history-tooltip.is-year-only {
	width: auto;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.history-tooltip.is-year-only .history-tooltip-year {
	margin-bottom: 0;
	font-size: 16px;
}

.history-tooltip.is-year-only .history-tooltip-text {
	display: none;
}

.history-tooltip-year {
	font-weight: 700;
	color: #1e4d2a;
	margin-bottom: 4px;
}

.history-tooltip-text {
	color: #293029;
	font-size: 14px;
	line-height: 1.35;
}

.history-year-details {
	margin-top: 2px;
	color: #293029;
}

.history-year-details-title {
	display: none;
}

.history-year-details-body {
	font-size: 15px;
	line-height: 1.45;
}

.history-year-details-body img {
	max-width: 100% !important;
	height: auto !important;
	display: block;
}

.history-year-heading {
	font-size:48px;
	margin: 0 0 20px 0;
	padding-bottom: 10px;
	color: #1f2d1f;
}

.history-tabs {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 12px;
}

.history-tab {
	padding: 8px 20px;
	border: 1px solid #80b600;
	background: transparent;
	color: #1f2d1f;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.history-tab:hover {
	background: rgba(128, 182, 0, 0.1);
}

.history-tab.active {
	background: #80b600;
	color: #fff;
}

.history-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	padding: 20px 0;
}

.history-grid-item img {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #d0d0c8;
}

.history-doc-list {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.history-doc-list li {
	margin-bottom: 12px;
	background: #fffffe;
	padding: 12px 20px;
	border-radius: 8px;
	border: 1px solid #b9c8b7;
}

.history-doc-list a {
	color: #1f2d1f;
	text-decoration: none;
	font-weight: 600;
	display: block;
}

.history-doc-list a:hover {
	color: #80b600;
}

.history-video-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.video-poster {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	margin-bottom: 15px;
}

.video-poster img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(128, 182, 0, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	transition: transform 0.2s ease;
}

.play-button::after {
	content: "";
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 16px solid #fff;
	margin-left: 4px;
}

.video-poster:hover .play-button {
	transform: translate(-50%, -50%) scale(1.1);
	background: #80b600;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin-bottom: 15px;
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 8px;
}

.history-video-item {
	background: #fffffe;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid #b9c8b7;
}

@media (max-width: 991px) {
	.history-video-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.history-video-list {
		grid-template-columns: 1fr;
	}
}

.history-year-entry {
	display: flex;
	gap: 20px;
	margin-bottom: 24px;
	align-items: flex-start;
	padding: 24px;
	background: #fffffe;
	border: 1px solid #b9c8b7;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.history-year-entry .entry-image {
	flex: 0 0 300px;
}

.history-year-entry .entry-image:empty {
	display: none;
}

.history-year-entry .entry-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.history-year-entry .entry-text {
	flex: 1;
}

.history-year-entry .entry-text h3 {
	margin-top: 0;
}

@media (max-width: 991px) {
	.history-year-entry {
		flex-direction: column;
	}
	
	.history-year-entry .entry-image {
		flex: 0 0 auto;
		width: 100%;
	}
}

@media (max-width: 600px) {
	#history-wrapper {
		max-width: none;
		width: 100%;
		margin: 0;
		padding: 12px 0;
		border-radius: 0;
	}

	.history-panel {
		padding: 18px 14px;
	}

	.history-slider-nav-row {
		gap: 8px;
		margin-top: 8px;
	}

	.history-year-nav {
		flex-basis: 48px;
		height: 48px;
		font-size: 22px;
	}

	.history-title {
		font-size: 26px;
		gap: 10px;
	}

	.history-title-logo {
		width: 64px;
	}
}