/* =========================================================
   FORCE INDIA - COMPACT SINGLE-ROW NAVBAR (IMAGE MATCH)
   ========================================================= */
.fi-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 0.125rem 0.45rem rgba(0, 0, 0, 0.06);
}

/* 1. TOP UTILITY BAR (Thin dimmed red line + Blinking Latest + Blue News) */
.fi-topbar {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(158, 28, 28, 0.30);
  /* padding: 0.34rem 0; */
  padding: 0.55rem 0;
}

.fi-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fi-date-text {
  font-family: 'Open Sans', sans-serif;
  /* font-size: 0.75rem; */
  font-size: 0.84rem;
  font-weight: 500;
  color: #2B2B2B;
}

.fi-latest-strip {
  display: flex;
  align-items: center;
  /* gap: 0.45rem; */
  gap: 0.55rem;
  min-width: 0;
}

@keyframes fi-latest-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.fi-latest-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* font-size: 0.66rem; */
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: #9E1C1C;
  /* padding: 0.14rem 0.48rem; */
  padding: 0.18rem 0.55rem;
  border-radius: 0.2rem;
  white-space: nowrap;
  animation: fi-latest-blink 1.4s ease-in-out infinite;
}

.fi-latest-dot {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-block;
  flex-shrink: 0;
}

.fi-latest-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* font-size: 0.78rem; */
  font-size: 0.86rem;
  font-weight: 600;
  color: #1D4ED8;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* max-width: 34rem; */
  max-width: 42rem;
  transition: color 0.18s ease;
}

.fi-latest-link:hover {
  color: #9E1C1C;
  text-decoration: underline;
}

/* 2. MIDDLE BRAND BAR (Generous Vertical Breathing Space Around Logo) */
.fi-brand-bar {
  position: relative;
  z-index: 300;
  width: 100%;
  background: #FFFFFF;
  /* padding: 0.7rem 0 0.6rem 0; */
  padding: 1.15rem 0 1.05rem 0;
  overflow: visible;
}

.fi-brand-bar .fi-container {
  overflow: visible;
}

.fi-brand-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.fi-social-row {
  display: flex;
  align-items: center;
  /* gap: 0.95rem; */
  gap: 1.05rem;
}

.fi-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1F2937;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.fi-social-icon svg {
  /* width: 1.2rem; */
  /* height: 1.2rem; */
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.fi-social-icon:hover {
  color: #9E1C1C;
  transform: translateY(-0.08rem);
}

.fi-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fi-logo-img {
  /* height: 3rem; */
  height: 3.65rem;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Rounded Pill Search Input + Compact Right-Aligned Dropdown Anchor */
.fi-search-wrap {
  position: relative;
  z-index: 400;
  overflow: visible;
  justify-self: end;
  display: flex;
  align-items: center;
  border: 0.0625rem solid #CBD5E1;
  border-radius: 9999px;
  background: #FFFFFF;
  width: 100%;
  /* max-width: 15.5rem; */
  max-width: 17.5rem;
  /* padding: 0.08rem 0.45rem 0.08rem 0.85rem; */
  padding: 0.18rem 0.55rem 0.18rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fi-search-wrap:focus-within {
  border-color: #9E1C1C;
  box-shadow: 0 0 0 0.14rem rgba(158, 28, 28, 0.10);
}

.fi-search-input {
  flex: 1;
  border: none;
  outline: none;
  /* padding: 0.34rem 0.2rem; */
  padding: 0.42rem 0.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* font-size: 0.76rem; */
  font-size: 0.82rem;
  color: #1F2937;
  background: transparent;
  min-width: 0;
}

.fi-search-input::placeholder {
  color: #6B7280;
}

.fi-search-btn {
  background: transparent;
  border: none;
  padding: 0.28rem 0.35rem;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
}

.fi-search-btn:hover {
  color: #9E1C1C;
}

/* Compact Floating Recent Searches Card (Right-Aligned, Always Above Navbar) */
.fi-search-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  width: 100%;
  min-width: 14.5rem;
  max-width: 17.5rem;
  max-height: 15rem;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.45rem;
  box-shadow: 0 0.55rem 1.4rem rgba(15, 23, 42, 0.14), 0 0.15rem 0.35rem rgba(15, 23, 42, 0.06);
  z-index: 9999;
  text-align: left;
}

.fi-search-dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7280;
  background: #F8FAFC;
  border-bottom: 1px solid #EEF2F6;
}

.fi-search-dd-clear {
  background: none;
  border: none;
  color: #9E1C1C;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.fi-search-dd-clear:hover {
  text-decoration: underline;
}

.fi-search-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.14s ease;
}

.fi-search-recent-row:last-child {
  border-bottom: none;
}

.fi-search-recent-row:hover {
  background: #FEF2F2;
}

.fi-search-recent-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.4rem 0.65rem;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  color: #1F2937;
  cursor: pointer;
}

.fi-search-recent-row:hover .fi-search-recent-btn {
  color: #9E1C1C;
}

.fi-search-dd-icon {
  font-size: 14px !important;
  color: #9CA3AF;
  flex-shrink: 0;
}

.fi-search-recent-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fi-search-recent-remove {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}

.fi-search-recent-remove:hover {
  color: #9E1C1C;
}

