:root {
	/* X-Dynamics Color Palette */
	--x-dynamics-red: #b71234;
	--x-dynamics-red-hover: #8f0e28;
	--x-dynamics-black: #1a1a1a;
	--x-dynamics-gray: #f5f5f5;
	--x-dynamics-white: #ffffff;

	/* Page content container (About Us standard). Change here site-wide. */
	--xd-container-max: 80rem; /* matches Tailwind max-w-7xl */
	--xd-container-pad: 1.5rem; /* matches px-6 */
}

/* Shared page content width — use instead of ad-hoc max-w-7xl mx-auto px-6 */
.xd-container {
	width: 100%;
	max-width: var(--xd-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--xd-container-pad);
	padding-right: var(--xd-container-pad);
	box-sizing: border-box;
}

/* Background Colors */
.bg-x-red {
	background-color: var(--x-dynamics-red) !important;
}

/* Tüm bg-x-red butonları için otomatik hover efekti */
:is(a, button).bg-x-red:hover {
	background-color: var(--x-dynamics-red-hover) !important;
}


.bg-x-black {
	background-color: var(--x-dynamics-black) !important;
}

.bg-x-gray {
	background-color: var(--x-dynamics-gray) !important;
}

.bg-x-white {
	background-color: var(--x-dynamics-white) !important;
}

/* Text Colors */
.text-x-red {
	color: var(--x-dynamics-red) !important;
}

.accent-x-red {
	accent-color: var(--x-dynamics-red) !important;
}

/* Native checkbox/radio: seçili renk her zaman X Dynamics red */
main input[type="checkbox"],
main input[type="radio"],
.xd-ajax-form input[type="checkbox"],
.xd-ajax-form input[type="radio"],
.xd-sf-filters input[type="checkbox"],
.xd-sf-filters input[type="radio"] {
	accent-color: var(--x-dynamics-red) !important;
}

/* Tailwind focus:ring-x-red derlenmiyor — form focus marka kırmızısı (#b71234 = scroll-to-top) */
.ring-x-red,
.focus\:ring-x-red:focus,
.focus\:ring-x-red:focus-visible {
	--tw-ring-color: color-mix(in srgb, var(--x-dynamics-red) 45%, transparent);
}

/* Tüm site form alanları: seçili/focus = marka kırmızısı */
main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="image"]):not([data-solution-finder-input]):focus,
main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="image"]):not([data-solution-finder-input]):focus-visible,
main textarea:focus,
main textarea:focus-visible,
main select:focus,
main select:focus-visible,
.xd-ajax-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
.xd-ajax-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus-visible,
.xd-ajax-form textarea:focus,
.xd-ajax-form textarea:focus-visible,
.xd-ajax-form select:focus,
.xd-ajax-form select:focus-visible {
	outline: none !important;
	border-color: var(--x-dynamics-red) !important;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--x-dynamics-red) 35%, transparent) !important;
}

main input[type="checkbox"]:focus-visible,
main input[type="radio"]:focus-visible,
.xd-ajax-form input[type="checkbox"]:focus-visible,
.xd-ajax-form input[type="radio"]:focus-visible {
	outline: 2px solid var(--x-dynamics-red);
	outline-offset: 2px;
}

