/* ============================================
   Home-style Navbar & Theme for Feature Pages
   Matches index.html navbar and body theme
   ============================================ */

:root {
  --navbar-padding-top: 15px;
  --navbar-padding-bottom: 15px;
  --navbar-logo-height: 60px;
  --navbar-total-height: calc(var(--navbar-padding-top) + var(--navbar-logo-height) + var(--navbar-padding-bottom));
}

/* Body theme to match home page */
body {
  font-family: 'Rubik', 'Poppins', sans-serif !important;
  background: #f8faff !important;
  color: #003366 !important;
  padding-top: var(--navbar-total-height) !important;
}

/* Top Navigation Bar - same as home */
.bottom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  padding: var(--navbar-padding-top) 40px var(--navbar-padding-bottom);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
  height: var(--navbar-total-height);
  box-sizing: border-box;
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: var(--navbar-logo-height);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo img {
  height: 100%;
  width: auto;
  max-height: var(--navbar-logo-height);
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button {
  padding: 12px 24px;
  border-radius: 25px;
  background: transparent;
  color: #004aad;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Rubik', 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-button:hover {
  background: rgba(0, 74, 173, 0.1);
  color: #004aad;
  transform: translateY(-2px);
}

.nav-button.active {
  background: rgba(0, 74, 173, 0.15);
  color: #004aad;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2);
}

.nav-button-login {
  background: #004aad;
  color: #fff;
}

.nav-button-login:hover {
  background: #003580;
  color: #fff;
}

/* Features Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown .nav-button {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown .nav-button::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
}
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 74, 173, 0.2);
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1001;
  border: 1px solid rgba(0, 74, 173, 0.1);
}
.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.open .nav-dropdown-content {
  display: block;
}
.nav-dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #004aad;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.nav-dropdown-content a:hover {
  background: rgba(0, 74, 173, 0.08);
}

/* Responsive Navbar - Tablet */
@media (max-width: 991px) {
  :root {
    --navbar-padding-top: 12px;
    --navbar-padding-bottom: 12px;
    --navbar-logo-height: 50px;
  }
  .bottom-navbar {
    padding: var(--navbar-padding-top) 30px var(--navbar-padding-bottom);
    gap: 20px;
  }
  .navbar-logo {
    height: var(--navbar-logo-height);
  }
  .navbar-logo img {
    max-height: var(--navbar-logo-height);
  }
  .navbar-links {
    gap: 6px;
  }
  .nav-button {
    padding: 10px 18px;
    font-size: 14px;
  }
  body {
    padding-top: var(--navbar-total-height) !important;
  }
}

/* Responsive Navbar - Mobile */
@media (max-width: 767px) {
  :root {
    --navbar-padding-top: 10px;
    --navbar-padding-bottom: 10px;
    --navbar-logo-height: 45px;
  }
  .bottom-navbar {
    padding: var(--navbar-padding-top) 20px var(--navbar-padding-bottom);
    gap: 15px;
  }
  .navbar-logo {
    height: var(--navbar-logo-height);
  }
  .navbar-logo img {
    max-height: var(--navbar-logo-height);
  }
  .navbar-links {
    gap: 5px;
  }
  .nav-button {
    padding: 8px 14px;
    font-size: 13px;
  }
  body {
    padding-top: var(--navbar-total-height) !important;
  }
}

/* Responsive Navbar - Small Mobile */
@media (max-width: 479px) {
  :root {
    --navbar-padding-top: 8px;
    --navbar-padding-bottom: 8px;
    --navbar-logo-height: 40px;
  }
  .bottom-navbar {
    padding: var(--navbar-padding-top) 15px var(--navbar-padding-bottom);
    gap: 10px;
  }
  .navbar-logo {
    height: var(--navbar-logo-height);
  }
  .navbar-logo img {
    max-height: var(--navbar-logo-height);
  }
  .navbar-links {
    gap: 4px;
  }
  .nav-button {
    padding: 6px 10px;
    font-size: 11px;
  }
  body {
    padding-top: var(--navbar-total-height) !important;
  }
}

/* Feature page content - align with home blue accent */
.feature-page .back-link {
  color: #004aad;
}
.feature-page .step-num {
  background: #004aad;
  color: #fff;
}
.highlight-box {
  border-left-color: #004aad;
}
