/*
 * Styles for Why Choose Us Block
 */

.why-choose-us-section {
	padding: 88px 57px 112px 57px;
	background-color: var(--white);
}

.why-choose-us-header-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 48px; /* Spacing between header content and grid */
}

/* Label Pill: E9EDFC bg, 25px side/10px vertical padding, gap 6px, text/dot 2342C8 */
.why-choose-us-label-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #E9EDFC;
	padding: 10px 25px;
	border-radius: 100px;
	margin-bottom: 20px; /* Spacing between label and heading: 20px */
}

.why-choose-us-label-dot {
	width: 6px;
	height: 6px;
	background-color: var(--primary-color);
	border-radius: 50%;
}

.why-choose-us-label-text {
	font-family: 'Public Sans', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: var(--primary-color);
	letter-spacing: 0.05em;
}

/* Heading: Public Sans, Medium 60px, line-height 70, letter spacing -3% */
.why-choose-us-title-editable,
.why-choose-us-header-content h2 {
	font-family: 'Public Sans', sans-serif;
	font-weight: 500;
	font-size: 60px;
	line-height: 70px;
	letter-spacing: -0.03em;
	color: #0F172A;
	margin-bottom: 16px; /* Spacing between heading and description: 16px */
}

/* Description: Nunito regular 16px, line height 25, letter spacing 2% */
.why-choose-us-desc-editable,
.why-choose-us-header-content p {
	font-family: var(--font-nunito);
	font-weight: 400;
	font-size: 16px;
	line-height: 25px;
	letter-spacing: 0.02em;
	color: var(--text-muted);
	margin-bottom: 0;
	max-width: 680px;
}

/* 3 Card Grid Container in one row, gap 28px */
.why-choose-us-grid {
	display: flex;
	gap: 28px;
	width: 100%;
	justify-content: space-between;
}

/* Card: border 1px solid #E2E8F0, border-radius 16px, overflow hidden */
.why-choose-us-card {
	flex: 1;
	background-color: var(--white);
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.why-choose-us-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Graphic (Image container): height 258px */
.why-choose-us-card-graphic {
	width: 100%;
	height: 258px;
	overflow: hidden;
	background-color: #F8FAFC; /* Fallback background */
}

.why-choose-us-card-graphic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Text Content Container: padding 20px all sides */
.why-choose-us-card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Title: Public Sans, 24px, Light (weight 300), line-height 25, letter-spacing 2% */
.why-choose-us-card-title {
	font-family: 'Public Sans', sans-serif;
	font-weight: 300; /* Light */
	font-size: 24px;
	line-height: 25px;
	letter-spacing: 0.02em;
	color: #0F172A;
	margin-top: 0;
	margin-bottom: 20px; /* Gap between title and description is 20px */
}

/* Description: same as section description */
.why-choose-us-card-desc {
	font-family: var(--font-nunito);
	font-weight: 400;
	font-size: 16px;
	line-height: 25px;
	letter-spacing: 0.02em;
	color: var(--text-muted);
	margin-bottom: 0;
}

/* Block Editor wrapper styling to match front end */
.why-choose-us-block-editor-wrapper {
	padding: 20px;
	background-color: #f1f5f9;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	margin-bottom: 20px;
}

.why-choose-us-block-editor-wrapper h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-family: 'Public Sans', sans-serif;
	color: #0f172a;
}

.why-choose-us-block-editor-wrapper .card-editor-group {
	background-color: var(--white);
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	margin-bottom: 15px;
}

.why-choose-us-block-editor-wrapper .media-actions {
	margin-top: 10px;
	display: flex;
	gap: 10px;
}

.why-choose-us-block-editor-wrapper .editor-preview-label {
	font-weight: bold;
	color: #64748b;
	margin-top: 20px;
	margin-bottom: 10px;
	font-size: 14px;
	letter-spacing: 0.05em;
}

/* ==========================================
   Responsive Rules
   ========================================== */
@media (max-width: 1024px) {
	.why-choose-us-section {
		padding: 60px 24px 80px 24px;
	}
	
	.why-choose-us-title-editable,
	.why-choose-us-header-content h2 {
		font-size: 48px;
		line-height: 56px;
	}
}

@media (max-width: 1024px) {
	.why-choose-us-grid {
		flex-direction: column;
		gap: 28px;
	}
	
	.why-choose-us-card {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.why-choose-us-title-editable,
	.why-choose-us-header-content h2 {
		font-size: 34px;
		line-height: 42px;
		text-align: start;
	}

	.why-choose-us-desc-editable,
	.why-choose-us-header-content p {
		text-align: start;
	}

	.why-choose-us-section {
        padding: 0px 24px 80px 24px;
    }

	.why-choose-us-header-content {
        align-items: flex-start;
    }
}
