/* IWRKS Pro Widgets Global Variables */
:root {
	--iwrks-primary-color: #000000;
	--iwrks-secondary-color: #ffffff;
	--iwrks-accent-color: #ff3366;
}

/* Global Reset for Widgets */
.iwrks-widget-wrapper {
	position: relative;
	width: 100%;
}

/* Common Overlay */
.iwrks-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	pointer-events: none;
	transition: background-color 0.3s ease;
}

/* Flex utilities */
.iwrks-flex {
	display: flex;
}

.iwrks-flex-col {
	flex-direction: column;
}

.iwrks-flex-center {
	justify-content: center;
	align-items: center;
}

/* Top Bar Styles */
.iwrks-top-bar-outer {
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 1000;
	position: relative;
}

.iwrks-top-bar {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 0;
	/* Removing horizontal padding to align exactly with logo/menu edge */
	font-family: 'Heebo', sans-serif;
	font-size: 15px;
	color: #ffffff;
}

.iwrks-header-master-container.is-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
}

.iwrks-header-master-container.is-overlay .iwrks-top-bar-outer {
	background: transparent;
}

.iwrks-top-bar-links a {
	color: #ffffff;
	text-decoration: none;
	margin-right: 25px;
	transition: opacity 0.3s ease;
}

.iwrks-top-bar-links a:hover {
	opacity: 0.7;
}

.iwrks-top-bar-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	margin-left: 20px;
	transition: color 0.3s ease;
	font-size: 14px;
}

.iwrks-top-bar-socials a svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.iwrks-top-bar-socials a i {
	font-size: 1em;
}

.iwrks-top-bar-socials a:hover {
	color: var(--iwrks-accent-color);
}

/* Header Navigation Baseline */
.iwrks-header-nav {
	display: flex;
	width: 100%;
}

.iwrks-header-nav ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 30px;
}

.iwrks-header-nav ul li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
}

.iwrks-header-nav ul a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 30px 0;
	/* Add block padding so the link grows to touch the header border */
	text-decoration: none !important;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
}

.iwrks-header-nav>ul>li>a::after {
	content: '';
	position: absolute;
	bottom: -7px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	/* Base thickness, overridden by Elementor controls when Classic preset is active */
	height: 2px;
	background-color: var(--iwrks-accent-color);
	transition: width 0.3s ease;
}

/* Hide underline completely if the widget setting is toggled off, or if not using the classic preset */
.iwrks-header-nav:not(.iwrks-nav-preset-classic)>ul>li>a::after,
.iwrks-header-nav.iwrks-nav-no-underline>ul>li>a::after {
	display: none !important;
}

.iwrks-header-nav>ul>li>a:hover::after,
.iwrks-header-nav>ul>li.current-menu-item>a::after {
	width: calc(100% - 30px);
}

/* Button Icons Sizing */
.iwrks-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
}

.iwrks-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.iwrks-btn-icon i {
	font-size: 1em;
}

/* Dropdown Sub-menus */
.iwrks-header-nav ul ul.sub-menu,
.iwrks-header-nav ul ul.children {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background-color: #1a1a1a;
	box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.2);
	border-radius: 0;
	padding: 15px 0 !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: all 0.3s ease;
	z-index: 999;
	display: block;
	/* Force block in case theme sets flex */
	gap: 0;
}


.iwrks-header-nav ul li:hover>ul.sub-menu,
.iwrks-header-nav ul li:hover>ul.children {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.iwrks-header-nav ul ul.sub-menu ul,
.iwrks-header-nav ul ul.children ul {
	top: 0;
	left: 100%;
}

.iwrks-header-nav ul ul a {
	padding: 12px 25px;
	color: #ffffff;
	font-size: 0.9em;
	text-transform: none;
	font-weight: 500;
	letter-spacing: 0;
}

.iwrks-header-nav ul ul a:hover {
	background-color: #333333;
	color: var(--iwrks-accent-color);
}

/* --------------------------------------------------------------------------
 * HEADER MENU PRESETS
 * -------------------------------------------------------------------------- */

/* Balloon Preset Dropdown Styling */
.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.sub-menu,
.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.children {
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.1);
	min-width: 220px;
}

/* The Balloon "Tail" (Arrow pointing up) */
.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.sub-menu::before,
.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.children::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 30px;
	/* Adjust based on alignment, assuming left alignment for now */
	width: 12px;
	height: 12px;
	background-color: #ffffff;
	transform: rotate(45deg);
	border-top-left-radius: 2px;
	z-index: -1;
	/* Keep shadow from overlapping tail by disabling it on the before pseudo or hiding overflow */
}

/* Balloon Item Styling */
.iwrks-header-nav.iwrks-nav-preset-balloon ul ul a {
	color: #333333;
	padding: 10px 20px;
	font-weight: 500;
	border-radius: 4px;
}

.iwrks-header-nav.iwrks-nav-preset-balloon ul ul a:hover {
	background-color: #f5f5f5;
	color: var(--iwrks-accent-color);
}

/* Submenu Indicator (Icon Replacement) */
/* Hide the CSS chevron if an Elementor icon span is present */
.iwrks-header-nav ul li.menu-item-has-children>a:has(.iwrks-submenu-indicator)::before {
	display: none !important;
}

.iwrks-submenu-indicator {
	display: inline-flex;
	margin-left: 8px;
	font-size: 0.9em;
	transition: transform 0.3s ease;
	transform: translateY(var(--submenu-indicator-offset-y, 0px));
}

/* Desktop Hover Rotation for custom icon */
@media (min-width: 1025px) {
	.iwrks-header-nav ul li.menu-item-has-children:hover>a .iwrks-submenu-indicator {
		transform: translateY(var(--submenu-indicator-offset-y, 0px)) rotate(180deg);
	}
}

/* Mobile Rotation for custom icon */
@media (max-width: 1024px) {
	.iwrks-header-nav ul li.menu-item-has-children>a .iwrks-submenu-indicator {
		position: absolute;
		right: 20px;
		top: 50%;
		transform: translateY(calc(-50% + var(--submenu-indicator-offset-y, 0px)));
		margin-left: 0;
		font-size: 1.2em;
	}

	.iwrks-header-nav ul li.menu-item-has-children.is-open>a .iwrks-submenu-indicator {
		transform: translateY(calc(-50% + var(--submenu-indicator-offset-y, 0px))) rotate(180deg);
	}

	.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.sub-menu::before,
	.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.children::before {
		display: none !important;
		/* No tail on mobile */
	}

	.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.sub-menu,
	.iwrks-header-nav.iwrks-nav-preset-balloon ul ul.children {
		background-color: transparent !important;
		/* Reset to transparent inherited bg */
		box-shadow: none !important;
	}

	.iwrks-header-nav.iwrks-nav-preset-balloon ul ul a {
		color: inherit;
		/* Inherit mobile item color */
		background-color: rgba(255, 255, 255, 0.05);
		/* Slight contrast */
	}

	.iwrks-header-nav.iwrks-nav-preset-balloon ul ul a:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
}


/* --------------------------------------------------------------------------
 * WIDGET DEFAULT STYLES 
 * Base structural styling if no Elementor styles are set.
 * -------------------------------------------------------------------------- */

/* Testimonials Widget Base */
.iwrks-testimonial-carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 20px;
	scroll-snap-type: x mandatory;
}

.iwrks-testimonial-item {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	flex: 0 0 calc(33.333% - 14px);
	scroll-snap-align: start;
}

@media (max-width: 768px) {
	.iwrks-testimonial-item {
		flex: 0 0 100%;
	}
}

.iwrks-testimonial-content {
	font-size: 16px;
	line-height: 1.6;
	font-style: italic;
	margin-bottom: 20px;
	color: #444;
}