/* Solution Finder arama: sadece dış kutu focus alır — input’ta border/ring yok */
main [data-solution-finder-searchbox]:focus-within {
	border-color: #b71234 !important;
	box-shadow: 0 0 0 2px rgba(183, 18, 52, 0.28), 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

main input[data-solution-finder-input],
main input[data-solution-finder-input]:focus,
main input[data-solution-finder-input]:focus-visible,
main input[data-solution-finder-input]:focus-within {
	outline: none !important;
	border: 0 !important;
	border-width: 0 !important;
	border-style: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	background-color: transparent !important;
}

.text-x-black {
	color: var(--x-dynamics-black) !important;
}

.text-x-white {
	color: var(--x-dynamics-white) !important;
}

/* Fill Colors (for SVG) */
.fill-x-red {
	fill: var(--x-dynamics-red) !important;
}

/* Background with Opacity */
.bg-x-red\/10 {
	background-color: rgba(255, 107, 53, 0.1);
}

/* Gradient Colors */
.from-x-red {
	--tw-gradient-from: var(--x-dynamics-red);
	--tw-gradient-to: transparent;
	--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* Hover States */
.hover\:bg-x-red-hover:hover {
	background-color: var(--x-dynamics-red-hover);
}

.hover\:bg-x-white:hover {
	background-color: var(--x-dynamics-white) !important;
}

.hover\:text-x-red:hover {
	color: var(--x-dynamics-red);
}

/* Button Transitions - Tüm butonlar için yavaş renk geçişi */
button,
a {
	transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* Mega Menu Styles */
.mega-menu {
	position: absolute;
	left: 0;
	top: 100%;
	margin-top: calc(0.75rem - 5px); /* nav ile panel arasında nefes */
	width: min(760px, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	transform-origin: top left;
	background-color: white;
	border-radius: 0.375rem;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	border: 1px solid #e5e7eb;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
	z-index: 50;
}

.mega-menu.mega-menu--wide {
	width: min(1080px, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
}

.mega-menu-group:hover .mega-menu.is-positioned {
	opacity: 1;
	visibility: visible;
}

.mega-menu-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	align-items: stretch;
}

.mega-menu-grid.expanded {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-menu-links {
	grid-column: 1;
	padding: 1.5rem 1.25rem 1.5rem 1.75rem;
	min-width: 0;
}

.mega-menu-links ul {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-size: 15px;
}

.mega-menu-sub {
	grid-column: 2;
	padding: 1.5rem 1rem;
	border-left: 1px solid #e5e7eb;
	display: none;
	min-width: 0;
}

.mega-menu-sub ul {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-size: 14px;
}

.mega-menu-sub a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	transition: background-color 0.2s, color 0.2s;
	font-weight: 400;
	color: #4b5563;
}

.mega-menu-sub a:hover,
.mega-menu-sub a.active {
	background-color: #f9fafb;
	color: var(--x-dynamics-red);
}

.mega-menu-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	transition: background-color 0.2s, color 0.2s;
	font-weight: 600;
	position: relative;
}

.mega-menu-links ul ul a {
	font-weight: 400;
	padding-top: 0.3rem;
	padding-bottom: 0.3rem;
	padding-left: 0.5rem;
	font-size: 14px;
	color: #4b5563;
}

.mega-menu-links ul ul a::after {
	content: none;
}

.mega-menu-links ul ul {
	border-left: 1px solid #e5e7eb;
	margin-left: 0.75rem;
	padding-left: 0.25rem;
}

.mega-menu-links a::after {
	content: '';
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.5;
	transition: opacity 0.2s, transform 0.2s;
	flex-shrink: 0;
	margin-left: 0.5rem;
}

.mega-menu-links a:hover,
.mega-menu-links a.active {
	background-color: #f9fafb;
	color: var(--x-dynamics-red);
}

.mega-menu-links a:hover::after,
.mega-menu-links a.active::after {
	opacity: 1;
	transform: translateX(3px);
}

.mega-menu-image {
	grid-column: 2;
	padding: 1.5rem 1.75rem 1.75rem 1.25rem;
	border-left: 1px solid #e5e7eb;
	min-width: 0;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.mega-menu-grid.expanded .mega-menu-image {
	grid-column: 3;
}

.mega-menu-image-box {
	height: 10rem;
	width: 100%;
	border-radius: 0.375rem;
	background-color: #f3f4f6;
	overflow: hidden;
}

.mega-menu-image-box > div {
	height: 100%;
	width: 100%;
	background-size: cover;
	background-position: center;
}

.mega-menu-image-text {
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 0.75rem;
}

.mega-menu-card {
	background: #fff;
	border-radius: 0.875rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
	overflow: hidden;
	border: 1px solid #e8eaed;
	width: 100%;
	max-width: 17.5rem;
	display: flex;
	flex-direction: column;
}

.mega-menu-card-image-link {
	display: block;
	overflow: hidden;
}

.mega-menu-card-image {
	display: block;
	width: 100%;
	height: 9rem;
	object-fit: cover;
}

.mega-menu-card-body {
	padding: 0.875rem 1rem;
	min-width: 0;
	background: #fff;
}

.mega-menu-card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem;
	width: 100%;
	min-width: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mega-menu-card-title > span {
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.mega-menu-card-title:hover {
	color: var(--x-dynamics-red);
}

.mega-menu-card-title-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.mega-menu-card-footer {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 0.875rem 1rem 1rem;
	background: #f7f8fa;
	border-top: 1px solid #eef0f3;
	min-width: 0;
}

.mega-menu-card-footer.hidden,
.mega-menu-card-stat.hidden,
.mega-menu-card-desc.hidden,
.mega-menu-card-cta.hidden {
	display: none !important;
}

.mega-menu-card-stat {
	flex: 0 0 auto;
	min-width: 2.75rem;
}

.mega-menu-card-stat-value {
	display: block;
	font-size: 1.875rem;
	font-weight: 300;
	line-height: 1;
	color: #6b7280;
	letter-spacing: -0.02em;
}

.mega-menu-card-stat-unit,
.mega-menu-card-stat-label {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: #9ca3af;
	line-height: 1.2;
}

.mega-menu-card-footer-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.mega-menu-card-desc {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #6b7280;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.mega-menu-card-cta {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--x-dynamics-red);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.15s ease;
}

.mega-menu-card-cta:hover {
	opacity: 0.85;
}

/* CPT archive pagination (20 / page) */
.xd-archive-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}

.xd-archive-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.85rem;
	border-radius: 9999px;
	background: #fff;
	color: #1a1a1a;
	font-weight: 600;
	font-size: 0.9375rem;
	border: 1px solid #e5e7eb;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.xd-archive-pagination__btn:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.xd-archive-pagination__btn.is-current {
	background: var(--x-dynamics-red);
	border-color: var(--x-dynamics-red);
	color: #fff;
	cursor: default;
}

.xd-archive-pagination__btn--nav {
	min-width: auto;
}

/* WP admin bar açıkken sticky header admin bar’ın altına otursun (arkasına girmesin) */
body.admin-bar #sticky-mini {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #sticky-mini {
		top: 46px;
	}
}

/* Sticky: mega panel sticky barın alt kenarının DIŞINDA açılsın;
   menü↔panel boşluğu normal menü ile birebir aynı (0.75rem) */
#sticky-mini {
	overflow: visible;
}

