/*
Theme Name: DLP NewsTV Header Extension
Description: DLP NewsTV branded weather, video logo, search, social and managed cover-ad slot.
Version: 1.1.0
Template: dlpnewstv-newsroom-pro
*/
@import url("/wp-content/themes/dlpnewstv-newsroom-pro/style.css");
@import url("/wp-content/themes/dlpnewstv-newsroom-pro-video-logo/style.css");

/* Branded top row */
#dlp-newstv-top-header,#dlp-newstv-top-header *{box-sizing:border-box}
#dlp-newstv-top-header{width:100%;min-height:136px;padding:10px clamp(14px,2.2vw,34px);display:grid;grid-template-columns:minmax(250px,1fr) minmax(290px,430px) minmax(350px,1fr);align-items:center;gap:clamp(12px,1.8vw,28px);background:linear-gradient(110deg,#f8fbff 0%,#fff 46%,#f3f7fc 100%);border-bottom:1px solid #d9e1ed;box-shadow:0 3px 12px rgba(9,37,76,.10);position:relative;z-index:1000;font-family:inherit}
.dlp-head-weather{justify-self:start;width:100%;max-width:430px;min-height:94px;padding:12px 15px;display:flex;align-items:center;gap:15px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#092b63 0%,#0756a7 100%);box-shadow:0 4px 12px rgba(5,38,89,.20)}
.dlp-weather-main{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:104px}
#dlp-weather-icon{font-size:34px;line-height:1}
.dlp-weather-copy{display:flex;flex-direction:column;gap:1px}
.dlp-weather-city{font-size:13px;font-weight:700;white-space:nowrap;opacity:.95}
#dlp-weather-temp{font-size:25px;line-height:1.15;font-weight:850;color:#ffdf35;white-space:nowrap}
#dlp-weather-desc{font-size:11px;line-height:1.2;color:#e7f2ff;max-width:120px}
.dlp-date-time{border-left:1px solid rgba(255,255,255,.35);padding-left:13px;min-width:0;display:flex;flex-direction:column;gap:8px}
.dlp-date-line,.dlp-clock-line{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.3;font-weight:700;white-space:nowrap}
.dlp-clock-line{font-size:15px;color:#fff;background:#d9202e;padding:5px 9px;border-radius:7px;width:fit-content;box-shadow:0 2px 5px rgba(0,0,0,.14)}
.dlp-head-brand{justify-self:center;width:100%;max-width:430px;min-width:0;display:flex;align-items:center;justify-content:center}
#dlp-newstv-video-logo{display:block;width:min(100%,420px);height:116px;max-height:116px;object-fit:contain;object-position:center;margin:0 auto;background:transparent;filter:drop-shadow(0 2px 2px rgba(0,0,0,.12))}

/* Search and page links moved into the top-right cluster */
.dlp-head-actions{justify-self:end;display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%;max-width:430px;min-width:0}
.dlp-head-search{display:flex;align-items:center;width:100%;height:39px;border:1px solid #d7dfeb;border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 2px 7px rgba(10,36,76,.07);margin:0}
.dlp-head-search input{flex:1;min-width:0;height:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0 14px!important;color:#182b49;font-size:14px}
.dlp-head-search button{flex:0 0 32px;width:32px;height:32px;margin:3px 4px 3px 0;padding:0;border:0;border-radius:50%;background:#e51d2a;color:#fff;font-size:23px;line-height:1;cursor:pointer}
.dlp-head-action-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.dlp-page-links{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.dlp-page-links a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 10px;border-radius:18px;border:1px solid #d9e2ef;background:#0d2d63;color:#fff!important;font-size:12px;font-weight:700;text-decoration:none!important;white-space:nowrap}
.dlp-page-links a:hover{background:#e31d2b;color:#fff!important}
.dlp-social-links{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.dlp-social-links a{width:38px;height:38px;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;border-radius:50%;background:#fff;border:1px solid #e3e8ef;box-shadow:0 3px 9px rgba(10,36,76,.10);transition:transform .18s ease,box-shadow .18s ease;text-decoration:none!important}
.dlp-social-links a:hover{transform:translateY(-2px);box-shadow:0 5px 13px rgba(10,36,76,.18)}
.dlp-social-links svg{display:block;width:23px;height:23px}
.dlp-social-links .dlp-instagram{color:#d82e82}
.dlp-social-links .dlp-facebook{color:#1877f2}
.dlp-social-links .dlp-youtube{color:#ed1c24}
.dlp-social-links .dlp-whatsapp{color:#20b95a}

/* Preserve the primary navigation only in the legacy masthead. */
.dlp-nav-only-header{margin:0!important;padding:0!important;border:0!important;border-bottom:0!important;box-shadow:none!important;background:transparent!important}
.dlp-nav-only-header nav,.dlp-nav-only-header #site-navigation,.dlp-nav-only-header .aft-primary-nav,.dlp-nav-only-header .main-navigation{margin:0!important;border-bottom:0!important}
.dlp-nav-only-header:before,.dlp-nav-only-header:after{display:none!important}

/* Wide custom cover-ad slot directly underneath the navigation */
.dlp-header-cover-ad{display:block;width:100%;max-width:100%;margin:0 auto;padding:13px clamp(12px,1.4vw,26px);background:#f5f7fb;border-top:0;border-bottom:1px solid #e1e6ef;position:relative;z-index:5}
.dlp-header-ad-click{display:block;width:100%;text-decoration:none!important}
.dlp-header-ad-image{display:block;width:100%;height:auto;max-height:156px;object-fit:contain;object-position:center;margin:0 auto;border-radius:12px;box-shadow:0 3px 12px rgba(14,36,76,.10)}
.dlp-ad-placeholder{width:100%;min-height:112px;padding:15px 22px;display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:18px;overflow:hidden;border-radius:13px;border:1px solid rgba(255,255,255,.65);outline:1px solid rgba(255,255,255,.35);outline-offset:-7px;background:linear-gradient(105deg,#1b126b 0%,#3b0b70 43%,#9d123a 78%,#e21b25 100%);box-shadow:0 4px 14px rgba(25,20,79,.18);color:#fff}
.dlp-ad-megaphone{font-size:54px;text-align:center;line-height:1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18))}
.dlp-ad-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.dlp-ad-copy strong{font-size:clamp(19px,2vw,31px);line-height:1.2;font-weight:850;color:#fff}
.dlp-ad-copy span{font-size:clamp(12px,1.2vw,17px);line-height:1.35;color:#fff;opacity:.95}
.dlp-ad-booking{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:9px 18px;border-radius:30px;background:#ffcf19;color:#151515!important;font-size:clamp(13px,1.2vw,17px);font-weight:850;text-decoration:none!important;white-space:nowrap;box-shadow:0 3px 8px rgba(0,0,0,.18)}
.dlp-ad-booking span{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;background:#e51d2a;color:#fff;font-size:24px;line-height:1}

/* Legacy logo/search/social rows are removed by the header cleanup script; these are fail-safe selectors. */
#masthead .site-branding,#masthead .custom-logo-link,#masthead .custom-logo,#masthead .site-title,#masthead .site-description,
.site-header .site-branding,.site-header .custom-logo-link,.site-header .custom-logo,.site-header .site-title,.site-header .site-description,
header .site-branding,header .custom-logo-link,header .custom-logo,header .site-title,header .site-description{display:none!important}

@media(max-width:1100px){
 #dlp-newstv-top-header{grid-template-columns:minmax(210px,1fr) minmax(235px,1fr) minmax(310px,1.1fr);gap:10px;padding:9px 12px;min-height:122px}
 .dlp-head-weather{min-height:86px;padding:10px;gap:9px}
 .dlp-weather-main{min-width:90px;gap:7px}
 #dlp-weather-icon{font-size:29px}
 #dlp-weather-temp{font-size:22px}
 .dlp-weather-city{font-size:11px}
 .dlp-date-time{padding-left:9px;gap:6px}
 .dlp-date-line{font-size:10px}
 #dlp-newstv-video-logo{height:102px;max-height:102px}
 .dlp-head-actions{gap:7px}
 .dlp-head-search{height:35px}
 .dlp-page-links a{font-size:11px;padding:4px 8px}
 .dlp-social-links{gap:5px}
 .dlp-social-links a{width:34px;height:34px}
 .dlp-social-links svg{width:21px;height:21px}
}
@media(max-width:700px){
 #dlp-newstv-top-header{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:7px 10px;padding:8px 10px 10px;min-height:0}
 .dlp-head-brand{grid-column:1/-1;grid-row:1;max-width:390px}
 #dlp-newstv-video-logo{width:min(78vw,340px);height:96px;max-height:96px}
 .dlp-head-weather{grid-column:1;grid-row:2;justify-self:start;max-width:100%;min-height:68px;padding:7px 8px;gap:7px;border-radius:10px}
 .dlp-weather-main{min-width:0;gap:6px}
 #dlp-weather-icon{font-size:25px}
 .dlp-weather-city{font-size:10px}
 #dlp-weather-temp{font-size:19px}
 #dlp-weather-desc{font-size:9px}
 .dlp-date-time{padding-left:7px;gap:4px}
 .dlp-date-line{font-size:9px;white-space:normal}
 .dlp-clock-line{font-size:12px;padding:3px 6px}
 .dlp-head-actions{grid-column:2;grid-row:2;justify-self:end;max-width:100%;gap:6px}
 .dlp-head-search{height:31px}
 .dlp-head-search input{font-size:11px;padding:0 9px!important}
 .dlp-head-search button{width:25px;flex-basis:25px;height:25px;font-size:19px}
 .dlp-head-action-row{flex-direction:column;align-items:flex-end;gap:5px}
 .dlp-page-links{gap:4px}
 .dlp-page-links a{min-height:25px;font-size:10px;padding:3px 7px}
 .dlp-social-links{gap:5px}
 .dlp-social-links a{width:clamp(29px,7.5vw,34px);height:clamp(29px,7.5vw,34px)}
 .dlp-social-links svg{width:18px;height:18px}
 .dlp-header-cover-ad{padding:8px}
 .dlp-header-ad-image{max-height:100px;border-radius:8px}
 .dlp-ad-placeholder{min-height:84px;padding:10px 12px;grid-template-columns:46px minmax(0,1fr);gap:8px;border-radius:9px}
 .dlp-ad-megaphone{font-size:31px}
 .dlp-ad-copy strong{font-size:15px}
 .dlp-ad-copy span{font-size:10px}
 .dlp-ad-booking{grid-column:2;justify-self:start;min-height:30px;padding:5px 10px;font-size:10px;gap:5px}
 .dlp-ad-booking span{width:18px;height:18px;font-size:17px}
}
@media(max-width:390px){
 #dlp-newstv-top-header{gap:6px 7px;padding:7px}
 #dlp-newstv-video-logo{width:80vw;height:88px;max-height:88px}
 .dlp-head-weather{padding:6px;gap:5px}
 .dlp-date-time{padding-left:5px}
 .dlp-weather-city{font-size:9px}
 #dlp-weather-temp{font-size:17px}
 .dlp-date-line{font-size:8px}
 .dlp-clock-line{font-size:10px}
 .dlp-social-links{gap:3px}
 .dlp-social-links a{width:28px;height:28px}
 .dlp-social-links svg{width:16px;height:16px}
 .dlp-page-links a{font-size:9px;padding:2px 5px}
}
