/* ==========================================================================
   WAYANAD NEWS DAILY - MODERN PREMIUM NEWS HEADER
   ========================================================================== */

:root {
  --wnd-primary-red: #dc2626;
  --wnd-primary-dark-red: #991b1b;
  --wnd-accent-gold: #f59e0b;
  --wnd-dark-bg: #0b0f19;
  --wnd-nav-bg: #0f172a;
  --wnd-nav-hover: #1e293b;
  --wnd-text-light: #f8fafc;
  --wnd-text-muted: #94a3b8;
  --wnd-border-dark: rgba(255, 255, 255, 0.08);
  --wnd-shadow-nav: 0 4px 20px -2px rgba(15, 23, 42, 0.15);
  --wnd-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wnd-header-master,
.wnd-header-master *,
.wnd-navigation-bar,
.wnd-navigation-bar * {
  font-family: 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Master Header Container */
.wnd-header-master {
  width: 100%;
  position: relative;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.wnd-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   1. TOP UTILITY BAR
   -------------------------------------------------------------------------- */
.wnd-top-bar {
  background: var(--wnd-dark-bg);
  color: var(--wnd-text-muted);
  font-size: 12.5px;
  line-height: 1;
  padding: 8px 0;
  border-bottom: 1px solid var(--wnd-border-dark);
}

.wnd-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wnd-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.wnd-date-item,
.wnd-location-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.wnd-date-item svg,
.wnd-location-item svg {
  width: 14px;
  height: 14px;
  fill: var(--wnd-accent-gold);
}

.wnd-separator {
  color: #475569;
}

/* Ticker in Top Bar */
.wnd-top-ticker {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: none;
  overflow: hidden;
  margin: 0 16px;
  min-height: 28px;
}

.wnd-ticker-badge {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.45);
}

.wnd-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  animation: wndPulse 1.5s infinite;
}

@keyframes wndPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 8px #ffffff; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.wnd-ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.wnd-ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: wndMarquee 38s linear infinite;
}

.wnd-ticker-wrap:hover .wnd-ticker-track {
  animation-play-state: paused;
}

@keyframes wndMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.wnd-top-bar .wnd-ticker-link,
a.wnd-ticker-link,
.wnd-ticker-link {
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 28px !important;
  opacity: 1 !important;
  letter-spacing: 0.2px;
  transition: var(--wnd-transition);
}

.wnd-top-bar .wnd-ticker-link:hover,
a.wnd-ticker-link:hover {
  color: #fbbf24 !important;
  text-decoration: underline !important;
}

.wnd-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.wnd-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wnd-social-icons a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: var(--wnd-transition);
}

