/* ---------- Image frames: corner accents sit exactly on the image corners ---------- */
@media (min-width: 1025px) {
	.twss-frame > .elementor-widget-wrap {
		align-content: stretch;
	}
	.twss-frame .elementor-widget-image,
	.twss-frame .elementor-widget-image > .elementor-widget-container {
		height: 100%;
	}
	.twss-frame .elementor-widget-image img {
		height: 100% !important;
		min-height: 420px;
		object-fit: cover;
	}
}

/* ---------- Sticky menu bar ---------- */
.twss-sticky-menu.elementor-sticky--active {
	z-index: 999 !important;
}
.twss-sticky-menu.elementor-sticky--active .elementor-column > .elementor-element-populated {
	margin-top: 0 !important;
}

/* ---------- Testimonial carousel: arrows sit below the slides, either side of the dots ---------- */
.elementor-widget-testimonial-carousel .elementor-main-swiper {
	padding-bottom: 76px !important;
}
.elementor-widget-testimonial-carousel .elementor-swiper-button {
	display: flex;
	align-items: center;
	justify-content: center;
	top: auto !important;
	bottom: 8px;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	background: #098346;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	transform: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
	z-index: 2;
}
.elementor-widget-testimonial-carousel .elementor-swiper-button-prev {
	left: calc(50% - 120px) !important;
	right: auto !important;
}
.elementor-widget-testimonial-carousel .elementor-swiper-button-next {
	right: calc(50% - 120px) !important;
	left: auto !important;
}
.elementor-widget-testimonial-carousel .elementor-swiper-button svg {
	width: 16px !important;
	height: 16px !important;
	fill: #ffffff !important;
}
.elementor-widget-testimonial-carousel .elementor-swiper-button:hover,
.elementor-widget-testimonial-carousel .elementor-swiper-button:focus-visible {
	background: #06703b;
	transform: scale(1.06);
}
.elementor-widget-testimonial-carousel .elementor-swiper-button:focus-visible {
	outline: 2px solid #1e1e1e;
	outline-offset: 3px;
}
.elementor-widget-testimonial-carousel .swiper-pagination {
	bottom: 24px !important;
}
.elementor-widget-testimonial-carousel .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
}
.elementor-widget-testimonial-carousel .swiper-pagination-bullet-active {
	background: #098346 !important;
}

/* ---------- Service areas grid spans the full content width ---------- */
@media (min-width: 768px) {
	.twss-area-grid > .e-con > .e-con,
	.twss-area-grid > .e-con-inner > .e-con > .e-con {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
}

/* ---------- Blog post: hero title, date and readable article spacing ---------- */
.single-post .elementor-widget-theme-post-title .elementor-heading-title {
	font-size: 48px;
	line-height: 1.12;
}
.single-post .elementor-element-11c9dd6c .elementor-icon-list-text {
	color: #E5E7EB !important;
}
.elementor-widget.twss-article h2,
.single-post .elementor-widget-theme-post-content h2 {
	font-size: 34px;
	line-height: 1.15;
	margin: 44px 0 14px;
}
.elementor-widget.twss-article h3,
.single-post .elementor-widget-theme-post-content h3 {
	font-size: 24px;
	line-height: 1.2;
	margin: 28px 0 10px;
}
.elementor-widget.twss-article h2:first-child,
.single-post .elementor-widget-theme-post-content > h2:first-child {
	margin-top: 0;
}
.elementor-widget.twss-article p,
.elementor-widget.twss-article ul,
.elementor-widget.twss-article ol {
	margin: 0 0 16px;
}
.elementor-widget.twss-article li {
	margin-bottom: 6px;
}
.single-post .elementor-widget-theme-post-content figure.wp-block-image,
.elementor-widget.twss-article figure {
	margin: 28px 0;
	box-shadow: none;
}
.single-post .elementor-widget-theme-post-content figure.wp-block-image img,
.elementor-widget.twss-article figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 460px;
	object-fit: cover;
	border-radius: 8px;
}

