/* ITSB Events Hero Header */
.itsb-hero {
	--itsb-blue: #1a8fe8;
	--itsb-blue-2: #0d6fd1;
	--itsb-sky: #6fd0ff;
	--itsb-ink: #07182b;
	--itsb-gutter: clamp(16px, 5vw, 72px);
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-height: clamp(560px, 78vh, 760px);
	width: 100%;
	color: #fff;
	background: radial-gradient(120% 90% at 85% 10%, #1b4f86 0%, #0b2744 45%, var(--itsb-ink) 100%);
	font-family: "Lexend", system-ui, sans-serif;
	overflow: hidden;
	box-sizing: border-box;
}
.itsb-hero *, .itsb-hero *::before, .itsb-hero *::after { box-sizing: border-box; }
.itsb-hero a { color: inherit; text-decoration: none; }
.itsb-hero ul { list-style: none; margin: 0; padding: 0; }
.itsb-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Photo + shading (darker on the left where the text sits, and at the top for the menu) */
.itsb-hero-bg { position: absolute; inset: 0; z-index: -1; }
.itsb-hero-bg picture, .itsb-hero-img { display: block; width: 100%; height: 100%; }
.itsb-hero-img { object-fit: cover; object-position: var(--itsb-hero-focus, center); max-width: none !important; }
.itsb-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(4, 14, 28, .55) 0%, rgba(4, 14, 28, 0) 26%),
		linear-gradient(90deg, rgba(4, 14, 28, calc(var(--itsb-hero-overlay, .55) + .3)) 0%, rgba(4, 14, 28, var(--itsb-hero-overlay, .55)) 38%, rgba(4, 14, 28, calc(var(--itsb-hero-overlay, .55) * .25)) 75%),
		linear-gradient(0deg, rgba(4, 14, 28, .35) 0%, rgba(4, 14, 28, 0) 30%);
}

/* ---------- Bar ---------- */
.itsb-hero-bar {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 22px var(--itsb-gutter);
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
}
.itsb-hero-logo { display: flex; align-items: center; flex: none; }
.itsb-hero-logo img { display: block; height: 40px; width: auto; max-width: 220px; }
.itsb-hero-sitename { font-weight: 700; font-size: 1.4rem; }

.itsb-hero-nav { flex: 1; display: flex; justify-content: center; }
.itsb-hero-nav .itsb-hero-menu { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.itsb-hero-menu > li { position: relative; }
.itsb-hero-menu > li > a {
	display: block;
	padding: 8px 0;
	font-size: .95rem;
	font-weight: 500;
	opacity: .9;
	transition: opacity .2s;
	position: relative;
}
.itsb-hero-menu > li > a:hover { opacity: 1; }
.itsb-hero-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: var(--itsb-blue);
	transform: scaleX(0);
	transition: transform .25s;
}
.itsb-hero-menu > li:hover > a::after,
.itsb-hero-menu > .current-menu-item > a::after,
.itsb-hero-menu > .current-menu-ancestor > a::after,
.itsb-hero-menu > .current_page_item > a::after { transform: scaleX(1); }
.itsb-hero-menu > .current-menu-item > a, .itsb-hero-menu > .current_page_item > a { opacity: 1; }

/* Submenus */
.itsb-hero-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 200px;
	padding: 8px;
	margin-top: 10px;
	background: #fff;
	color: var(--itsb-ink);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(4, 14, 28, .25);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.itsb-hero-nav li:hover > .sub-menu, .itsb-hero-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.itsb-hero-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .9rem; }
.itsb-hero-nav .sub-menu a:hover { background: #eef5fd; }

.itsb-hero-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.itsb-hero-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: background .2s;
}
.itsb-hero-icon:hover { background: rgba(255, 255, 255, .12); }
.itsb-hero-count {
	position: absolute;
	top: 2px; right: 0;
	min-width: 17px; height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--itsb-blue);
	font: 600 10px/17px system-ui, sans-serif;
	text-align: center;
}
.itsb-hero-account { display: flex; align-items: center; gap: 14px; }
.itsb-hero-login { font-size: .95rem; font-weight: 500; padding: 8px 6px; }
.itsb-hero-pill {
	display: inline-flex;
	align-items: center;
	padding: 11px 26px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--itsb-blue), var(--itsb-blue-2));
	font-size: .92rem;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(13, 111, 209, .35);
	transition: transform .2s, box-shadow .2s;
}
.itsb-hero-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13, 111, 209, .45); }

