/* ============================================================
   rkdf-navbar.css — High-Contrast Modern University Header
   Crisp Typography, Premium Contrast, Multi-Tier Megamenus & Mobile Accordion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --nav-paper: #FFFFFF;
  --nav-navy-deep: #0C1424;
  --nav-navy-subtle: #475569;
  --nav-gold: #C5A059;
  --nav-red: #E31B23;
  --nav-red-hover: #C9192A;
  --nav-hairline: rgba(12, 20, 36, 0.08);
}

/* ── Fixed Outer Sticky Wrapper (Elevated Z-Index to prevent slider overlap) ── */
.rkdf-navbar-wrap {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  box-shadow: 0 2px 16px rgba(12, 20, 36, 0.06);
}

/* ── Top Utility Strip (Dark Slate Navy Bar) ── */
.rkdf-top-utility-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
  position: relative;
  width: 100%;
  z-index: 99995;
  font-family: 'Inter', system-ui, sans-serif;
}
.rkdf-utility-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 1024px) {
  .rkdf-utility-inner {
    padding: 0 40px;
  }
}
.rkdf-utility-left, .rkdf-utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rkdf-util-link,
.rkdf-util-link:link,
.rkdf-util-link:visited {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.rkdf-util-link:hover {
  color: #ffffff !important;
}
.rkdf-util-link.highlight-mail {
  color: #fef08a !important;
  font-weight: 700;
}
.rkdf-util-link.highlight-tender {
  color: #fca5a5 !important;
  font-weight: 700;
}
.rkdf-util-divider {
  opacity: 0.3;
  color: #94a3b8;
}
.rkdf-util-org {
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
@media (max-width: 820px) {
  .rkdf-top-utility-bar { display: none; }
}

/* ── Main Navigation Bar Container ── */
.rkdf-nav-bar {
  position: relative;
  width: 100%;
  height: 74px;
  z-index: 99990;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--nav-hairline);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Scrolled Glassmorphism State ── */
.rkdf-nav-bar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(12, 20, 36, 0.10);
  box-shadow: 0 4px 24px rgba(12, 20, 36, 0.08);
}

/* ── Inner Flex Layout ── */
.rkdf-nav-inner {
  max-width: 1440px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .rkdf-nav-inner {
    padding: 0 40px;
  }
}

/* ── Brand / Logo Section (Left) ── */
.rkdf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.rkdf-badge-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  max-height: 44px !important;
  width: 40px !important;
  max-width: 40px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  transition: transform 0.3s ease;
}
.rkdf-brand:hover .rkdf-badge-box {
  transform: scale(1.04);
}

.rkdf-badge-img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.rkdf-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.rkdf-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--nav-navy-deep) !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
@media (max-width: 480px) {
  .rkdf-brand-name {
    font-size: 16.5px;
  }
}

.rkdf-brand-loc {
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  white-space: nowrap;
}

/* ── Center Navigation Links ── */
.rkdf-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  align-items: center;
  gap: 24px;
  height: 100%;
}
@media (min-width: 1024px) {
  .rkdf-nav-list {
    display: flex;
  }
}
@media (min-width: 1200px) {
  .rkdf-nav-list {
    gap: 28px;
  }
}

.rkdf-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* High-Contrast Crisp Navigation Links */
.rkdf-nav-link,
.rkdf-nav-link:link,
.rkdf-nav-link:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nav-navy-deep) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.25s ease;
  cursor: pointer;
  text-shadow: none !important;
  padding: 6px 0;
}

/* Red Hover & Active Underline Indicator */
.rkdf-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 0;
  background-color: var(--nav-red);
  transition: width 0.25s ease;
  border-radius: 99px;
}

.rkdf-nav-link:hover,
.rkdf-nav-link:focus,
.rkdf-nav-link:visited:hover,
.rkdf-nav-item:hover > .rkdf-nav-link {
  color: var(--nav-red) !important;
}

.rkdf-nav-link:hover::after,
.rkdf-nav-item:hover > .rkdf-nav-link::after {
  width: 100%;
}

.rkdf-chev, .rkdf-chev-svg {
  display: inline-block;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
  vertical-align: middle;
}
.rkdf-nav-item:hover > .rkdf-nav-link .rkdf-chev,
.rkdf-nav-item:hover > .rkdf-nav-link .rkdf-chev-svg {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--nav-red);
}

/* ── Dropdown Submenus ── */
.rkdf-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  background: #ffffff;
  border: 1px solid rgba(12, 20, 36, 0.08);
  border-top: 3px solid var(--nav-red);
  border-radius: 0 0 10px 10px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 16px 36px rgba(12, 20, 36, 0.12);
  z-index: 100000;
}
.rkdf-nav-item:hover .rkdf-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.rkdf-drop-wide {
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px;
  gap: 16px;
}
.rkdf-drop-col {
  display: flex;
  flex-direction: column;
}
.rkdf-drop-head {
  display: block;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--nav-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
}
.rkdf-drop-link,
.rkdf-drop-link:link,
.rkdf-drop-link:visited {
  display: block;
  padding: 7px 12px;
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-shadow: none !important;
}
.rkdf-drop-link:hover {
  background: rgba(227, 27, 35, 0.06) !important;
  color: var(--nav-red) !important;
  transform: translateX(3px);
}

/* ── Right Actions ── */
.rkdf-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) {
  .rkdf-nav-right {
    gap: 14px;
  }
}

