/* ==========================================================================
   Header, ElementsKit navbar (desktop + mobile off-canvas) and footer
   Rules:
   - NO backdrop-filter on the sticky header (traps the fixed off-canvas menu).
   - Do NOT override left/inset of .elementskit-menu-overlay / the container
     (ElementsKit hides them with left:-100%).
   ========================================================================== */

/* ---- Sticky header wrapper rendered by ElementsKit ---- */
.ekit-template-content-header {
	position: sticky;
	top: 0;
	z-index: 9990;
	background: #000;
	border-bottom: 1px solid var(--iptvco-border);
}
body.admin-bar .ekit-template-content-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ekit-template-content-header { top: 46px; } }

.ekit-template-content-header .e-con,
.ekit-template-content-header .elementor-section { background-color: transparent; }
.ekit-template-content-header .iptvco-header.e-con { background-color: #000; padding: 0; }

.e-con.iptvco-header__inner {
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 20px !important;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding: 10px 20px !important;
}
.iptvco-header .elementor-widget { margin: 0 !important; width: auto; }
.iptvco-header .iptvco-nav { flex: 1 1 auto; min-width: 0; }

/* ---- Logo ---- */
.iptvco-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.iptvco-logo__svg { height: 46px; width: auto; display: block; }
.iptvco-footer .iptvco-logo__svg { height: 50px; }
body a.iptvco-logo:hover, body a.iptvco-logo:focus-visible { opacity: .9; }
body a.iptvco-logo:focus-visible { outline: 2px solid var(--iptvco-primary); outline-offset: 4px; border-radius: 8px; }

/* ---- Header CTA ---- */
body a.iptvco-btn.iptvco-header-cta { padding: 12px 22px; font-size: 15px; white-space: nowrap; }

/* ==========================================================================
   ElementsKit Nav Menu — desktop
   ========================================================================== */
.iptvco-nav .ekit-wid-con { background: transparent; }
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav { align-items: center; }
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li > a {
	color: var(--iptvco-white);
	font-family: var(--iptvco-font-body);
	font-weight: 600;
	font-size: 15px;
	padding: 12px 14px;
	line-height: 1.2;
	background: transparent;
	text-decoration: none;
	transition: color .15s ease;
}
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li:hover > a,
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li > a:focus-visible,
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li.current-menu-item > a,
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li.current-menu-ancestor > a,
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li.current-menu-parent > a,
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li.current_page_item > a { color: var(--iptvco-primary); background: transparent; }
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li > a:focus-visible { outline: 2px solid var(--iptvco-primary); outline-offset: -2px; border-radius: 8px; }
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-submenu-indicator { color: currentColor; border-color: currentColor; }

/* Dropdown panel */
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav .elementskit-dropdown {
	background: var(--iptvco-surface);
	border: 1px solid var(--iptvco-border);
	border-top: 2px solid var(--iptvco-primary);
	border-radius: 0 0 12px 12px;
	padding: 8px;
	min-width: 270px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav .elementskit-dropdown > li > a {
	display: block;
	color: var(--iptvco-text);
	font-size: 15px;
	font-weight: 600;
	padding: 11px 14px;
	border-radius: 8px;
	background: transparent;
	text-decoration: none;
}
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav .elementskit-dropdown > li > a:hover,
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav .elementskit-dropdown > li > a:focus-visible,
html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav .elementskit-dropdown > li.current-menu-item > a {
	color: var(--iptvco-white);
	background: rgba(247, 26, 44, .16);
}

/* "Free Trial" menu item only shows in the mobile panel (desktop has the CTA button) */
@media (min-width: 1025px) {
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .iptvco-menu-cta-mobile { display: none; }
}

/* ==========================================================================
   ElementsKit Nav Menu — tablet & mobile (≤1024px) hamburger + off-canvas
   ========================================================================== */
@media (max-width: 1024px) {
	.e-con.iptvco-header__inner { padding: 8px 16px !important; gap: 12px !important; }
	.iptvco-logo__svg { height: 40px; }
	.iptvco-header .elementor-widget-shortcode.iptvco-cta-widget { display: none; }
	.iptvco-nav { flex: 0 0 auto; }
	.iptvco-nav .ekit-wid-con { display: flex; justify-content: flex-end; }

	/* Hamburger button */
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-hamburger {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		width: 46px;
		height: 46px;
		padding: 0;
		margin: 0;
		background: transparent;
		border: 1px solid var(--iptvco-border);
		border-radius: 12px;
		color: var(--iptvco-white);
		cursor: pointer;
		float: none;
	}
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-hamburger .ekit-menu-icon,
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-hamburger .elementskit-menu-hamburger-icon { display: block; width: 22px; height: 2px; margin: 0; border-radius: 2px; color: var(--iptvco-white); background-color: var(--iptvco-white); }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-hamburger:hover,
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-hamburger:focus-visible { border-color: var(--iptvco-primary); }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-hamburger:focus-visible { outline: 2px solid var(--iptvco-primary); outline-offset: 2px; }

	/* Off-canvas panel (position/left are controlled by ElementsKit — not touched) */
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-container.elementskit-menu-offcanvas-elements {
		background: var(--iptvco-bg);
		border-right: 1px solid var(--iptvco-border);
		box-shadow: none;
		padding: 0;
		overflow-y: auto;
	}
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-nav-identity-panel {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 18px;
		background: #000;
		border-bottom: 1px solid var(--iptvco-border);
	}
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-nav-logo { display: block; width: auto; max-width: calc(100% - 56px); }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-nav-logo img { height: 38px; max-height: 38px; width: auto; max-width: none; display: block; }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-close {
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: transparent;
		color: var(--iptvco-white);
		border: 1px solid var(--iptvco-border);
		border-radius: 10px;
		font-size: 16px;
		line-height: 1;
		cursor: pointer;
	}
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-close:hover,
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-menu-close:focus-visible { border-color: var(--iptvco-primary); color: var(--iptvco-primary); }

	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav { padding: 6px 0; align-items: stretch; }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li { border-bottom: 1px solid var(--iptvco-border); }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		font-size: 17px;
		color: var(--iptvco-white);
	}
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li:hover > a { color: var(--iptvco-white); }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li.current-menu-item > a,
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav > li.current_page_item > a { color: var(--iptvco-primary); }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-submenu-indicator {
		margin-left: auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
		color: var(--iptvco-primary);
	}

	/* Inline (accordion) submenus */
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav .elementskit-dropdown {
		background: var(--iptvco-surface);
		border: 0;
		border-top: 1px solid var(--iptvco-border);
		border-radius: 0;
		box-shadow: none;
		padding: 4px 0;
		min-width: 0;
	}
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .elementskit-navbar-nav .elementskit-dropdown > li > a {
		padding: 13px 20px 13px 34px;
		border-radius: 0;
		font-size: 16px;
	}

	/* Free Trial CTA inside the panel */
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .iptvco-menu-cta-mobile { border-bottom: 0 !important; padding: 18px 20px 24px; }
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .iptvco-menu-cta-mobile > a {
		justify-content: center !important;
		background: var(--iptvco-primary) !important;
		color: var(--iptvco-white) !important;
		border-radius: 12px;
		padding: 15px 20px !important;
		font-weight: 700;
	}
	html body .ekit-template-content-header .iptvco-nav.elementor-element .ekit-wid-con .iptvco-menu-cta-mobile > a:hover { background: var(--iptvco-primary-dark) !important; color: var(--iptvco-white) !important; }

	/* Dim overlay behind the panel (ElementsKit positions it; we only colour it) */
	.elementskit-menu-overlay { background: rgba(0, 0, 0, .72); }
}

@media (max-width: 480px) {
	.iptvco-logo__svg { height: 36px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ekit-template-content-footer,
.ekit-template-content-footer .e-con { background-color: #000; padding: 0; }
.ekit-template-content-footer { border-top: 1px solid var(--iptvco-border); }
.ekit-template-content-footer .elementor-widget { margin: 0 !important; width: 100%; }

.iptvco-footer { background: #000; color: var(--iptvco-text); }
.iptvco-footer__inner { max-width: 1280px; margin-inline: auto; padding: clamp(48px, 6vw, 80px) 20px 28px; }
.iptvco-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(5, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
}
.iptvco-footer__brand p { margin: 16px 0 0; line-height: 1.7; font-size: 15px; max-width: 360px; }
.iptvco-footer__contact { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.iptvco-footer__pay { font-size: 14px !important; }
.iptvco-footer__pay strong { color: var(--iptvco-white); }
.iptvco-footer__title {
	font-family: var(--iptvco-font-heading);
	font-size: 20px;
	color: var(--iptvco-white);
	margin: 0 0 18px;
	position: relative;
	padding-bottom: 12px;
}
.iptvco-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--iptvco-primary); }
.iptvco-footer__list,
.iptvco-footer__legal-list { list-style: none; margin: 0; padding: 0; }
.iptvco-footer__list { display: grid; gap: 4px; }
.iptvco-footer__list a { display: inline-block; padding: 6px 0; font-size: 15px; }

body .iptvco-footer a { color: var(--iptvco-text); text-decoration: none; }
body .iptvco-footer a:hover,
body .iptvco-footer a:focus-visible { color: var(--iptvco-primary); }
body .iptvco-footer a:focus-visible { outline: 2px solid var(--iptvco-primary); outline-offset: 2px; border-radius: 4px; }

.iptvco-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-top: clamp(32px, 4vw, 52px);
	padding-top: 22px;
	border-top: 1px solid var(--iptvco-border);
	font-size: 14px;
}
.iptvco-footer__bar p { margin: 0; }
.iptvco-footer__legal-list { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.iptvco-footer__disclaimer { margin: 18px 0 0; font-size: 13px; line-height: 1.6; opacity: .75; max-width: 900px; }

@media (max-width: 1180px) {
	.iptvco-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.iptvco-footer__brand { grid-column: 1 / -1; }
	.iptvco-footer__brand p { max-width: 560px; }
}
@media (max-width: 760px) {
	.iptvco-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.iptvco-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
	.iptvco-footer__inner { padding: 44px 16px 24px; }
	.iptvco-footer__bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
	.iptvco-footer__grid { grid-template-columns: 1fr; }
}
.iptvco-footer__list a { overflow-wrap: anywhere; }

/* Skip link */
.skip-link.screen-reader-text:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto;
	background: var(--iptvco-primary); color: var(--iptvco-white); padding: 12px 18px; border-radius: 8px;
}

/* Footer titles must not inherit page heading sizes */
html body .iptvco-footer .iptvco-footer__title { font-size: 19px; line-height: 1.25; margin: 0 0 14px; padding-bottom: 10px; }
html body .iptvco-footer .iptvco-footer__list a { font-size: 14.5px; line-height: 1.35; }
@media (min-width: 1181px) {
	.iptvco-footer__grid { gap: 28px 32px; }
}
html body .iptvco-footer .iptvco-footer__title { font-size: 17px !important; line-height: 1.25 !important; letter-spacing: 0 !important; font-weight: 700 !important; }
