/* ==========================================================================
   Shared Tab Component — vs-tabs
   Used on: Capabilities, Graphic Design, Equipment, Become a Vendor
   ========================================================================== */

.vs-tabs {
	max-width: 1200px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Tab Buttons Grid
   -------------------------------------------------------------------------- */

.vs-tabs__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.vs-tabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #162049;
	background-color: #f4f4f8;
	border: 1px solid #e0e0e8;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
	text-align: center;
	line-height: 1.3;
	flex: 1 1 auto;
	min-width: 140px;
}

.vs-tabs__btn:hover {
	background-color: #e8e8f0;
	border-color: #ccc;
}

.vs-tabs__btn.active {
	background-color: #162049;
	color: #fff;
	border-color: #162049;
}

/* 4-column grid on desktop */
@media (min-width: 768px) {
	.vs-tabs__buttons--grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
	}
}

/* 2-column on tablet */
@media (min-width: 480px) and (max-width: 767px) {
	.vs-tabs__buttons--grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

/* --------------------------------------------------------------------------
   Tab Panels
   -------------------------------------------------------------------------- */

.vs-tabs__panels {
	position: relative;
}

.vs-tabs__panel {
	display: none;
}

.vs-tabs__panel.active {
	display: block;
	animation: vsTabs-fadeIn 0.3s ease;
}

@keyframes vsTabs-fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Panel content layout: text left, image right */
.vs-tabs__content-row {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (min-width: 768px) {
	.vs-tabs__content-row {
		flex-direction: row;
		align-items: flex-start;
	}
}

.vs-tabs__text {
	flex: 1;
}

.vs-tabs__text h3 {
	margin-bottom: 12px;
	color: #162049;
}

.vs-tabs__text p {
	margin-bottom: 12px;
	line-height: 1.7;
}

.vs-tabs__text ul {
	padding-left: 20px;
	margin-bottom: 12px;
}

.vs-tabs__text li {
	margin-bottom: 6px;
	line-height: 1.6;
}

.vs-tabs__image {
	flex: 0 0 360px;
	max-width: 100%;
}

@media (max-width: 767px) {
	.vs-tabs__image {
		flex: none;
		max-width: 100%;
	}
}

.vs-tabs__image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

/* Image placeholder when no image is available */
.vs-tabs__image-placeholder {
	width: 100%;
	aspect-ratio: 4/3;
	background-color: #f0f0f5;
	border: 2px dashed #ddd;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Notice banner (e.g. "No equipment available")
   -------------------------------------------------------------------------- */

.vs-tabs__notice {
	padding: 16px 20px;
	background-color: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 4px;
	color: #795548;
	font-size: 14px;
	margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Two-button tab variant (e.g. Become a Vendor)
   -------------------------------------------------------------------------- */

.vs-tabs__buttons--two {
	display: flex;
	gap: 0;
	margin-bottom: 30px;
}

.vs-tabs__buttons--two .vs-tabs__btn {
	flex: 1;
	border-radius: 0;
	border: 1px solid #e0e0e8;
	padding: 16px 24px;
	font-size: 15px;
	font-weight: 600;
}

.vs-tabs__buttons--two .vs-tabs__btn:first-child {
	border-radius: 4px 0 0 4px;
}

.vs-tabs__buttons--two .vs-tabs__btn:last-child {
	border-radius: 0 4px 4px 0;
	border-left: none;
}

.vs-tabs__buttons--two .vs-tabs__btn.active {
	border-color: #162049;
}