.iwrks-testimonial-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.iwrks-testimonial-image {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.iwrks-testimonial-name {
	font-weight: bold;
	font-size: 16px;
	margin: 0;
	color: #111;
}

.iwrks-testimonial-title {
	font-size: 14px;
	color: #777;
	margin: 0;
}

/* Pricing Tables Widget Base */
.iwrks-pricing-table {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	text-align: center;
	transition: transform 0.3s;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #eaeaea;
}

.iwrks-pricing-table:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.iwrks-pricing-header {
	padding: 40px 30px;
	background: #fafafa;
	border-bottom: 1px solid #eee;
}

.iwrks-pricing-title {
	margin: 0 0 15px;
	font-size: 22px;
	font-weight: 700;
	color: #222;
}

.iwrks-pricing-price {
	font-size: 48px;
	font-weight: 800;
	color: var(--iwrks-accent-color);
	margin: 0;
	line-height: 1;
}

.iwrks-pricing-currency {
	font-size: 24px;
	vertical-align: top;
	font-weight: 600;
	margin-right: 2px;
}

.iwrks-pricing-period {
	font-size: 14px;
	color: #777;
	display: block;
	margin-top: 5px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.iwrks-pricing-features {
	padding: 30px;
	margin: 0;
	list-style: none;
	flex-grow: 1;
}

.iwrks-pricing-features li {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	color: #555;
}

.iwrks-pricing-features li:last-child {
	border-bottom: none;
}

.iwrks-pricing-footer {
	padding: 30px;
	background: #fff;
}

.iwrks-pricing-button {
	display: inline-block;
	width: 100%;
	padding: 15px 30px;
	background: var(--iwrks-primary-color);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: bold;
	transition: all 0.3s;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
}

.iwrks-pricing-button:hover {
	background: var(--iwrks-accent-color);
	color: #fff;
}

.iwrks-pricing-ribbon {
	position: absolute;
	top: 20px;
	right: -40px;
	background: var(--iwrks-accent-color);
	color: #fff;
	padding: 7px 40px;
	transform: rotate(45deg);
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Team Profiles Widget Base */
.iwrks-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
}

.iwrks-team-profile {
	text-align: center;
}

.iwrks-team-image-wrap {
	margin-bottom: 25px;
	overflow: hidden;
	border-radius: 12px;
	position: relative;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.iwrks-team-image {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.iwrks-team-profile:hover .iwrks-team-image {
	transform: scale(1.08);
}

.iwrks-team-name {
	font-size: 22px;
	margin: 0 0 5px;
	font-weight: 700;
	color: #222;
}

.iwrks-team-position {
	color: var(--iwrks-accent-color);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 15px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.iwrks-team-bio {
	font-size: 15px;
	color: #666;
	margin-bottom: 20px;
	line-height: 1.7;
}

.iwrks-team-socials {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.iwrks-team-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f5f5f5;
	color: #444;
	transition: all 0.3s;
	text-decoration: none;
}

.iwrks-team-socials a:hover {
	background: var(--iwrks-accent-color);
	color: #fff;
	transform: translateY(-3px);
}

/* -------------------------------------------------------------------------
 * Team Profiles – Hover Reveal Layout
 * ------------------------------------------------------------------------- */
.iwrks-layout-hover-reveal {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
}

.iwrks-layout-hover-reveal .iwrks-hover-photo {
	position: relative;
	overflow: hidden;
	line-height: 0;
	aspect-ratio: 3 / 4;
}

.iwrks-layout-hover-reveal .iwrks-hover-photo img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: filter 0.5s ease, transform 0.5s ease;
}

/* Grayscale default */
.iwrks-layout-hover-reveal.iwrks-hover-grayscale .iwrks-hover-photo img {
	filter: grayscale(100%);
}

.iwrks-layout-hover-reveal:hover .iwrks-hover-photo img {
	filter: grayscale(0%) !important;
	transform: scale(1.05);
}

/* Overlay */
.iwrks-hover-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 2;
}

.iwrks-layout-hover-reveal:hover .iwrks-hover-overlay {
	opacity: 1;
}

/* Social icons – vertical stack top-left */
.iwrks-hover-socials {
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.iwrks-hover-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.3s ease, transform 0.3s ease;
	opacity: 0;
	transform: translateX(-20px);
}

.iwrks-layout-hover-reveal:hover .iwrks-hover-social-icon {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.3s ease calc(0.1s + var(--delay, 0s)),
		transform 0.3s ease calc(0.1s + var(--delay, 0s)),
		background 0.3s ease;
}

.iwrks-hover-social-icon:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: translateX(0) scale(1.1);
}

/* Info block – bottom-left */
.iwrks-hover-info {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.iwrks-layout-hover-reveal:hover .iwrks-hover-info {
	opacity: 1;
	transform: translateY(0);
}

.iwrks-hover-role {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 4px 10px;
	margin-bottom: 0;
}

.iwrks-hover-name {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	padding: 10px 15px;
	line-height: 1.3;
}

/* Services Box Widget Base */
.iwrks-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.iwrks-service-box {
	background: transparent;
	padding: 50px 40px;
	border-radius: 12px;
	text-align: center;
	transition: transform var(--iwrks-sb-anim-duration, 0.4s) ease, box-shadow var(--iwrks-sb-anim-duration, 0.4s) ease, border-color var(--iwrks-sb-anim-duration, 0.4s) ease;
	border: 1px solid transparent;
	display: flex;
	flex-direction: column;
}

/* Equal Height Support */
.iwrks-sb-equal-height-yes,
.iwrks-sb-equal-height-yes .elementor-widget-container {
	height: 100%;
}

.iwrks-sb-equal-height-yes .iwrks-service-box {
	height: 100%;
}

/* Services Box Layouts */
.iwrks-sb-layout-top {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.iwrks-sb-layout-left {
	flex-direction: row;
	align-items: flex-start;
	text-align: left;
}

.iwrks-sb-layout-right {
	flex-direction: row-reverse;
	align-items: flex-start;
	text-align: right;
}

/* Services Box - Hover Animations (Lift, Scale, Fill) */
.iwrks-service-box {
	position: relative;
	overflow: hidden;
	z-index: 1;
	transition: transform var(--iwrks-sb-anim-duration, 0.4s) ease, box-shadow var(--iwrks-sb-anim-duration, 0.4s) ease, border-color var(--iwrks-sb-anim-duration, 0.4s) ease;
}

.iwrks-service-box.iwrks-sb-anim-lift:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.iwrks-service-box.iwrks-sb-anim-scale:hover {
	transform: scale(1.03);
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

/* Fill Animations Logic */
.iwrks-service-box[class*="iwrks-sb-anim-fill-"]::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--iwrks-sb-fill, rgba(0, 0, 0, 0.05));
	z-index: -1;
	/* Behind content */
	transition: transform var(--iwrks-sb-anim-duration, 0.4s) ease;
}

/* 1) Fill Right */
.iwrks-service-box.iwrks-sb-anim-fill-right::before {
	transform: scaleX(0);
	transform-origin: left;
}

.iwrks-service-box.iwrks-sb-anim-fill-right:hover::before {
	transform: scaleX(1);
}

/* 2) Fill Left */
.iwrks-service-box.iwrks-sb-anim-fill-left::before {
	transform: scaleX(0);
	transform-origin: right;
}

.iwrks-service-box.iwrks-sb-anim-fill-left:hover::before {
	transform: scaleX(1);
}

/* 3) Fill Up */
.iwrks-service-box.iwrks-sb-anim-fill-up::before {
	transform: scaleY(0);
	transform-origin: bottom;
}

.iwrks-service-box.iwrks-sb-anim-fill-up:hover::before {
	transform: scaleY(1);
}

/* 4) Fill Down */
.iwrks-service-box.iwrks-sb-anim-fill-down::before {
	transform: scaleY(0);
	transform-origin: top;
}

.iwrks-service-box.iwrks-sb-anim-fill-down:hover::before {
	transform: scaleY(1);
}

/* Preset: none — intentionally no styles */

/* Service Media base */
.iwrks-sb-media {
	font-size: 48px;
	margin-bottom: 25px;
	display: inline-block;
	transition: transform var(--iwrks-sb-anim-duration, 0.4s) ease;
}

.iwrks-service-box:hover .iwrks-sb-media {
	transform: scale(1.05);
}


.iwrks-sb-title {
	font-size: 22px;
	margin: 0 0 15px;
	font-weight: 700;
	color: #222;
}

.iwrks-service-desc {
	font-size: 16px;
	color: #666;
	line-height: 1.7;
	margin: 0;
}

/* Progress Builder Widget Base */
.iwrks-progress-item {
	margin-bottom: 30px;
}

.iwrks-progress-title {
	font-weight: 600;
	margin-bottom: 10px;
	display: block;
	color: #333;
	font-size: 15px;
}

.iwrks-progress-bar-wrap {
	background: #eef0f2;
	border-radius: 10px;
	height: 8px;
	overflow: hidden;
	position: relative;
}

.iwrks-progress-bar-fill {
	background: var(--iwrks-accent-color);
	height: 100%;
	border-radius: 10px;
	transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
	width: 0;
}

.iwrks-progress-percentage {
	position: absolute;
	right: 0;
	top: -28px;
	font-size: 15px;
	font-weight: 700;
	color: #444;
}

/* Advanced Posts Widget Base */
.iwrks-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 40px;
}

.iwrks-post-item {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	transition: all var(--iwrks-post-anim-duration, 0.4s) ease;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

/* Featured Main: ensure fill stays inside the post box */
.iwrks-post-featured-main {
	overflow: hidden !important;
	position: relative !important;
}

/* Clickable Card Overlay Link */
.iwrks-post-overlay-link {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 20;
}

/* Post Child Elements Z-Index for Fill Animations */
.iwrks-post-item>* {
	position: relative;
	z-index: 2;
}

/* Lift Animation */
.iwrks-post-item.iwrks-post-anim-lift:hover {
	transform: translateY(-5px);
}

/* Scale Animation */
.iwrks-post-item.iwrks-post-anim-scale:hover {
	transform: scale(1.03);
}

/* Fill Animations Common */
.iwrks-post-item[class*="iwrks-post-anim-fill-"]::before {
	content: '';
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--iwrks-post-fill, rgba(0, 0, 0, 0.05));
	z-index: 1;
	transition: transform var(--iwrks-post-anim-duration, 0.4s) ease;
}

/* 1) Fill Right */
.iwrks-post-item.iwrks-post-anim-fill-right::before {
	transform: scaleX(0);
	transform-origin: left;
}

.iwrks-post-item.iwrks-post-anim-fill-right:hover::before {
	transform: scaleX(1);
}

/* 2) Fill Left */
.iwrks-post-item.iwrks-post-anim-fill-left::before {
	transform: scaleX(0);
	transform-origin: right;
}

.iwrks-post-item.iwrks-post-anim-fill-left:hover::before {
	transform: scaleX(1);
}

/* 3) Fill Up */
.iwrks-post-item.iwrks-post-anim-fill-up::before {
	transform: scaleY(0);
	transform-origin: bottom;
}

.iwrks-post-item.iwrks-post-anim-fill-up:hover::before {
	transform: scaleY(1);
}

/* 4) Fill Down */
.iwrks-post-item.iwrks-post-anim-fill-down::before {
	transform: scaleY(0);
	transform-origin: top;
}

.iwrks-post-item.iwrks-post-anim-fill-down:hover::before {
	transform: scaleY(1);
}

.iwrks-post-thumbnail img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform 0.5s;
}

.iwrks-post-item:hover .iwrks-post-thumbnail img {
	transform: scale(1.05);
}

.iwrks-post-content {
	padding: 30px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.iwrks-post-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 15px;
	font-weight: 500;
	display: flex;
	gap: 15px;
}

.iwrks-post-title {
	margin: 0 0 15px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.iwrks-post-title a {
	color: #222;
	text-decoration: none;
	transition: color 0.3s;
}

.iwrks-post-title a:hover {
	color: var(--iwrks-accent-color);
}

.iwrks-post-excerpt {
	color: #666;
	margin-bottom: 25px;
	line-height: 1.7;
	font-size: 15px;
	flex-grow: 1;
}

.iwrks-post-readmore {
	display: inline-block;
	font-weight: 700;
	color: var(--iwrks-accent-color);
	text-decoration: none;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 1px;
	transition: color 0.3s;
	align-self: flex-start;
}

.iwrks-post-readmore:hover {
	color: var(--iwrks-primary-color);
}

/* Advanced Buttons Widget Base */
.iwrks-btn {
	transition: all var(--iwrks-btn-anim-duration, 0.3s) ease;
}

/* Button Animations Base */
[class*="iwrks-btn-anim-fill-"]::before {
	content: "";
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	/* Note: changed from -1 to 1 to ensure it shows above background but below text (z-index: 2) */
	background: var(--iwrks-btn-fill, rgba(0, 0, 0, 0.1));
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Fill Right */
[class*="iwrks-btn-anim-fill-right"]::before {
	transform: translateX(-101%);
}

[class*="iwrks-btn-anim-fill-right"]:hover::before {
	transform: translateX(0);
}

/* Fill Left */
[class*="iwrks-btn-anim-fill-left"]::before {
	transform: translateX(101%);
}

[class*="iwrks-btn-anim-fill-left"]:hover::before {
	transform: translateX(0);
}

/* Fill Up */
[class*="iwrks-btn-anim-fill-up"]::before {
	transform: translateY(101%);
}

[class*="iwrks-btn-anim-fill-up"]:hover::before {
	transform: translateY(0);
}

/* Fill Down */
[class*="iwrks-btn-anim-fill-down"]::before {
	transform: translateY(-101%);
}

[class*="iwrks-btn-anim-fill-down"]:hover::before {
	transform: translateY(0);
}

/* Lift */
[class*="iwrks-btn-anim-lift"]:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Scale */
[class*="iwrks-btn-anim-scale"]:hover {
	transform: scale(1.05);
}

/* Legacy Advanced Button (can be safely refactored out if not used elsewhere, but kept for safety) */
.iwrks-advanced-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 35px;
	background: var(--iwrks-primary-color);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s;
	gap: 12px;
	font-size: 16px;
	border: 2px solid transparent;
}

.iwrks-advanced-button:hover {
	background: var(--iwrks-accent-color);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.iwrks-button-icon {
	font-size: 1.2em;
	display: inline-block;
}

/* Advanced Banner Widget Base */
.iwrks-banner {
	position: relative;
	overflow: hidden;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
}

.iwrks-banner-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	color: #fff;
}

.iwrks-banner-title {
	font-size: 56px;
	margin: 0 0 25px;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.iwrks-banner-subtitle {
	font-size: 22px;
	margin: 0 0 40px;
	opacity: 0.9;
	line-height: 1.6;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.iwrks-banner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
	z-index: 1;
}

@media (max-width: 768px) {
	.iwrks-banner-title {
		font-size: 36px;
	}

	.iwrks-banner-subtitle {
		font-size: 18px;
	}
}

/* Accordion Widget Base */
.iwrks-accordion {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.iwrks-accordion-item {
	border-bottom: 1px solid #eee;
}

.iwrks-accordion-item:last-child {
	border-bottom: none;
}

.iwrks-accordion-title {
	padding: 20px 25px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.3s;
	margin: 0;
	font-size: 16px;
}

.iwrks-accordion-content {
	padding: 20px 25px;
	line-height: 1.7;
	font-size: 15px;
}

.iwrks-accordion-icon {
	font-size: 14px;
	transition: transform 0.3s ease;
	color: #888;
}

.iwrks-accordion-title.active .iwrks-accordion-icon {
	transform: rotate(180deg);
	color: var(--iwrks-accent-color);
}

/* Tabs Widget Base */
.iwrks-tabs-wrapper {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
	overflow: hidden;
}

.iwrks-tabs-nav {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	border-bottom: 2px solid #f0f0f0;
	overflow-x: auto;
	scrollbar-width: none;
	background: #fafafa;
}

.iwrks-tabs-nav::-webkit-scrollbar {
	display: none;
}

.iwrks-tab-title {
	padding: 18px 30px;
	cursor: pointer;
	font-weight: 600;
	color: #666;
	transition: all 0.3s;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
	font-size: 15px;
}

.iwrks-tab-title:hover {
	color: var(--iwrks-primary-color);
	background: rgba(0, 0, 0, 0.02);
}

.iwrks-tab-title.active {
	color: var(--iwrks-accent-color);
	border-bottom-color: var(--iwrks-accent-color);
	background: #fff;
}

.iwrks-tab-title i {
	margin-right: 10px;
	font-size: 1.1em;
	opacity: 0.8;
}

.iwrks-tab-content {
	padding: 35px;
	display: none;
	line-height: 1.8;
	color: #555;
	animation: fadeIn 0.5s ease;
	font-size: 15px;
}

.iwrks-tab-content.is-active {
	display: block;
}

/* Mobile Tabs Layouts */
@media (max-width: 768px) {

	/* Horizontal scroll (default) */
	.iwrks-tabs-mobile-scroll .iwrks-tabs-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Stack vertically */
	.iwrks-tabs-mobile-stack .iwrks-tabs-nav {
		flex-direction: column !important;
		width: 100%;
	}

	.iwrks-tabs-mobile-stack .iwrks-tabs-nav .iwrks-tab-title {
		width: 100%;
		border-bottom: 1px solid #eee;
		text-align: left;
		justify-content: flex-start;
		border-radius: 0;
	}

	.iwrks-tabs-mobile-stack .iwrks-tabs-nav .iwrks-tab-title:last-child {
		border-bottom: none;
	}

	.iwrks-tabs-mobile-stack .iwrks-tabs-nav .iwrks-tab-title.is-active {
		border-bottom: 2px solid var(--iwrks-accent-color);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Advanced Gallery Widget Base */
.iwrks-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.iwrks-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
}

.iwrks-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
	display: block;
}

.iwrks-gallery-item:hover img {
	transform: scale(1.1);
}

.iwrks-gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.iwrks-gallery-item:hover .iwrks-gallery-overlay {
	opacity: 1;
}

.iwrks-gallery-caption {
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	text-align: center;
	padding: 20px;
	transform: translateY(20px);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
	margin: 0;
}

.iwrks-gallery-item:hover .iwrks-gallery-caption {
	transform: translateY(0);
}

/* Custom Sidebar Widget Base */
.iwrks-sidebar {
	background: #fafafa;
	padding: 35px;
	border-radius: 12px;
	border: 1px solid #f0f0f0;
}

.iwrks-sidebar .widget {
	margin-bottom: 40px;
}

.iwrks-sidebar .widget:last-child {
	margin-bottom: 0;
}

.iwrks-sidebar .widget-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--iwrks-accent-color);
	display: inline-block;
	color: #222;
}

.iwrks-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.iwrks-sidebar ul li {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eaeaea;
}

.iwrks-sidebar ul li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.iwrks-sidebar ul li a {
	color: #555;
	text-decoration: none;
	transition: color 0.3s;
	font-size: 15px;
}

.iwrks-sidebar ul li a:hover {
	color: var(--iwrks-accent-color);
	padding-left: 5px;
}

/* Form Wrapper Widget Base */
.iwrks-form-wrapper {
	background: #fff;
	padding: 45px;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
	border: 1px solid #f5f5f5;
}

.iwrks-form-wrapper input[type="text"],
.iwrks-form-wrapper input[type="email"],
.iwrks-form-wrapper input[type="url"],
.iwrks-form-wrapper input[type="password"],
.iwrks-form-wrapper input[type="search"],
.iwrks-form-wrapper input[type="number"],
.iwrks-form-wrapper input[type="tel"],
.iwrks-form-wrapper input[type="range"],
.iwrks-form-wrapper input[type="date"],
.iwrks-form-wrapper input[type="month"],
.iwrks-form-wrapper input[type="week"],
.iwrks-form-wrapper input[type="time"],
.iwrks-form-wrapper input[type="datetime"],
.iwrks-form-wrapper input[type="datetime-local"],
.iwrks-form-wrapper input[type="color"],
.iwrks-form-wrapper textarea,
.iwrks-form-wrapper select {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-sizing: border-box;
	margin-bottom: 20px;
	font-family: inherit;
	font-size: 15px;
	transition: all 0.3s;
	background: #fafafa;
	color: #444;
}

.iwrks-form-wrapper input:focus,
.iwrks-form-wrapper textarea:focus,
.iwrks-form-wrapper select:focus {
	border-color: var(--iwrks-accent-color);
	outline: none;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.iwrks-form-wrapper input[type="submit"],
.iwrks-form-wrapper button[type="submit"] {
	background: var(--iwrks-primary-color);
	color: #fff;
	padding: 16px 35px;
	border: none;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	width: 100%;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 10px;
}

.iwrks-form-wrapper input[type="submit"]:hover,
.iwrks-form-wrapper button[type="submit"]:hover {
	background: var(--iwrks-accent-color);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.iwrks-form-wrapper label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

/* Image Hotspots Widget Base */
.iwrks-hotspots-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.iwrks-hotspots-image {
	display: block;
	width: 100%;
	height: auto;
}

.iwrks-hotspot-item {
	position: absolute;
	transform: translate(-15px, -15px);
	z-index: 10;
	cursor: pointer;
}

.iwrks-hotspot-icon {
	width: 30px;
	height: 30px;
	background: var(--iwrks-accent-color);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7);
	animation: hotspot-pulse 2s infinite;
	transition: transform 0.3s;
}

.iwrks-hotspot-item:hover .iwrks-hotspot-icon {
	transform: scale(1.15);
	animation: none;
}

@keyframes hotspot-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(255, 51, 102, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 51, 102, 0);
	}
}

.iwrks-hotspot-tooltip {
	position: absolute;
	bottom: calc(100% + 15px);
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	background: #222;
	color: #fff;
	padding: 15px 20px;
	border-radius: 8px;
	width: max-content;
	max-width: 250px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	z-index: 20;
	text-align: center;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
	font-size: 14px;
	line-height: 1.6;
	pointer-events: none;
}

.iwrks-hotspot-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 8px;
	border-style: solid;
	border-color: #222 transparent transparent transparent;
}

