/*
 * Styles for Banking Hero Section Block
 */

.homepage-hero {
	padding: 20px 24px 0 24px;
	background: radial-gradient(100% 100% at 50% 0%, rgba(35, 66, 200, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
	/* overflow: hidden; */
}

.hero-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

.hero-text-content {
	flex: 1;
	max-width: 620px;
	text-align: left;
}

/* Hero Heading: Public Sans, 70px Medium, line-height 75, letter-spacing -3% */
.hero-heading-editable,
.hero-text-content h1 {
	font-family: 'Public Sans', sans-serif;
	font-weight: 500;
	font-size: 70px;
	line-height: 75px;
	letter-spacing: -0.03em;
	color: #0F172A;
	margin-bottom: 20px;
	/* Spacing between heading and description is 20px */
}

/* Banking word linear gradient: top to bottom 0E2795 to 0131FF (50%) */
.gradient-text {
	background: linear-gradient(180deg, #0E2795 0%, rgba(1, 49, 255, 0.5) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: inline;
}

/* Description Text: Nunito Regular (400), 16px, line-height 25, letter-spacing 2% */
.hero-desc-editable,
.hero-text-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: 36px;
	/* Spacing between description and buttons is 36px */
	max-width: 540px;
}

/* Buttons actions container: gap 10px */
.hero-actions-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Primary Button Styling */
.btn-primary {
	padding: 4px 4px 4px 20px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border-radius: 100px;
	font-family: var(--font-nunito);
	font-size: 16px;
	color: var(--white);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), var(--primary-color);
	box-shadow: 0 4px 14px 0 rgba(35, 66, 200, 0.35);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
	cursor: pointer;
	text-decoration: none;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(35, 66, 200, 0.45);
	filter: brightness(1.05);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 3px 8px 0 rgba(35, 66, 200, 0.3);
}

.btn-primary-arrow-circle {
	width: 52px;
	height: 45px;
	background-color: var(--white);
	border-radius: 23px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--transition-smooth);
}

.btn-primary:hover .btn-primary-arrow-circle {
	transform: translateX(2px);
}

.hero-graphic {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-graphic img {
	max-width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.06));
	border-radius: 12px;
}

/* ==========================================
   Gutenberg Editor Styling (Hero Specific)
   ========================================== */
.hero-block-editor-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero-editor-controls-panel {
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
	padding: 20px;
	margin-bottom: 24px;
	border-radius: 6px;
}

.hero-editor-controls-panel h3 {
	margin-top: 0;
	margin-bottom: 16px;
	color: #0f172a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 8px;
}

.hero-editor-controls-panel .control-group {
	margin-bottom: 16px;
}

.hero-editor-controls-panel label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #475569;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
}

.hero-editor-controls-panel .control-group .rich-text,
.hero-editor-controls-panel .control-group [contenteditable] {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	padding: 10px 14px;
	border-radius: 4px;
	min-height: 40px;
	font-family: inherit;
	color: #1e293b;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hero-editor-controls-panel .control-group [contenteditable]:focus {
	border-color: var(--primary-color);
	outline: none;
	box-shadow: 0 0 0 1px var(--primary-color);
}

.hero-editor-controls-panel .media-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.editor-preview-label {
	font-weight: 800;
	color: #94a3b8;
	font-size: 11px;
	letter-spacing: 1px;
	margin-bottom: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: block;
}

/* ==========================================
   Responsive Queries
   ========================================== */

@media (max-width: 1100px) {
	.hero-heading-editable,
	.hero-text-content h1 {
		font-size: 56px;
		line-height: 62px;
	}
	.hero-container {
		gap: 30px;
	}
}

@media (max-width: 1024px) {
	/* Responsiveness: Stack content columns */
	.hero-container {
		flex-direction: column-reverse;
		text-align: center;
		/* padding: 40px 0; */
		 gap: 0px;
	}
	
	.hero-text-content {
		max-width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.hero-heading-editable,
	.hero-text-content h1 {
		font-size: 48px;
		line-height: 54px;
		text-align: center;
	}
	
	.hero-text-content p {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
	
	.hero-graphic {
		margin-bottom: 20px;
	}

	.hero-graphic img {
		max-width: 40%;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.hero-container {
        gap: 0px;
    }

	.hero-heading-editable,
	.hero-text-content h1 {
		font-size: 40px;
		line-height: 44px;
		letter-spacing: -0.02em;
		text-align: center;
	}

	.hero-desc-editable{
		text-align: center;
	}
	
	.hero-graphic img {
		max-width: 100%;
		margin: 0 auto;
	}

	.hero-graphic{
		/* margin-bottom: 0; */
	}

	.hero-actions-container {
		flex-direction: column;
		width: 100%;
		gap: 12px;
	}
	
	.btn-primary {
		/* width: 100%; */
		justify-content: center;
	}

	.hero-actions-container .btn-secondary{
		    width: fit-content;
			padding: 13px 55px;
	}
}