/* Search Trigger Icon Button */
.rkdf-search-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(12, 20, 36, 0.12);
  color: var(--nav-navy-deep);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
@media (min-width: 768px) {
  .rkdf-search-btn {
    display: grid;
  }
}
.rkdf-search-btn:hover {
  background-color: rgba(12, 20, 36, 0.05);
  border-color: rgba(12, 20, 36, 0.25);
  color: var(--nav-red);
}

/* Student Login Outline Button */
.rkdf-login-btn {
  display: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-navy-deep) !important;
  border: 1px solid rgba(12, 20, 36, 0.22);
  border-radius: 4px;
  background: transparent;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
@media (min-width: 768px) {
  .rkdf-login-btn {
    display: inline-block;
  }
}
.rkdf-login-btn:hover {
  border-color: var(--nav-navy-deep);
  background-color: rgba(12, 20, 36, 0.05);
  color: var(--nav-navy-deep) !important;
}

/* Solid Crimson Red APPLY NOW Button */
.rkdf-apply-red-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--nav-red);
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.30);
}
.rkdf-apply-red-btn:hover {
  background-color: var(--nav-red-hover);
  box-shadow: 0 6px 18px rgba(227, 27, 35, 0.45);
  transform: translateY(-1px);
}
.rkdf-apply-red-btn .rkdf-arrow-svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.rkdf-apply-red-btn:hover .rkdf-arrow-svg {
  transform: translate(2px, -2px);
}

/* Mobile Hamburger Button */
.rkdf-burger {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(12, 20, 36, 0.15);
  border-radius: 6px;
  color: var(--nav-navy-deep);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
@media (min-width: 1024px) {
  .rkdf-burger {
    display: none;
  }
}
.rkdf-burger:hover {
  background-color: rgba(12, 20, 36, 0.05);
}

/* ── Expandable Search Overlay ── */
.rkdf-search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  padding: 20px 24px;
  display: none;
  border-bottom: 2px solid var(--nav-red);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 100001;
}
.rkdf-search-overlay.active {
  display: block;
  animation: searchSlideDown 0.25s ease-out;
}
@keyframes searchSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.rkdf-search-box {
  max-width: 840px;
  margin: 0 auto;
}
.rkdf-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.rkdf-search-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 15px;
  outline: none;
}
.rkdf-search-form input:focus {
  border-color: var(--nav-red);
  background: rgba(255,255,255,0.18);
}
.rkdf-search-submit {
  padding: 12px 24px;
  background: var(--nav-red);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.rkdf-search-submit:hover {
  background: var(--nav-red-hover);
}
.rkdf-search-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
}
.rkdf-search-close:hover {
  color: #ffffff;
}
.rkdf-search-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
}
.rkdf-search-tags a {
  color: #f1f5f9;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 99px;
  transition: all 0.2s;
}
.rkdf-search-tags a:hover {
  background: var(--nav-red);
  color: #ffffff;
}

/* ── Live Typeahead Search Dropdown ── */
.rkdf-live-search-results {
  margin-top: 14px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.2);
}
.rkdf-live-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  text-decoration: none;
  color: #0C1424;
  border-bottom: 1px solid rgba(12,20,36,0.06);
  transition: background 0.18s ease;
}
.rkdf-live-item:last-child {
  border-bottom: none;
}
.rkdf-live-item:hover,
.rkdf-live-item.selected {
  background: #F1F5F9;
}
.rkdf-live-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #0C1424;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rkdf-live-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(197, 160, 89, 0.18);
  color: #926C15;
}
.rkdf-live-cat {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}
.rkdf-live-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  background: #0C1424;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.rkdf-live-view-all:hover {
  background: #E31B23;
}

/* ── Mobile Menu Accordion Drawer ── */
.rkdf-mobile-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFFFFF;
  z-index: 99999;
  padding: 16px 20px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--nav-hairline);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.rkdf-mobile-drawer.active {
  display: block;
  animation: rkdfDrawerSlide 0.25s ease-out;
}
@keyframes rkdfDrawerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rkdf-mobile-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rkdf-mob-acc-item {
  border: 1px solid rgba(12,20,36,0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fafaf9;
}
.rkdf-mob-acc-btn {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--nav-navy-deep);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.rkdf-mob-acc-btn:hover {
  background: #f8fafc;
}
.rkdf-mob-chev {
  transition: transform 0.25s ease;
  color: #64748b;
}
.rkdf-mob-acc-item.open .rkdf-mob-chev {
  transform: rotate(180deg);
  color: var(--nav-red);
}
.rkdf-mob-acc-body {
  display: none;
  padding: 8px 12px 14px;
  background: #fafaf9;
  border-top: 1px solid rgba(12,20,36,0.06);
}
.rkdf-mob-acc-item.open .rkdf-mob-acc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rkdf-mob-sublink {
  display: block;
  padding: 9px 12px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.rkdf-mob-sublink:hover {
  background: rgba(227,27,35,0.08);
  color: var(--nav-red);
}

.rkdf-mob-quick-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid rgba(12,20,36,0.08);
}
.rkdf-mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nav-navy-deep);
  text-decoration: none;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(12,20,36,0.08);
  transition: all 0.2s ease;
}
.rkdf-mobile-link:hover {
  color: var(--nav-red);
  border-color: var(--nav-red);
}
.rkdf-mob-apply-btn {
  background: var(--nav-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: center;
}
.rkdf-mob-login-btn {
  background: var(--nav-navy-deep) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: center;
}