/* ---------- Blog archive: two-column cards and numbered pagination ---------- */
.twss-blog-grid .elementor-post {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(15, 16, 18, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.twss-blog-grid .elementor-post:hover {
	box-shadow: 0 10px 28px rgba(15, 16, 18, 0.12);
	transform: translateY(-2px);
}
.twss-blog-grid .elementor-post__thumbnail__link {
	margin-bottom: 0 !important;
}
.twss-blog-grid .elementor-post__thumbnail img {
	border-radius: 0 !important;
}
.twss-blog-grid .elementor-post__text {
	padding: 18px 20px 22px;
}
.twss-blog-grid .elementor-post__title,
.twss-blog-grid .elementor-post__title a {
	font-size: 22px !important;
	line-height: 1.2 !important;
}
.twss-blog-grid .elementor-post__excerpt p {
	margin: 0;
}
.twss-blog-grid .elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}
.twss-blog-grid .elementor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	margin: 0 !important;
	border: 1px solid #E5E7EB;
	border-radius: 6px;
	background: #FFFFFF;
	color: #1F2937;
	font-weight: 600;
}
.twss-blog-grid .elementor-pagination a.page-numbers:hover,
.twss-blog-grid .elementor-pagination a.page-numbers:focus-visible {
	border-color: #098346;
	color: #098346;
}
.twss-blog-grid .elementor-pagination .page-numbers.current {
	background: #098346;
	border-color: #098346;
	color: #FFFFFF;
}
.elementor-widget-theme-archive-title .elementor-heading-title,
.twss-hero-title .elementor-heading-title {
	line-height: 1.12;
}

/* ---------- Legal pages (Privacy Policy, Terms and Conditions) ---------- */
.elementor-widget.twss-article {
	color: #4B5563;
	font-size: 17px;
	line-height: 1.7;
}
.elementor-widget.twss-article a {
	color: #098346;
	font-weight: 600;
}
.elementor-widget.twss-article .twss-effective {
	display: inline-block;
	padding: 6px 14px;
	border-left: 3px solid #098346;
	background: #F3F4F6;
	border-radius: 4px;
	color: #1F2937;
}

@media (max-width: 1024px) {
	.single-post .elementor-widget-theme-post-title .elementor-heading-title {
		font-size: 38px;
	}
	.elementor-widget.twss-article h2,
	.single-post .elementor-widget-theme-post-content h2 {
		font-size: 28px;
		margin-top: 36px;
	}
	.elementor-widget.twss-article h3,
	.single-post .elementor-widget-theme-post-content h3 {
		font-size: 22px;
	}
}

@media (max-width: 767px) {
	.single-post .elementor-widget-theme-post-title .elementor-heading-title {
		font-size: 30px;
	}
	.elementor-widget.twss-article {
		font-size: 16px;
	}
	.elementor-widget.twss-article h2,
	.single-post .elementor-widget-theme-post-content h2 {
		font-size: 24px;
		margin-top: 30px;
	}
	.elementor-widget.twss-article h3,
	.single-post .elementor-widget-theme-post-content h3 {
		font-size: 20px;
	}
	.single-post .elementor-widget-theme-post-content figure.wp-block-image img,
	.elementor-widget.twss-article figure img {
		max-height: 300px;
	}
	.twss-blog-grid .elementor-post__title,
	.twss-blog-grid .elementor-post__title a {
		font-size: 20px !important;
	}
	.single-post .elementor-widget-theme-post-content ul,
	.single-post .elementor-widget-theme-post-content ol,
	.elementor-widget.twss-article ul,
	.elementor-widget.twss-article ol {
		padding-left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-testimonial-carousel .elementor-swiper-button,
	.twss-blog-grid .elementor-post {
		transition: none;
	}
	.twss-blog-grid .elementor-post:hover {
		transform: none;
	}
}
