/*
Theme Name: DVBControl Next
Description: Child theme of dvbcontrol with a new header, footer and homepage. Preview only until it is activated.
Template: dvbcontrol
Version: 0.1.0
*/

:root{--nx-bg:#050a18;--nx-bg2:#0a1330;--nx-card:#0d1838;--nx-line:#1d2c5c;--nx-text:#e8eefc;--nx-mute:#93a3cc;--nx-blue:#00a8e1}

/* ---- header and footer, on every page ---- */
.nx-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.nx-header{position:sticky;top:0;z-index:50;background:rgba(5,10,24,.92);border-bottom:1px solid var(--nx-line);font-family:"Segoe UI",system-ui,sans-serif}
.nx-header-row{display:flex;align-items:center;justify-content:space-between;height:56px;gap:20px}
.nx-logo{display:block;line-height:0}
.nx-logo img{height:34px;width:auto}
.nx-nav{display:flex;align-items:center;gap:22px}
.nx-menu{list-style:none;margin:0;padding:0;display:flex;gap:20px;align-items:center}
.nx-menu li{margin:0;padding:0}
.nx-menu a{color:#e8eefc;font-size:15px;text-decoration:none;white-space:nowrap}
.nx-menu a:hover{color:#00a8e1}
.nx-products{padding-right:22px;border-right:1px solid var(--nx-line)}
.nx-products .fa{margin-right:4px;color:#00a8e1}
.nx-extra a{color:#93a3cc}
.nx-extra a:hover{color:#fff}
.nx-footer{clear:both;background:#050a18;border-top:1px solid var(--nx-line);color:#93a3cc;font:13px/1.4 "Segoe UI",system-ui,sans-serif;padding:12px 0}
.nx-footer-row{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;align-items:center}
.nx-footer a{color:#93a3cc}
.nx-footer .nx-menu a{font-size:13px;color:#93a3cc}

/* ---- homepage ---- */
body.dvbcn.home,body.dvbcn.blog{margin:0;background:var(--nx-bg);color:var(--nx-text);font:16px/1.55 "Segoe UI",system-ui,sans-serif}
.nx-main{display:block;color:var(--nx-text)}
.nx-main a{text-decoration:none;color:inherit}
.nx-hero{text-align:center;padding:28px 0 8px;background:radial-gradient(ellipse at 50% 0,#13286b 0,transparent 65%),var(--nx-bg)}
.nx-hero h1{font:600 clamp(22px,3vw,34px)/1.2 "Segoe UI",system-ui,sans-serif;letter-spacing:.5px;margin:0 0 8px;color:#bcd0f5}
.nx-hero p{max-width:640px;margin:0 auto;color:var(--nx-mute);font-size:16px}
.nx-section{padding:22px 0}
.nx-h2{font-size:clamp(22px,2.6vw,30px);margin:0 0 16px;text-align:center;color:#fff;font-weight:600}
.nx-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.nx-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--nx-line);border-radius:14px;background:var(--nx-card);transition:transform .25s,border-color .25s}
.nx-card:hover{transform:translateY(-4px);border-color:var(--nx-blue)}
.nx-pic{height:150px;background-size:cover;background-position:left center;position:relative;display:flex}
.nx-pic:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 40%,var(--nx-card))}
.nx-body{padding:6px 22px 24px;display:flex;flex-direction:column;flex:1}
.nx-tag{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--nx-blue);font-weight:700}
.nx-card h3{margin:4px 0 8px;font-size:21px;line-height:1.2;color:#fff}
.nx-card p{margin:0 0 16px;color:var(--nx-mute);font-size:14.5px;flex:1}
.nx-card p strong{color:var(--nx-text)}
.nx-more{color:var(--nx-blue);font-weight:600;font-size:14.5px}

.nx-mapsec{background:linear-gradient(var(--nx-bg),var(--nx-bg2) 25%,var(--nx-bg2) 75%,var(--nx-bg))}
.nx-map{position:relative;max-width:900px;margin:0 auto}
.nx-map svg{display:block;width:100%;height:auto}

.nx-big{position:absolute;inset:0;pointer-events:none}
.nx-slide{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;opacity:0;transition:opacity .9s}
.nx-slide.is-on{opacity:1}
.nx-slide>b{display:block;font:800 clamp(26px,5.2vw,64px)/1 Impact,"Arial Narrow",sans-serif;letter-spacing:2px;text-transform:uppercase;color:#eaf6ff;-webkit-text-stroke:2px #000;paint-order:stroke fill;letter-spacing:3px;text-shadow:0 2px 8px rgba(0,0,0,.7)}
@keyframes nx-pulse{0%{r:2;opacity:.9}100%{r:16;opacity:0}}
.nx-ring{fill:none;stroke:#bfe6ff;stroke-width:1;animation:nx-pulse 2.6s infinite}

.nx-logos{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.nx-logo-tile{height:84px;background:#f4f7fc;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:12px}
.nx-logo-tile img{max-width:100%;max-height:100%;object-fit:contain;transition:opacity .45s}
.nx-logo-tile img.nx-fade{opacity:0}
.nx-clients{padding-bottom:30px}

@media(max-width:980px){
	.nx-cards{grid-template-columns:repeat(2,1fr)}
	.nx-logos{grid-template-columns:repeat(3,1fr)}
	.nx-products{border-right:0;padding-right:0}
}
@media(max-width:560px){
	.nx-cards{grid-template-columns:1fr}
	.nx-header-row{flex-wrap:wrap;height:auto;padding-top:8px;padding-bottom:8px}
	.nx-menu{gap:12px;flex-wrap:wrap}
}

/* ---- header menu on pages that also load the parent's CSS: keep the icons small and inline ---- */
.nx-header .nx-menu a{display:inline-flex;align-items:center;padding:0;font:400 15px/1 "Segoe UI",system-ui,sans-serif !important;text-transform:none;background:none}
.nx-header .menu-item i,.nx-header .menu-item .fa{float:none;width:auto;height:auto;padding:0;margin:0 7px 0 0;font-size:19px !important;line-height:1;color:#00a8e1}
.nx-header .nx-menu .fontawesome-text{display:inline;font-size:15px}

/* ---- inner pages (product pages with tabs, news, guides, clients, about, contact): same dark style as the homepage ---- */
body.dvbcn:not(.home):not(.blog){margin:0;background:#0f1c40;color:#d6e0f7}
body.dvbcn:not(.home) main{display:block;color:#d6e0f7;font-size:17px}
body.dvbcn:not(.home):not(.blog) #about,
body.dvbcn:not(.home):not(.blog) #client-list,
body.dvbcn:not(.home):not(.blog) #last-news,
body.dvbcn:not(.home):not(.blog) .top-tab,
body.dvbcn:not(.home):not(.blog) #gallerybackground,
body.dvbcn:not(.home):not(.blog) .tabs-content,
body.dvbcn:not(.home):not(.blog) .video_content{background:transparent}
body.dvbcn:not(.home) main :is(p,li,h2,h3,h4,h5,h6,td,th,dt,dd,label,span,strong,em,b,small,div){color:#d6e0f7 !important}
body.dvbcn:not(.home) main :is(h2,h3,h4,h5,h6,strong,b){color:#fff !important}
body.dvbcn:not(.home) main a{color:#00a8e1}
body.dvbcn:not(.home) main a:hover{color:#5fd0ff}
body.dvbcn:not(.home) .titel_content{background:radial-gradient(ellipse at 50% 0,#1a3680 0,transparent 70%),#07102a;padding:20px 0 16px;margin-bottom:26px;border-bottom:1px solid var(--nx-line)}
body.dvbcn:not(.home) .titel_content h1,
body.dvbcn:not(.home) .titel_content h1.titel-home,
body.dvbcn:not(.home) .titel_content h2.titel-home{color:#e8eefc !important;font:600 clamp(24px,3vw,34px)/1.2 "Segoe UI",system-ui,sans-serif;margin:0}
body.dvbcn:not(.home) .titel_content .subtitle{display:block;margin-top:4px;color:#93a3cc !important;font-size:15px;font-weight:400}
/* product tabs: the existing dark icons are inverted to light, labels follow */
body.dvbcn dl.tabs dd > a,body.dvbcn .tabs .tab-title > a{background:none !important;border-radius:12px;margin:0 6px 10px;padding:4px 14px 22px;transition:transform .2s}
body.dvbcn dl.tabs dd > a div{filter:invert(1) hue-rotate(180deg)}
body.dvbcn dl.tabs dd > a :is(h2,div,span){color:#000 !important}
body.dvbcn dl.tabs dd.active > a,body.dvbcn .tabs .active.tab-title > a{box-shadow:0 2px 0 #00a8e1;border-radius:0}
body.dvbcn dl.tabs dd > a:hover{transform:translateY(-3px)}
body.dvbcn main img{border-radius:8px}
body.dvbcn .tabs-content img{border:1px solid var(--nx-line)}
/* cards, tables */
body.dvbcn .news-item-content{background:#f4f7fc;border:1px solid #dbe4f5;border-radius:14px;overflow:hidden;transition:transform .2s,box-shadow .2s}
body.dvbcn .news-item-content:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,0,0,.35)}
body.dvbcn:not(.home) main .news-item-content :is(p,h2,h3,span,div,time,small){color:#0a1330 !important}
body.dvbcn:not(.home) main .news-item-content a{color:#0077a8}
body.dvbcn .news-item-content img{border-radius:8px}
body.dvbcn:not(.home) main table{background:transparent;border:1px solid #1d2c5c;border-radius:8px}
body.dvbcn:not(.home) main :is(table,thead,tbody,tr,td){background:transparent !important}
body.dvbcn:not(.home) main tbody tr:nth-child(even) td{background:rgba(255,255,255,.04) !important}
body.dvbcn:not(.home) main th{background:#13286b !important}
body.dvbcn:not(.home) main td{border-color:#1d2c5c}
body.dvbcn:not(.home) main :is(input,select,textarea){background:#fff;color:#0a1330 !important}
body.dvbcn .tabs-content .content,body.dvbcn .tabs-content > .content{background:transparent !important}
/* guides overview cards, client logo tiles */
body.dvbcn .guide-card{background:#f4f7fc !important;border:1px solid #dbe4f5 !important;border-top:3px solid #00a8e1 !important;border-radius:14px;transition:transform .2s,box-shadow .2s}
body.dvbcn .guide-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,0,0,.35)}
body.dvbcn:not(.home) main .guide-card :is(p,h2,span,div){color:#1c2a4d !important}
body.dvbcn:not(.home) main .guide-card p.guide-tag{color:#0089b8 !important}
body.dvbcn:not(.home) main .guide-card h2 a{color:#0a1330 !important}
body.dvbcn:not(.home) main .guide-card p.guide-sub{color:#5a6b95 !important}
body.dvbcn:not(.home) main .guide-card a{color:#0077a8}
body.dvbcn ul.logo li img{background:#f4f7fc;border-radius:10px;padding:10px;width:100%;height:84px;object-fit:contain;box-sizing:border-box}
/* wider inner pages, badges for partner and distributor logos, gallery headings */
body.dvbcn:not(.home) .row{max-width:1180px}
/* About: text on the left, partner logos on the right, using the full width of the page */
body.dvbcn.page-id-33 #about > .row{max-width:1400px}
body.dvbcn.page-id-33 #about > .row > .columns{display:grid;padding-left:24px;padding-right:24px;grid-template-columns:minmax(0,1fr) 320px;column-gap:48px;align-items:start}
body.dvbcn.page-id-33 #about > .row > .columns > .large-8,body.dvbcn.page-id-33 #about > .row > .columns > .large-3{float:none;width:auto;padding:0}
body.dvbcn.page-id-33 #about > .row > .columns > .large-1{display:none}
@media(max-width:900px){body.dvbcn.page-id-33 #about > .row > .columns{display:block}}
body.dvbcn.page-id-33 #about .large-3 img{background:#f4f7fc;padding:12px 16px;border-radius:12px;box-sizing:content-box;max-width:calc(100% - 32px);height:auto}
body.dvbcn .tabs-content :is(#resellers,#sales,#support) td img{background:#f4f7fc;padding:8px 12px;border-radius:8px;max-height:64px;width:auto}
body.dvbcn .tabs-content h4:not(:empty){background:none !important;color:#fff !important;display:inline-block;font-size:1.2rem;padding:0 2px 5px;margin:0 0 12px;border-bottom:2px solid #00a8e1}
body.dvbcn .dvbcn-release-tabs{text-align:center;margin-bottom:10px}
/* download, release and ordering tables */
body.dvbcn:not(.home) main table{border-collapse:separate;border-spacing:0;border:1px solid #1d2c5c;border-radius:12px;overflow:hidden;margin-bottom:22px}
body.dvbcn .teste{background:linear-gradient(90deg,#1d3a7a,#16275a) !important;border-left:4px solid #00a8df;border-radius:0;font-size:1.05rem;padding:12px 14px !important;color:#fff !important}
body.dvbcn .teste *{color:#fff !important}
body.dvbcn:not(.home) main table th:not(.teste){background:#13214d !important;color:#7fd3f5 !important;font-size:12px;letter-spacing:.07em;text-transform:uppercase;padding:9px 14px;border:0}
body.dvbcn:not(.home) main table td{padding:12px 14px;border:0;border-bottom:1px solid #1d2c5c}
body.dvbcn:not(.home) main table tr:last-child td{border-bottom:0}
body.dvbcn:not(.home) main table td img{max-height:46px;width:auto}
body.dvbcn:not(.home) main table tbody tr:hover td{background:rgba(0,168,225,.10) !important}
/* ordering table: THEAD holds the two header rows, TBODY the features */
body.dvbcn .tabs-content #order table{border:1px solid #2a4a94}
body.dvbcn .tabs-content #order thead td,body.dvbcn .tabs-content #order thead th{background:#1d3a7a !important;border:1px solid #2a4a94;text-align:center}
body.dvbcn .tabs-content #order thead td:first-child,body.dvbcn .tabs-content #order thead th:first-child{text-align:left}
body.dvbcn .tabs-content #order thead tr:nth-child(2) :is(td,th) *{color:#5fd0ff !important;font-weight:700}
body.dvbcn .tabs-content #order tbody td:first-child{border-left:3px solid #00a8e1}
body.dvbcn .tabs-content #order tbody td:first-child *{color:#fff !important;font-weight:600}
body.dvbcn .tabs-content #order tbody td:not(:first-child){text-align:center;border:1px solid #1d2c5c}
body.dvbcn .tabs-content #order tbody td:not(:first-child) *{color:#00a8e1 !important;font-weight:700}
body.dvbcn .tabs-content #order tbody :is(td,th){border-color:#1d2c5c !important}
body.dvbcn .tabs-content #order thead :is(td,th){border-color:#2a4a94 !important}
/* product pages: accent the Features heading and the feature group headings above the bullet lists */
body.dvbcn:not(.home) main p > strong:only-child{display:inline-block;font-size:1.5rem;margin:26px 0 6px;padding-bottom:5px;border-bottom:2px solid #00a8e1;color:#fff !important}
body.dvbcn:not(.home) main strong:has(+ ul),
body.dvbcn:not(.home) main strong:has(+ br + ul),
body.dvbcn:not(.home) main strong:has(+ p:empty + ul),
body.dvbcn:not(.home) main p:has(+ ul) > strong:only-child{display:block;margin:20px 0 8px;padding:6px 12px;border-left:3px solid #00a8e1;border-bottom:0;border-radius:0 8px 8px 0;background:linear-gradient(90deg,rgba(0,168,225,.22),rgba(0,168,225,0));color:#5fd0ff !important;font-size:1.08rem;letter-spacing:.03em}
body.dvbcn:not(.home) main li::marker{color:#00a8e1}
/* gallery screenshots: white edge and a soft shadow lift them off the dark background */
body.dvbcn .tabs-content #gallery img{border:2px solid #fff;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.55);box-sizing:border-box}
/* gallery section headings: accent bar like the feature headings of the product pages; space above the first one */
body.dvbcn .tabs-content #gallery h3{display:block;width:fit-content;max-width:100%;margin:44px auto 22px;padding:8px 26px;border-left:3px solid #00a8e1;border-radius:0 8px 8px 0;background:linear-gradient(90deg,rgba(0,168,225,.28),rgba(0,168,225,.06));color:#5fd0ff !important;font-size:1.5rem;letter-spacing:.03em}
/* ordering tables: compact rows */
body.dvbcn .tabs-content #order table td,body.dvbcn .tabs-content #order table th{padding:3px 10px !important;line-height:1.3}
body.dvbcn .tabs-content #order tbody td:first-child{padding-left:10px !important}
/* two-column ordering tables (DVBMosaic, DVBMonitor): the description column is plain white text, left aligned */
body.dvbcn .tabs-content #order tbody td:nth-child(2):last-child{text-align:left}
body.dvbcn .tabs-content #order tbody td:nth-child(2):last-child *{color:#fff !important;font-weight:400}
/* download tables: larger text in the white cells */
body.dvbcn .tabs-content #download table td{font-size:1.1rem}
/* release header: text centered vertically in the bar */
body.dvbcn:not(.home) main table th.teste{vertical-align:middle;line-height:1.6;padding:15px 14px !important}
/* contact page: every distributor logo on a badge of the same size */
body.dvbcn .tabs-content :is(#resellers,#sales,#support) td img{width:160px;height:54px;max-height:none;object-fit:contain;box-sizing:content-box}
/* two-column ordering tables: the Type column is wide enough for "Software Options" on one line */
body.dvbcn .tabs-content #order :is(td,th):first-child:nth-last-child(2){width:210px !important;white-space:nowrap}
/* contact page: only the country names are slightly larger */
body.dvbcn .tabs-content :is(#resellers,#sales,#support) td:first-child{font-size:16px}
/* header: below ~1300px the logo and products stay on the first row, News/Guides/Clients/About/Contact move to a second row */
@media(max-width:1300px){
	.nx-header-row{flex-wrap:wrap;height:auto;padding-top:8px;padding-bottom:0;gap:6px 20px}
	.nx-nav{display:contents}
	.nx-products{border-right:0;padding-right:0;flex-wrap:wrap;justify-content:flex-end;row-gap:8px}
	.nx-extra{order:3;flex-basis:100%;justify-content:center;border-top:1px solid var(--nx-line);padding:8px 0}
}
@media(max-width:760px){
	.nx-header-row{justify-content:center}
	.nx-products{justify-content:center;flex-basis:100%}
}
/* link pane above the copyright bar */
.nx-pane{clear:both;background:#03060f;border-top:1px solid var(--nx-line);padding:34px 0 22px;font-family:"Segoe UI",system-ui,sans-serif;color:#d6e0f7}
.nx-pane-row{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 40px}
.nx-pane h1,.nx-pane h2,.nx-pane h3,.nx-pane h4,.nx-pane .widget-title{margin:0 0 12px;color:#fff;font:600 21px/1.2 "Segoe UI",system-ui,sans-serif}
.nx-pane ul{list-style:none;margin:0;padding:0}
.nx-pane li{margin:0 0 6px}
.nx-pane p{margin:0 0 6px;color:#d6e0f7;font-size:15px;line-height:1.5}
.nx-pane a{color:#d6e0f7;text-decoration:none;font-size:15px}
.nx-pane a:hover{color:#00a8e1}
.nx-pane i,.nx-pane .fa{margin-right:6px;color:#00a8e1}
@media(max-width:760px){.nx-pane-row{grid-template-columns:1fr}}