.iwrks-hotspot-item:hover .iwrks-hotspot-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* ========================================
   Header – Mobile / Hamburger
   ======================================== */
.iwrks-header-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 9999;
	flex-shrink: 0;
}

.iwrks-header-mobile-toggle span {
	display: block;
	width: 26px;
	height: 2px;
	background-color: #ffffff;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
}

/* Animated X when active */
.iwrks-header-mobile-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.iwrks-header-mobile-toggle.is-active span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.iwrks-header-mobile-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@keyframes iwrks-slide-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	.iwrks-header-mobile-toggle {
		display: flex;
	}

	.iwrks-header-nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: #111111;
		z-index: 9998;
		flex-direction: column !important;
		align-items: flex-start !important;
		padding: 20px 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		display: none;
	}

	.iwrks-header-nav.iwrks-mobile-open {
		display: flex;
		animation: iwrks-slide-in 0.25s ease forwards;
	}

	.iwrks-header-nav ul {
		flex-direction: column !important;
		width: 100% !important;
		gap: 0 !important;
	}

	.iwrks-header-nav ul li {
		width: 100%;
	}

	.iwrks-header-nav ul a {
		padding: 14px 24px !important;
		width: 100%;
	}

	/* Hide underline hover on mobile */
	.iwrks-header-nav>ul>li>a::after {
		display: none;
	}

	/* Sub-menus: stack under parent on mobile, hidden by default */
	.iwrks-header-nav ul ul.sub-menu,
	.iwrks-header-nav ul ul.children {
		position: static !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		box-shadow: none !important;
		background-color: #1a1a1a !important;
		padding: 0 !important;
		display: none !important;
	}

	/* Disable desktop hover trigger on mobile — only JS .is-open opens submenus */
	.iwrks-header-nav ul li:hover>ul.sub-menu,
	.iwrks-header-nav ul li:hover>ul.children {
		display: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}

	/* Only open submenus via JS tap on mobile, not hover */
	.iwrks-header-nav ul li.is-open>ul.sub-menu,
	.iwrks-header-nav ul li.is-open>ul.children {
		display: block !important;
	}

	/* Chevron for parent items with submenus */
	.iwrks-header-nav ul li.menu-item-has-children>a::before {
		content: '›';
		position: absolute;
		right: 20px;
		top: 50%;
		transform: translateY(calc(-50% + var(--submenu-indicator-offset-y, 0px)));
		font-size: 1.2em;
		transition: transform 0.2s ease;
	}

	.iwrks-header-nav ul li.menu-item-has-children.is-open>a::before {
		transform: translateY(calc(-50% + var(--submenu-indicator-offset-y, 0px))) rotate(90deg);
	}

	/* Wrapper needs relative for the absolute nav dropdown */
	.iwrks-header-wrapper {
		position: relative;
	}

	/* Top bar also stacks */
	.iwrks-top-bar {
		flex-direction: column !important;
		gap: 8px;
		text-align: center;
	}
}

