/* New Tabs – Elementor widget */

.nt-tabs {
	--nt-dur: 600ms;
	--nt-stagger: 100ms;
	--nt-ease: cubic-bezier(.22, .61, .36, 1);

	display: flex;
	align-items: flex-start;
	gap: 35px;
	padding: 28px;
	box-sizing: border-box;
	background-color: #eef1e6;
	width: 100%;
}

.nt-tabs *,
.nt-tabs *::before,
.nt-tabs *::after {
	box-sizing: border-box;
}

/* ---------- Tab list ---------- */
.nt-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 29%;
	min-width: 0;
	flex-shrink: 0;
}

.nt-tab {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 16px 18px;
	white-space: normal !important;
	overflow: hidden;
	text-transform: none;
	letter-spacing: normal;
	border: 0;
	border-radius: 12px;
	background-color: transparent;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.nt-tab:focus-visible {
	outline: 2px solid #4f7f2f;
	outline-offset: 2px;
}

.nt-num {
	flex-shrink: 0;
	min-width: 18px;
	padding-top: 3px;
	font-family: "DM Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: #4f7f2f;
	line-height: 1;
}

.nt-title {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	white-space: normal !important;
	word-break: normal;
	overflow-wrap: break-word;
	text-align: left;
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 26px;
	color: #4d5d5a;
	transition: color .3s ease;
}

.nt-tab:hover {
	background-color: rgba(255, 255, 255, .55);
}

.nt-tab:hover .nt-title {
	color: #0b2a55;
}

.nt-tab.is-active {
	background-color: #fff;
}

.nt-tab.is-active .nt-title {
	color: #0b2a55;
	font-weight: 700;
}

/* ---------- Panels ---------- */
.nt-panels {
	flex: 1 1 0;
	min-width: 0;
}

.nt-panel {
	display: none;
}

.nt-panel.is-active {
	display: block;
}

.nt-eyebrow {
	margin: 0 0 10px;
	font-family: "DM Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #4f7f2f;
}

.nt-heading {
	margin: 0 0 18px;
	font-family: "Lora", serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.25;
	color: #0b2a55;
}

.nt-desc {
	margin: 0 0 50px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #5f6d6a;
}

.nt-images {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.nt-images img {
	display: block;
	width: 100%;
	height: 188px;
	object-fit: cover;
	border-radius: 12px;
	transition: transform .4s ease;
}

/* ---------- Animations (play each time a panel becomes active) ---------- */
.nt-panel.is-active .nt-a {
	animation-duration: var(--nt-dur);
	animation-timing-function: var(--nt-ease);
	animation-fill-mode: backwards; /* content stays visible even if the animation never runs */
	animation-delay: calc(var(--i, 0) * var(--nt-stagger));
}

.nt-anim-fade        .nt-panel.is-active .nt-a { animation-name: nt-fade; }
.nt-anim-slide-up    .nt-panel.is-active .nt-a { animation-name: nt-slide-up; }
.nt-anim-slide-left  .nt-panel.is-active .nt-a { animation-name: nt-slide-left; }
.nt-anim-slide-right .nt-panel.is-active .nt-a { animation-name: nt-slide-right; }
.nt-anim-zoom        .nt-panel.is-active .nt-a { animation-name: nt-zoom; }
.nt-anim-blur        .nt-panel.is-active .nt-a { animation-name: nt-blur; }
.nt-anim-none        .nt-panel.is-active .nt-a { animation: none; }

@keyframes nt-fade        { from { opacity: 0; } to { opacity: 1; } }
@keyframes nt-slide-up    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes nt-slide-left  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes nt-slide-right { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes nt-zoom        { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes nt-blur        { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
	.nt-panel.is-active .nt-a { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.nt-heading { font-size: 28px; }
}

@media (max-width: 767px) {
	.nt-tabs {
		flex-direction: column;
		padding: 18px;
	}
	/* Mobile: no horizontal tab strip – every tab becomes its own + / - accordion item */
	.nt-list { display: none !important; }
	.nt-panels {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.nt-item {
		display: block;
		background-color: rgba(255, 255, 255, .55);
		border-radius: 12px;
		overflow: hidden;
		transition: background-color .3s ease;
	}
	.nt-item.is-open { background-color: #fff; }

	.nt-acc {
		display: flex;
		align-items: center;
		gap: 14px;
		width: 100%;
		margin: 0;
		padding: 16px 18px;
		border: 0;
		border-radius: 0;
		background: transparent;
		text-align: left;
		text-transform: none;
		letter-spacing: normal;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
		box-shadow: none;
		-webkit-tap-highlight-color: transparent;
	}
	.nt-acc:focus-visible {
		outline: 2px solid #4f7f2f;
		outline-offset: -2px;
	}
	.nt-acc-num {
		flex-shrink: 0;
		min-width: 18px;
		font-family: "DM Sans", sans-serif;
		font-size: 11px;
		font-weight: 600;
		line-height: 1;
		color: #4f7f2f;
	}
	.nt-acc-title {
		flex: 1 1 0;
		min-width: 0;
		white-space: normal;
		overflow-wrap: break-word;
		font-family: "DM Sans", sans-serif;
		font-size: 16px;
		font-weight: 600;
		line-height: 24px;
		color: #0b2a55;
	}
	/* + / - icon */
	.nt-acc-icon {
		position: relative;
		flex-shrink: 0;
		width: 16px;
		height: 16px;
	}
	.nt-acc-icon::before,
	.nt-acc-icon::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 14px;
		height: 2px;
		margin: -1px 0 0 -7px;
		border-radius: 2px;
		background-color: #0b2a55;
		transition: transform .3s ease, opacity .3s ease;
	}
	.nt-acc-icon::after { transform: rotate(90deg); }
	.nt-acc[aria-expanded="true"] .nt-acc-icon::after { transform: rotate(0deg); opacity: 0; }

	.nt-panel { padding: 4px 18px 22px; }
	.nt-heading { font-size: 24px; }
	.nt-desc { margin-bottom: 28px; }
}

/* Accordion header only exists on mobile */
@media (min-width: 768px) {
	.nt-acc { display: none !important; }
	.nt-item { display: contents; }
}

/* Never let Elementor's entrance-animation placeholder keep the widget invisible */
.elementor-widget-new_tabs.elementor-invisible {
	visibility: visible !important;
}

/* Always show the active panel and the tab list */
.nt-tabs .nt-panel.is-active { display: block !important; }
.nt-tabs .nt-list { visibility: visible; opacity: 1; }
