:root {
  --primary: #0d47a1;
  --accent: #e02618;
  --dark: #1a1a1a;
  --light: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  padding-top: 90px; /* Prevents content from being hidden under fixed navbar */
}

/* ===== NAVBAR BASE ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  width: 100%;
  }

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  
}

/* ===== LOGO ===== */
.navbar-brand {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-decoration: none;
}
.fixed-top{
  padding-top: 19px !important;
  
}
.navbar-brand span {
  color: var(--accent);
}

/* Mobile Centered Logo */
.navbar-brand-mobile {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  z-index: 1000;
}

.navbar-brand-mobile span {
  color: var(--accent);
}

/* ===== TOGGLER ===== */
.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230d47a1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== NAV LINKS ===== */
.navbar .nav-link {
  color: var(--primary);
  font-weight: 500;
  margin: 0 0.25rem;
  border-radius: 50px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar .nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Dropdown Arrow */
.dropdown-toggle::after {
  margin-left: 0.5rem;
  border-top-color: var(--primary);
}

.dropdown-toggle:hover::after {
  border-top-color: var(--accent);
}

/* Desktop Hover Dropdown */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    
  }

  .navbar-brand-desktop { display: block; }
  .navbar-brand-mobile { display: none; }
}

/* Mobile View Adjustments */
@media (max-width: 991.98px) {
  .mobile-offcanvas {
    width: 280px !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .mobile-offcanvas.show {
    transform: translateX(0) !important;
  }

  .navbar-brand-desktop { display: none; }

  .mobile-offcanvas .nav-link {
    padding-left: 20px;
  }
}

/* ===== DROPDOWN MENU (DESKTOP & MOBILE) ===== */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  padding: 0.8rem 0;
  margin-top: 0.6rem;
  min-width: 240px;
  background: var(--primary) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: none;
  overflow: hidden;
}

.dropdown-menu.show,
.mobile-dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Collapse Dropdown */
.mobile-dropdown-menu {
  background: var(--primary) !important;
  border-radius: 10px;
  margin: 0.75rem 1.25rem;
  box-shadow: 0 6px 16px rgba(13, 71, 161, 0.2);
  transition: all 0.3s ease;
}

.mobile-dropdown-menu .list-unstyled {
  margin: 0;
  padding: 0;
}

.mobile-dropdown-menu .dropdown-item {
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  margin: 0 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.25s ease;
  background: transparent !important;
}

.mobile-dropdown-menu .dropdown-item:hover {
  background: #fff !important;
  color: var(--accent) !important;
  transform: translateX(4px);
}

/* General Dropdown Items */
.dropdown-item {
  padding: 0.7rem 1.6rem;
  font-weight: 500;
  color: #ffffff !important;
  transition: all 0.25s ease;
  margin: 0 0.4rem;
  border-radius: 8px;
  background: transparent !important;
}

.dropdown-item:hover {
  background: #ffffff !important;
  color: var(--accent) !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== APPLY NOW BUTTON ===== */
.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  width: 140px;
  height: 45px;
  padding: 8px;
  text-align: center;
  transition: color 0.3s ease, transform 0.2s ease;
}

.btn-apply:hover {
  color: #000 !important;
  transform: translateY(-2px);
}

.btn-apply:active {
  transform: translateY(0);
}

.w-75.btn-apply {
  width: 75%;
  height: 48px;
  font-size: 17px;
  margin: 1rem auto 0.5rem;
  display: block;
}