#sticky-mini .sticky-desktop-section,
#sticky-mini .desktop-nav {
	overflow: visible;
}

#sticky-mini .desktop-nav {
	align-self: stretch;
	display: flex;
	align-items: stretch;
}

#sticky-mini .mega-menu-group {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: center;
	/* py-4 bottom’u group’a dahil et → top:100% barın alt kenarı olur */
	padding-bottom: 1rem;
	margin-bottom: -1rem;
	box-sizing: content-box;
}

/* Sticky header mega menus — normal ile aynı nefes */
#sticky-mini .mega-menu {
	top: 100%;
	margin-top: 0.75rem;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	max-width: calc(100vw - 2rem);
	z-index: 60;
}

/* Sticky: normal header’ın uzun nav padding’ini alma */
#sticky-mini .desktop-nav .mega-menu-group > button,
#sticky-mini .desktop-nav > a:not(.xd-bearing-league-button) {
	padding-top: 0;
	padding-bottom: 0;
	align-self: center;
}

/* Ensure mega menu doesn't overflow on the left */
#sticky-mini .mega-menu-group:first-child .mega-menu,
#sticky-mini .mega-menu-group:nth-child(2) .mega-menu {
	left: 0;
	transform: translateX(0);
}

/* Ensure mega menu doesn't overflow on the right */
#sticky-mini .mega-menu-group:last-child .mega-menu,
#sticky-mini .mega-menu-group:nth-last-child(2) .mega-menu {
	left: auto;
	right: 0;
	transform: translateX(0);
}

/* Slider Styles */
.slider-content-container {
	position: relative;
	min-height: 400px;
}

.slider-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	pointer-events: none;
	visibility: hidden;
}

.slider-slide.active {
	position: relative;
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
	visibility: visible;
}

.slider-bg {
	transition: opacity 0.5s ease;
}

.slider-pagination {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
}

/* Subtitle Style */
.subtitle {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #6b7280;
	letter-spacing: 0.05em;
	font-weight: 400;
}

/* Alpine.js x-cloak - Hide elements until Alpine.js is loaded */
[x-cloak] {
	display: none !important;
}

/* Tab Content Container - Responsive min-height */
.tab-content-container {
	min-height: auto;
}

@media (min-width: 768px) {
	.tab-content-container {
		min-height: 200px;
	}
}

