/* ================================================
   Service Accordion Widget — frontend.css
   ================================================ */

.saw-wrapper {
	position: relative;
	box-sizing: border-box;
}

.saw-inner {
	margin: 0 auto;
}

/* ---- Two-column layout ---- */
.saw-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--saw-column-gap, 48px);
	align-items: start;
	min-width: 0;
}

/* ---- Left column ---- */
.saw-content-left {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.saw-content-left.saw-sticky {
	position: sticky;
	top: var(--saw-sticky-offset, 180px);
	align-self: start;
}

.saw-heading {
	margin: 0 0 16px;
	color: var(--saw-heading-color, #003B46);
}

.saw-body {
	margin: 0 0 28px;
	color: var(--saw-body-color, #4a5568);
	line-height: 1.7;
}

.saw-body p:last-child {
	margin-bottom: 0;
}

.saw-image-wrap {
	margin-top: 8px;
	border-radius: var(--saw-image-radius, 12px);
	overflow: hidden;
}

.saw-image-wrap img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---- Right column / Accordion ---- */
.saw-content-right {
	display: flex;
	flex-direction: column;
	gap: var(--saw-item-gap, 12px);
	min-width: 0;
}

/* ---- Accordion item ---- */
.saw-item {
	background: var(--saw-item-bg, #B7FF6B);
	border-radius: var(--saw-item-radius, 24px);
	border: none;
	overflow: hidden;
}

.saw-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: var(--saw-item-padding, 20px 24px);
	cursor: pointer;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	font-family: inherit;
	font-size: inherit;
	min-width: 0;
}

/* Non-expandable items — no pointer */
.saw-item.saw-no-content .saw-item-header {
	cursor: default;
}

.saw-item-title {
	margin: 0;
	font-weight: 700;
	color: var(--saw-item-title-color, #003B46);
	text-transform: none;
	word-wrap: break-word;
	overflow-wrap: break-word;
	min-width: 0;
}

.saw-item-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--saw-toggle-size, 36px);
	height: var(--saw-toggle-size, 36px);
	border-radius: 50%;
	background: var(--saw-toggle-bg, #003B46);
	color: var(--saw-toggle-color, #B1FF6A);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.saw-item.saw-open .saw-item-toggle {
	transform: rotate(180deg);
}

.saw-item-toggle svg {
	width: 55%;
	height: 55%;
	stroke: currentColor;
	fill: none;
}

/* ---- Accordion body ---- */
.saw-item-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.saw-item-body-inner {
	padding: 0 24px 20px;
	padding-left: var(--saw-item-padding-h, 24px);
	padding-right: var(--saw-item-padding-h, 24px);
	padding-bottom: var(--saw-item-padding-v, 20px);
	color: var(--saw-item-content-color, #003B46);
	line-height: 1.7;
}

.saw-item-body-inner p:last-child {
	margin-bottom: 0;
}

/* ---- Cascade animation ---- */
@keyframes sawFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.saw-item {
	opacity: 0;
	animation: sawFadeUp 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.saw-item:nth-child(1) { animation-delay: 0.05s; }
.saw-item:nth-child(2) { animation-delay: 0.12s; }
.saw-item:nth-child(3) { animation-delay: 0.19s; }
.saw-item:nth-child(4) { animation-delay: 0.26s; }
.saw-item:nth-child(5) { animation-delay: 0.33s; }
.saw-item:nth-child(6) { animation-delay: 0.40s; }
.saw-item:nth-child(7) { animation-delay: 0.47s; }
.saw-item:nth-child(8) { animation-delay: 0.54s; }
.saw-item:nth-child(9) { animation-delay: 0.61s; }
.saw-item:nth-child(10) { animation-delay: 0.68s; }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.saw-content {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.saw-content-left.saw-sticky {
		position: static;
	}
}