.wnd-social-icons a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.wnd-social-icons a.wnd-yt:hover { color: #ff0000; }
.wnd-social-icons a.wnd-fb:hover { color: #1877f2; }
.wnd-social-icons a.wnd-ig:hover { color: #e1306c; }
.wnd-social-icons a.wnd-wa:hover { color: #25d366; }

/* --------------------------------------------------------------------------
   2. MAIN BRANDING MASTHEAD
   -------------------------------------------------------------------------- */
.wnd-masthead {
  padding: 16px 0;
  background: #ffffff;
}

.wnd-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wnd-branding-col {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.wnd-logo-link {
  display: inline-block;
  line-height: 1;
}

.wnd-logo-img {
  max-height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.wnd-title-tagline {
  display: flex;
  flex-direction: column;
}

.wnd-main-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.wnd-main-title a {
  color: inherit;
  text-decoration: none;
}

.wnd-sub-title {
  margin: 4px 0 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--wnd-primary-red);
  letter-spacing: 0.2px;
}

.wnd-english-tag {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* Masthead Right Utilities */
.wnd-masthead-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wnd-live-btn {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: var(--wnd-transition);
}

.wnd-live-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
  color: #ffffff;
}

.wnd-weather-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.wnd-weather-icon {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   3. PRIMARY NAVIGATION BAR
   -------------------------------------------------------------------------- */
.wnd-navigation-bar {
  background: var(--wnd-nav-bg);
  box-shadow: var(--wnd-shadow-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}

.wnd-navigation-bar.wnd-sticky {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wnd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wnd-nav-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.wnd-home-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: var(--wnd-primary-red);
  text-decoration: none;
  transition: var(--wnd-transition);
  flex-shrink: 0;
}

.wnd-home-icon-btn:hover {
  background: var(--wnd-primary-dark-red);
  color: #ffffff;
}

.wnd-home-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Navigation Menu */
.wnd-menu-container {
  display: flex;
  align-items: center;
  flex: 1;
}

.wnd-nav-menu-wrap {
  display: flex;
  width: 100%;
}

ul.wnd-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

ul.wnd-nav-menu > li {
  position: relative;
  margin: 0;
}

ul.wnd-nav-menu > li > a {
  display: block;
  padding: 15px 15px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: var(--wnd-transition);
  position: relative;
}

ul.wnd-nav-menu > li > a:hover,
ul.wnd-nav-menu > li.current-menu-item > a,
ul.wnd-nav-menu > li.current-menu-parent > a {
  color: #ffffff;
  background: var(--wnd-nav-hover);
}

ul.wnd-nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--wnd-primary-red);
  transition: width 0.2s ease;
}

ul.wnd-nav-menu > li:hover > a::after,
ul.wnd-nav-menu > li.current-menu-item > a::after {
  width: 80%;
}

/* Dropdown Sub-menu container */
ul.wnd-nav-menu li ul.sub-menu,
.wnd-navigation-bar ul.sub-menu,
.wnd-menu-container ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.22) !important;
  border-top: 3px solid #dc2626 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  z-index: 9999 !important;
}

ul.wnd-nav-menu li:hover > ul.sub-menu,
.wnd-navigation-bar ul li:hover > ul.sub-menu {
  display: block !important;
  animation: wndFadeIn 0.2s ease;
}

@keyframes wndFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dropdown list items */
ul.wnd-nav-menu li ul.sub-menu li,
.wnd-navigation-bar ul.sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Dropdown links - Crisp bold black/navy text on white */
ul.wnd-nav-menu li ul.sub-menu li a,
.wnd-navigation-bar ul.sub-menu a,
.wnd-menu-container .sub-menu a {
  display: flex !important;
  align-items: center !important;
  padding: 12px 20px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important; /* Deep bold readable black/navy */
  font-size: 14.5px !important;
  font-weight: 700 !important; /* Ultra-bold */
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.2px !important;
  opacity: 1 !important;
  transition: all 0.2s ease !important;
}

ul.wnd-nav-menu li ul.sub-menu li:last-child a,
.wnd-navigation-bar ul.sub-menu li:last-child a {
  border-bottom: none !important;
}

/* Dropdown link hover */
ul.wnd-nav-menu li ul.sub-menu li a:hover,
.wnd-navigation-bar ul.sub-menu a:hover,
.wnd-menu-container .sub-menu a:hover {
  background: #fef2f2 !important; /* Light red tint */
  background-color: #fef2f2 !important;
  color: #dc2626 !important; /* Vibrant red */
}

/* Right Nav Controls */
.wnd-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-left: 10px;
}

.wnd-search-pill-form {
  position: relative;
  display: flex;
  align-items: center;
}

.wnd-search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12.5px;
  padding: 6px 36px 6px 14px;
  border-radius: 20px;
  outline: none;
  width: 170px;
  transition: width 0.3s ease, background 0.3s ease;
}

.wnd-search-input::placeholder {
  color: #94a3b8;
}

.wnd-search-input:focus {
  width: 220px;
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--wnd-primary-red);
}

.wnd-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--wnd-transition);
}

.wnd-search-btn:hover {
  color: #ffffff;
}

/* Mobile Hamburger Toggle */
.wnd-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  padding: 10px;
  cursor: pointer;
}

.wnd-mobile-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   4. MOBILE OFFCANVAS DRAWER
   -------------------------------------------------------------------------- */
.wnd-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #0f172a;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.wnd-mobile-drawer.wnd-active {
  transform: translateX(0);
}

.wnd-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(2px);
}

.wnd-drawer-backdrop.wnd-active {
  display: block;
}

.wnd-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wnd-border-dark);
}

.wnd-drawer-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.wnd-drawer-close:hover {
  color: #ffffff;
}

.wnd-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wnd-mobile-menu li {
  margin-bottom: 10px;
}

.wnd-mobile-menu li a {
  display: block;
  padding: 10px 14px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--wnd-transition);
}

.wnd-mobile-menu li a:hover {
  background: var(--wnd-nav-hover);
  color: var(--wnd-primary-red);
}

.wnd-mobile-menu ul.sub-menu {
  list-style: none;
  padding-left: 18px;
  margin-top: 6px;
}

.wnd-mobile-menu ul.sub-menu li a {
  font-size: 13.5px;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .wnd-top-ticker {
    display: none;
  }
  .wnd-search-input {
    width: 130px;
  }
  .wnd-search-input:focus {
    width: 170px;
  }
}

@media (max-width: 868px) {
  .wnd-top-bar {
    display: none;
  }
  .wnd-masthead {
    padding: 12px 0;
  }
  .wnd-masthead-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .wnd-weather-badge {
    display: none;
  }
  .wnd-menu-container {
    display: none;
  }
  .wnd-mobile-toggle {
    display: block;
  }
  .wnd-home-icon-btn {
    display: none;
  }
  .wnd-search-input {
    width: 140px;
  }
}
