/**
 * Unified inner page layout — Firouzeh Design System
 */

/* Back to home — inside sticky header, top-left */
body.firouzeh-brand:not(.home) #masthead {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--fz-bg, #fff);
	isolation: isolate;
}

body.firouzeh-brand:not(.home) #masthead .fz-back-home-wrap {
	position: absolute;
	top: 50%;
	left: 16px;
	right: auto;
	transform: translateY(-50%);
	z-index: 1001;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	pointer-events: none;
}

body.firouzeh-brand .fz-back-home {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--fz-bg, #fff);
	color: var(--fz-primary, #0b1d3a) !important;
	border: 1px solid var(--fz-border, #e2e8f0);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 4px 16px rgba(11, 29, 58, 0.12);
	pointer-events: auto;
	transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body.firouzeh-brand .fz-back-home:hover {
	background: var(--fz-accent-soft, #e6f7f5);
	color: var(--fz-accent, #00a896) !important;
	border-color: var(--fz-accent, #00a896);
}

/* Inner pages — consistent content area */
body.firouzeh-brand:not(.home) .site-content,
body.firouzeh-brand:not(.home) .ast-container,
body.firouzeh-brand:not(.home) .elementor-page {
	background: var(--fz-bg, #fff);
}

body.firouzeh-brand:not(.home) .entry-content,
body.firouzeh-brand:not(.home) .elementor-widget-theme-page-title,
body.firouzeh-brand:not(.home) .elementor-widget-heading .elementor-heading-title {
	color: var(--fz-primary, #0b1d3a);
}

body.firouzeh-brand:not(.home) .elementor-widget-heading h1.elementor-heading-title {
	font-size: clamp(24px, 3vw, 32px) !important;
	font-weight: 700 !important;
	margin-bottom: 16px !important;
	text-align: center !important;
}

body.firouzeh-brand:not(.home) .elementor-section,
body.firouzeh-brand:not(.home) .e-con {
	max-width: 100%;
}

body.firouzeh-brand:not(.home) .elementor-widget-text-editor,
body.firouzeh-brand:not(.home) .elementor-widget-text-editor p {
	line-height: 1.9 !important;
	color: var(--fz-text, #1e293b) !important;
}

/* Image boxes (replaced flip-box cards) */
body.firouzeh-brand .elementor-widget-image-box .elementor-image-box-img img {
	border-radius: 12px;
	object-fit: cover;
	width: 100%;
	height: 220px;
}

body.firouzeh-brand .elementor-widget-image-box .elementor-image-box-title {
	color: var(--fz-primary, #0b1d3a) !important;
	font-weight: 700 !important;
}

body.firouzeh-brand .elementor-widget-image-box .elementor-image-box-wrapper {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(11, 29, 58, 0.08);
	padding: 16px;
	transition: transform 0.2s, box-shadow 0.2s;
}

body.firouzeh-brand .elementor-widget-image-box .elementor-image-box-wrapper:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(11, 29, 58, 0.14);
}

/* Unified buttons on inner pages */
body.firouzeh-brand:not(.home) .elementor-button {
	background-color: var(--fz-accent, #00a896) !important;
	border-color: var(--fz-accent, #00a896) !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

body.firouzeh-brand:not(.home) .elementor-button:hover {
	background-color: var(--fz-accent-hover, #008f7f) !important;
}

@media (max-width: 768px) {
	body.firouzeh-brand:not(.home) #masthead .fz-back-home-wrap {
		top: auto;
		bottom: 8px;
		left: 8px;
		transform: none;
	}

	body.firouzeh-brand .fz-back-home {
		padding: 8px 12px;
		font-size: 12px;
	}
}