/* ============================================================
   Testimonials Carousel
   ============================================================ */
.iwrks-tc-outer {
	position: relative;
}

.iwrks-tc-track-wrap {
	overflow: hidden;
}

.iwrks-tc-track {
	display: flex;
	will-change: transform;
}

/* Arrows */
.iwrks-tc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.2s, transform 0.2s;
	z-index: 10;
	color: #333;
	font-size: 14px;
}

.iwrks-tc-arrow:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.08);
}

.iwrks-tc-prev {
	left: -20px;
}

.iwrks-tc-next {
	right: -20px;
}

/* Dots */
.iwrks-tc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.iwrks-tc-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.2);
	cursor: pointer;
	padding: 0;
	transition: background 0.25s, transform 0.25s;
}

.iwrks-tc-dot.is-active {
	background: currentColor;
	transform: scale(1.25);
}

/* ================================================
   PLAY BUTTON WIDGET
   ================================================ */

/* Pulse rings via ::before and ::after */
.iwrks-play-btn::before,
.iwrks-play-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-color: currentColor;
	opacity: var(--iwrks-pulse-opacity, 0.4);
	animation: iwrks-pulse 2s ease-out infinite;
	z-index: -1;
	pointer-events: none;
}

/* Only show ::after when double-pulse is on */
.iwrks-play-pulse::after {
	display: none;
}