/* Signed-in menu */
.itsb-hero-user { position: relative; }
.itsb-hero-userbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1;
	font-family: inherit;
	cursor: pointer;
	backdrop-filter: blur(6px);
}
.itsb-hero-userbtn .itsb-ico { width: 16px; height: 16px; }
.itsb-hero-avatar img { display: block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.itsb-hero-username { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itsb-hero-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	box-sizing: border-box;
	width: 300px;
	max-width: calc(100vw - 24px);
	margin: 0 !important;
	padding: 8px 10px 10px !important;
	list-style: none !important;
	border: 1px solid #e6e9ef;
	background: #fff;
	color: var(--itsb-ink);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(4, 14, 28, .25);
	z-index: 20;
}
.itsb-hero-dropdown li { margin: 0; padding: 0; list-style: none; }
.itsb-hero-dropdown .itsb-ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.itsb-hero-dropdown a.itsb-dd-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; padding: 12px 12px 14px; border-radius: 10px; text-decoration: none; }
.itsb-hero-dropdown li:has(> .itsb-dd-head) { margin-bottom: 6px; border-bottom: 1px solid #edf0f3; padding-bottom: 6px; }
.itsb-hero-dropdown a.itsb-dd-head:hover { background: #f2f5fa; }
.itsb-hero-dropdown a.itsb-dd-head { margin-bottom: 0; }
.itsb-dd-head .itsb-ico { width: 24px; height: 24px; color: #4b5468; }
.itsb-dd-head span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.itsb-dd-head strong { font-size: 1rem; font-weight: 600; color: var(--itsb-ink); }
.itsb-dd-head small { font-size: .78rem; color: #6b7285; }
.itsb-dd-sep { height: 1px; margin: 6px 4px !important; background: #edf0f3; }
.itsb-hero-dropdown a.itsb-dd-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border-radius: 10px; color: var(--itsb-ink); font-size: .92rem; font-weight: 500; text-decoration: none; }
.itsb-hero-dropdown a.itsb-dd-item:hover { background: #f2f5fa; }
.itsb-hero-dropdown a.itsb-dd-item > .itsb-ico { color: #4b5468; }
.itsb-dd-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.itsb-dd-txt > span { overflow-wrap: anywhere; }
.itsb-dd-txt small { font-size: .76rem; font-weight: 400; color: #6b7285; }
.itsb-dd-badge { flex: none; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
/* Host Dashboard stands out */
.itsb-hero-dropdown a.itsb-dd-item.is-host { padding: 12px; background: #eaf2fe; }
.itsb-hero-dropdown a.itsb-dd-item.is-host:hover { background: #dde9fd; }
.itsb-hero-dropdown a.itsb-dd-item.is-host > .itsb-ico { color: #0073f5; }
.itsb-ico-knock { fill: #eaf2fe; }
.itsb-hero-dropdown a.is-host:hover .itsb-ico-knock { fill: #dde9fd; }
.itsb-dd-go { flex: none; display: inline-flex; color: #0073f5; }
.itsb-dd-go .itsb-ico { width: 16px !important; height: 16px !important; }

.itsb-hero-burger { display: none; }
.itsb-hero-burger .itsb-ico + .itsb-ico { display: none; }
.itsb-hero.is-open .itsb-hero-burger .itsb-ico:first-child { display: none; }
.itsb-hero.is-open .itsb-hero-burger .itsb-ico + .itsb-ico { display: block; }

/* Mobile panel */
.itsb-hero-panel {
	position: relative;
	z-index: 4;
	margin: 0 var(--itsb-gutter);
	padding: 10px;
	border-radius: 18px;
	background: rgba(7, 24, 43, .92);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .1);
}
.itsb-hero-panel[hidden] { display: none; }
.itsb-hero-panel .itsb-hero-menu a { display: block; padding: 13px 12px; border-radius: 10px; font-weight: 500; }
.itsb-hero-panel .itsb-hero-menu a:hover { background: rgba(255, 255, 255, .08); }
.itsb-hero-panel .sub-menu { padding-left: 12px !important; }
.itsb-hero-panel .sub-menu a { font-weight: 400; opacity: .85; padding: 10px 12px; }
.itsb-hero-panel-account { display: flex; gap: 10px; padding: 12px 6px 4px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 6px; align-items: center; }
.itsb-hero-panel-account .itsb-hero-pill { flex: 1; justify-content: center; }
.itsb-hero-panel-account .itsb-hero-user { width: 100%; }
.itsb-hero-panel-account .itsb-hero-userbtn { display: none; }
.itsb-hero-panel-account .itsb-hero-dropdown { display: block; position: static; width: 100%; max-width: none; box-shadow: none; border: 0; background: none; color: #fff; padding: 0 !important; min-width: 0; }
.itsb-hero-panel-account li:has(> .itsb-dd-head) { border-color: rgba(255, 255, 255, .12); }
.itsb-hero-panel-account .itsb-dd-head .itsb-ico, .itsb-hero-panel-account .itsb-dd-head strong { color: #fff; }
.itsb-hero-panel-account .itsb-dd-head small { color: rgba(255, 255, 255, .7); }
.itsb-hero-panel-account a.itsb-dd-head:hover { background: rgba(255, 255, 255, .08); }
.itsb-hero-panel-account .itsb-dd-sep { background: rgba(255, 255, 255, .12); }
.itsb-hero-panel-account a.itsb-dd-item, .itsb-hero-panel-account a.itsb-dd-item > .itsb-ico { color: #fff; }
.itsb-hero-panel-account .itsb-dd-txt small { color: rgba(255, 255, 255, .7); }
.itsb-hero-panel-account a.itsb-dd-item.is-host { background: rgba(0, 115, 245, .22); }
.itsb-hero-panel-account a.itsb-dd-item.is-host > .itsb-ico, .itsb-hero-panel-account .itsb-dd-go { color: #7cc0ff; }
.itsb-hero-panel-account .itsb-ico-knock { fill: #13314f; }
.itsb-hero-panel-account .itsb-hero-dropdown[hidden] { display: block; }
.itsb-hero-panel-account .itsb-hero-dropdown a:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Content ---------- */
.itsb-hero-content {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(28px, 5vh, 60px) var(--itsb-gutter) clamp(96px, 13vh, 140px);
}
.itsb-hero-eyebrow {
	margin: 0 0 18px;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .32em;
	text-transform: uppercase;
	opacity: .85;
}
.itsb-hero-title {
	margin: 0;
	max-width: 13ch;
	color: #fff;
	font-family: inherit;
	font-size: clamp(2.6rem, 6.4vw, 5.4rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.itsb-hero-title span { display: block; }
.itsb-hero-accent {
	background: linear-gradient(100deg, var(--itsb-sky) 0%, #3fb2ff 45%, var(--itsb-blue) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-bottom: .06em;   /* keeps descenders from clipping */
}
.itsb-hero-text {
	margin: 22px 0 0;
	max-width: 34rem;
	font-size: clamp(1rem, 1.35vw, 1.2rem);
	font-weight: 400;
	line-height: 1.55;
	opacity: .9;
}
.itsb-hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.itsb-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 30px;
	border-radius: 999px;
	background: linear-gradient(135deg, #34a8ff 0%, var(--itsb-blue) 45%, var(--itsb-blue-2) 100%);
	color: #fff !important;
	font-size: 1rem;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(13, 111, 209, .45);
	transition: transform .2s, box-shadow .2s;
}
.itsb-hero-btn .itsb-ico { width: 20px; height: 20px; transition: transform .2s; }
.itsb-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(13, 111, 209, .55); }
.itsb-hero-btn:hover .itsb-ico { transform: translateX(3px); }
.itsb-hero-btn2 { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.itsb-hero-btn2-ring {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .7);
	transition: background .2s;
}
.itsb-hero-btn2-ring .itsb-ico { width: 18px; height: 18px; }
.itsb-hero-btn2:hover .itsb-hero-btn2-ring { background: rgba(255, 255, 255, .14); }

.itsb-hero a:focus-visible, .itsb-hero button:focus-visible { outline: 2px solid var(--itsb-sky); outline-offset: 3px; }

/* Content with a picture on the right (Host With Us and other pages) */
.itsb-hero-copy { position: relative; z-index: 2; }
.itsb-hero--media .itsb-hero-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(20px, 3vw, 48px);
}
.itsb-hero-media { position: relative; min-width: 0; }
.itsb-hero-after { margin-top: 26px; }

/* Straight bottom edge */
.itsb-hero--straight .itsb-hero-content { padding-bottom: clamp(72px, 10vh, 110px); }

/* Curved bottom edge */
.itsb-hero-curve {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	width: 100%;
	height: clamp(36px, 6vw, 90px);
	z-index: 3;
	fill: var(--itsb-hero-below, #fff);
	pointer-events: none;
}
.itsb-hero-anchor { display: block; scroll-margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.itsb-hero-nav, .itsb-hero-bar .itsb-hero-account { display: none; }
	.itsb-hero-burger { display: inline-flex; }
}
@media (max-width: 767px) {
	.itsb-hero { min-height: 0; }
	.itsb-hero-bar { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
	.itsb-hero-logo img { height: 32px; max-width: 160px; }
	.itsb-hero-actions { gap: 4px; }
	.itsb-hero-content { padding-top: 48px; padding-bottom: 92px; }
	.itsb-hero-eyebrow { font-size: .68rem; letter-spacing: .24em; margin-bottom: 14px; }
	.itsb-hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
	.itsb-hero-bg::after {
		background:
			linear-gradient(180deg, rgba(4, 14, 28, .5) 0%, rgba(4, 14, 28, calc(var(--itsb-hero-overlay, .55) * .7)) 35%, rgba(4, 14, 28, calc(var(--itsb-hero-overlay, .55) + .25)) 100%);
	}
	.itsb-hero-buttons { margin-top: 26px; }
	.itsb-hero-btn { width: 100%; justify-content: center; }
	.itsb-hero--straight .itsb-hero-content { padding-bottom: 72px; }
}
@media (max-width: 960px) {
	.itsb-hero--media .itsb-hero-content { grid-template-columns: 1fr; }
	.itsb-hero--media .itsb-hero-media { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.itsb-hero * { transition: none !important; }
}

/* Notification bell (from It's Barbados Hosts) */
.itsb-hero-account .itsbn-bell { color: #fff; margin-right: -4px; }
.itsb-hero-account .itsbn-bell:hover { background: rgba(255, 255, 255, .12); }
.itsb-hero-account .itsbn-bell-n { box-shadow: none; }
.itsb-hero-panel-account .itsbn-bell { display: none; }
