/* ==========================================================================
   NEWS POINT MP - VISTAAR-MATCHED HEADER STYLES (RICH CUSTOM BACKGROUND)
   ========================================================================== */

/* **** Header Wrapper (Exact Vistaar 126px height & custom rich background) **** */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 126px;
  z-index: 999;
  background-color: #e5e7eb;
  background-image: url('../images/header-background-new.jpg');
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-bottom: 2px solid #C80000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.scroll-sticky .header-wrapper {
  height: 83px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* **** Top Bar (Right-Aligned Pill Search Box) **** */
.top-bar {
  padding-top: 10px;
  padding-bottom: 0px;
  background: transparent;
  position: relative;
  z-index: 2;
  width: 100%;
}

.top-bar .theme-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar .header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
}

.top-bar .header-right .search-box {
  width: fit-content;
  height: fit-content;
  position: relative;
}

.top-bar .header-right .input-search {
  height: 38px;
  width: 140px;
  border: 1.5px solid #222222;
  border-radius: 25px;
  padding: 8px 38px 8px 14px;
  font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  background: #ffffff;
  color: #111111;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.top-bar .header-right .input-search::placeholder {
  color: #64748b;
  font-size: 13px;
}

.top-bar .header-right .input-search:focus {
  width: 180px;
  border-color: #C80000;
  box-shadow: 0 0 0 2px rgba(200, 0, 0, 0.2);
}

.top-bar .header-right .btn-search {
  width: 38px;
  height: 38px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  right: 0;
  top: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  transition: color 0.2s ease;
}

.top-bar .header-right .btn-search:hover {
  color: #C80000;
}

.top-bar .header-right .btn-search .icon {
  width: 18px;
  height: 18px;
  stroke: #111111;
}

.scroll-sticky .top-bar {
  display: none;
}

/* **** Main Header Bar **** */
.main-header {
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.main-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* 1. Left: Logo */
.main-header .header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 18%;
  padding-top: 4px;
  padding-bottom: 4px;
}

.main-header .header-logo .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.main-header .header-logo .logo img,
.main-header .custom-logo,
.custom-logo-link img {
  height: 72px !important;
  max-height: 72px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain !important;
  display: block;
  transition: all 0.2s ease;
}

.scroll-sticky .main-header .header-logo .logo img,
.scroll-sticky .main-header .custom-logo,
.scroll-sticky .custom-logo-link img {
  height: 58px !important;
  max-height: 58px !important;
}

.mobile-toggle-menu-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 12px;
  color: #111111;
  transition: color 0.2s ease;
}

.mobile-toggle-menu-action:hover {
  color: #C80000;
}

.mobile-toggle-menu-action .icon {
  width: 28px;
  height: 28px;
}

/* 2. Middle: Primary Navigation Menu */
.header-nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.header-nav-menu ul.menu > li {
  display: inline-block;
  margin: 0 11px;
  position: relative;
}

.header-nav-menu ul.menu > li > a {
  font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: normal;
  color: #000000 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.1em;
  padding-bottom: 1.1em;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.header-nav-menu ul.menu > li > a:hover {
  color: #C80000 !important;
  border-color: #C80000;
}

/* Active Category Underline (Matches Vistaar's red bottom line) */
.header-nav-menu ul.menu > li.current-menu-item > a,
.header-nav-menu ul.menu > li.current_page_item > a,
.header-nav-menu ul.menu > li.active > a {
  color: #000000 !important;
  border-color: #C80000;
  border-bottom: 3.5px solid #C80000;
  font-weight: 900;
}

/* More Dropdown */
.header-nav-menu ul.menu > li.menu-item-has-children > a:after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23000000" stroke-width="3.5"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.header-nav-menu ul.menu > li.menu-item-has-children:hover > a:after {
  transform: rotate(180deg);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23C80000" stroke-width="3.5"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"/></svg>');
}

.header-nav-menu ul.menu > li.menu-item-has-children > ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  flex-direction: column;
  z-index: 1000;
  animation: fadeInSub 0.2s ease;
}

@keyframes fadeInSub {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-nav-menu ul.menu > li.menu-item-has-children:hover > ul.sub-menu {
  display: flex;
}

.header-nav-menu ul.menu > li.menu-item-has-children > ul.sub-menu li {
  width: 100%;
  margin: 0;
}

.header-nav-menu ul.menu > li.menu-item-has-children > ul.sub-menu li a {
  display: block;
  padding: 8px 18px;
  color: #1e293b;
  font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-bottom: none;
  text-shadow: none;
  transition: all 0.2s ease;
}

.header-nav-menu ul.menu > li.menu-item-has-children > ul.sub-menu li a:hover {
  background: #fff1f2;
  color: #C80000;
  padding-left: 22px;
}

/* 3. Right: Circular Social Icons */
.main-header .header-right {
  flex: 0 0 15%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-header .social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-header .social-icons li {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.main-header .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.main-header .social-icons a:hover {
  transform: translateY(-2px) scale(1.08);
}

.main-header .social-icons img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* **** Mobile Drawer Menu **** */
.toggle-menu-items {
  position: fixed;
  background: #ffffff;
  width: 300px;
  max-width: 85vw;
  top: 92px;
  left: 0;
  bottom: 0;
  z-index: 9999;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.toggle-menu-items.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.toggle-menu-items ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toggle-menu-items ul li:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.toggle-menu-items ul li a {
  color: #0f172a;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  transition: all 0.2s ease;
}

.toggle-menu-items ul li a:hover {
  background-color: #fff1f2;
  color: #C80000;
  padding-left: 26px;
}

/* **** Footer Styling **** */
.main-footer {
  background: #1e293b;
  color: #f8fafc;
  margin-top: 30px;
  padding: 40px 0 20px;
  position: relative;
}

.footer-container {
  position: relative;
  z-index: 2;
}

.footer-top {
  row-gap: 30px;
}

.footer-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
  column-count: 3;
}

.footer-menu ul li {
  margin-bottom: 12px;
}

.footer-menu ul a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-menu ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #94a3b8;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* **** Responsive Media Queries **** */
@media (min-width: 1401px) {
  .header-nav-menu ul.menu > li {
    margin: 0 16px;
  }
}

@media (max-width: 1200px) {
  .header-nav-menu ul.menu > li {
    margin: 0 6px;
  }
  .header-nav-menu ul.menu > li > a {
    font-size: 15px;
  }
  .main-header .header-logo .logo img,
  .main-header .custom-logo,
  .custom-logo-link img {
    height: 56px !important;
  }
}

@media (max-width: 991px) {
  .header-wrapper {
    height: 92px;
  }
  .scroll-sticky .header-wrapper {
    height: 63px;
  }
  .top-bar {
    display: none;
  }
  .header-nav-menu:not(.mobile-main-menu) {
    display: none;
  }
  .main-header .header-logo .logo img,
  .main-header .custom-logo,
  .custom-logo-link img {
    height: 50px !important;
  }
  .toggle-menu-items {
    top: 92px;
  }
}