.iwrks-play-pulse-double::after {
	display: block;
	animation-delay: calc(var(--iwrks-pulse-duration, 2s) / 2);
}

/* No pulse rings when class not present */
.iwrks-play-btn:not(.iwrks-play-pulse)::before,
.iwrks-play-btn:not(.iwrks-play-pulse)::after {
	display: none;
}

@keyframes iwrks-pulse {
	0% {
		transform: scale(1);
		opacity: var(--iwrks-pulse-opacity, 0.4);
	}

	70% {
		transform: scale(var(--iwrks-pulse-scale, 1.6));
		opacity: 0;
	}

	100% {
		transform: scale(var(--iwrks-pulse-scale, 1.6));
		opacity: 0;
	}
}

/* Modal overlay */
.iwrks-video-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	animation: iwrks-modal-fade-in 0.25s ease;
}

.iwrks-video-modal-overlay.is-open {
	display: flex !important;
}

@keyframes iwrks-modal-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.iwrks-modal-inner {
	animation: iwrks-modal-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	width: 100%;
}

@keyframes iwrks-modal-scale-in {
	from {
		transform: scale(0.85);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.iwrks-modal-video-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.iwrks-modal-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.iwrks-modal-close {
	line-height: 1;
	transition: opacity 0.2s, transform 0.2s;
}

.iwrks-modal-close:hover {
	opacity: 0.7;
	transform: scale(1.1);
}

/* --------------------------------------------------------------------------
 * Back To Top Widget
 * -------------------------------------------------------------------------- */
.iwrks-back-to-top {
	position: fixed;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	/* Defaults that Elementor can override: */
	background-color: var(--e-global-color-primary, #000);
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 5px;
	bottom: 30px;
	right: 30px;
	z-index: 9999;
}

.iwrks-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.iwrks-back-to-top:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.iwrks-back-to-top i {
	font-size: 18px;
	line-height: 1;
}

.iwrks-back-to-top svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* --------------------------------------------------------------------------
 * Advanced Gallery Carousel
 * -------------------------------------------------------------------------- */
.iwrks-gallery-carousel {
	/* Base SPV fallback if JS hasn't set it */
	--spv: 3;
}

.iwrks-gallery-carousel .iwrks-gc-track {
	display: flex;
	align-items: stretch;
}

.iwrks-gallery-carousel .iwrks-gc-slide {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	margin-right: var(--iwrks-carousel-gap, 0px) !important;
	width: calc((100% - ((var(--spv, 3) - 1) * var(--iwrks-carousel-gap, 0px))) / var(--spv, 3)) !important;
	height: auto;
	/* Let flex stretch dictate height */
}

.iwrks-gallery-carousel .iwrks-gallery-item {
	flex-grow: 1;
	height: 100%;
}

/* --------------------------------------------------------------------------
 * Elementor Footer Widget (v2.0)
 * -------------------------------------------------------------------------- */
.iwrks-footer-widget {
	width: 100%;
	display: block;
	position: relative;
	color: #4a4a4a;
	/* Fallback */
}

.iwrks-footer-widget a {
	text-decoration: none;
	transition: all 0.3s ease;
}

.iwrks-footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.iwrks-footer-widget p {
	margin-top: 0;
}

.iwrks-footer-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Base sections */
.iwrks-footer-main {
	padding: 60px 0;
	background-color: #f9f9f9;
}

.iwrks-footer-bottom-bar {
	background-color: #eee;
	font-size: 0.9em;
}

.iwrks-footer-heading {
	margin-top: 0;
	font-size: 1.25em;
	font-weight: 600;
}

.iwrks-footer-link-list li {}

.iwrks-footer-link-list li:last-child {
	margin-bottom: 0;
}

.iwrks-footer-logo img {
	height: auto;
	display: block;
}

/* -----------------------------------
 * LAYOUT: Classic (4 Columns)
 * ----------------------------------- */
.iwrks-footer-classic .iwrks-footer-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

/* -----------------------------------
 * LAYOUT: Minimal
 * ----------------------------------- */
.iwrks-footer-minimal-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
}

.iwrks-footer-minimal .iwrks-footer-social {
	display: flex;
	justify-content: center;
	gap: 16px;
	font-size: 1.2em;
}

/* -----------------------------------
 * LAYOUT: Split (2 Blocks)
 * ----------------------------------- */
.iwrks-footer-split-wrapper {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.iwrks-footer-split-left {
	width: 35%;
	padding: 80px 60px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.iwrks-footer-split-right {
	width: 65%;
	padding: 80px 60px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
}

.iwrks-footer-split-grid {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

/* -----------------------------------
 * Bottom Flex Bar
 * ----------------------------------- */
.iwrks-bottom-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.iwrks-footer-social {
	display: flex;
	gap: 16px;
	align-items: center;
	font-size: 1.1em;
}

/* -----------------------------------
 * Link Lists & Contact Lists
 * ----------------------------------- */
.iwrks-footer-link-list,
.iwrks-footer-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.iwrks-footer-link-list li,
.iwrks-footer-contact-list li {
	margin-bottom: 12px;
	display: flex;
	align-items: flex-start;
}

.iwrks-footer-link {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.iwrks-footer-link:hover {
	opacity: 0.8;
}

.iwrks-link-icon,
.iwrks-contact-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2em;
	height: 1.2em;
}

.iwrks-link-icon svg,
.iwrks-contact-icon svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: currentColor;
}

.iwrks-link-icon {
	margin-right: 8px;
	font-size: 16px;
}

.iwrks-footer-contact-list li {
	gap: 12px;
}

.iwrks-contact-content {
	line-height: 1.5;
}

.iwrks-contact-content a {
	color: inherit;
	text-decoration: none;
}

.iwrks-contact-content a:hover {
	text-decoration: underline;
}

.iwrks-footer-logo img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* -----------------------------------
 * Responsive Breakdown
 * ----------------------------------- */
@media (max-width: 1024px) {
	.iwrks-footer-classic .iwrks-footer-container {
		grid-template-columns: 1fr 1fr;
	}

	.iwrks-footer-split-left {
		width: 45%;
		padding: 60px 40px;
	}

	.iwrks-footer-split-right {
		width: 55%;
		padding: 60px 40px;
	}
}

@media (max-width: 768px) {
	.iwrks-footer-classic .iwrks-footer-container {
		grid-template-columns: 1fr !important;
		gap: 32px;
	}

	.iwrks-footer-split-wrapper {
		flex-direction: column !important;
	}

	.iwrks-footer-split-left,
	.iwrks-footer-split-right {
		width: 100% !important;
		padding: 40px 20px !important;
	}

	.iwrks-footer-split-grid {
		grid-template-columns: 1fr !important;
	}

	.iwrks-bottom-flex {
		flex-direction: column !important;
		justify-content: center !important;
		text-align: center !important;
	}
}

/* =========================================================================
   HERO SLIDESHOW
   ========================================================================= */

.iwrks-hero-slideshow {
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* ---------- Slides (crossfade stack) ---------- */
.iwrks-hs-track {
	position: relative;
	width: 100%;
	min-height: inherit;
	display: flex;
	align-items: stretch;
}

.iwrks-hs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear var(--iwrks-hs-transition, 800ms);
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.iwrks-hs-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear 0s;
	z-index: 2;
}

.iwrks-hs-slide.is-exiting {
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 1;
	transition: none !important;
}

/* ---------- Transition Effects ---------- */

/* Zoom In */
.iwrks-hs-effect-zoom_in .iwrks-hs-slide {
	transform: scale(1.1);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear var(--iwrks-hs-transition, 800ms);
}

.iwrks-hs-effect-zoom_in .iwrks-hs-slide.is-active {
	transform: scale(1);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear 0s;
}

/* Zoom Out */
.iwrks-hs-effect-zoom_out .iwrks-hs-slide {
	transform: scale(0.9);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear var(--iwrks-hs-transition, 800ms);
}

.iwrks-hs-effect-zoom_out .iwrks-hs-slide.is-active {
	transform: scale(1);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear 0s;
}

/* Slide Horizontal */
.iwrks-hs-effect-slide_horizontal .iwrks-hs-slide {
	transform: translateX(30px);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear var(--iwrks-hs-transition, 800ms);
}

.iwrks-hs-effect-slide_horizontal .iwrks-hs-slide.is-active {
	transform: translateX(0);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear 0s;
}

/* Slide Vertical */
.iwrks-hs-effect-slide_vertical .iwrks-hs-slide {
	transform: translateY(30px);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear var(--iwrks-hs-transition, 800ms);
}

.iwrks-hs-effect-slide_vertical .iwrks-hs-slide.is-active {
	transform: translateY(0);
	transition: opacity var(--iwrks-hs-transition, 800ms) ease, transform var(--iwrks-hs-transition, 800ms) ease, visibility 0s linear 0s;
}

/* Mask Reveal Horizontal (Premium with Curtain) */
.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-active,
.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-exiting {
	opacity: 1 !important;
	visibility: visible !important;
}

.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-exiting {
	z-index: 5;
}

.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-active {
	z-index: 10;
}

.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide {
	z-index: 1;
}

/* Direction: Forward (Left to Right) */
.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-forward {
	clip-path: inset(0 100% 0 0) !important;
	transition: none !important;
}

.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-active.is-forward {
	clip-path: inset(0 0 0 0) !important;
	transition: clip-path var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) !important;
	z-index: 10 !important;
}

.iwrks-hs-has-curtain.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-active.is-forward .iwrks-hs-curtain {
	animation: iwrks-curtain-h var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

/* Direction: Backward (Right to Left) */
.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-backward {
	clip-path: inset(0 0 0 100%) !important;
	transition: none !important;
}

.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-active.is-backward {
	clip-path: inset(0 0 0 0) !important;
	transition: clip-path var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) !important;
	z-index: 10 !important;
}

.iwrks-hs-has-curtain.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-active.is-backward .iwrks-hs-curtain {
	animation: iwrks-curtain-h-rev var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

/* Ensure exiting slide stays static visible underneath and is clipped AWAY by the incoming slide if needed */
.iwrks-hs-effect-mask_reveal_h .iwrks-hs-slide.is-exiting {
	clip-path: none !important;
}

/* Mask Reveal Vertical (Premium with Curtain) */
.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-active,
.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-exiting {
	opacity: 1 !important;
	visibility: visible !important;
}

.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-exiting {
	z-index: 5;
}

.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-active {
	z-index: 10;
}

.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide {
	z-index: 1;
}

/* Direction: Forward (Bottom to Top) */
.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-forward {
	clip-path: inset(100% 0 0 0) !important;
	transition: none !important;
}

.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-active.is-forward {
	clip-path: inset(0 0 0 0) !important;
	transition: clip-path var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) !important;
	z-index: 10 !important;
}

.iwrks-hs-has-curtain.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-active.is-forward .iwrks-hs-curtain {
	animation: iwrks-curtain-v var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

/* Direction: Backward (Top to Bottom) */
.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-backward {
	clip-path: inset(0 0 100% 0) !important;
	transition: none !important;
}

.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-active.is-backward {
	clip-path: inset(0 0 0 0) !important;
	transition: clip-path var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) !important;
	z-index: 10 !important;
}

.iwrks-hs-has-curtain.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-active.is-backward .iwrks-hs-curtain {
	animation: iwrks-curtain-v-rev var(--iwrks-hs-transition, 800ms) cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.iwrks-hs-effect-mask_reveal_v .iwrks-hs-slide.is-exiting {
	clip-path: none !important;
}

@keyframes iwrks-curtain-h {
	0% {
		transform: scaleX(0);
		transform-origin: left;
		opacity: 1;
	}

	50% {
		transform: scaleX(1);
		transform-origin: left;
	}

	51% {
		transform-origin: right;
	}

	100% {
		transform: scaleX(0);
		transform-origin: right;
		opacity: 1;
	}
}

@keyframes iwrks-curtain-h-rev {
	0% {
		transform: scaleX(0);
		transform-origin: right;
		opacity: 1;
	}

	50% {
		transform: scaleX(1);
		transform-origin: right;
	}

	51% {
		transform-origin: left;
	}

	100% {
		transform: scaleX(0);
		transform-origin: left;
		opacity: 1;
	}
}

@keyframes iwrks-curtain-v {
	0% {
		transform: scaleY(0);
		transform-origin: top;
		opacity: 1;
	}

	50% {
		transform: scaleY(1);
		transform-origin: top;
	}

	51% {
		transform-origin: bottom;
	}

	100% {
		transform: scaleY(0);
		transform-origin: bottom;
		opacity: 1;
	}
}

@keyframes iwrks-curtain-v-rev {
	0% {
		transform: scaleY(0);
		transform-origin: bottom;
		opacity: 1;
	}

	50% {
		transform: scaleY(1);
		transform-origin: bottom;
	}

	51% {
		transform-origin: top;
	}

	100% {
		transform: scaleY(0);
		transform-origin: top;
		opacity: 1;
	}
}

.iwrks-hs-curtain {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--iwrks-hs-curtain-color, #000);
	z-index: 5;
	pointer-events: none;
	opacity: 0;
}

/* Ken Burns Effect */
.iwrks-hs-ken-burns .iwrks-hs-slide-bg {
	animation: iwrks-kb-zoom 20s linear infinite alternate;
}

@keyframes iwrks-kb-zoom {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.2);
	}
}

/* ---------- Content Animations ---------- */

.iwrks-hs-slide .iwrks-hs-slide-content>* {
	opacity: 0;
	transition: all 600ms ease;
}

.iwrks-hs-slide.is-active .iwrks-hs-slide-content>* {
	opacity: 1;
	transform: none !important;
}

.iwrks-hs-content-anim-fade_up .iwrks-hs-slide .iwrks-hs-slide-content>* {
	transform: translateY(20px);
}

.iwrks-hs-content-anim-fade_left .iwrks-hs-slide .iwrks-hs-slide-content>* {
	transform: translateX(20px);
}

.iwrks-hs-content-anim-fade_right .iwrks-hs-slide .iwrks-hs-slide-content>* {
	transform: translateX(-20px);
}

.iwrks-hs-content-anim-zoom_in .iwrks-hs-slide .iwrks-hs-slide-content>* {
	transform: scale(0.9);
}

/* Typewriter Animation */
.iwrks-hs-content-anim-typewriter .iwrks-hs-slide .iwrks-hs-slide-content>* {
	clip-path: inset(0 100% 0 0);
	transform: none;
	width: fit-content;
}

.iwrks-hs-content-anim-typewriter .iwrks-hs-slide.is-active .iwrks-hs-slide-content>* {
	animation: iwrks-typewriter 1s steps(40, end) forwards;
}

/* Add cursor for the title only in typewriter mode */
.iwrks-hs-content-anim-typewriter .iwrks-hs-slide.is-active .iwrks-hs-title::after {
	content: "|";
	animation: iwrks-cursor 0.8s infinite;
	margin-left: 2px;
	color: var(--iwrks-hs-active-color, #fff);
}

@keyframes iwrks-typewriter {
	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes iwrks-cursor {

	from,
	to {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}
}

.iwrks-hs-content-anim-zoom_in .iwrks-hs-slide .iwrks-hs-slide-content>* {
	transform: scale(0.9);
}

/* Stagger content items */
.iwrks-hs-slide.is-active .iwrks-hs-pre-title {
	transition-delay: 200ms;
}

.iwrks-hs-slide.is-active .iwrks-hs-title {
	transition-delay: 350ms;
}

.iwrks-hs-slide.is-active .iwrks-hs-desc {
	transition-delay: 500ms;
}

.iwrks-hs-slide.is-active .iwrks-hs-btn-wrap {
	transition-delay: 650ms;
}

/* Ensure parent has height if all slides are absolute */
.iwrks-hero-slideshow.iwrks-hs-no-height .iwrks-hs-track::before {
	content: "";
	display: block;
	padding-top: 56.25%;
	/* Default 16:9 ratio if no height set */
}

.iwrks-hs-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.iwrks-hs-slide-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.iwrks-hs-slide-inner {
	position: relative;
	z-index: 2;
	display: flex;
	width: 100%;
	min-height: inherit;
	box-sizing: border-box;
	align-items: center;
}

.iwrks-hs-slide-content {
	max-width: 700px;
}

.iwrks-hs-pre-title {
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 12px;
	opacity: 0;
	transform: translateY(20px);
}

.iwrks-hs-slide.is-active .iwrks-hs-pre-title {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.iwrks-hs-title {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 20px;
	opacity: 0;
	transform: translateY(30px);
}

.iwrks-hs-slide.is-active .iwrks-hs-title {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}

.iwrks-hs-desc {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 30px;
	opacity: 0;
	transform: translateY(20px);
}

.iwrks-hs-slide.is-active .iwrks-hs-desc {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.iwrks-hs-btn-wrap {
	opacity: 0;
	transform: translateY(20px);
}

.iwrks-hs-slide.is-active .iwrks-hs-btn-wrap {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

/* ---------- Button ---------- */
.iwrks-hs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	cursor: pointer;
	background: transparent;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.iwrks-hs-btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

.iwrks-hs-btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 1em;
}

.iwrks-hs-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- Play Button Override ---------- */
.iwrks-hs-btn-wrap .iwrks-play-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	position: relative;
	z-index: 1;
	text-decoration: none;
	flex-shrink: 0;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.iwrks-hs-btn-wrap .iwrks-play-icon {
	display: inline-flex;
	align-items: center;
}

.iwrks-hs-btn-wrap .iwrks-play-icon svg {
	width: 1.25em;
	height: 1.25em;
}

.iwrks-hs-btn-wrap .iwrks-play-label {
	display: block;
	margin-top: 15px;
	text-align: inherit;
}

/* ---------- Dots Navigation ---------- */
.iwrks-hs-dots {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.iwrks-hs-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.iwrks-hs-dot.is-active {
	background-color: #fff;
	transform: scale(1.2);
}

.iwrks-hs-dot:hover {
	background-color: rgba(255, 255, 255, 0.8);
}

/* ---------- Arrow Navigation ---------- */
.iwrks-hs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.3);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
	padding: 0;
}

.iwrks-hs-arrow:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.iwrks-hs-arrow svg {
	width: 50%;
	height: 50%;
}

.iwrks-hs-arrow-prev {
	left: 20px;
}

.iwrks-hs-arrow-next {
	right: 20px;
}

/* ---------- Numbered Navigation (Preset 2) ---------- */
.iwrks-hs-numbered-nav {
	position: absolute;
	left: 40px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 16px;
	z-index: 10;
}

.iwrks-hs-num-item {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	padding: 0;
}

.iwrks-hs-num-item.is-active {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.15);
}


/* ---------- Info Card (Preset 2 bottom-right) ---------- */
.iwrks-hs-info-card {
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 10;
	background-color: #e8593c;
	color: #fff;
	padding: 24px 32px;
	max-width: 380px;
	min-width: 280px;
}

.iwrks-hs-info-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 12px;
}

.iwrks-hs-info-card-link {
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: opacity 0.3s ease;
}

.iwrks-hs-info-card-link:hover {
	opacity: 0.7;
}

/* ---------- Post Tabs (Preset 1) ---------- */
.iwrks-hs-post-tabs {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	gap: 2px;
}

.iwrks-hs-tab-item {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.3s ease;
	position: relative;
	font-size: 14px;
}

.iwrks-hs-tab-item.is-active {
	background-color: rgba(255, 255, 255, 0.15);
}

.iwrks-hs-tab-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background-color: transparent;
	transition: background-color 0.3s ease;
}

.iwrks-hs-tab-item.is-active::after {
	background-color: #e8593c;
}

.iwrks-hs-tab-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.iwrks-hs-tab-thumb {
	display: block;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	border-radius: 4px;
	background-size: cover;
	background-position: center;
}

.iwrks-hs-tab-label {
	font-weight: 600;
	line-height: 1.3;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.iwrks-hs-numbered-nav {
		left: 20px;
	}

	.iwrks-hs-num-item {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}

	.iwrks-hs-info-card {
		max-width: 300px;
		padding: 18px 24px;
	}
}

@media (max-width: 767px) {
	.iwrks-hero-slideshow {
		min-height: 60vh;
	}

	.iwrks-hs-title {
		font-size: 28px;
	}

	.iwrks-hs-arrow {
		width: 36px;
		height: 36px;
	}

	.iwrks-hs-arrow-prev {
		left: 10px;
	}

	.iwrks-hs-arrow-next {
		right: 10px;
	}

	.iwrks-hs-numbered-nav {
		position: absolute;
		left: 50%;
		top: auto;
		bottom: 20px;
		transform: translateX(-50%);
		flex-direction: row;
	}

	.iwrks-hs-info-card {
		position: relative;
		max-width: 100%;
		width: 100%;
	}

	.iwrks-hs-post-tabs {
		flex-direction: column;
	}

	.iwrks-hs-tab-thumb {
		width: 40px;
		height: 40px;
	}
}

/* =========================================================================
   TEXT SLIDER WIDGET
   ========================================================================= */

.iwrks-text-slider-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding: 10px 0;
}

.iwrks-ts-item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	text-decoration: none !important;
	color: inherit;
}

