.t4-builder-home,
.t4-builder-header,
.t4-builder-footer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.t4-header-builder-row,
.t4-footer-builder-row {
	width: 100%;
}

.t4-header-builder-row > .row {
	align-items: center;
}

.t4-widget-logo__img {
	display: block;
	max-height: 48px;
	width: auto;
	height: auto;
	max-width : 100%
}

.t4-widget-logo__caption {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.85;
}

.t4-widget-links__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.t4-widget-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.t4-widget-links__list li + li {
	margin-top: 0.35rem;
}

.t4-widget-links__list a {
	text-decoration: none;
}

.t4-widget-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex-wrap: wrap;
}

/* Mobile: < 768px */
@media (max-width: 767.98px) {
	.t4-hide-mobile {
		display: none !important;
	}
}

/* Tablet: 768px – 991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
	.t4-hide-tablet {
		display: none !important;
	}
}

/* Desktop / PC: ≥ 992px */
@media (min-width: 992px) {
	.t4-hide-desktop {
		display: none !important;
	}
}

.t4-widget-banner__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

.t4-widget-banner__link {
	display: block;
}

.t4-widget-text__body {
	font-size: 1rem;
	line-height: 1.6;
	color: #1e293b;
}

.t4-widget-text__body h1,
.t4-widget-text__body h2,
.t4-widget-text__body h3 {
	margin-top: 0;
}

.t4-widget--hook {
	min-height: 0;
}

/* main_menu hook: horizontal nav (module outputs bare <li>) */
.t4-widget-menu,
.t4-builder-header .t4-nav-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.t4-widget-menu > li,
.t4-builder-header .t4-nav-list > li {
	flex: 0 0 auto;
	list-style: none;
	margin: 0;
}

.t4-widget-menu > li > a,
.t4-builder-header .t4-nav-list > li > a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.t4-widget-menu > li > a:hover,
.t4-widget-menu > li > a.active,
.t4-widget-menu > li > a.is-active {
	background: var(--primary-light, #eff6ff);
	color: var(--primary, #2563eb);
}