/* 3. STICKY NAVIGATION PATTI / BAND (Warm Cream-Yellow Tint) */
.fi-navbar {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #FAF6E9;
  border-top: 0.0625rem solid #EFE9D5;
  border-bottom: 0.0625rem solid #EAE3CC;
  /* padding: 0.34rem 0; */
  padding: 0.52rem 0;
}

.fi-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  /* gap: 0.75rem; */
  gap: 0.95rem;
}

.fi-nav-item {
  position: relative;
}

.fi-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  /* padding: 0.34rem 0.68rem; */
  padding: 0.42rem 0.75rem;
  border-radius: 0.22rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2B2B2B;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

/* Hover-only parent menu trigger (non-clickable) */
.fi-nav-parent {
  cursor: default;
  user-select: none;
}

.fi-nav-link:hover,
.fi-nav-link.active,
.fi-nav-item:hover > .fi-nav-link {
  background: #9E1C1C;
  color: #FFFFFF;
}

.fi-caret {
  font-size: 0.98rem;
  line-height: 1;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
}

/* Floating Rounded White Dropdown Card (Video 100% Match) */
.fi-dropdown {
  position: absolute;
  top: calc(100% + 0.34rem);
  left: 0;
  /* min-width: 11.75rem; */
  min-width: 13.5rem;
  background: #FFFFFF;
  /* border-top: 0.125rem solid #9E1C1C; */
  border: 0.0625rem solid #EAEAEA;
  /* border-radius: 0.45rem; */
  border-radius: 0.5rem;
  box-shadow: 0 0.55rem 1.45rem rgba(0, 0, 0, 0.12), 0 0.15rem 0.4rem rgba(0, 0, 0, 0.06);
  /* padding: 0.5rem 0; */
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.3rem);
  transition: all 0.2s ease;
  z-index: 120;
  display: flex;
  flex-direction: column;
}

/* Invisible hover bridge so dropdown never flickers */
.fi-dropdown::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 0;
  right: 0;
  height: 0.45rem;
}

.fi-nav-item:hover .fi-dropdown,
.fi-nav-item:focus-within .fi-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fi-dropdown-item {
  display: block;
  /* padding: 0.5rem 1.1rem; */
  padding: 0.78rem 1.25rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.94rem;
  font-weight:650;
  line-height: 1.35;
  /* color: #2B2B2B; */
  color: #972323;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.fi-dropdown-item:first-child {
  border-radius: 0.45rem 0.45rem 0 0;
}

.fi-dropdown-item:last-child {
  border-radius: 0 0 0.45rem 0.45rem;
}

.fi-dropdown-item:only-child {
  border-radius: 0.45rem;
}

.fi-dropdown-item:hover,
.fi-dropdown-item.active {
  /* background: #9E1C1C; */
  background: #972323;
  color: #FFFFFF;
  /* font-weight: 600; */
  font-weight: 500;
}

.fi-mobile-toggle {
  display: none;
  background: #9E1C1C;
  color: #FFFFFF;
  border: none;
  border-radius: 0.22rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 0.35rem;
}

/* === Logged-In User Dropdown & Logout Button === */
.fi-nav-user-trigger {
  gap: 0.35rem;
}

.fi-nav-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.fi-nav-user-icon {
  font-size: 1.05rem !important;
  line-height: 1;
}

.fi-auth-nav-item .fi-dropdown {
  left: auto;
  right: 0;
}

.fi-dropdown-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fi-logout-btn {
  color: #9E1C1C;
  font-weight: 600;
  border-top: 1px solid #F1F5F9;
}

.fi-logout-btn:hover {
  background: #FEF2F2;
  color: #7F1D1D;
}

/* Fix: Recent search dropdown hamesha Navbar & Register/Login ke upar rahe */
.fi-header-wrap,
.fi-brand-bar,
.fi-brand-bar .fi-container,
.fi-brand-grid,
.fi-search-wrap {
  overflow: visible !important;
}

.fi-brand-bar {
  position: relative !important;
  z-index: 500 !important;
}

.fi-search-wrap {
  position: relative !important;
  z-index: 600 !important;
}

.fi-search-dropdown {
  position: absolute !important;
  z-index: 9999 !important;
}

.fi-navbar {
  position: relative !important;
  z-index: 100 !important;
  background-color: #FBF3D5 !important;
  border-top: 0.0625rem solid #EFE4BA !important;
  border-bottom: 0.0625rem solid #E8DAA6 !important;
}

.fi-navbar .fi-container {
  background: transparent !important;
}

@media (max-width: 1080px) {
  .fi-nav-list {
    gap: 0.35rem;
  }
  .fi-nav-link {
    padding: 0.3rem 0.48rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .fi-brand-bar {
    padding: 0.85rem 0;
  }
  .fi-logo-img {
    height: 3rem;
  }
  .fi-brand-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.65rem;
  }
  .fi-search-wrap {
    justify-self: center;
    max-width: 100%;
  }
  .fi-search-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
  .fi-mobile-toggle {
    display: inline-flex;
    margin: 0.15rem 0;
  }
  .fi-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.18rem;
    padding-top: 0.45rem;
  }
  .fi-nav-list.open {
    display: flex;
  }
  .fi-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: #FFFFFF;
    padding: 0.2rem 0 0.2rem 1rem;
  }
  .fi-dropdown::before {
    display: none;
  }
}