/**
 * Timeline Shortcode Styles
 * Vertical and Horizontal timeline layouts
 */

/* Timeline Wrapper - Base */
.timeline-wrapper {
	width: 100%;
	margin: 0 auto;
	padding: 40px 20px 0px 20px;
	direction: rtl;
}

/* Vertical Layout */
.timeline-layout-vertical {
	max-width: 1396px;
	margin: 0 auto;
}

/* Horizontal Layout */
.timeline-layout-horizontal {
	max-width: 1000px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
}

/* Vertical Timeline Navigation - Arranged vertically (top to bottom) */
.timeline-vertical-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 125px;
	position: relative;
	padding-left: 40px;
	margin-left: 20px;
}

.timeline-vertical-nav::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	right: 8px;
	width: 1px;
	background: #e1e1df;
	z-index: 0;
}

/* Vertical nav labels - position to the left of dots */
.timeline-vertical-nav .timeline-nav-label {
	left: auto;
	right: 40px;
	bottom: auto;
	top: 50%;
	transform: translateY(-50%);
}

/* Vertical Timeline Layout Container */
.timeline-layout-vertical {
	display: flex;
	gap: 60px;
	align-items: flex-start;
}

/* Vertical Timeline Content */
.timeline-vertical-content {
	flex: 1;
	display: none;
	flex-direction: column;
	gap: 30px;
	align-items: center;
	opacity: 0;
	transition: opacity 0.5s ease;
	max-width: 1396px;
}

.timeline-vertical-content.active {
	display: flex;
	animation: fadeIn 0.5s ease forwards;
}

/* Vertical Timeline Item */
.timeline-vertical-item {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 30px;
	align-items: center;
}

/* Vertical Timeline Text */
.timeline-vertical-text {
	width: 100%;
	max-width: 700px;
}

/* Vertical Timeline Year/Title */
.timeline-vertical-year {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px 0;
	line-height: 1.4;
	text-align: right;
}

/* Vertical Timeline Description */
.timeline-vertical-description {
	font-size: 18px;
	line-height: 1.4;
	color: #706f6f;
	margin: 0;
	text-align: right;
}

/* Vertical Timeline Image */
.timeline-vertical-image {
	width: 100%;
	max-width: 700px;
	overflow: hidden;
	border-radius: 8px;
}

.timeline-vertical-image img {
	width: 100%;
	height: auto;
	max-height: 300px;
	display: block;
	object-fit: cover;
	border-radius: 8px;
}

/* Vertical Timeline Arrows */
.timeline-vertical-arrows {
	display: none;
}

/* ========================================
   Simple Layout - All items at once, no images
   ======================================== */

/* Simple Layout Container */
.timeline-layout-simple {
	max-width: 1396px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 125px;
	position: relative;
	padding: 40px 40px 40px 0;
}

/* Connecting line on the right */
.timeline-layout-simple::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	right: 8px;
	width: 1px;
	background: #e1e1df;
	z-index: 0;
}

/* Simple Timeline Item - Row layout */
.timeline-simple-item {
	display: flex;
	align-items: flex-start;
	gap: 60px;
	position: relative;
}

/* Timeline Content - on the left */
.timeline-simple-content {
	flex: 1;
	text-align: right;
}

/* Timeline Title */
.timeline-simple-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

/* Timeline Description */
.timeline-simple-description {
	font-size: 18px;
	line-height: 1.6;
	color: #706f6f;
	margin: 0;
}

/* Timeline nav dot wrapper - positioned on the line */
.timeline-simple-nav-dot {
	position: absolute;
	right: 8px;
	top: 0;
	transform: translateX(50%);
}

/* Dots - aligned with the line */
.timeline-simple-nav-dot .timeline-nav-dot {
	cursor: default;
}

/* Year and title positioned to the left of dots */
.timeline-simple-nav-dot .timeline-nav-label {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	font-size: 18px;
	color: #1a1a1a;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
	opacity: 1;
	pointer-events: none;
}

.timeline-simple-nav-dot .timeline-nav-year,
.timeline-simple-nav-dot .timeline-nav-separator,
.timeline-simple-nav-dot .timeline-nav-title {
	color: inherit;
}

/* Timeline Title */
.timeline-simple-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

/* Timeline Description */
.timeline-simple-description {
	font-size: 18px;
	line-height: 1.6;
	color: #706f6f;
	margin: 0;
}

