/* Minimalist Progress Timeline - Avada Theme Compatible */
.pilg-timeline-container {
	background: var(--pilg-background);
	padding: 4rem 2rem;
	text-align: center;
}

.pilg-timeline-header {
	margin-bottom: 4rem;
}

.pilg-timeline-title {
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--pilg-text);
	text-transform: uppercase;
	letter-spacing: 3px;
	margin: 0;
}

/* Minimalist Timeline */
.pilg-timeline {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 3rem 2rem;
}

/* Progress Percentage Display - Above the timeline */
.pilg-timeline-progress-display {
	text-align: center;
	margin-bottom: 1.5rem;
}

.pilg-timeline-progress-display .pilg-center-progress {
	color: var(--pilg-text);
	font-weight: 600;
	font-size: 1.2rem;
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 20px;
	border: 2px solid var(--pilg-accent);
	display: inline-block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pilg-timeline-dates {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
	margin-bottom: 0;
	position: relative;
	z-index: 2;
}

.pilg-timeline-dates .pilg-start-date,
.pilg-timeline-dates .pilg-end-date {
	font-size: 0.9rem;
	color: var(--pilg-date-text);
	font-weight: 500;
}

.pilg-timeline-dates .pilg-start-date {
	align-self: flex-start;
}

.pilg-timeline-dates .pilg-end-date {
	align-self: flex-end;
}

/* Desktop: Show desktop dates, hide mobile dates */
.pilg-date-desktop {
	display: inline;
}

.pilg-date-mobile {
	display: none;
}

/* Date Markers */
.pilg-timeline-date-marker {
	position: absolute;
	top: 0; /* Changed from 50% to align with progress bar */
	left: 0; /* Will be set by style attribute */
	transform: translateX(-50%); /* Only horizontal centering */
	z-index: 2;
	margin-top: -2px; /* Offset to center on 8px track (8px dot + 4px border - 8px track = 4px, /2 = 2px) */
}

.pilg-date-marker-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pilg-date-text);
	border: 2px solid var(--pilg-progress-bar-bg);
}

/* Timeline Track - Updated for 13 color system and no gradient */
.pilg-timeline-track {
	position: relative;
	height: 8px;
	background: var(--pilg-progress-bar-pending);
	border-radius: 4px;
	margin: 2rem 0;
	overflow: visible;
	border: 1px solid var(--pilg-progress-bar-border);
}

.pilg-timeline-progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: var(--pilg-progress-bar-main); /* Solid color - no gradient */
	border-radius: 4px;
	transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
	width: 0%; /* Start at 0% for animation */
}

/* Timeline Nodes - Updated for 13 color system */
.pilg-timeline-node {
	position: absolute;
	top: 0; /* Changed from 50% to align with progress bar top */
	left: 0; /* Will be set by style attribute */
	transform: translateX(-50%); /* Only horizontal centering */
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 3px solid var(--pilg-node-border);
	background: var(--pilg-node-completed);
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 3;
	box-shadow: 0 0 0 1px var(--pilg-node-border);
	display: flex;
	align-items: center;
	justify-content: center;
	/* Position relative to track center */
	margin-top: -6px; /* Offset to center on 8px track (20px node - 8px track = 12px, /2 = 6px) */
	/* Initial state - not animated */
	opacity: 0.3;
	scale: 0.8;
}

/* Animated state for nodes */
.pilg-timeline-node.animated {
	opacity: 1;
	scale: 1;
	transition: all 0.6s ease;
}

/* Icon removed - no icon on nodes */
.pilg-timeline-node::before {
	display: none;
}

.pilg-timeline-node:hover::before {
	display: none;
}

/* Node coloring based on whether progress bar reached it */
.pilg-timeline-node.reached {
	background: var(--pilg-node-completed);
	border: 3px solid var(--pilg-node-border);
	box-shadow: 0 0 0 1px var(--pilg-node-completed);
}

.pilg-timeline-node.not-reached {
	background: var(--pilg-node-pending);
	border: 3px solid var(--pilg-node-border);
	box-shadow: 0 0 0 1px var(--pilg-node-pending);
}

.pilg-timeline-node:hover {
	transform: translateX(-50%) scale(1.5); /* Updated to match new positioning */
	z-index: 4;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	border: 3px solid var(--pilg-node-hover-border);
	/* background rengi değişmiyor - orijinal renk korunuyor */
}

