/* =============================================================
   JetTabs Special - Frontend Styles
   ============================================================= */

/* ── Container ────────────────────────────────────────────── */
.jet-tabs-special {
	display: flex;
}

.jet-tabs-special-position-left  { flex-direction: row; }
.jet-tabs-special-position-right { flex-direction: row-reverse; }
.jet-tabs-special-position-top   { flex-direction: column; }
.jet-tabs-special-position-bottom{ flex-direction: column-reverse; }

/* ── Control Wrapper ──────────────────────────────────────── */
.jet-tabs-special__control-wrapper {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.jet-tabs-special-position-top    .jet-tabs-special__control-wrapper,
.jet-tabs-special-position-bottom .jet-tabs-special__control-wrapper {
	flex-direction: row;
}

/* ── Control Item ─────────────────────────────────────────── */
.jet-tabs-special__control {
	cursor: pointer;
	padding: 14px 20px;
	transition: background-color 0.25s ease;
}

.jet-tabs-special__control:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* Header row: number + label side by side */
.jet-tabs-special__ctrl-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.jet-tabs-special__ctrl-num {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	opacity: 0.45;
	flex-shrink: 0;
	transition: opacity 0.25s ease;
}

.jet-tabs-special__ctrl-label {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.jet-tabs-special__control.active-tab .jet-tabs-special__ctrl-num {
	opacity: 1;
}

/* ── Description — accordion ──────────────────────────────── */
/* outer: a grid whose single row animates from 0fr to 1fr.
   Because 1fr resolves to the inner content's real height, the
   transition is smooth both ways regardless of text length. */
.jet-tabs-special__ctrl-desc {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

/* inner: MUST have min-height:0 + overflow:hidden so the grid
   item can actually collapse to zero. */
.jet-tabs-special__ctrl-desc-inner {
	min-height: 0;
	overflow: hidden;
	padding-top: 8px;
}

.jet-tabs-special__ctrl-desc-inner p:first-child { margin-top: 0; }
.jet-tabs-special__ctrl-desc-inner p:last-child  { margin-bottom: 0; }

/* when the parent control is active → expand to real height */
.jet-tabs-special__control.active-tab .jet-tabs-special__ctrl-desc {
	grid-template-rows: 1fr;
}

/* ── Content Wrapper ──────────────────────────────────────── */
.jet-tabs-special__content-wrapper {
	flex: 1;
	min-width: 0;
}

/* ── Content Panel — hidden by default ───────────────────── */
.jet-tabs-special__content {
	display: none;
}

.jet-tabs-special__content.active-content {
	display: block;
}

/* ── Show effects (applied to active-content) ────────────── */
.jet-tabs-special-fade-effect .jet-tabs-special__content.active-content {
	animation: jts-fade 0.35s ease forwards;
}

.jet-tabs-special-move-up-effect .jet-tabs-special__content.active-content {
	animation: jts-move-up 0.35s ease forwards;
}

@keyframes jts-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes jts-move-up {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Content Inner ────────────────────────────────────────── */
.jet-tabs-special__content-inner {
	position: relative;
	padding: 24px;
	overflow: hidden;
}

/* ── Image ────────────────────────────────────────────────── */
.jet-tabs-special__image-wrap {
	position: relative;
	z-index: 1;
}

.jet-tabs-special__image-wrap img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Big Number (decorative, top-right corner) ────────────── */
/* z-index:2 keeps it above the image; without it the number can
   end up painted under the photo. */
.jet-tabs-special__big-num {
	position: absolute;
	top: 10px;
	left: 20px;
	right: 20px;
	z-index: 2;
	font-size: 100px;
	font-weight: 800;
	line-height: 1;
	color: currentColor;
	opacity: 0.2;
	text-align: right;
	pointer-events: none;
	user-select: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
	.jet-tabs-special {
		flex-direction: column;
	}

	.jet-tabs-special__control-wrapper {
		display: flex;
		flex-direction: column;
	}

	.jet-tabs-special__big-num {
		font-size: 60px;
	}
}