@media (min-width: 1024px) {
	.tab-content-container {
		min-height: 250px;
	}
}

/* Hide scrollbar for tab navigation */
.scrollbar-hide {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
	display: none;
}

/* Key Benefits Section - Mobile Padding */
.key-benefits-section {
	padding-top: 500px;
	padding-bottom: 100px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
	display: none;
	position: relative;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	cursor: pointer;
	transition: all 0.3s ease;
	justify-content: center;
	align-items: center;
}

/* Normal header: Show hamburger menu only on mobile (below lg breakpoint) */
header .hamburger-menu {
	display: flex;
}

@media (min-width: 1024px) {
	/* Hide hamburger menu in normal header on desktop */
	header .hamburger-menu {
		display: none !important;
	}
}

.hamburger-menu:hover {
	border-color: #d1d5db;
	background-color: #f9fafb;
}

.hamburger-menu span {
	display: block;
	position: absolute;
	width: 20px;
	height: 2px;
	background-color: #374151;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.hamburger-menu span:nth-child(1) {
	top: 12px;
}

.hamburger-menu span:nth-child(2) {
	top: 19px;
}

.hamburger-menu span:nth-child(3) {
	top: 26px;
}

.hamburger-menu.active span:nth-child(1) {
	top: 19px;
	transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
	opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
	top: 19px;
	transform: rotate(-45deg);
}

/* Desktop nav: uzun TR etiketler satır kırmasın */
.desktop-nav {
	flex-wrap: nowrap;
	align-items: stretch;
}

.desktop-nav-links {
	align-items: stretch;
	min-height: 100%;
}

.desktop-nav .mega-menu-group,
.desktop-nav .mega-menu-group > button,
.desktop-nav > a,
.desktop-nav .flex > a,
.desktop-nav-links > a {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Mega panel: nav şeridinin alt kenarından açılsın */
.desktop-nav .mega-menu-group {
	position: relative;
	display: flex;
	align-items: center;
	align-self: stretch;
}

.desktop-nav .mega-menu-group > button,
.desktop-nav-links > a,
.desktop-nav > a:not(.xd-bearing-league-button) {
	display: inline-flex;
	align-items: center;
	align-self: stretch;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.desktop-nav > .xd-bearing-league-button {
	align-self: center;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	padding-top: 0;
	padding-bottom: 0;
}

/* Sticky header: Show hamburger when nav would overflow (~TR labels + CTA) */
@media (max-width: 1480px) {
	/* Show hamburger menu in sticky header */
	#sticky-mini .hamburger-menu {
		display: flex !important;
	}
	
	/* Hide desktop navigation in sticky header when hamburger menu is shown */
	#sticky-mini .desktop-nav {
		display: none !important;
	}
	
	/* Show sticky header mobile section up to breakpoint */
	#sticky-mini .sticky-mobile-section {
		display: flex !important;
	}
	
	/* Hide sticky header desktop section when hamburger menu is shown */
	#sticky-mini .sticky-desktop-section {
		display: none !important;
	}
	
}

/* Sticky header: full desktop row on wider screens */
@media (min-width: 1481px) {
	/* Hide hamburger menu in sticky header */
	#sticky-mini .hamburger-menu {
		display: none !important;
	}
	
	
	/* Show sticky header desktop section on larger screens */
	#sticky-mini .sticky-desktop-section {
		display: flex !important;
	}
	
	/* Hide sticky header mobile section on larger screens */
	#sticky-mini .sticky-mobile-section {
		display: none !important;
	}
}

/* Mobile Menu Styles */
.mobile-menu-main-item {
	display: block;
	width: 100%;
	border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-main-item:last-child {
	border-bottom: none;
}

.mobile-menu-sub-item {
	display: block;
	width: 100%;
}

/* Alt menüler için sol çizgiye yakın padding */
.mobile-menu-sub-item.border-l-2 {
	padding-left: 0.75rem !important;
}

.mobile-menu-sub-item.border-l {
	padding-left: 1rem !important;
}

/* Mobile Language Selector Styles */
.mobile-language-selector {
	margin-bottom: 1rem;
}

.mobile-language-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.75rem;
}

.mobile-language-buttons {
	display: flex;
	gap: 0.5rem;
}

.mobile-language-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border-radius: 0.5rem;
	border: 2px solid #e5e7eb;
	background-color: #ffffff;
	color: #374151;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	text-decoration: none;
}

