/**
 * Visual Header Builder Frontend Stylesheet
 *
 * @package Mrteamwork_Theme
 */

/* Header Root */
.hb-header-root {
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	z-index: 1000;
	background: var(--mtw-header-bg, #ffffff);
	transition: all 0.3s ease;
}

.hb-header-root.hb-has-shadow {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hb-header-root.hb-transparent-header {
	position: absolute;
	top: 0;
	left: 0;
	background: transparent !important;
}

/* Rows Styling */
.hb-row {
	width: 100%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: background 0.2s ease, padding 0.2s ease;
}

.hb-row-topbar {
	font-size: 13px;
	background: #f8fafc;
	color: #334155;
	padding: 8px 0;
}

.hb-row-main {
	padding: 16px 0;
	background: #ffffff;
}

.hb-row-bottombar {
	font-size: 14px;
	padding: 10px 0;
	background: #ffffff;
}

.hb-row-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

/* Column Grid */
.hb-col {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hb-col-left {
	justify-content: flex-start;
}

.hb-col-center {
	justify-content: center;
	flex: 1;
}

.hb-col-right {
	justify-content: flex-end;
}

/* Element Base Styling */
.hb-element {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* --- NAVIGATION MENU FIXES (NO BULLETS & HORIZONTAL FLEX) --- */
.hb-nav-menu,
.hb-primary-menu,
.hb-secondary-menu,
.hb-tertiary-menu {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 24px !important;
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hb-nav-menu ul,
.hb-nav-menu ol {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hb-nav-menu li {
	display: inline-flex !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	list-style-type: none !important;
	position: relative !important;
}

.hb-nav-menu li::before,
.hb-nav-menu li::after {
	content: none !important;
	display: none !important;
}

.hb-nav-menu a {
	display: inline-flex !important;
	align-items: center !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	color: #1e293b !important;
	padding: 6px 0 !important;
	transition: color 0.2s ease !important;
}

.hb-nav-menu a:hover {
	color: var(--primary-color, #8D3497) !important;
}

/* --- TOPBAR ELEMENTS & SOCIAL LINKS FIXES --- */
.hb-row-topbar .social-links {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hb-row-topbar .social-link {
	color: #475569 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

.hb-row-topbar .social-link:hover {
	color: var(--primary-color, #8D3497) !important;
}

.hb-row-topbar .social-link svg {
	fill: currentColor !important;
	stroke: currentColor !important;
	width: 1.1em !important;
	height: 1.1em !important;
	display: block !important;
}

.hb-date-time {
	color: #475569;
	font-weight: 600;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hb-news-ticker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	color: #334155;
}

.hb-news-ticker .ticker-badge {
	background: var(--primary-color, #8D3497);
	color: #ffffff;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

/* Vertical & Horizontal Line Dividers */
.hb-divider-v {
	display: inline-block;
	width: 1px;
	height: 20px;
	background-color: #cbd5e1;
}

.hb-divider-h {
	display: block;
	width: 100%;
	height: 1px;
	background-color: #cbd5e1;
}

/* Action Buttons & Presets */
.hb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
}

.hb-btn-solid {
	background: linear-gradient(135deg, var(--primary-color, #8D3497) 0%, var(--accent-color, #1F10BF) 100%);
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(141, 52, 151, 0.25);
}

.hb-btn-solid:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(141, 52, 151, 0.35);
}

.hb-btn-outline {
	background: transparent;
	border: 2px solid var(--primary-color, #8D3497);
	color: var(--primary-color, #8D3497) !important;
}

.hb-btn-outline:hover {
	background: var(--primary-color, #8D3497);
	color: #ffffff !important;
}

.hb-btn-flat {
	background: #f1f5f9;
	color: #1e293b !important;
}

.hb-btn-flat:hover {
	background: #e2e8f0;
}

/* Search Icon Button */
.hb-search-icon-btn {
	border: none;
	background: transparent;
	font-size: 18px;
	color: #1e293b;
	cursor: pointer;
	padding: 6px;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hb-search-icon-btn:hover {
	color: var(--primary-color, #8D3497);
}

/* Sticky Header Row */
.hb-sticky-header-row {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/* --- MOBILE OFF-CANVAS DRAWER --- */
.hb-mobile-offcanvas-drawer {
	position: fixed;
	top: 0;
	left: -320px;
	width: 300px;
	height: 100vh;
	background: #ffffff;
	z-index: 999999;
	box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
	transition: left 0.3s ease;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
}

.hb-mobile-offcanvas-drawer.is-open {
	left: 0;
}

.hb-mobile-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 14px;
}

.hb-mobile-drawer-close {
	border: none;
	background: transparent;
	font-size: 20px;
	color: #64748b;
	cursor: pointer;
}

.hb-mobile-drawer-body ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hb-mobile-drawer-body li {
	position: relative;
	border-bottom: 1px solid #f1f5f9;
}

.hb-mobile-drawer-body li a {
	display: block;
	padding: 12px 0;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
}

.hb-submenu-toggle {
	position: absolute;
	right: 0;
	top: 8px;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 14px;
	padding: 8px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.hb-submenu-toggle.active {
	transform: rotate(180deg);
}

.hb-mobile-drawer-body .sub-menu {
	display: none;
	padding-left: 14px;
	border-top: 1px solid #f8fafc;
	background: #f8fafc;
	border-radius: 6px;
}

/* --- SEARCH OVERLAY POPUP MODAL --- */
.hb-search-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hb-search-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.hb-search-modal-box {
	position: relative;
	width: 90%;
	max-width: 600px;
	background: #ffffff;
	padding: 32px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.hb-search-modal-overlay.is-open .hb-search-modal-box {
	transform: scale(1);
}

.hb-search-modal-close {
	position: absolute;
	top: 16px;
	right: 20px;
	border: none;
	background: transparent;
	font-size: 28px;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
}

.hb-search-input-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid #8D3497;
	padding-bottom: 8px;
}

.hb-search-modal-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 18px;
	color: #0f172a;
	background: transparent;
}

.hb-search-modal-submit {
	border: none;
	background: #8D3497;
	color: #ffffff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.hb-search-modal-submit:hover {
	background: #1F10BF;
}

/* Viewport Responsiveness Breakpoints */
@media (min-width: 1025px) {
	.hb-desktop-layout { display: block; }
	.hb-tablet-layout, .hb-mobile-layout { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.hb-tablet-layout { display: block; }
	.hb-desktop-layout, .hb-mobile-layout { display: none; }
}

@media (max-width: 767px) {
	.hb-mobile-layout { display: block; }
	.hb-desktop-layout, .hb-tablet-layout { display: none; }
}
