/* Fallback minim (Enfold face majoritatea styling-ului) */
.rofma-av-grid {
	margin: 0 0 24px 0;
}

.rofma-members-empty {
	padding: 14px;
}

.rofma-layout-logos .flex_cell_inner {
	padding: 10px;
}

/* Card internal layout (text + logo in same cell) - Updated to match reference */
.rofma-layout-cards .flex_cell_inner {
	padding: 40px 35px 35px 35px;
	background: #ffffff;
	border: 1px solid #e1e1e1;
}

.rofma-card-wrap {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
}

/* Left side - company name and details */
.rofma-card-left {
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #f8f8f8;
	padding: 30px 25px;
	border-radius: 0;
}

/* Company name styling - smaller, more compact */
.rofma-card-left .rofma-av-heading h2 {
	font-size: 20px !important;
	line-height: 1.35 !important;
	color: #999999 !important;
	font-weight: 300 !important;
	margin-bottom: 12px !important;
	letter-spacing: 0.3px !important;
}

/* Decorative line under company name - thinner and shorter */
.rofma-card-left .special-heading-border {
	width: 50px;
	margin: 0 auto 18px auto;
}

.rofma-card-left .special-heading-border .special-heading-inner-border {
	border-top: 1px solid #333333;
}

/* Hide the HR element */
.rofma-card-left .rofma-av-hr {
	display: none;
}

/* Role and term text - reddish brown color */
.rofma-card-left .rofma-av-text {
	margin-bottom: 12px;
}

.rofma-card-left .rofma-av-text p {
	font-size: 13px !important;
	line-height: 1.6 !important;
	color: #77574d !important;
	margin: 0 !important;
	font-weight: 400 !important;
}

/* Website icon - improved visibility */
.rofma-av-icon {
	display: block;
	margin-top: 8px;
	font-size: 22px;
}

.rofma-av-icon a {
	color: #888888 !important;
	text-decoration: none;
	transition: color 0.3s ease;
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
}

.rofma-av-icon a:hover {
	color: #333333 !important;
}

/* Ensure icon character is visible */
.rofma-av-icon a:before {
	content: attr(data-av_icon);
	font-family: 'entypo-fontello';
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Right side - logo */
.rofma-card-logo {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	padding: 30px 25px;
}

.rofma-card-logo img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Remove extra margins from Enfold elements */
.rofma-card-logo .rofma-av-logo {
	margin: 0;
}

/* positions */
.rofma-card-pos-left .rofma-card-wrap {
	flex-direction: row-reverse;
}

.rofma-card-pos-top .rofma-card-wrap {
	flex-direction: column;
	align-items: center;
}

.rofma-card-pos-bottom .rofma-card-wrap {
	flex-direction: column-reverse;
	align-items: center;
}

/* In stacked modes, let logo take reasonable width */
.rofma-card-pos-top .rofma-card-logo,
.rofma-card-pos-bottom .rofma-card-logo {
	max-width: 60%;
}

/* responsive */
@media (max-width: 989px) {
	.rofma-card-wrap {
		flex-direction: column !important;
		align-items: center;
	}

	.rofma-card-left {
		min-width: 0;
		width: 100%;
	}

	.rofma-card-logo {
		max-width: 70% !important;
	}

	.rofma-layout-cards .flex_cell_inner {
		padding: 30px 20px 25px 20px;
	}
}

@media (max-width: 767px) {
	.rofma-card-left .rofma-av-heading h2 {
		font-size: 17px !important;
	}

	.rofma-card-logo {
		max-width: 85% !important;
	}
}