.mobile-language-btn:hover {
	border-color: #d1d5db;
	background-color: #f9fafb;
	color: #111827;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-language-btn.active {
	border-color: var(--x-dynamics-red);
	background-color: rgba(255, 107, 53, 0.1);
	color: var(--x-dynamics-red);
	font-weight: 600;
}

.mobile-language-btn.active:hover {
	border-color: var(--x-dynamics-red);
	background-color: rgba(255, 107, 53, 0.15);
	color: var(--x-dynamics-red);
}

.mobile-language-flag {
	width: 20px;
	height: 15px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 2px;
}

.mobile-contact-btn {
	width: 100%;
	justify-content: center;
}

/* Social Icons */
.social-icon img {
	width: 1.25rem !important;
	height: 1.25rem !important;
	max-width: 1.25rem;
	object-fit: contain;
	display: block;
	filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
	transition: filter 0.3s ease;
}

.social-icon:hover img {
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Show mobile menu drawer and overlay on mobile and up to 1400px (for sticky header) */
@media (max-width: 1400px) {
	.mobile-menu-overlay,
	.mobile-menu-drawer {
		display: block;
	}
}

/* Hide mobile menu drawer and overlay above 1400px */
@media (min-width: 1401px) {
	.mobile-menu-overlay,
	.mobile-menu-drawer {
		display: none !important;
	}
}

/* File Input Custom Styling - Choose File Button */
input[type="file"]::file-selector-button {
	background-color: var(--x-dynamics-red) !important;
	color: white !important;
	border: none !important;
	padding: 0.625rem 1.5rem !important;
	border-radius: 0.5rem !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	margin-right: 1rem !important;
	cursor: pointer !important;
	transition: background-color 0.3s ease !important;
}

input[type="file"]::file-selector-button:hover {
	background-color: var(--x-dynamics-red-hover) !important;
}

/* Footer layout — brand + auto-wrapping link columns (no horizontal overflow) */
.footer-brand {
	align-items: center;
	text-align: center;
}

.footer-brand-logo,
.footer-brand > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-inline: auto;
}

.footer-brand > a > img,
.footer-brand-logo > img {
	height: 4rem !important;
	width: auto !important;
	max-width: 160px;
	object-fit: contain;
	display: block;
	margin-inline: auto;
}

.footer-brand .mt-5 {
	justify-content: center;
}

.footer-layout {
	display: grid;
	gap: 2.5rem;
}

.footer-legal {
	margin-top: 3.75rem;
	padding-top: 1rem;
	padding-bottom: 1.5rem;
}

footer .xd-footer-inner {
	padding-bottom: 0;
}

.footer-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem 1.25rem;
	min-width: 0;
}

.footer-nav .footer-col h3 {
	word-break: break-word;
}

@media (min-width: 640px) {
	.footer-nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem 1.5rem;
	}
}

@media (min-width: 1024px) {
	.footer-layout {
		grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
		gap: 3rem 3.5rem;
		align-items: start;
	}

	.footer-nav {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 2rem 1.75rem;
	}
}

@media (min-width: 1280px) {
	.footer-nav {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		column-gap: 2rem;
	}
}

