/*
 * Site-wide fixes for Elementor theme parts (loaded on every page; keep it small).
 */

/* ---------- Header mega menu (#11996, widget e758609) ----------
 * Between the hamburger breakpoint (1024px) and ~1280px the six top-level items
 * (18px text + 16px side padding = ~870px) don't fit the ~750px menu area, so "Company"
 * and "Pricing" wrap to a second row and "Book a Demo" sits between the rows.
 * Keep one row and vertically centred by tightening padding/size in that range. */
@media (min-width: 1025px) and (max-width: 1279px) {
	.elementor-location-header .elementor-widget-n-menu .e-n-menu-heading {
		flex-wrap: nowrap !important;
		align-items: center;
	}
	.elementor-location-header .elementor-widget-n-menu .e-n-menu-title {
		padding: 8px 10px !important;
		white-space: nowrap;
	}
	.elementor-location-header .elementor-widget-n-menu .e-n-menu-title-text {
		font-size: 16px !important;
	}
}
@media (min-width: 1025px) and (max-width: 1150px) {
	.elementor-location-header .elementor-widget-n-menu .e-n-menu-title { padding: 8px 7px !important; }
	.elementor-location-header .elementor-widget-n-menu .e-n-menu-title-text { font-size: 15px !important; }
}
/* Items and the CTA button share one vertical centre line at every width. */
.elementor-location-header .elementor-widget-n-menu .e-n-menu-heading,
.elementor-location-header .elementor-widget-n-menu .e-n-menu-item,
.elementor-location-header .elementor-widget-n-menu .e-n-menu-title { align-items: center; }