/* Simple Layout Responsive */
@media (max-width: 1024px) {
	.timeline-layout-simple {
		gap: 100px;
		padding-right: 30px;
	}
	
	.timeline-simple-item {
		gap: 40px;
	}
	
	.timeline-simple-title {
		font-size: 22px;
	}
	
	.timeline-simple-description {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.timeline-layout-simple {
		gap: 80px;
		padding-right: 24px;
	}
	
	.timeline-simple-item {
		gap: 30px;
	}
	
	.timeline-simple-title {
		font-size: 20px;
		margin-bottom: 8px;
	}
	
	.timeline-simple-description {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.timeline-layout-simple {
		gap: 60px;
		padding-right: 20px;
	}
	
	.timeline-simple-item {
		gap: 20px;
	}
	
	.timeline-simple-title {
		font-size: 18px;
	}
	
	.timeline-simple-description {
		font-size: 15px;
	}
}

/* Vertical Timeline Responsive */
@media (max-width: 1024px) {
	.timeline-layout-vertical {
		gap: 40px;
	}
	
	.timeline-vertical-nav {
		gap: 50px;
		margin-left: 10px;
	}
	
	.timeline-vertical-item {
		gap: 24px;
	}
	
	.timeline-vertical-image img {
		max-height: 400px;
	}
	
	.timeline-vertical-year {
		font-size: 28px;
	}
	
	.timeline-vertical-description {
		font-size: 16px;
		line-height: 1.6;
	}
}

@media (max-width: 768px) {
	.timeline-layout-vertical {
		flex-direction: column;
		gap: 30px;
	}
	
	.timeline-vertical-nav {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 40px;
		padding-left: 0;
		margin-left: 0;
	}
	
	.timeline-vertical-nav::before {
		top: 50%;
		bottom: auto;
		right: 0;
		left: 0;
		width: 110%;
		height: 1px;
		transform: translateY(-50%);
	}
	
	/* Labels below dots on mobile */
	.timeline-vertical-nav .timeline-nav-label {
		left: 50%;
		right: auto;
		top: auto;
		bottom: -30px;
		transform: translateX(-50%);
		font-size: 11px;
	}
	
	/* Show only year on mobile for vertical nav */
	.timeline-vertical-nav .timeline-nav-separator,
	.timeline-vertical-nav .timeline-nav-title {
		display: none;
	}
	
	.timeline-vertical-arrows {
		flex-direction: row;
		justify-content: center;
	}
	
	.timeline-vertical-item {
		gap: 24px;
	}
	
	.timeline-vertical-year {
		font-size: 24px;
	}
	
	.timeline-vertical-description {
		font-size: 16px;
		line-height: 1.6;
	}
	
	.timeline-vertical-image img {
		max-height: 350px;
	}
}

@media (max-width: 480px) {
	.timeline-vertical-nav {
		gap: 80px;
	}
	
	.timeline-vertical-item {
		gap: 20px;
	}
	
	.timeline-vertical-image img {
		max-height: 300px;
	}
	
	.timeline-vertical-year {
		font-size: 22px;
	}
	
	.timeline-vertical-description {
		font-size: 15px;
	}
}

/* Active state for icon */
.timeline-item.active .timeline-icon {
	background: #d4af37;
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.timeline-item.active .timeline-icon img {
	transform: scale(1.1);
}

/* Tablet View */
@media (max-width: 991px) {
	.timeline-wrapper {
		padding: 30px 0px;
		gap: 30px;
	}
	
	.timeline::before {
		right: 30px;
	}
	
	.timeline-marker {
		width: 60px;
		height: 60px;
	}
	
	.timeline-icon {
		width: 50px;
		height: 50px;
	}
	
	.timeline-icon img {
		width: 26px;
		height: 26px;
	}
	
	.timeline-content {
		padding: 0 20px 0 0;
	}
	
	.timeline-year {
		font-size: 20px;
	}
	
	.timeline-description {
		font-size: 15px;
	}
	
	.timeline-item {
		padding: 0 0 50px 0;
	}
	
	/* Hover effects on tablet */
	.timeline-item:hover .timeline-year,
	.timeline-item.active .timeline-year {
		font-size: 22px; /* 20px * 1.10 */
	}
	
	.timeline-item:hover .timeline-description,
	.timeline-item.active .timeline-description {
		font-size: 16.5px; /* 15px * 1.10 */
	}
}

/* Mobile View */
@media (max-width: 767px) {
	.timeline-wrapper {
		flex-direction: column;
		padding: 24px 0px;
		gap: 30px;
	}
	
	.timeline-container {
		width: 100%;
	}
	
	.timeline-image-container {
		width: 100%;
		position: relative;
		top: 0;
	}
	
	.timeline::before {
		right: 20px;
	}
	
	.timeline-marker {
		width: 40px;
		height: 40px;
	}
	
	.timeline-icon {
		width: 36px;
		height: 36px;
		border-width: 2px;
	}
	
	.timeline-icon img {
		width: 20px;
		height: 20px;
	}
	
	.timeline-content {
		padding: 0 15px 0 0;
	}
	
	.timeline-year {
		font-size: 20px;
		margin-bottom: 8px;
	}
	
	.timeline-description {
		font-size: 16px;
		line-height: 1.4;
	}
	
	.timeline-item {
		padding: 0 0 40px 0;
	}
	
	/* Hover effects on mobile */
	.timeline-item:hover .timeline-year,
	.timeline-item.active .timeline-year {
		font-size: 22px; /* 20px * 1.10 */
	}
	
	.timeline-item:hover .timeline-description,
	.timeline-item.active .timeline-description {
		font-size: 17.6px; /* 16px * 1.10 */
	}
}

/* Small Mobile View */
@media (max-width: 480px) {
	.timeline-wrapper {
		padding: 24px 0px;
	}
	
	.timeline::before {
		right: 20px;
	}
	
	.timeline-marker {
		width: 40px;
		height: 40px;
	}
	
	.timeline-icon {
		width: 40px;
		height: 40px;
		border-width: 2px;
	}
	
	.timeline-icon img {
		width: 28px;
		height: 28px;
	}
	
	.timeline-content {
		padding: 0 10px 0 0;
	}
	
	.timeline-year {
		font-size: 18px;
	}
	
	.timeline-description {
		font-size: 16px;
	}
	
	.timeline-item {
		padding: 0 0 30px 0;
	}
	
	/* Hover effects on small mobile */
	.timeline-item:hover .timeline-year,
	.timeline-item.active .timeline-year {
		font-size: 19.8px; /* 18px * 1.10 */
	}
	
	.timeline-item:hover .timeline-description,
	.timeline-item.active .timeline-description {
		font-size: 17.6px; /* 16px * 1.10 */
	}
}

/* Animation on scroll (optional) */
@media (prefers-reduced-motion: no-preference) {
	.timeline-item {
		opacity: 0;
		transform: translateY(20px);
		animation: fadeInUp 0.6s ease forwards;
	}
	
	.timeline-item:nth-child(1) { animation-delay: 0.1s; }
	.timeline-item:nth-child(2) { animation-delay: 0.2s; }
	.timeline-item:nth-child(3) { animation-delay: 0.3s; }
	.timeline-item:nth-child(4) { animation-delay: 0.4s; }
	.timeline-item:nth-child(5) { animation-delay: 0.5s; }
	.timeline-item:nth-child(6) { animation-delay: 0.6s; }
	
	@keyframes fadeInUp {
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.timeline-item {
		opacity: 1;
		transform: none;
		animation: none;
	}
	
	.timeline-icon {
		transition: none;
	}
}

/* ========================================
   HORIZONTAL LAYOUT STYLES
   ======================================== */

/* Horizontal Navigation Dots */
.timeline-horizontal-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 280px;
	width: 100%;
	padding: 20px 0 30px;
	position: relative;
}

/* Connecting line between dots */
.timeline-horizontal-nav::before {
	content: '';
	position: absolute;
	top: 28px;
	left: 50%;
	transform: translateX(-50%);
	width: 110%;
	height: 2px;
	background: #e0e0e0;
	z-index: 0;
}

.timeline-nav-dot {
	position: relative;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 3px solid #a8a8a8;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	z-index: 1;
}

.timeline-nav-dot:hover,
.timeline-nav-dot.active {
	background: #1a1a1a;
	border-color: #1a1a1a;
	transform: scale(1.3);
	border-width: 4px;
}

.timeline-vertical-nav .timeline-nav-dot:hover,
.timeline-vertical-nav .timeline-nav-dot.active {
	transform: unset !important;

}

.timeline-vertical-nav .timeline-nav-label{
	font-size: 18px;
}
/* Label for nav dots */
.timeline-nav-label {
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 14px;
	color: #a8a8a8;
	transition: opacity 0.3s ease;
	pointer-events: none;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
}

.timeline-nav-dot:hover .timeline-nav-label,
.timeline-nav-dot.active .timeline-nav-label {
	opacity: 1;
	color: #1a1a1a;
}

.timeline-nav-year {
	color: inherit;
}

.timeline-nav-separator {
	color: inherit;
}

.timeline-nav-title {
	color: inherit;
}

/* Horizontal Content Container - Single Column Layout */
.timeline-horizontal-content {
	display: none;
	flex-direction: column;
	gap: 30px;
	width: 100%;
	margin: 30px auto 0;
	opacity: 0;
	transition: opacity 0.5s ease;
	max-width: 1000px;
	text-align: center;
}

/* Show active content */
.timeline-horizontal-content.active {
	display: flex;
	animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Text Section */
.timeline-horizontal-content .text-section {
	width: 100%;
	order: 1;
	text-align: center;
}

.timeline-horizontal-text {
	width: 100%;
}

.timeline-text-item {
	width: 100%;
}

.timeline-text-item .timeline-year {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px 0;
	line-height: 1.4;
	text-align: right;
}

.timeline-text-item .timeline-description {
	font-size: 18px;
	line-height: 1.4;
	color: #706f6f;
	margin: 0;
	max-width: 700px;
	text-align: right;
}

/* Hide Small Image */
.timeline-horizontal-image-small {
	display: none;
}

/* Large Image Section */
.timeline-horizontal-content .large-image-section {
	width: 100%;
	order: 2;
}

.timeline-horizontal-image-large {
	width: 100%;
}

.timeline-horizontal-image-large .timeline-image {
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
}

.timeline-horizontal-image-large .timeline-image img {
	width: 100%;
	height: auto;
	max-height: 300px;
	display: block;
	object-fit: cover;
	border-radius: 8px;
}

/* Navigation Arrows */
.timeline-horizontal-arrows {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 30px;
}

.timeline-arrow {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 1px solid #e1e1df;
	background: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	font-size: 20px;
	color: #1a1a1a;
	font-weight: 600;
	padding: 0;
}

.timeline-arrow:hover {
	background: #1a1a1a;
	color: #ffffff;
	transform: scale(1.05);
}

.timeline-arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Horizontal Layout Responsive */
@media (max-width: 1024px) {

	.timeline-text-item .timeline-year{
		margin: 0;
	}
	.timeline-layout-horizontal {
		max-width: 100%;
		padding: 30px 15px;
	}

    .timeline-text-item .timeline-description {
        font-size: 18px;
        line-height: 1.4;
    }
	
	.timeline-horizontal-content {
		gap: 24px;
	}
	
	.timeline-horizontal-image-large .timeline-image img {
		height: 450px;
	}
	
	.timeline-horizontal-image-small .timeline-image-small img {
		height: 250px;
	}
	
	.timeline-nav-dot {
		width: 14px;
		height: 14px;
	}
	
	.timeline-nav-label {
		font-size: 12px;
	}
	
	.timeline-text-item .timeline-year {
		font-size: 24px;
	}
	
	.timeline-text-item .timeline-description {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.timeline-layout-horizontal {
		padding: 24px 10px;
	}
	
	.timeline-horizontal-content {
		gap: 24px;
	}
	
	.timeline-horizontal-nav {
		gap: 100px;
	}
	
	.timeline-horizontal-nav::before {
		width: 100%;
		top: 28px;
	}
	
	.timeline-nav-dot {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
	}
	
	/* Show only year on mobile */
	.timeline-nav-label {
		font-size: 11px;
		bottom: -28px;
	}
	
	.timeline-nav-separator,
	.timeline-nav-title {
		display: none;
	}
	
	.timeline-arrow {
		width: 60px;
		height: 60px;
		font-size: 18px;
	}
	
	.timeline-text-item .timeline-year {
		font-size: 24px;
	}
	
	.timeline-text-item .timeline-description {
		font-size: 16px;
		line-height: 1.6;
	}
	
	.timeline-horizontal-image-large .timeline-image img {
		max-height: 350px;
	}
}

@media (max-width: 480px) {
	.timeline-horizontal-content {
		gap: 20px;
	}
	
	.timeline-horizontal-nav {
		gap: 80px;
	}
	
	.timeline-horizontal-image-large .timeline-image img {
		max-height: 300px;
	}
	
	.timeline-text-item .timeline-year {
		font-size: 22px;
	}
	
	.timeline-text-item .timeline-description {
		font-size: 15px;
	}
}