/* Legacy class kept for safety if cached markup references it */
.footer-columns-equal {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

/* References / logo infinite marquee */
.xd-references-intro {
	padding-top: 5rem;
	padding-bottom: 2rem;
}

@media (min-width: 768px) {
	.xd-references-intro {
		padding-top: 8rem;
		padding-bottom: 2.5rem;
	}
}

.xd-references-marquee {
	padding-top: 0;
	padding-bottom: 4rem;
}

@media (min-width: 768px) {
	.xd-references-marquee {
		padding-bottom: 6rem;
	}
}

.xd-logo-marquee {
	position: relative;
	overflow: hidden;
	width: 100%;
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.xd-logo-marquee__track {
	display: flex;
	width: max-content;
	align-items: stretch;
	animation: xd-logo-marquee var(--xd-logo-marquee-duration, 40s) linear infinite;
	will-change: transform;
}

/* İki eşit set: gap track’te değil set içinde → -50% tam set genişliği */
.xd-logo-marquee__set {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 3rem;
	padding-inline-end: 3rem;
	box-sizing: content-box;
}

.xd-logo-marquee:hover .xd-logo-marquee__track,
.xd-logo-marquee.is-paused .xd-logo-marquee__track {
	animation-play-state: paused;
}

.xd-logo-marquee__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 88px;
	padding: 1rem 1.25rem;
	background: #fff;
	border-radius: 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	text-decoration: none;
}

.xd-logo-marquee__img {
	max-width: 100%;
	max-height: 56px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.xd-logo-marquee__item:hover .xd-logo-marquee__img {
	filter: grayscale(0);
	opacity: 1;
}

@keyframes xd-logo-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.xd-logo-marquee__track {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
		max-width: 80rem;
		margin: 0 auto;
		justify-content: center;
	}

	.xd-logo-marquee__set {
		flex-wrap: wrap;
		justify-content: center;
		padding-inline-end: 0;
		gap: 1.5rem;
		width: 100%;
	}

	.xd-logo-marquee__set[aria-hidden="true"] {
		display: none;
	}

	.xd-logo-marquee {
		mask-image: none;
		-webkit-mask-image: none;
	}
}

/* Industry product detail — e2t / Industries 2 layout */
.xd-product-hero {
	position: relative;
	overflow: hidden;
	background: #0b1220;
	min-height: 280px;
	color: #fff;
}

.xd-product-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.xd-product-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 18, 32, 0.72) 0%, rgba(11, 18, 32, 0.45) 45%, rgba(11, 18, 32, 0.25) 100%);
	pointer-events: none;
}

.xd-product-hero-inner {
	position: relative;
	z-index: 1;
	/* width/pad from .xd-container */
	padding-top: 3.5rem;
	padding-bottom: 2.75rem;
}

@media (min-width: 768px) {
	.xd-product-hero-inner {
		padding-top: 4.5rem;
		padding-bottom: 3.25rem;
	}
}

.xd-product-hero-title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.85rem, 3.5vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	max-width: 40rem;
}

.xd-product-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.72);
}

.xd-product-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.xd-product-breadcrumb a:hover {
	color: #fff;
	text-decoration: underline;
}

.xd-product-breadcrumb-sep {
	opacity: 0.55;
}

.xd-product-breadcrumb-current {
	color: #fff;
}

.xd-product-body {
	/* width/pad from .xd-container */
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}

@media (min-width: 768px) {
	.xd-product-body {
		padding-top: 3rem;
		padding-bottom: 5rem;
	}
}

.xd-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.xd-product-layout {
		grid-template-columns: 20rem minmax(0, 1fr);
		gap: 2.75rem;
		align-items: start;
	}
}

.xd-product-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	padding: 1.5rem 1.25rem 1.6rem;
	background: #eceff3;
	border-radius: 2px;
}

.xd-product-side-block {
	margin: 0;
	padding: 0;
	background: transparent;
}

.xd-product-side-heading {
	margin: 0 0 0.85rem;
	padding: 0 0 0.55rem;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111;
	border-bottom: 1px solid #d0d5dc;
	line-height: 1.25;
}

.xd-product-side-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.xd-product-side-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.95rem 1rem;
	background: #fff;
	border: 0;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	color: #222;
	text-decoration: none;
	transition: color 0.15s ease, box-shadow 0.15s ease;
}

.xd-product-side-list-label {
	flex: 1;
	min-width: 0;
}

.xd-product-side-list-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: var(--color-x-red, #e31e24);
	opacity: 0.9;
}

.xd-product-side-list a:hover {
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
	color: #111;
}

