/**
 * Office Blocks Widget Styles
 * Two-column layout with left background image and right scrollable square image blocks
 */

/* Section Container */
.elementor-widget-ultimate-office-blocks .office-blocks-section {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.elementor-widget-ultimate-office-blocks .office-blocks-section .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	width: 100%;
	box-sizing: border-box;
}

.elementor-widget-ultimate-office-blocks .office-blocks-section .row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
	align-items: stretch;
	min-height: 600px;
}

/* Columns */
.elementor-widget-ultimate-office-blocks .office-blocks-section .col-sm-6 {
	width: 100%;
	padding: 0 15px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.elementor-widget-ultimate-office-blocks .office-blocks-section .col-sm-6 {
		width: 50%;
	}
}

/* Left Column */
.elementor-widget-ultimate-office-blocks .left-column {
	display: flex;
	align-items: stretch;
}

.elementor-widget-ultimate-office-blocks .left-column-bg {
	width: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 500px;
	position: relative;
	border-radius: 0;
}

.elementor-widget-ultimate-office-blocks .logo-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.elementor-widget-ultimate-office-blocks .logo-box {
	width: 350px;
	height: 350px;
	background-color: #9FCAEC;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.elementor-widget-ultimate-office-blocks .logo-text {
	color: #ffffff;
	font-family: "futura-pt", sans-serif;
	font-size: 48px;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.elementor-widget-ultimate-office-blocks .logo-line {
	display: block;
}

/* Right Column */
.elementor-widget-ultimate-office-blocks .right-column {
	display: flex;
	flex-direction: column;
}

.elementor-widget-ultimate-office-blocks .blocks-scroll-container {
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
	padding-right: 0;
}

.elementor-widget-ultimate-office-blocks .blocks-scroll-container::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.elementor-widget-ultimate-office-blocks .blocks-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px 0;
}

/* Image Block */
.elementor-widget-ultimate-office-blocks .image-block {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
	text-decoration: none;
	overflow: hidden;
	margin-bottom: 0;
}

.elementor-widget-ultimate-office-blocks .image-block-bg {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: absolute;
	top: 0;
	left: 0;
	transition: transform 0.6s ease-in-out;
}

/* Dark Overlay */
.elementor-widget-ultimate-office-blocks .image-block-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 2;
	transition: background-color 0.6s ease-in-out;
}

/* Zoom and Darker Overlay on Hover */
.elementor-widget-ultimate-office-blocks .image-block:hover .image-block-bg {
	transform: scale(1.05);
}

.elementor-widget-ultimate-office-blocks .image-block:hover .image-block-bg::before {
	background-color: rgba(0, 0, 0, 0.6);
}

/* Progress Line - Hidden by default */
.elementor-widget-ultimate-office-blocks .progress-line {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 5px;
	background-color: #ffd466;
	z-index: 20;
	transition: width 0.6s ease-in-out;
	pointer-events: none;
	transform: translateZ(0);
	will-change: width;
}

/* Progress Line Animation on Hover */
.elementor-widget-ultimate-office-blocks .image-block:hover .progress-line {
	width: 100%;
}

/* Text Overlay - Centered */
.elementor-widget-ultimate-office-blocks .image-block h3 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-family: "futura-pt", sans-serif;
	font-size: 32px;
	font-weight: 400;
	margin: 0;
	padding: 0;
	z-index: 5;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	pointer-events: none;
	text-align: center;
	white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 767px) {
	.elementor-widget-ultimate-office-blocks .office-blocks-section .row {
		flex-direction: column;
		min-height: auto;
	}

	.elementor-widget-ultimate-office-blocks .left-column-bg {
		min-height: 400px;
	}

	.elementor-widget-ultimate-office-blocks .logo-box {
		width: 250px;
		height: 250px;
	}

	.elementor-widget-ultimate-office-blocks .logo-text {
		font-size: 36px;
	}

	.elementor-widget-ultimate-office-blocks .image-block h3 {
		font-size: 24px;
		bottom: 20px;
		right: 20px;
	}

	.elementor-widget-ultimate-office-blocks .blocks-scroll-container {
		max-height: 600px !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-widget-ultimate-office-blocks .logo-box {
		width: 300px;
		height: 300px;
	}

	.elementor-widget-ultimate-office-blocks .logo-text {
		font-size: 42px;
	}

	.elementor-widget-ultimate-office-blocks .image-block h3 {
		font-size: 28px;
	}
}