/* New Tooltip Design - Below the node */
.pilg-timeline-tooltip {
	position: absolute;
	top: 35px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--pilg-tooltip-background);
	color: var(--pilg-tooltip-stage-text);
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.75rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 5;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	border: 1px solid var(--pilg-tooltip-border);
	text-align: center;
	line-height: 1.2;
	min-width: fit-content;
	max-width: 300px; /* Increased from 150px */
}

.pilg-timeline-tooltip::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-bottom-color: var(--pilg-tooltip-background);
}

.pilg-timeline-node:hover .pilg-timeline-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(3px);
}

/* Tooltip edge handling for nodes near screen edges */
.pilg-timeline-node[style*="left: 0%"] .pilg-timeline-tooltip,
.pilg-timeline-node[style*="left: 1"] .pilg-timeline-tooltip {
	left: 0;
	transform: translateX(0) translateY(3px);
}

.pilg-timeline-node[style*="left: 9"] .pilg-timeline-tooltip,
.pilg-timeline-node[style*="left: 100%"] .pilg-timeline-tooltip {
	left: auto;
	right: 0;
	transform: translateX(0) translateY(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
	.pilg-timeline-container {
		padding: 2rem 1rem;
	}

	.pilg-timeline {
		padding: 1.5rem 0;
	}

	.pilg-timeline-progress-display .pilg-center-progress {
		font-size: 1rem;
		padding: 0.4rem 0.8rem;
	}

	.pilg-timeline-dates {
		flex-direction: column;
		gap: 1rem;
		align-items: center;
	}

	.pilg-timeline-date {
		font-size: 0.7rem;
		letter-spacing: 0.5px;
	}

	/* Show mobile dates, hide desktop dates */
	.pilg-date-desktop {
		display: none;
	}

	.pilg-date-mobile {
		display: inline;
	}

	.pilg-timeline-node {
		width: 20px;
		height: 20px;
	}

	.pilg-timeline-tooltip {
		display: none; /* Mobilde tooltip'i gizle */
	}

	.pilg-timeline-title {
		font-size: 1rem;
		letter-spacing: 2px;
	}
}

@media (max-width: 480px) {
	.pilg-timeline-container {
		padding: 1.5rem 0.5rem;
	}

	.pilg-timeline-header {
		margin-bottom: 2rem;
	}

	.pilg-timeline-progress-display .pilg-center-progress {
		font-size: 0.9rem;
		padding: 0.3rem 0.6rem;
	}

	.pilg-progress-info {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
	}

	.pilg-timeline-track {
		height: 6px;
		margin: 1rem 0;
	}

	.pilg-timeline-date {
		font-size: 0.6rem;
		letter-spacing: 0px;
		white-space: nowrap;
	}

	/* Ensure mobile dates stay visible on smallest screens */
	.pilg-date-desktop {
		display: none;
	}

	.pilg-date-mobile {
		display: inline;
	}

	.pilg-timeline-node {
		display: none; /* Mobilde tüm düğümleri gizle */
		width: 18px;
		height: 18px;
		border-width: 2px;
	}

	.pilg-timeline-node:nth-child(odd) {
		display: flex !important; /* Sadece tek sıradaki (ortadaki) düğümü göster */
		left: 50% !important; /* Ortaya konumlandır */
	}

	.pilg-timeline-node::before {
		display: none; /* Mobilde ikon yok */
	}

	.pilg-timeline-node:hover::before {
		display: none; /* Mobilde hover ikon yok */
	}
}

/* Project Stages Accordion */
.pilg-stages-accordion-container {
	max-width: 1000px;
	margin: 4rem auto 0;
	padding: 0 2rem;
}

.pilg-accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding: 1rem 0;
	border-bottom: 2px solid var(--pilg-accent);
}

.pilg-accordion-header h3 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--pilg-text);
}

.pilg-accordion-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--pilg-text);
}

.pilg-accordion-controls button {
	background: none;
	border: none;
	color: var(--pilg-primary);
	cursor: pointer;
	text-decoration: underline;
	font-size: 0.9rem;
	padding: 0;
}

.pilg-accordion-controls button:hover {
	color: var(--pilg-accent);
}

.pilg-stages-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pilg-accordion-item {
	border-radius: 50px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	background: var(--pilg-accordion-header-bg);
	border: 1px solid var(--pilg-accordion-header-border);
}

