/**
 * Blog Archive: Happy Addons Post Tab cards (.blogTabs).
 * Colors & typography use Elementor Site Settings globals (Kit).
 * Change once in Elementor → Site Settings → Global Colors / Typography.
 */

.blogTabs {
	--fixafib-card-image-height: 220px;
}

.blogTabs .ha-post-tab-item-wrapper.active {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
	visibility: visible !important;
	height: auto !important;
	opacity: 1 !important;
	overflow:visible;
}

.blogTabs .ha-post-tab-item {
	display: flex;
	align-items: stretch;
}

.blogTabs .ha-post-tab-item-inner {
	background-color: var(--e-global-color-cb6da34);
	border-radius: 16px;
	box-shadow: 0 12px 24px color-mix(in srgb, var(--e-global-color-primary) 10%, transparent);
	overflow: hidden;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	justify-content: space-between;
}

.blogTabs .ha-post-tab-thumb {
	position: relative;
	display: block;
	width: 100%;
	height: var(--fixafib-card-image-height) !important;
	min-height: var(--fixafib-card-image-height) !important;
	max-height: var(--fixafib-card-image-height) !important;
	overflow: hidden;
	margin: 0 !important;
	border-radius: 16px 16px 0 0;
	flex: 0 0 var(--fixafib-card-image-height);
	flex-shrink: 0;
}

.blogTabs .ha-post-tab-thumb img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 0 !important;
}

.blogTabs .ha-post-tab-title {
	margin: 0;
	padding: 24px 24px 0;
	flex: 0 0 auto;
	box-sizing: border-box;
}

.blogTabs .ha-post-tab-title a {
	color: var(--e-global-color-secondary);
	font-family: var(--e-global-typography-typo_h5-font-family), Helvetica, Arial, sans-serif;
	font-size: var(--e-global-typography-typo_h5-font-size);
	font-weight: var(--e-global-typography-typo_h5-font-weight);
	line-height: var(--e-global-typography-typo_h5-line-height);
	letter-spacing: var(--e-global-typography-typo_h5-letter-spacing);
	text-decoration: none;
	display: block;
}

.blogTabs .ha-post-tab-title a:hover {
	color: var(--e-global-color-primary);
}

.blogTabs .ha-post-tab-excerpt {
	margin: 12px 0 0;
	padding: 0 24px;
	flex: 0 0 auto;
	box-sizing: border-box;
}

.blogTabs .ha-post-tab-excerpt p {
	margin: 0;
	color: var(--e-global-color-secondary);
	font-family: var(--e-global-typography-typo_p2-font-family), Helvetica, Arial, sans-serif;
	font-size: var(--e-global-typography-typo_p2-font-size);
	font-weight: var(--e-global-typography-typo_p2-font-weight);
	line-height: var(--e-global-typography-typo_p2-line-height);
	letter-spacing: var(--e-global-typography-typo_p2-letter-spacing);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	max-height: calc(var(--e-global-typography-typo_p2-line-height) * 2);
}

.blogTabs .ha-post-tab-read-more {
	padding: 16px 0 24px;
	border-top: 1px solid color-mix(in srgb, var(--e-global-color-text) 35%, transparent);
	flex-shrink: 0;
	margin-top: 16px;
}

.blogTabs .ha-post-tab-read-more a {
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-typo_h6-font-family), Helvetica, Arial, sans-serif;
	font-size: var(--e-global-typography-typo_h6-font-size);
	font-weight: var(--e-global-typography-typo_h6-font-weight);
	line-height: var(--e-global-typography-typo_h6-line-height);
	letter-spacing: var(--e-global-typography-typo_h6-letter-spacing);
	text-decoration: none;
	border-bottom: 1px solid var(--e-global-color-primary);
	padding-bottom: 2px;
	display: inline-block;
}

.blogTabs .ha-post-tab-read-more a:hover {
	color: var(--e-global-color-clr_red_hover);
	border-bottom-color: var(--e-global-color-clr_red_hover);
}

@media (max-width: 1024px) {
	.blogTabs {
		--fixafib-card-image-height: 200px;
	}
}

@media (max-width: 767px) {
	.blogTabs {
		--fixafib-card-image-height: 180px;
	}

	.blogTabs .ha-post-tab-item-inner {
		border-radius: 12px;
	}

	.blogTabs .ha-post-tab-thumb {
		border-radius: 12px 12px 0 0;
	}

	.blogTabs .ha-post-tab-title {
		padding: 16px 16px 0;
	}

	.blogTabs .ha-post-tab-excerpt {
		padding: 0 16px;
	}

	.blogTabs .ha-post-tab-read-more {
		padding: 12px 0 12px;
	}
}

.blogTabs .fixafib-ha-post-tab-load-more {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	display: none;
	justify-content: center;
	padding: 8px 0 32px;
	box-sizing: border-box;
}

.blogTabs .fixafib-ha-post-tab-load-more.is-visible {
	display: flex;
}

.blogTabs .fixafib-ha-post-tab-load-more-btn,
.blogTabs .fixafib-ha-post-tab-load-more-btn .elementor-button-text {
	color: var(--e-global-color-012b60b);
}

.blogTabs .fixafib-ha-post-tab-load-more-btn:hover:not(:disabled),
.blogTabs .fixafib-ha-post-tab-load-more-btn:hover:not(:disabled) .elementor-button-text,
.blogTabs .fixafib-ha-post-tab-load-more-btn:focus:not(:disabled),
.blogTabs .fixafib-ha-post-tab-load-more-btn:focus:not(:disabled) .elementor-button-text {
	color: var(--e-global-color-012b60b);
}

.blogTabs .fixafib-ha-post-tab-load-more-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

@media (min-width: 1201px) {
	.blogTabs button.elementor-button.elementor-size-sm.fixafib-ha-post-tab-load-more-btn {
		padding: 15px 32px;
	}
}
