/* ==========================================================================
   Sikulo Tabbed Sections — frontend styles
   ========================================================================== */

.sts-widget {
	--sts-accent: #2CA6A4;
	--sts-panel-bg: #FBF9F2;
	--sts-gallery-fill: #3E9C99;
	--sts-text: #2E3A3A;
	--sts-radius: 16px;
	--sts-thumb-size: 100px;

	position: relative;
	font-family: inherit;
	color: var(--sts-text);
}

/* ---------- Tab navigation ---------- */

.sts-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.sts-tab-nav__item {
	--sts-tab-color: #2CA6A4;
	appearance: none;
	cursor: pointer;
	background: transparent;
	border: 1px solid var(--sts-tab-color);
	color: var(--sts-tab-color);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
	white-space: nowrap;
    font-family: 'Amatic SC', cursive;
}

.sts-tab-nav__item:hover {
	transform: translateY(-1px);
}

.sts-tab-nav__item.is-active {
	background-color: rgba(44, 166, 164, 0.08);
	font-weight: 700;
}

.sts-tab-nav__item:focus-visible {
	outline: 2px solid var(--sts-tab-color);
	outline-offset: 2px;
}

/* ---------- Panel (double-border card) ---------- */

.sts-panels {
	position: relative;
    width: 80%;
    margin: 0 auto;
}

.sts-tab-nav__item {
    background: transparent !important;
}

.sts-panel {
	position: relative;
	animation: sts-fade-in 0.35s ease;
}

.sts-panel[hidden] {
	display: none;
}

@keyframes sts-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.sts-panel__inner {
	position: relative;
    background-color: transparent;
    border: 2px solid #2ca6a4;
    border-radius: 20px;
	padding: 28px;
	display: grid;
	grid-template-columns: 340px 1fr;
	grid-template-areas:
		"media content"
		"gallery gallery";
	gap: 28px 40px;
}

.at-item.min-h-450.border-radius-30.tabi {
    min-height: 100%;
    position: absolute;
    min-width: 300px;
    width: 100%;
    /* min-height: 360px; */
    border: 2px solid #2ca6a4;
    transform: rotate(-1deg);
    transition: transform 0.5s ease-in-out;
    border-radius: 20px;
    background-color: transparent;
    z-index: 0;
}

h3.sts-panel__heading {
    font-size: 40px;
}

.border-30 .elementor-widget-wrap.elementor-element-populated {
    border-radius: 30px;
}


/* the offset duplicate border, echoing the reference screenshot */
.sts-panel__inner::after {
	content: "";
	position: absolute;
	inset: 8px -8px -8px 8px; 
	border: 1px solid var(--sts-accent);
	border-radius: var(--sts-radius);
	pointer-events: none;
	z-index: -1;
}

.sts-panel__media {
	grid-area: media;
}

.sts-panel__main-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	object-fit: cover;
	aspect-ratio: 4 / 5;
    border-radius: 30px !important;
    border: 2px solid #46b4ae !important;
    padding: 5px;
}

.sts-panel__content {
	grid-area: content;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sts-panel__heading {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--sts-accent);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sts-panel__subheading {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--sts-text);
}

.sts-panel__description {
	font-size: 14px;
	line-height: 1.7;
	color: #4a5555;
    font-family: Poppins;
}

.sts-panel__description p {
	margin: 0 0 14px;
}

.sts-panel__description p:last-child {
	margin-bottom: 0;
}

.sts-panel__button {
	display: inline-block;
	align-self: flex-start;
	margin-top: 22px;
	padding: 10px 26px;
	border: 1px solid var(--sts-accent);
	border-radius: 999px;
	color: var(--sts-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	background: transparent;
	transition: background-color 0.25s ease, color 0.25s ease;
	cursor: pointer;
}

.sts-panel__button:hover {
	background-color: var(--sts-accent);
	color: #fff;
}

/* ---------- Gallery row ---------- */

.sts-panel__gallery-row {
	grid-area: gallery;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
}

/* Fixed, uniform thumbnail size for every tile (secondary image, gallery
   images, video covers) — regardless of the source image's own ratio.
   The full-size original is only shown once opened in the lightbox/modal. */
.sts-gallery-item {
	position: relative;
	display: block;
	flex: 0 0 var(--sts-thumb-size);
	width: var(--sts-thumb-size);
	height: var(--sts-thumb-size);
	border: 0;
	padding: 0;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background-color: var(--sts-gallery-fill);
	cursor: pointer;
}

.sts-gallery-item--secondary {
	cursor: default;
}

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

.sts-gallery-item--thumb:hover img,
.sts-gallery-item--video:hover img {
	transform: scale(1.06);
}

.sts-gallery-item--thumb:focus-visible,
.sts-gallery-item--video:focus-visible {
	outline: 2px solid var(--sts-accent);
	outline-offset: 2px;
}

.sts-gallery-item__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0, 0, 0, 0.25);
}

/* Small always-visible "this is a video" badge, so video covers are
   distinguishable from plain gallery photos at a glance. */
.sts-gallery-item__badge {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

/* ---------- Lightbox (images) ---------- */

.sts-lightbox,
.sts-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 20, 20, 0.92);
	padding: 40px;
}

.sts-lightbox[hidden],
.sts-video-modal[hidden] {
	display: none;
}

.sts-lightbox__stage {
	max-width: 90vw;
	max-height: 85vh;
}

.sts-lightbox__stage img {
	max-width: 90vw;
	max-height: 85vh;
	display: block;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sts-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.sts-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.sts-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.sts-lightbox__nav--prev {
	left: 24px;
}

.sts-lightbox__nav--next {
	right: 24px;
}

/* ---------- Video modal ---------- */

.sts-video-modal__stage {
	width: min(900px, 90vw);
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sts-video-modal__stage iframe,
.sts-video-modal__stage video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.sts-panel__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"content"
			"gallery";
		padding: 20px;
	}

	.sts-panel__inner::after {
		inset: 6px -6px -6px 6px;
	}

	.sts-panel__main-image {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 480px) {
	.sts-tab-nav {
		gap: 8px;
	}

	.sts-tab-nav__item {
		padding: 7px 14px;
		font-size: 12px;
	}

	.sts-lightbox,
	.sts-video-modal {
		padding: 16px;
	}

	.sts-lightbox__nav {
		width: 38px;
		height: 38px;
	}
}