.xd-product-side-list a.is-active {
	color: var(--color-x-red, #e31e24);
	font-weight: 700;
}

.xd-product-side-list a.is-active .xd-product-side-list-icon {
	color: var(--color-x-red, #e31e24);
}

.xd-product-contact-card {
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	padding: 1.1rem 1.05rem 1.15rem;
}

.xd-product-side-block--contact .xd-product-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--color-x-red, #e31e24);
	text-decoration: none;
}

.xd-product-contact-link:hover {
	text-decoration: underline;
}

.xd-product-contact-note {
	margin: 0.55rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #6b7280;
}

.xd-product-downloads {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.xd-product-brochure-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	justify-content: flex-start;
	padding: 0.95rem 1rem;
	border-radius: 2px;
	background: var(--color-x-red, #e31e24);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	transition: background 0.15s ease;
}

.xd-product-brochure-btn span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xd-product-brochure-btn svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.xd-product-brochure-btn:hover {
	background: #111;
	color: #fff;
}

.xd-product-main-title {
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	color: #111;
	border-bottom: 3px solid var(--color-x-red, #e31e24);
}

.xd-product-copy {
	overflow: auto;
}

.xd-product-featured {
	float: left;
	width: min(42%, 280px);
	margin: 0 1.5rem 1rem 0;
	background: #f3f4f6;
}

.xd-product-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.xd-product-lead {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #374151;
}

.xd-product-content {
	color: #374151;
	line-height: 1.75;
}

.xd-product-content .ql-editor {
	padding: 0;
}

.xd-product-datasheet {
	clear: both;
	display: flex;
	justify-content: center;
	margin: 2rem 0 1.75rem;
}

.xd-product-datasheet-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	max-width: 100%;
	padding: 0.85rem 1.35rem;
	border-radius: 4px;
	background: var(--color-x-red, #e31e24);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	text-align: left;
	transition: background .15s ease, transform .15s ease;
}

.xd-product-datasheet-btn svg {
	flex-shrink: 0;
}

.xd-product-datasheet-btn span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(420px, 70vw);
}

.xd-product-datasheet-btn:hover {
	background: #111;
	color: #fff;
	text-decoration: none;
}

.xd-product-datasheet a:not(.xd-product-datasheet-btn) {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
	color: var(--color-x-red, #e31e24);
	text-decoration: none;
}

.xd-product-datasheet a:not(.xd-product-datasheet-btn):hover {
	text-decoration: underline;
}

.xd-product-gallery {
	clear: both;
	margin-top: 0.5rem;
}

.xd-product-gallery-stage {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	overflow: hidden;
}

.xd-product-gallery-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #fff;
}

.xd-product-gallery-slide[hidden] {
	display: none !important;
}

.xd-product-gallery-slide.is-active {
	display: block;
}

.xd-product-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.xd-product-gallery-nav:hover {
	background: rgba(0, 0, 0, 0.75);
}

.xd-product-gallery-nav--prev { left: 0.75rem; }
.xd-product-gallery-nav--next { right: 0.75rem; }

.xd-product-gallery-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	overflow-x: auto;
}

.xd-product-gallery-thumb {
	flex: 0 0 auto;
	width: 4.25rem;
	height: 3rem;
	padding: 0;
	border: 2px solid #e5e7eb;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
}

.xd-product-gallery-thumb.is-active {
	border-color: var(--color-x-red, #e31e24);
}

.xd-product-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Media split layout (görsel konumlandırma) ── */
.xd-media-split {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}
.xd-media-split__content,
.xd-media-split__media {
	min-width: 0;
}

/* İçerik görselleri: sabit 4:3 */
.xd-media-split__media > img,
.xd-media-split__media .xd-content-img,
img.xd-content-img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	height: auto;
}

.xd-media-split--h-center {
	align-items: center;
	text-align: center;
}
.xd-media-split--h-center .xd-media-split__content,
.xd-media-split--h-center .xd-media-split__media {
	width: 100%;
	max-width: 48rem;
}
.xd-media-split--h-center .xd-media-split__content .w-24 {
	margin-left: auto;
	margin-right: auto;
}
.xd-media-split--h-top .xd-media-split__media {
	order: -1;
}
@media (min-width: 1024px) {
	.xd-media-split--h-left,
	.xd-media-split--h-right {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: start; /* içerik üstte kalsın */
	}
	.xd-media-split--h-left .xd-media-split__media {
		order: -1;
	}
	/* Dikey hizalama yalnızca görseli kaydırır */
	.xd-media-split--v-top .xd-media-split__media {
		align-self: start;
	}
	.xd-media-split--v-middle .xd-media-split__media {
		align-self: center;
	}
	.xd-media-split--v-bottom .xd-media-split__media {
		align-self: end;
	}
	.xd-media-split--h-center {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.xd-media-split--h-top,
	.xd-media-split--h-bottom {
		display: flex;
		flex-direction: column;
	}
	.xd-media-split--h-top .xd-media-split__media {
		order: -1;
	}
}

@media (max-width: 767px) {
	.xd-product-featured {
		float: none;
		width: 100%;
		margin: 0 0 1.25rem;
	}
}