/* Hover effect */
.pilg-accordion-item:hover {
	background: var(--pilg-accordion-hover-bg);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover effect for header item */
.pilg-accordion-header-item:hover {
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.3s ease;
}

/* Disable hover when item is disabled */
.pilg-accordion-header-item[data-disabled="true"]:hover {
	background: none;
	cursor: not-allowed;
}

/* Active/Expanded state */
.pilg-accordion-item.active {
	background: var(--pilg-accordion-active-bg);
	border-radius: 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transform: translateY(-1px);
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pilg-accordion-item.expanded {
	background: var(--pilg-accordion-active-bg);
}

.pilg-accordion-header-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 50px;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
	--progress-width: 0%;
	height: 70px;
}

/* Progress bar background effect for the entire header */
.pilg-accordion-header-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
	width: 0%; /* Start at 0% for animation */
}

/* Animated state for accordion headers */
.pilg-accordion-header-item.animated::before {
	width: var(--progress-width);
}

/* Completed stages (100%) - Single color background */
.pilg-accordion-item.completed .pilg-accordion-header-item.animated::before {
	background: var(--pilg-stage-progress-completed);
	width: 100%;
}

/* Pending stages with partial progress (1-99%) - Partial fill */
.pilg-accordion-item.pending .pilg-accordion-header-item.animated::before {
	background: var(--pilg-stage-progress-partial);
}

/* Not started stages (0%) - Track color background */
.pilg-accordion-item.not-started .pilg-accordion-header-item::before {
	background: var(--pilg-stage-progress-track);
	width: 0%;
}

/* Animate to target width when loaded */
.pilg-accordion-header-item.animate::before {
	width: var(--progress-width);
}

/* Content should be above the background */
.pilg-accordion-header-item > * {
	position: relative;
	z-index: 2;
}

.pilg-accordion-header-item:hover {
	transform: scale(1.01);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pilg-stage-info {
	display: flex;
	align-items: center;
	gap: 20px;
}

.pilg-stage-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 8px;
	background: var(--pilg-stage-icon-bg-pending);
	color: var(--pilg-stage-icon-color-pending);
	font-size: 32px;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

/* Completed stage icon colors */
.pilg-accordion-item.completed .pilg-stage-icon {
	background: var(--pilg-stage-icon-bg-completed);
	color: var(--pilg-stage-icon-color-completed);
}

.pilg-stage-icon img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	filter: none;
}

/* Completed stage icon image filter for better contrast */
.pilg-accordion-item.completed .pilg-stage-icon img {
	filter: brightness(0) invert(1);
}

.pilg-stage-details h4 {
	margin: 0;
	font-family: var(--awb-custom_typography_1-font-family) !important;
	font-size: var(--awb-custom_typography_1-font-size) !important;
	font-weight: var(--awb-custom_typography_1-font-weight) !important;
	font-style: var(--awb-custom_typography_1-font-style) !important;
	line-height: var(--awb-custom_typography_1-line-height) !important;
	text-transform: var(--awb-custom_typography_1-text-transform) !important;
	color: var(--pilg-stage-title-color);
}

.pilg-stage-date {
	font-size: 13px;
	color: var(--pilg-stage-date-color);
	font-weight: 300;
	margin-top: 2px;
}

