/**
 * Two Images Section Widget Styles
 * A section with title, description, and two images
 */

/* =====================
   Container
   ===================== */
.two-images-section-wrapper {
	width: 100%;
	direction: rtl;
	text-align: right;
}

.two-images-section-container {
	max-width: 1396px;
	margin: 0 auto;
	padding: 0;
}

/* =====================
   Header
   ===================== */
.two-images-section-header {
	text-align: center;
	margin-bottom: 40px;
}

.two-images-section-title {
	font-size: 36px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.two-images-section-subtitle {
	font-size: 16px;
	color: #706f6f;
	margin: 0;
	line-height: 1.6;
}

/* =====================
   Content Layout
   ===================== */
.two-images-section-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: start;
}

/* Layout: Text on Right, Large Image on Left (default) */
/* In RTL, first column appears on the right visually */
.layout-text_right .two-images-section-content {
	grid-template-areas: "text large-image";
}

.layout-text_right .text-section {
	grid-area: text;
}

.layout-text_right .large-image-section {
	grid-area: large-image;
}

/* Layout: Text on Left, Large Image on Right */
/* In RTL, second column appears on the left visually */
.layout-text_left .two-images-section-content {
	grid-template-areas: "large-image text";
}

.layout-text_left .text-section {
	grid-area: text;
}

.layout-text_left .large-image-section {
	grid-area: large-image;
}

/* =====================
   Text Section (with small image)
   ===================== */
.text-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.text-section-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.4;
}

.text-section-description {
	font-size: 16px;
	color: #706f6f;
	line-height: 1.8;
	margin: 0 0 16px 0;
}

.text-section-description p {
	margin: 0 0 12px 0;
}

.text-section-description p:last-child {
	margin-bottom: 0;
}

.text-section-image {
	width: 100%;
	height: 350px;
	overflow: hidden;
	border-radius: var(--pls-border-radius);
	background: #1a3a2e;
}

.text-section-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* =====================
   Large Image Section
   ===================== */
.large-image-section {
	display: flex;
	align-items: stretch;
}

.large-image-section-image {
	width: 100%;
	height: 530px;
	overflow: hidden;
	border-radius: var(--pls-border-radius);
	background: #1a3a2e;
}

.large-image-section-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* =====================
   Responsive Design
   ===================== */

/* Tablet */
@media (max-width: 1024px) {
	.two-images-section-title {
		font-size: 32px;
	}
	
	.text-section-title {
		font-size: 24px;
	}
	
	.two-images-section-content {
		gap: 24px;
	}
	
	.large-image-section-image {
		height: 450px;
	}
	
	.text-section-image {
		height: 250px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.two-images-section-content {
		grid-template-columns: 1fr !important;
		grid-template-areas: "text" "large-image" !important;
		gap: 30px;
	}
	
	.two-images-section-title {
		font-size: 28px;
	}
	
	.two-images-section-subtitle {
		font-size: 14px;
	}
	
	.text-section-title {
		font-size: 22px;
	}
	
	.text-section-description {
		font-size: 14px;
	}
	
	.large-image-section-image {
		height: 350px;
	}
	
	.text-section-image {
		height: 220px;
	}
	
	.two-images-section-header {
		margin-bottom: 30px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.two-images-section-title {
		font-size: 24px;
	}
	
	.text-section-title {
		font-size: 20px;
	}
	
	.large-image-section-image {
		height: 280px;
        display: none;
	}
	
	.text-section-image {
		height: 200px;
	}
	
	.two-images-section-content {
		gap: 24px;
	}
}