.iwrks-ts-item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.iwrks-ts-item-icon svg {
	display: block;
	fill: currentColor;
}

.iwrks-ts-item-text {
	line-height: 1.2;
}

/* ---------- Ticker Preset ---------- */

.iwrks-ts-ticker-wrapper {
	width: 100%;
	overflow: hidden;
}

.iwrks-ts-ticker-inner {
	display: flex;
	width: max-content;
	align-items: center;
	animation-play-state: running;
}

.iwrks-ts-pause-hover:hover .iwrks-ts-ticker-inner {
	animation-play-state: paused;
}

/* Left to Right ticker logic - actual speed is set via inline style or JS */
.iwrks-ts-preset-ticker .iwrks-ts-ticker-inner {
	animation: iwrks-ticker-left 30s linear infinite;
}

[data-direction="right"].iwrks-ts-preset-ticker .iwrks-ts-ticker-inner {
	animation: iwrks-ticker-right 30s linear infinite;
}

@keyframes iwrks-ticker-left {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@keyframes iwrks-ticker-right {
	0% { transform: translateX(-50%); }
	100% { transform: translateX(0); }
}

/* ---------- Slide / Typewriter Presets ---------- */

.iwrks-ts-slides-wrapper {
	position: relative;
	width: 100%;
	min-height: 1.5em; /* Fallback height */
	display: flex;
	justify-content: inherit;
}

.iwrks-ts-slide {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
	display: flex;
	justify-content: inherit;
}

.iwrks-ts-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	position: relative; /* Take up space when active */
	top: auto;
	left: auto;
}