.pilg-stage-status {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pilg-progress-text {
	font-weight: 400;
	font-size: 16px;
	color: var(--pilg-stage-progress-text-color);
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.pilg-status-text {
	font-size: 12px;
	font-weight: 300;
	padding: 4px 12px;
	border-radius: 12px;
	background: var(--pilg-stage-status-bg);
	color: var(--pilg-stage-status-text-color);
}

/* Media Indicator Styles */
.pilg-media-indicator {
	font-size: 13px;
	font-weight: 500;
	color: var(--pilg-accent);
	margin-left: 8px;
	padding: 3px 8px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	border: 1px solid var(--pilg-accent);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s ease;
}

.pilg-media-indicator:hover {
	background: var(--pilg-accent);
	color: white;
	transform: translateY(-1px);
}

/* Media Icon SVG Styles */
.pilg-media-icon {
	width: 30px;
	height: 30px;
	margin-right: 5px;
	vertical-align: middle;
	filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.pilg-media-indicator:hover .pilg-media-icon {
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(109deg) brightness(111%) contrast(111%);
}

.pilg-accordion-content {
	display: none;
	padding: 1.5rem 2rem; /* Reduced from 2rem */
	background: rgba(255, 255, 255, 0.95);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	position: relative; /* Important for absolute positioned viewer */
	min-height: 200px; /* Ensure enough height for viewer */
	height: 0;
	overflow: hidden;
	transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
				opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pilg-accordion-item.active .pilg-accordion-content {
	display: block;
	opacity: 1;
}

.pilg-stage-description {
	margin-bottom: 0; /* Remove bottom margin since separator will handle spacing */
}

.pilg-stage-description p {
	margin: 0;
	line-height: 1.6;
	color: var(--pilg-text);
	font-size: 0.95rem;
}

/* Content separator between description and images */
.pilg-content-separator {
	margin: 1.5rem 0;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--pilg-accent) 20%, var(--pilg-accent) 80%, transparent);
	position: relative;
}

.pilg-content-separator::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	background: var(--pilg-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.pilg-stage-gallery {
	margin-top: 0; /* Remove top margin since separator handles spacing */
	position: relative; /* Important for viewer positioning */
}

.pilg-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Increased from 150px */
	gap: 1.25rem; /* Increased gap for better spacing */
	margin-top: 0; /* Remove top margin */
}

/* Carousel Gallery System */
.pilg-carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 12px;
	background: var(--pilg-background);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pilg-carousel-wrapper {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.pilg-carousel-track {
	display: flex;
	will-change: transform;
}

.pilg-carousel-slide {
	position: relative;
	overflow: hidden;
	background: var(--pilg-background);
}

.pilg-carousel-image {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
	cursor: pointer;
	transition: transform 0.3s ease, filter 0.3s ease;
	border: none;
	outline: none;
}

.pilg-carousel-image:hover,
.pilg-carousel-image:focus {
	transform: scale(1.05);
	filter: brightness(1.1);
	outline: 2px solid var(--pilg-accent);
	outline-offset: 2px;
}

/* New Fullscreen Overlay System */
.pilg-carousel-viewer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99999;
	display: none;
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	opacity: 0;
	transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full screen background layers */
.pilg-fullscreen-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pilg-accordion-mask {
	position: absolute;
	background: #f8f8f8;
	border-radius: 50px;
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	transform: scale(0);
	transform-origin: center;
	/* Smart sizing for responsive positioning */
	min-height: 200px;
	max-height: calc(100vh - 40px); /* Leave space on top/bottom for mobile landscape */
	max-width: calc(100vw - 40px); /* Leave space on sides */
}

/* Animation states */
.pilg-carousel-viewer.pilg-viewer-opening {
	opacity: 1;
}

.pilg-carousel-viewer.pilg-viewer-opening .pilg-fullscreen-background {
	background: var(--pilg-accordion-header-border, #ddd);
}

.pilg-carousel-viewer.pilg-viewer-opening .pilg-accordion-mask {
	transform: scale(1);
}

.pilg-carousel-viewer.pilg-viewer-closing {
	opacity: 0;
}

.pilg-carousel-viewer.pilg-viewer-closing .pilg-fullscreen-background {
	background: transparent;
}

.pilg-carousel-viewer.pilg-viewer-closing .pilg-accordion-mask {
	transform: scale(0);
}

/* When viewer is shown via JavaScript inline styles */
.pilg-carousel-viewer[style*="display: flex"] {
	display: flex !important;
}

/* Ensure accordion content has relative positioning for viewer absolute positioning */
.pilg-accordion-content {
	position: relative !important;
	overflow: hidden !important;
	border-radius: 12px !important;
}

/* Make sure carousel container has relative positioning */
.pilg-carousel-container {
	position: relative !important;
	width: 100% !important;
	overflow: hidden !important;
	border-radius: 12px !important;
	background: var(--pilg-background);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pilg-viewer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	cursor: pointer;
	z-index: 1;
}

.pilg-viewer-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.pilg-viewer-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f8f8f8;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: var(--pilg-text, #333);
	font-size: 1.8rem;
	font-weight: 300;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 101;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	transform: scale(0.8);
	animation: pilgFadeInButton 0.4s ease 0.3s forwards;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes pilgFadeInButton {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.pilg-viewer-close:hover {
	background: #ffffff;
	transform: scale(1.1);
	border-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.pilg-viewer-close:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--pilg-accent, #007cba);
}

.pilg-viewer-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: relative;
}

.pilg-viewer-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #f8f8f8;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: var(--pilg-text, #333);
	font-size: 2rem;
	font-weight: 300;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 101;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	transform: translateY(-50%) scale(0.8);
	animation: pilgFadeInNavButton 0.4s ease 0.4s forwards;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes pilgFadeInNavButton {
	to {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}
}

.pilg-viewer-nav:hover {
	background: #ffffff;
	transform: translateY(-50%) scale(1.1);
	border-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.pilg-viewer-nav:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--pilg-accent, #007cba);
}

.pilg-viewer-prev {
	left: 20px;
}

.pilg-viewer-next {
	right: 20px;
}

.pilg-viewer-image-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 5;
	opacity: 0;
	transform: scale(0.9);
	animation: pilgFadeInImage 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
	max-width: 100%;
	max-height: 100%;
}

@keyframes pilgFadeInImage {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.pilg-viewer-image {
	/* Dynamic sizing will be applied via JavaScript based on accordion mask dimensions */
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	border-radius: 50px; /* 50px radius as requested */
	box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
	border: 3px solid rgba(255, 255, 255, 0.9);
	/* Fallback constraints for cases where JS hasn't run yet */
	max-width: 90vw;
	max-height: 90vh;
}

.pilg-viewer-info {
	display: none; /* Hide viewer info (title, caption, counter) for cleaner accordion overlay */
	margin-top: 15px;
	text-align: center;
	color: white;
	max-width: 100%;
}

.pilg-viewer-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: white;
}

.pilg-viewer-caption {
	font-size: 0.9rem;
	opacity: 0.8;
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.9);
}

.pilg-viewer-counter {
	font-size: 0.85rem;
	opacity: 0.7;
	color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
	.pilg-carousel-image {
		height: 120px;
	}

	.pilg-viewer-container {
		padding: 15px;
	}

	.pilg-viewer-nav {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}

	.pilg-viewer-close {
		width: 35px;
		height: 35px;
		font-size: 1.2rem;
		top: 5px;
		right: 5px;
	}

	.pilg-viewer-image {
		max-height: 70%;
	}

	.pilg-viewer-info {
		margin-top: 10px;
	}

	.pilg-viewer-title {
		font-size: 1rem;
	}

	.pilg-viewer-caption {
		font-size: 0.8rem;
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	.pilg-carousel-track {
		animation: none !important;
	}

	.pilg-carousel-image,
	.pilg-viewer-nav,
	.pilg-viewer-close {
		transition: none;
	}
}

/* Focus management */
.pilg-carousel-viewer:focus {
	outline: none;
}

/* Hide scrollbars in carousel */
.pilg-carousel-wrapper::-webkit-scrollbar {
	display: none;
}

.pilg-carousel-wrapper {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Legacy gallery item styles - Keep for backward compatibility */
.pilg-gallery-item {
	border-radius: 12px; /* Increased border radius */
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12); /* Enhanced shadow */
	position: relative;
}

.pilg-gallery-item:hover {
	transform: translateY(-6px); /* Increased hover lift */
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); /* Enhanced hover shadow */
}

.pilg-gallery-item a {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.pilg-gallery-item img {
	width: 100%;
	height: 140px; /* Increased from 120px */
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pilg-gallery-item:hover img {
	transform: scale(1.05); /* Slight zoom on hover */
}

/* Gallery overlay for hover effect */
.pilg-gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	color: white;
	font-size: 1.5rem;
}

.pilg-gallery-item:hover .pilg-gallery-overlay {
	opacity: 1;
}

.pilg-no-images {
	text-align: center;
	padding: 2rem;
	color: var(--pilg-text);
	font-style: italic;
}

/* Lightbox */
.pilg-lightbox {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	justify-content: center;
	align-items: center;
}

.pilg-lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
}

.pilg-lightbox-close {
	position: absolute;
	top: -40px;
	right: -40px;
	color: white;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
}

.pilg-lightbox-close:hover {
	color: var(--pilg-accent);
}

#pilg-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
}

/* Responsive Design for Accordion */
@media (max-width: 768px) {
	.pilg-stages-accordion-container {
		padding: 0 1rem;
		margin-top: 2rem;
	}

	.pilg-accordion-header {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.pilg-accordion-header-item {
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		gap: 15px;
		text-align: left;
		padding: 12px 20px;
		height: 60px;
	}

	.pilg-stage-info {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		text-align: left;
		flex: 1;
	}

	.pilg-stage-icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
		flex-shrink: 0;
	}

	.pilg-accordion-content {
		padding: 1rem 1.5rem; /* Adjusted mobile padding */
	}

	.pilg-gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adjusted mobile grid */
		gap: 1rem;
	}

	.pilg-gallery-item img {
		height: 120px; /* Adjusted mobile image height */
	}

	.pilg-content-separator {
		margin: 1rem 0; /* Reduced separator margin on mobile */
	}

	.pilg-lightbox-close {
		top: 10px;
		right: 10px;
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.pilg-accordion-header h3 {
		font-size: 1.2rem;
	}

	/* .pilg-stage-details h4 mobilde Avada custom typography ayarları kullanılacak */

	.pilg-stage-details {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 40px;
	}

	.pilg-stage-date {
		font-size: 11px;
		margin-top: 1px;
	}

	.pilg-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Media indicator mobile styles */
	.pilg-media-indicator {
		font-size: 11px;
		padding: 2px 6px;
		margin-left: 4px;
	}

	.pilg-media-icon {
		width: 24px;
		height: 24px;
	}
}

/* ===== STAGE PROGRESS BAR STYLES ===== */
.pilg-stage-progress-container {
	margin-top: 8px;
	width: 100%;
	display: none; /* Hide small progress bars since header acts as progress bar */
}

.pilg-stage-progress-bar {
	background: var(--pilg-secondary);
	border-radius: 20px;
	height: 20px;
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.pilg-stage-progress-fill {
	background: var(--pilg-accent);
	height: 100%;
	border-radius: 20px;
	position: relative;
	transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	width: 0% !important; /* Start at 0% for animation */
}

.pilg-stage-progress-fill::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
	border-radius: 20px;
}

.pilg-stage-progress-text {
	font-size: 11px;
	font-weight: 600;
	color: white;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 1;
	white-space: nowrap;
}

/* Completed stages - green gradient with green background */
.pilg-accordion-item.completed .pilg-stage-progress-bar {
	background: var(--pilg-light);
}

.pilg-accordion-item.completed .pilg-stage-progress-fill {
	background: var(--pilg-accent);
}

/* In-progress stages - blue gradient with blue background */
.pilg-accordion-item.pending .pilg-stage-progress-bar {
	background: var(--pilg-secondary);
}

.pilg-accordion-item.pending .pilg-stage-progress-fill {
	background: var(--pilg-primary);
}

/* Hover effects */
.pilg-accordion-header-item:hover .pilg-stage-progress-bar {
	transform: scale(1.02);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Disabled accordion items (no content) */
.pilg-accordion-item.no-content .pilg-accordion-header-item {
	cursor: default;
	opacity: 0.7;
}

.pilg-accordion-item.no-content .pilg-accordion-header-item:hover {
	transform: none;
	box-shadow: none;
}

.pilg-accordion-item.no-content .pilg-accordion-header-item[data-disabled="true"] {
	pointer-events: none;
}

/* Progress bar animations */
@keyframes progressFill {
	from {
		width: 0%;
	}
	to {
		width: var(--target-width);
	}
}

.pilg-stage-progress-fill.animate {
	animation: progressFill 1.2s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.pilg-stage-progress-bar {
		height: 18px;
	}

	.pilg-stage-progress-text {
		font-size: 10px;
	}

	.pilg-stage-progress-container {
		margin-top: 6px;
	}
}

@media (max-width: 480px) {
	.pilg-stage-progress-bar {
		height: 16px;
	}

	.pilg-stage-progress-text {
		font-size: 9px;
	}
}

/* Lightbox Active State */
.pilg-lightbox.active {
	display: flex;
}

/* Body scroll lock with scrollbar compensation */
.pilg-lightbox-open {
	overflow: hidden !important;
	padding-right: var(--pilg-scrollbar-width, 0) !important;
}

/* Lightbox smooth transitions */
.pilg-lightbox {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pilg-lightbox.active {
	opacity: 1;
	visibility: visible;
}

.pilg-lightbox-content {
	transform: scale(0.7);
	transition: transform 0.3s ease;
}

.pilg-lightbox.active .pilg-lightbox-content {
	transform: scale(1);
}
