/* Technology & Equipment Showcase - Frontend Styles */

.tech-equipment-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.tech-equipment-heading {
	text-align: center;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 30px;
	color: #1a1a1a;
}

/* Scroll wrapper holds the track + arrows */
.tech-equipment-scroll-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.tech-equipment-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 10px 5px 20px;
	scrollbar-width: thin;
}

.tech-equipment-track::-webkit-scrollbar {
	height: 6px;
}
.tech-equipment-track::-webkit-scrollbar-thumb {
	background: #c9c9c9;
	border-radius: 10px;
}

.tech-card {
	flex: 0 0 auto;
	width: 240px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover,
.tech-card:focus {
	transform: translateY(-6px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.15);
	outline: none;
}

.tech-card-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f2f2;
}

.tech-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tech-card-body {
	padding: 14px 16px 18px;
}

.tech-card-name {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a1a1a;
}

.tech-card-tagline {
	margin: 0;
	font-size: 0.85rem;
	color: #666;
}

/* Arrows */
.tech-scroll-arrow {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	font-size: 1rem;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tech-scroll-arrow--left {
	margin-right: 10px;
}
.tech-scroll-arrow--right {
	margin-left: 10px;
}

.tech-scroll-arrow:hover {
	background: #f0f0f0;
}

/* Modal / popup */
.tech-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0,0,0,0.6) !important;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999 !important;
	padding: 20px;
	box-sizing: border-box;
	margin: 0 !important;
	transform: none !important;
}

.tech-modal-overlay.is-open {
	display: flex !important;
}

.tech-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 700px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	animation: tech-modal-in 0.2s ease-out;
}

@keyframes tech-modal-in {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

.tech-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.tech-modal-close:hover {
	background: rgba(0,0,0,0.8);
}

.tech-modal-image img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	display: block;
	border-radius: 12px 12px 0 0;
}

.tech-modal-body {
	padding: 24px 28px 30px;
}

.tech-modal-name {
	margin: 0 0 6px;
	font-size: 1.5rem;
}

.tech-modal-model {
	margin: 0 0 14px;
	color: #555;
}

.tech-modal-excerpt {
	font-style: italic;
	color: #444;
	margin-bottom: 16px;
}

.tech-modal-specs {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 20px;
}

.tech-modal-specs li {
	font-size: 0.92rem;
	border-bottom: 1px dashed #e2e2e2;
	padding-bottom: 6px;
}

.tech-spec-label {
	color: #777;
}

.tech-modal-description {
	line-height: 1.6;
	color: #333;
}

/* Responsive breakpoints */
@media (max-width: 782px) {
	.tech-equipment-heading {
		font-size: 1.5rem;
	}

	.tech-card {
		width: 62vw;
	}

	.tech-scroll-arrow {
		display: none; /* touch swipe/scroll is primary interaction on mobile */
	}

	.tech-modal-body {
		padding: 18px 18px 24px;
	}

	.tech-modal-specs {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.tech-card {
		width: 78vw;
	}

	.tech-modal-name {
		font-size: 1.25rem;
	}
}