/* ---------- Feedback batch: shared components ---------- */
/* Two-column grid container (class isi-grid-2), e.g. "Where Webex Control Hub Reporting Falls Short". */
.e-con.isi-grid-2 {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 767px) { .e-con.isi-grid-2 { grid-template-columns: 1fr; } }
/* Compact card (icon-box with class isi-mini-card). */
.isi-mini-card {
	background: #edeef5;
	border-radius: 20px;
	padding: 18px 20px;
	height: 100%;
}
.isi-mini-card .elementor-icon-box-wrapper { align-items: flex-start; }
.isi-mini-card .elementor-icon-box-icon { margin-top: 3px; }
.isi-mini-card .elementor-icon-box-title { margin: 0 0 4px; }
.isi-mini-card .elementor-icon-box-description { margin: 0; }
/* Lists inside dark tab panels. */
.isi-tab-text ul { margin: 0; padding-left: 1.2em; }
.isi-tab-text li { margin-bottom: 10px; }
.isi-tab-text li::marker { color: #00dbb7; }
.isi-mini-card--white { background: #fff; padding: 24px 26px; }
@media (min-width: 1025px) { .e-con.isi-grid-2.isi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Text links inside Elementor copy: brand blue (Hello reset shows #c36 pink). */
.elementor-widget-text-editor a:not(.elementor-button) { color: #3b55f6; }
.elementor-widget-text-editor a:not(.elementor-button):hover { color: #2b44d9; }
/* On dark panels (tab content, dark heroes/CTAs) use the light teal accent instead. */
.isi-tab-text a:not(.elementor-button),
.e-n-tabs-content .elementor-widget-text-editor a:not(.elementor-button) { color: #00dbb7; }
/* =====================================================================================
   Banner gradient shape — one component for every hero/CTA (Figma "Hero Banner dark Option"
   vector 140:47 and CTA vector 1903:1378).

   Previously each section used a bitmap of the shape as its background at "contain"/right.
   A fixed-aspect bitmap can't follow sections of varying height: on tall heroes it widened
   and slid under the text, on short ones it left gaps. Here the shape is drawn, not scaled:
     - left edge: the Figma path's 160px slanted/rounded edge as an SVG mask, stretched only
       vertically, so the edge curve and slant are the same at every width;
     - body: a plain rectangle filling the rest, any width;
     - colour: CSS gradient (Figma stops), so it's crisp at any size and needs no image.
   The layer starts in the gap before the image column (assets/js/isi-shape.js measures the real
   column split per breakpoint and sets --isi-shape-left; CSS default 50% − 10px), spans the full section height and bleeds
   off the right edge — as in Figma. On phones it sits behind the image column only.

   Markup: section container classes "isi-shape-right" + one variant:
     isi-shape--hero (purple → blue)  ·  isi-shape--cta (teal → purple → blue)  ·  isi-shape--blue (blue → purple)
   The section keeps its old background image in Elementor (hidden here) as a fallback/reference.
   ===================================================================================== */
.e-con.isi-shape-right {
	--isi-shape-gradient: linear-gradient(90deg, #9d42e6 0%, #3b55f6 74.5%);
	--isi-shape-edge: url("../img/isi-shape-edge.svg");
	--isi-shape-left: calc(50% - 10px); /* middle of the 20px column gap: the slant then only moves away from the text */
	background-image: none !important;
	position: relative;
	overflow: hidden;
}
.e-con.isi-shape-right.isi-shape--cta { --isi-shape-gradient: linear-gradient(90deg, #00dbb7 0%, #9d42e6 47.1%, #3b55f6 89.4%); }
.e-con.isi-shape-right.isi-shape--blue { --isi-shape-gradient: linear-gradient(90deg, #3b55f6 40%, #7b47e9 100%); }

.e-con.isi-shape-right::after,
.e-con.isi-shape-right .isi-shape-host::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
	background: var(--isi-shape-gradient);
	-webkit-mask-image: var(--isi-shape-edge), linear-gradient(#000, #000);
	        mask-image: var(--isi-shape-edge), linear-gradient(#000, #000);
	-webkit-mask-size: 160px 100%, calc(100% - 159px) 100%;
	        mask-size: 160px 100%, calc(100% - 159px) 100%;
	-webkit-mask-position: 0 0, 100% 0;
	        mask-position: 0 0, 100% 0;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;
}
.e-con.isi-shape-right::after { top: 0; right: 0; bottom: 0; left: var(--isi-shape-left); }
.e-con.isi-shape-right > .e-con-inner,
.e-con.isi-shape-right > .e-con,
.e-con.isi-shape-right > .elementor-widget { position: relative; z-index: 1; }

/* Phones: columns stack — draw the shape behind the image column only, never behind the text. */
@media (max-width: 767px) {
	.e-con.isi-shape-right::after { display: none; }
	.e-con.isi-shape-right .isi-shape-host { position: relative; padding-top: 24px !important; padding-bottom: 24px !important; }
	.e-con.isi-shape-right .isi-shape-host::after { top: 0; bottom: 0; left: 8%; right: -20px; }
	.e-con.isi-shape-right .isi-shape-host > * { position: relative; z-index: 1; }
}

/* ---------- Office Hours: "Newest Office Hours" topic list (Figma 1315:1502) ---------- */
.isi-oh-topics > .isi-oh-topic {
	padding: 24px 0 !important;
	border-bottom: 1px solid #c9ccd6;
	text-decoration: none;
	color: inherit;
	align-items: flex-start;
}
.isi-oh-topics > .isi-oh-topic:first-child { padding-top: 0 !important; }
.isi-oh-topic .isi-oh-topic__thumb { flex: 0 0 143px; width: 143px !important; max-width: 143px; }
.isi-oh-topic .isi-oh-topic__thumb img { width: 143px; height: 89px; object-fit: cover; border-radius: 6px; display: block; }
.isi-oh-topic .isi-oh-topic__body { flex: 1 1 auto; min-width: 0; }
.isi-oh-topic .elementor-widget-text-editor p { margin: 0; }
.isi-oh-topic .isi-oh-topic__title .elementor-heading-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.isi-oh-topic .isi-oh-topic__title .elementor-heading-title::after {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	margin-top: 10px;
	background: #3b55f6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.3 3.3l6.7 6.7-6.7 6.7-1.4-1.4 4.3-4.3H2V9h12.2L9.9 4.7z'/%3E%3C/svg%3E") no-repeat center / contain;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.3 3.3l6.7 6.7-6.7 6.7-1.4-1.4 4.3-4.3H2V9h12.2L9.9 4.7z'/%3E%3C/svg%3E") no-repeat center / contain;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity .2s, transform .2s;
}
.isi-oh-topic:hover .isi-oh-topic__title .elementor-heading-title,
.isi-oh-topic:focus-visible .isi-oh-topic__title .elementor-heading-title { color: #3b55f6; }
.isi-oh-topic:hover .isi-oh-topic__title .elementor-heading-title::after,
.isi-oh-topic:focus-visible .isi-oh-topic__title .elementor-heading-title::after { opacity: 1; transform: none; }
.isi-oh-featured { display: block; border-radius: 15px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.isi-oh-featured:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34, 38, 49, .18); }
@media (max-width: 767px) {
	.isi-oh-topic .isi-oh-topic__thumb { flex-basis: 96px; width: 96px !important; max-width: 96px; }
	.isi-oh-topic .isi-oh-topic__thumb img { width: 96px; height: 60px; }
	.isi-oh-topic .isi-oh-topic__title .elementor-heading-title::after { opacity: 1; transform: none; margin-top: 4px; }
}

/* ---------- Video popup (links with class isi-video-popup; assets/js/isi-video-popup.js) ---------- */
.isi-vmodal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.isi-vmodal[hidden] { display: none; }
.isi-vmodal__backdrop { position: absolute; inset: 0; background: rgba(15, 17, 24, .82); }
.isi-vmodal__panel { position: relative; width: min(960px, 100%); }
.isi-vmodal__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: calc(100vh - 96px); background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
@supports not (aspect-ratio: 16 / 9) { .isi-vmodal__frame { height: 0; padding-top: 56.25%; } }
.isi-vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Close button: icon-only, beats the Elementor kit / Hello global button styles (padding, colours, focus bg). */
.isi-vmodal .isi-vmodal__panel button.isi-vmodal__close {
	position: absolute;
	top: -52px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #222631 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s, color .15s, transform .15s;
}
.isi-vmodal .isi-vmodal__panel button.isi-vmodal__close svg { display: block; width: 18px; height: 18px; }
.isi-vmodal .isi-vmodal__panel button.isi-vmodal__close:hover { background: #3b55f6 !important; color: #fff !important; transform: scale(1.06); }
.isi-vmodal .isi-vmodal__panel button.isi-vmodal__close:focus { outline: none; }
.isi-vmodal .isi-vmodal__panel button.isi-vmodal__close:focus-visible { outline: 3px solid #00dbb7 !important; outline-offset: 3px; }
html.isi-vmodal-open { overflow: hidden; }
@media (max-width: 767px) {
	.isi-vmodal { padding: 12px; }
	.isi-vmodal__frame { border-radius: 8px; }
	.isi-vmodal .isi-vmodal__panel button.isi-vmodal__close { top: -48px; width: 36px; height: 36px; }
	/* Landscape phones: fit by height */
	@media (orientation: landscape) { .isi-vmodal__panel { width: min(100%, calc((100vh - 70px) * 16 / 9)); } }
}

/* Native vs ISI strip inside dark tab panels (Teams CDR "Go beyond what Teams Admin Center can show you" tabs). */
.isi-nvi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 16px; }
.isi-nvi__col { padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); }
.isi-nvi__col--native { background: rgba(255, 255, 255, 0.04); }
.isi-nvi__col--isi { background: rgba(59, 85, 246, 0.18); border-color: rgba(91, 112, 255, 0.55); }
.isi-nvi__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.isi-nvi__col--isi .isi-nvi__label { color: #8fa0ff; }
.isi-nvi .isi-nvi__col p { margin: 0; font-size: 16px; line-height: 1.5; color: #fff; }
.isi-nvi__col--native p { color: rgba(255, 255, 255, 0.78) !important; }
.isi-nvi-wrap .isi-nvi__note { margin: 0; font-size: 17px; line-height: 1.55; color: #fff; }
@media (max-width: 767px) {
	.isi-nvi { grid-template-columns: 1fr; gap: 10px; }
	.isi-nvi__col { padding: 14px 16px; }
	.isi-nvi-wrap .isi-nvi__note { font-size: 16px; }
}

/* Data tables inside blog/post content and text blocks: scroll inside their own box on phones/tablets instead of widening the page. */
@media (max-width: 1024px) {
	.elementor-widget-theme-post-content table,
	.elementor-widget-text-editor table,
	.isi-legacy .entry-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Flex columns that hold a carousel must be allowed to shrink, or Swiper widens the page (Teams Queue Analytics testimonials). */
.elementor-element-38c5d24,
.elementor-element-374581b { min-width: 0; }

/* Help-centre (BetterDocs) tables: scroll inside the article on phones. */
@media (max-width: 767px) {
	.betterdocs-entry-content .responsive-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.betterdocs-entry-content table { max-width: none; }
}
/* ...and the testimonial section clips anything the slider pushes past the screen edge. */
.elementor-element-991c695 { overflow-x: clip; }
.elementor-element-374581b { max-width: 100%; box-sizing: border-box; }

/* Image Hover Effects Ultimate cards (older article pages): crop to the card instead of squashing the image. */
.oxi-image-hover-image img { object-fit: cover; object-position: center top; }

/* Tablet/phone: a nested container with a fixed pixel width can never be wider than its parent (LP pages had 760px boxes in 728px). */
@media (max-width: 1024px) {
	.e-con-inner > .e-con,
	.e-con.e-con-full > .e-con { max-width: 100%; }
}

/* LP call-flow diagram (Teams/Webex LPs): 2x2 grid instead of a cut-off row on tablet and phone. */
@media (max-width: 1024px) {
	.isi-tca-flow { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible !important; }
	.isi-tca-flow .isi-tca-arrow { display: none !important; }
	.isi-tca-flow .isi-tca-step { width: auto !important; min-width: 0 !important; max-width: none !important; flex: none !important; }
}

/* Homepage tab images: one frame size for every tab, so the gradient shape behind is identical whatever the image's proportions. */
:is(.elementor-element-a357621, .elementor-element-8609f8e, .elementor-element-71cfd8d, .elementor-element-c918851,
    .elementor-element-f0cf3d2, .elementor-element-6ba80ec, .elementor-element-42b376c, .elementor-element-573d2a1) {
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0 !important;
	overflow: hidden;
	background-size: auto 100% !important;
	align-items: center !important;
	justify-content: center !important;
}
:is(.elementor-element-a357621, .elementor-element-8609f8e, .elementor-element-71cfd8d,
    .elementor-element-f0cf3d2, .elementor-element-6ba80ec, .elementor-element-42b376c, .elementor-element-573d2a1) > .elementor-widget-image {
	width: 100% !important;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
:is(.elementor-element-a357621, .elementor-element-8609f8e, .elementor-element-71cfd8d,
    .elementor-element-f0cf3d2, .elementor-element-6ba80ec, .elementor-element-42b376c, .elementor-element-573d2a1) > .elementor-widget-image :is(.elementor-widget-container, a, picture) {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
:is(.elementor-element-a357621, .elementor-element-8609f8e, .elementor-element-71cfd8d,
    .elementor-element-f0cf3d2, .elementor-element-6ba80ec, .elementor-element-42b376c, .elementor-element-573d2a1) > .elementor-widget-image img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
}
/* the reports tab is a carousel: keep each report inside the same frame */
.elementor-element-c918851 > .elementor-widget-image-carousel { width: 100% !important; height: 100%; }
.elementor-element-c918851 .elementor-widget-container,
.elementor-element-c918851 .swiper,
.elementor-element-c918851 .swiper-wrapper,
.elementor-element-c918851 .swiper-slide,
.elementor-element-c918851 .swiper-slide-inner { height: 100%; }
.elementor-element-c918851 .swiper-slide-inner { display: flex; align-items: center; justify-content: center; }
.elementor-element-c918851 .swiper-slide-image { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain; }
/* Testimonial gradient shape: stretch to the box so its rounded corners are never cropped. */
:is(.elementor-element-26f3613, .elementor-element-a4ef7a8, .elementor-element-977541f) { background-size: 100% 100% !important; background-position: center !important; }
:is(.elementor-element-26f3613, .elementor-element-a4ef7a8, .elementor-element-977541f) { --padding-left: clamp(90px, 16%, 190px) !important; padding-left: clamp(90px, 16%, 190px) !important; }
@media (max-width: 767px) { :is(.elementor-element-26f3613, .elementor-element-a4ef7a8, .elementor-element-977541f) { --padding-left: 56px !important; padding-left: 56px !important; } }

/* Support page: info column sits at the top beside the form; compact, even field spacing. */
.elementor-element-d1012f1 > .e-con-inner { align-items: flex-start !important; }
@media (min-width: 1025px) { .elementor-element-261ab69 { position: sticky; top: 130px; padding-top: 24px !important; } }
.elementor-element-64867be .gform_wrapper.gravity-theme .gform_fields { row-gap: 18px !important; }
.elementor-element-64867be .gform_wrapper .gfield { margin: 0 !important; padding: 0 !important; }
.elementor-element-64867be .gform_wrapper .gfield_label { margin-bottom: 6px !important; font-size: 14px; font-weight: 500; }
.elementor-element-64867be .gform_wrapper .gform_required_legend { margin-bottom: 18px; font-size: 14px; color: #6b7080; }
.elementor-element-64867be .gform_wrapper .gform_footer { margin-top: 24px !important; padding: 0 !important; }
.elementor-element-64867be .gform_wrapper textarea { height: 160px !important; min-height: 0 !important; }
/* Support form: short fields two per row from tablet up, so the card is about half as tall. */
@media (min-width: 641px) {
	.elementor-element-64867be .gform_wrapper.gravity-theme .gform_fields { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 18px !important; }
	.elementor-element-64867be .gform_wrapper.gravity-theme .gfield { grid-column: span 1 !important; }
	.elementor-element-64867be .gform_wrapper.gravity-theme .gfield--type-textarea,
	.elementor-element-64867be .gform_wrapper.gravity-theme .gfield--type-html,
	.elementor-element-64867be .gform_wrapper.gravity-theme .gfield--type-captcha,
	.elementor-element-64867be .gform_wrapper.gravity-theme .gfield--type-section { grid-column: 1 / -1 !important; }
}
.elementor-element-64867be .gform_wrapper textarea { height: 130px !important; }

.elementor-element-64867be .gform_wrapper .gform_required_legend { font-size: 13px !important; }
/* Support form widget had its own 32px padding on top of the card's: drop it on phones. */
@media (max-width: 767px) { .elementor-element-e33672a { padding: 0 !important; } }