/* Typewriter Specific Style */
.iwrks-ts-preset-typewriter .iwrks-ts-item-text {
    border-right: 2px solid transparent;
}

.iwrks-ts-preset-typewriter .is-active .iwrks-ts-item-text {
    border-right-color: currentColor;
    animation: iwrks-ts-cursor 0.8s infinite;
}

@keyframes iwrks-ts-cursor {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: currentColor; }
}

/* =========================================================================
   OFF-CANVAS CONTENT WIDGET
   ========================================================================= */

.iwrks-oc-trigger-wrapper {
	width: 100%;
}

.iwrks-oc-trigger {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.iwrks-oc-trigger-btn {
	padding: 12px 24px;
	border-radius: 4px;
	background-color: #333;
	color: #fff;
	font-weight: 600;
}

.iwrks-oc-trigger-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.iwrks-oc-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	visibility: hidden;
	transition: visibility 0.4s;
}

.iwrks-oc-container.is-active {
	visibility: visible;
}

.iwrks-oc-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.iwrks-oc-container.is-active .iwrks-oc-overlay {
	opacity: 1;
}

.iwrks-oc-panel {
	position: absolute;
	top: 0;
	height: 100%;
	background-color: #fff;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
	z-index: 2;
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

/* Transitions & Positions */
.iwrks-oc-pos-right .iwrks-oc-panel { right: 0; transform: translateX(100%); }
.iwrks-oc-pos-left .iwrks-oc-panel { left: 0; transform: translateX(-100%); }

.iwrks-oc-trans-fade .iwrks-oc-panel { transform: none !important; opacity: 0; }
.iwrks-oc-trans-slide-fade .iwrks-oc-panel { opacity: 0; }

.iwrks-oc-container.is-active .iwrks-oc-panel {
	transform: translateX(0);
	opacity: 1;
}

.iwrks-oc-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 3;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.iwrks-oc-close:hover {
	transform: rotate(90deg);
}

.iwrks-oc-content {
	padding: 60px 40px 40px;
}

/* Body lock */
body.iwrks-oc-open {
	overflow: hidden;
}

/* =========================================================================
   DUAL HEADER WIDGET
   ========================================================================= */

.iwrks-dual-header {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.iwrks-dh-layout-inline {
	flex-wrap: wrap;
	justify-content: inherit;
}

.iwrks-dh-layout-stack {
	flex-direction: column;
	align-items: inherit;
}

.iwrks-dh-first {
	margin-right: 0.25em;
}

.iwrks-dh-second-wrapper {
	position: relative;
	display: inline-block;
}

/* Highlight Preset */
.iwrks-dh-preset-highlight .iwrks-dh-second {
	position: relative;
	z-index: 1;
	padding: 0 10px;
}

.iwrks-dh-highlight-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #ffcc00;
	z-index: -1;
	transform: skew(-10deg);
}

.iwrks-dh-stroke {
	position: absolute;
	bottom: -15px;
	left: 0;
	width: 100%;
	height: 30px;
	fill: none;
	stroke: #ffcc00;
	stroke-width: 12;
	stroke-linecap: round;
	stroke-linejoin: round;
	z-index: -1;
	stroke-dasharray: 600;
	stroke-dashoffset: 600;
	pointer-events: none;
}

.iwrks-dual-header.is-visible .iwrks-dh-stroke {
    animation: iwrks-dh-draw 1.2s forwards ease-in-out;
}

@keyframes iwrks-dh-draw {
    to { stroke-dashoffset: 0; }
}

/* =========================================================================
   MODAL POPUP WIDGET
   ========================================================================= */

.iwrks-modal-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.iwrks-modal-container.is-active {
	display: flex;
}

.iwrks-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7);
	cursor: pointer;
}

