/**
 * Project Single Styles
 *
 * @package Euro_Event
 */

:root {
	font-family: 'Roboto', sans-serif;
}

/* ============================================
   Main Wrapper - 100% Width
   ============================================ */
.euro-project-single-wrapper {
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
}

/* ============================================
   Breadcrumb Section
   ============================================ */
.euro-project-breadcrumb-section {
	background-color: #F3F3F3;
	padding: 20px;
}

.euro-project-breadcrumb-content-container {
	max-width: 1073px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.euro-project-breadcrumb-content-container a {
	color: #6F747B;
	text-decoration: none;
	font-weight: 400;
	font-size: 14px;
	transition: color 0.3s ease;
}

.euro-project-breadcrumb-content-container a:hover {
	color: #003087;
	text-decoration: underline;
}

.euro-breadcrumb-separator {
	color: #6F747B;
}

.euro-breadcrumb-current {
	color: #35393D;
	font-weight: 700;
	font-size: 14px;
}

/* ============================================
   Hero Section - Full Width with Background
   ============================================ */
.euro-project-hero {
	width: 100%;
	height: 75vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.euro-project-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(102, 102, 102, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
	display: flex;
	align-items: end;
	justify-content: center;
}

.euro-project-hero-content {
	width: 100%;
	max-width: 1070px;
	padding: 0 20px;
    margin-bottom: 5rem;
	z-index: 1;
	position: relative;
}

/* ============================================
   Badge and Title Container
   ============================================ */
.euro-project-title-container {
	width: 100%;
	max-width: 1070px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Badge Styles */
.euro-project-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.euro-project-badge {
	display: inline-block;
	background-color: #0B4F9F;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Title Styles */
.euro-project-title {
	font-size: 37px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	line-height: 1.3;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Meta Information Section
   ============================================ */
.euro-project-meta-information-section {
	width: 100%;
	background: #F3F3F3;
	padding: 40px 20px;
}

.euro-project-meta-information-container {
	max-width: 917px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 39px;
}

.euro-project-meta-info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #FFFFFF;
	padding: 16px 20px;
	border-radius: 8px;
	flex: 1;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


.euro-meta-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.euro-meta-icon img {
	width: 29px;
	height: 29px;
	object-fit: contain;
}

.euro-meta-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.euro-meta-label {
	font-size: 14px;
	font-weight: 700;
	color: #6F747B;
	line-height: 1.2;
}

.euro-meta-value {
	font-size: 14px;
	font-weight: 700;
	color: #000000;
	line-height: 1.2;
}

/* ============================================
   Description Section
   ============================================ */
.euro-project-description-wrapper {
	width: 100%;
	padding: 60px 20px;
}

.euro-project-description-container {
	max-width: 865px;
	margin: 0 auto;
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.euro-project-main-content {
	width: 566px;
	flex-shrink: 0;
}

.euro-project-content-block {
	margin-bottom: 30px;
}

.euro-project-content-title {
	font-size: 21px;
	font-weight: 700;
	color: #000000;
	margin: 0 0 16px 0;
	line-height: 1.3;
}

.euro-project-content-text {
	font-size: 13px;
	line-height: 1.8;
	color: #333333;
}

.euro-project-content-text p {
	margin-bottom: 16px;
}

.euro-project-content-text p:last-child {
	margin-bottom: 0;
}

/* Achievements Grid */
.euro-project-achievements-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.euro-achievement-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: #F2FBFE;
	border-radius: 13px;
}

.euro-achievement-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
    width: 19px;
    height: 19px;
}

.euro-achievement-text {
	font-size: 14px;
	line-height: 1.6;
	color: #364153;
}

/* ============================================
   Sidebar - Products
   ============================================ */
.euro-project-sidebar {
	width: 265px;
	flex-shrink: 0;
}

.euro-project-sidebar-box {
	background: #F2FBFE;
	border-radius: 13px;
	padding: 16px;
}

.euro-sidebar-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #000000;
	margin: 0 0 15px 0;
}

.euro-sidebar-title img {
	flex-shrink: 0;
	width: 19px;
	height: 19px;
	object-fit: contain;
}

.euro-sidebar-products {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.euro-sidebar-product-item {
	padding: 12px 0;
	border-bottom: 1px solid #8E95A2;
}

.euro-sidebar-product-item:last-child {
	border-bottom: none;
}

.euro-product-item-name {
	font-size: 14px;
	font-weight: 700;
	color: #000000;
	margin-bottom: 4px;
	line-height: 1.4;
}

.euro-product-item-units {
	font-size: 12px;
	font-weight: 400;
	color: #6F747B;
	line-height: 1.4;
}

/* ============================================
   Gallery Section
   ============================================ */
.euro-project-gallery-wrapper {
	width: 100%;
    padding-bottom: 3rem;
	background: #FFFFFF;
}

.euro-project-gallery-container {
	max-width: 821px;
	margin: 0 auto;
}

.euro-project-gallery-title {
	font-size: 30px;
	font-weight: 700;
	color: #0B4F9F;
	margin: 0 0 32px 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.euro-project-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.euro-gallery-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/3;
	background: #F0F0F0;
	cursor: pointer;
}

.euro-gallery-item a {
	display: block;
	width: 100%;
	height: 100%;
}

.euro-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.euro-gallery-item:hover img {
	transform: scale(1.05);
}

.euro-gallery-hidden {
	display: none;
}

/* Gallery Navigation */
.euro-gallery-navigation {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 32px;
}

.euro-gallery-prev,
.euro-gallery-next {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #FFFFFF;
	border-radius: 5px;
    box-shadow: 0px 0px 4px 0px #6C757D4D;
	color: #0B4F9F;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.3s ease;
}

.euro-gallery-prev:hover:not(:disabled),
.euro-gallery-next:hover:not(:disabled) {
	background: #0B4F9F;
	color: #FFFFFF;
}

.euro-gallery-prev:disabled,
.euro-gallery-next:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.euro-gallery-prev svg,
.euro-gallery-next svg {
	flex-shrink: 0;
}

/* ============================================
   Related Projects Section
   ============================================ */
.euro-project-related-wrapper {
	width: 100%;
	padding: 60px 20px;
	background: #F8F9FA;
}

.euro-project-related-container {
	max-width: 1135px;
	margin: 0 auto;
}

.euro-project-related-title {
	font-size: 30px;
	font-weight: 700;
	color: #0B4F9F;
	margin: 0 0 32px 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.euro-project-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, 273px);
	gap: 14px;
}

.euro-related-project-card {
	background: #FFFFFF;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.euro-related-project-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.euro-related-project-image {
	width: 100%;
	aspect-ratio: 16/11;
	overflow: hidden;
	background: #F0F0F0;
}

.euro-related-project-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.euro-related-project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.euro-related-project-card:hover .euro-related-project-image img {
	transform: scale(1.05);
}

.euro-related-project-content {
	padding: 16px;
}

.euro-related-project-name {
	font-size: 17px;
	font-weight: 700;
	color: #000000;
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.euro-related-project-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.euro-related-project-name a:hover {
	color: #0B4F9F;
}

.euro-related-project-excerpt {
	font-size: 12px;
	line-height: 1.6;
	color: #6F747B;
	margin: 0 0 12px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
    min-height: 40px;
}

.euro-related-project-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.euro-related-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: #6F747B;
}

.euro-related-meta-item svg {
	flex-shrink: 0;
}

.euro-related-project-scale {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid #E8E8E8;
	font-size: 11px;
}

.euro-related-scale-label {
	color: #101828;
    font-weight: 700;
	margin-right: 4px;
}

.euro-related-scale-value {
	color: #101828;
	font-weight: 700;
	flex: 1;
}

.euro-related-project-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease;
}

.euro-related-project-card:hover .euro-related-project-arrow {
	transform: translateX(4px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 768px) {
	.euro-project-breadcrumb-content-container {
		font-size: 12px;
		gap: 6px;
		flex-wrap: wrap;
	}

	.euro-project-hero {
		min-height: 400px;
	}

	.euro-project-gallery-container{
		max-width: 390px;
		width: 100%;
	}

	.euro-project-title {
		font-size: 28px;
	}

	.euro-project-related-wrapper{
		padding: 0;
		background: none;
	}

	.euro-project-badge {
		font-size: 10px;
		padding: 5px 10px;
	}
	

	.euro-project-meta-information-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.euro-meta-label, .euro-meta-value{
		text-align: center;
	}

	.euro-project-meta-info-item{
		flex-direction: column;
	}

	.euro-project-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	/* Hide desktop gallery on mobile */
	.euro-project-gallery-wrapper.euro-project-gallery-inline {
		display: none !important;
	}

	/* Hide desktop related projects on mobile */
	.euro-project-related-wrapper.euro-project-related-inline {
		display: none !important;
	}
}

/* Mobile gallery visibility */
.euro-project-gallery-wrapper.euro-project-gallery-mobile-only {
	display: none;
}

/* Mobile related projects visibility */
.euro-project-related-wrapper.euro-project-related-mobile-only {
	display: none;
}

@media screen and (max-width: 768px) {
	/* Show mobile gallery */
	.euro-project-gallery-wrapper.euro-project-gallery-mobile-only {
		display: block !important;
		opacity: 1 !important;
	}

	/* Show mobile related projects */
	.euro-project-related-wrapper.euro-project-related-mobile-only {
		display: block !important;
		opacity: 1 !important;
	}

	/* Mobile gallery swiper styles */
	.euro-project-gallery-mobile {
		width: 100%;
		overflow: hidden;
		opacity: 1 !important;
	}

	.euro-project-gallery-mobile .swiper {
		width: 100%;
		height: auto;
	}

	.euro-project-gallery-mobile .swiper-slide {
		display: flex !important;
		justify-content: center;
		align-items: center;
		border-radius: 0;
	}

	.euro-project-gallery-mobile .euro-gallery-item {
		width: 100%;
		height: auto;
		border-radius: 0;
		display: block !important;
		opacity: 1 !important;
	}

	.euro-project-gallery-mobile .euro-gallery-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0;
		display: block !important;
	}

	/* Force show all mobile gallery items - override hidden class */
	.euro-project-gallery-mobile .swiper-slide.euro-gallery-hidden,
	.euro-project-gallery-mobile .euro-gallery-item.euro-gallery-hidden {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	/* Mobile related projects swiper styles */
	.euro-project-related-mobile {
		width: 100%;
		overflow: hidden;
		padding: 20px 0;
	}

	.euro-project-related-mobile .swiper {
		width: 100%;
		height: auto;
		overflow: visible;
	}

	.euro-project-related-mobile .swiper-wrapper {
		display: flex;
	}

	.euro-project-related-mobile .swiper-slide {
		display: flex !important;
		justify-content: center;
		align-items: stretch;
		padding: 1rem;
	}

	/* Outer wrapper: Handles box-shadow */
	.euro-project-related-mobile .euro-related-project-card-wrapper {
		width: 100%;
		max-width: 400px;
		margin: 0 auto;
		border-radius: 12px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.euro-project-related-mobile .euro-related-project-card-wrapper:hover {
		transform: translateY(-4px);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	}

	/* Inner card: Clips content with overflow hidden */
	.euro-project-related-mobile .euro-related-project-card {
		width: 100%;
		max-width: 100%;
		margin: 0;
		border-radius: 12px;
		overflow: hidden;
		background: #FFFFFF;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}
}

@media screen and (max-width: 480px) {
	.euro-project-breadcrumb-content-container {
		font-size: 11px;
		gap: 4px;
	}

	.euro-breadcrumb-current {
		display: block;
		width: 100%;
		margin-top: 5px;
	}

	.euro-project-hero {
		min-height: 300px;
	}

	.euro-project-title {
		font-size: 24px;
	}

	.euro-project-meta-information-section {
		padding: 30px 16px;
	}

	.euro-project-description-container {
		display: grid;
		grid-template-columns: 1fr;
	}

	.euro-project-main-content {
		max-width: 100%;
		display: contents;
	}

	.euro-project-sidebar {
		width: 100%;
		order: 2;
	}
	
	.euro-project-content-block:has(.euro-project-achievements-grid) {
		order: 3;
	}

	.euro-project-achievements-grid {
		grid-template-columns: 1fr;
	}

	.euro-project-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.euro-project-related-grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 600px) {
	.euro-project-gallery-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Entrance Animations
   ============================================ */
.euro-project-breadcrumb-section,
.euro-project-hero,
.euro-project-meta-info-item,
.euro-project-content-block,
.euro-achievement-item,
.euro-project-sidebar,
.euro-gallery-item,
.euro-project-related-title,
.euro-related-project-card {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.euro-project-breadcrumb-section.euro-animate-in,
.euro-project-hero.euro-animate-in {
	opacity: 1;
	transform: translateY(0);
}

.euro-project-meta-info-item.euro-animate-in {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(var(--item-index, 0) * 0.1s);
}

.euro-project-meta-info-item:nth-child(1) { --item-index: 0; }
.euro-project-meta-info-item:nth-child(2) { --item-index: 1; }
.euro-project-meta-info-item:nth-child(3) { --item-index: 2; }
.euro-project-meta-info-item:nth-child(4) { --item-index: 3; }

.euro-project-content-block.euro-animate-in,
.euro-project-sidebar.euro-animate-in,
.euro-project-related-title.euro-animate-in {
	opacity: 1;
	transform: translateY(0);
}

.euro-achievement-item.euro-animate-in {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(var(--achievement-index, 0) * 0.05s);
}

.euro-achievement-item:nth-child(1) { --achievement-index: 0; }
.euro-achievement-item:nth-child(2) { --achievement-index: 1; }
.euro-achievement-item:nth-child(3) { --achievement-index: 2; }
.euro-achievement-item:nth-child(4) { --achievement-index: 3; }
.euro-achievement-item:nth-child(5) { --achievement-index: 4; }
.euro-achievement-item:nth-child(6) { --achievement-index: 5; }

.euro-gallery-item.euro-animate-in {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(var(--gallery-index, 0) * 0.05s);
}

.euro-gallery-item:nth-child(1) { --gallery-index: 0; }
.euro-gallery-item:nth-child(2) { --gallery-index: 1; }
.euro-gallery-item:nth-child(3) { --gallery-index: 2; }
.euro-gallery-item:nth-child(4) { --gallery-index: 3; }
.euro-gallery-item:nth-child(5) { --gallery-index: 4; }
.euro-gallery-item:nth-child(6) { --gallery-index: 5; }
.euro-gallery-item:nth-child(7) { --gallery-index: 6; }
.euro-gallery-item:nth-child(8) { --gallery-index: 7; }
.euro-gallery-item:nth-child(9) { --gallery-index: 8; }

.euro-related-project-card.euro-animate-in {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(var(--card-index, 0) * 0.1s);
}

.euro-related-project-card:nth-child(1) { --card-index: 0; }
.euro-related-project-card:nth-child(2) { --card-index: 1; }
.euro-related-project-card:nth-child(3) { --card-index: 2; }
.euro-related-project-card:nth-child(4) { --card-index: 3; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	.euro-project-breadcrumb-section,
	.euro-project-hero,
	.euro-project-meta-info-item,
	.euro-project-content-block,
	.euro-achievement-item,
	.euro-project-sidebar,
	.euro-gallery-item,
	.euro-project-related-title,
	.euro-related-project-card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Timeline Navigation for Mobile Sliders */
.euro-project-gallery-mobile-only .timeline-navigation,
.euro-project-related-mobile-only .timeline-navigation {
	display: none;
	gap: 10px;
	justify-content: center;
	margin-top: 20px;
}

@media (max-width: 768px) {
	.euro-project-gallery-mobile-only .timeline-navigation,
	.euro-project-related-mobile-only .timeline-navigation {
		display: flex;
	}
}

.timeline-prev,
.timeline-next {
	background: #f3f4f6;
	border: 2px solid #7BCEF4;
	border-radius: 13px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #6b7280;
}

.timeline-prev:hover,
.timeline-next:hover {
	background: #2563eb;
	color: white;
}

.timeline-prev:disabled,
.timeline-next:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