.iwrks-modal-panel {
	position: relative;
	background-color: #ffffff;
	width: 100%;
	max-width: 600px;
	min-height: 100px;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	z-index: 2;
	overflow: hidden;
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.is-active .iwrks-modal-panel {
	opacity: 1;
}

.iwrks-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 3;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.iwrks-modal-content {
	padding: 40px;
}

/* Animations */
.iwrks-modal-anim-fade .iwrks-modal-panel { transform: scale(1); }
.iwrks-modal-anim-zoom .iwrks-modal-panel { transform: scale(0.85); }
.iwrks-modal-anim-slide-up .iwrks-modal-panel { transform: translateY(50px); }
.iwrks-modal-anim-slide-down .iwrks-modal-panel { transform: translateY(-50px); }
.iwrks-modal-anim-bounce .iwrks-modal-panel { transform: scale(0.7); }

.is-active.iwrks-modal-anim-fade .iwrks-modal-panel { transform: scale(1); }
.is-active.iwrks-modal-anim-zoom .iwrks-modal-panel { transform: scale(1); }
.is-active.iwrks-modal-anim-slide-up .iwrks-modal-panel { transform: translateY(0); }
.is-active.iwrks-modal-anim-slide-down .iwrks-modal-panel { transform: translateY(0); }
.is-active.iwrks-modal-anim-bounce .iwrks-modal-panel { 
	animation: iwrks-modal-bounce 0.5s forwards;
}

@keyframes iwrks-modal-bounce {
	0% { transform: scale(0.7); }
	70% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* Trigger Base */
.iwrks-modal-trigger {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.iwrks-modal-trigger-btn {
	padding: 12px 24px;
	background-color: #333;
	color: #fff;
	border-radius: 4px;
}

.iwrks-modal-trigger svg {
	margin-right: 8px;
}

.iwrks-modal-trigger-icon svg {
	margin-right: 0;
	width: 32px;
	height: 32px;
}

/* Helper to hide content before it is moved to modal */
.iwrks-modal-hidden-content {
	display: none !important;
}

/* Modal Presets */
.iwrks-modal-content-preset {
	padding: 0 !important;
}

.iwrks-modal-preset {
	display: flex;
	gap: 0;
	min-height: 300px;
	overflow: hidden;
}

.iwrks-modal-preset .iwrks-modal-preset-image {
	flex: 1;
	min-width: 40%;
	background-color: #f9f9f9;
}

.iwrks-modal-preset .iwrks-modal-preset-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.iwrks-modal-preset .iwrks-modal-preset-content {
	flex: 1.5;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.iwrks-modal-preset-split_right {
	flex-direction: row-reverse;
}

.iwrks-modal-preset-centered {
	flex-direction: column;
	text-align: center;
}

.iwrks-modal-preset-centered .iwrks-modal-preset-image {
	max-height: 250px;
}

.iwrks-modal-preset-centered .iwrks-modal-preset-content {
	align-items: center;
}

.iwrks-modal-preset-title {
	margin: 0 0 15px;
	font-size: 28px;
	line-height: 1.2;
}

.iwrks-modal-preset-desc {
	margin-bottom: 25px;
	font-size: 16px;
	line-height: 1.6;
}

.iwrks-modal-preset-btn {
	display: inline-block;
	padding: 12px 30px;
	background-color: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: all 0.3s ease;
	align-self: flex-start;
}

.iwrks-modal-preset-centered .iwrks-modal-preset-btn {
	align-self: center;
}

.iwrks-modal-preset-btn:hover {
	background-color: #555;
	color: #fff;
}

/* Newsletter Preset */
.iwrks-modal-preset-newsletter {
	flex-direction: column;
	text-align: center;
	padding: 20px;
}

.iwrks-modal-preset-newsletter .iwrks-modal-preset-image {
	border-radius: 50%;
	width: 100px;
	height: 100px;
	margin: 0 auto 20px;
	flex: none;
	min-width: auto;
}

.iwrks-modal-preset-newsletter-form {
	display: flex;
	gap: 10px;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

.iwrks-modal-preset-newsletter-form input {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.iwrks-modal-preset-newsletter-form button {
	padding: 12px 25px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.3s ease;
}

.iwrks-modal-preset-newsletter-form button:hover {
	background-color: #555;
}

@media (max-width: 767px) {
	.iwrks-modal-preset {
		flex-direction: column !important;
	}
	.iwrks-modal-preset-image {
		min-width: 100%;
		height: 200px;
	}
	.iwrks-modal-preset-newsletter-form {
		flex-direction: column;
	}
}


/* Animated Words */
.iwrks-dh-animated-text {
	display: inline-block;
}

.iwrks-dh-animated-text::after {
    content: "|";
    animation: iwrks-dh-cursor 0.7s infinite;
    margin-left: 2px;
}

@keyframes iwrks-dh-cursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Slide/Fade Word swap wrapper */
.iwrks-dh-word-swap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.iwrks-dh-word-item {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.iwrks-dh-word-item.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}