/* ============================================================
   NAVBAR.CSS — AIC Chitkara
   Sticky top navigation + Mobile slide-to-left drawer
   ============================================================ */

/* ---------- Sticky wrapper ---------- */
.aic-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition);
}

.aic-navbar-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
}

/* ---------- Inner nav layout ---------- */
.aic-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 84px;
  gap: 16px;
}

/* ---------- Logo group ---------- */
.aic-logo-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.aic-logo-group a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.aic-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.aic-logo-divider {
  width: 1px;
  height: 44px;
  background: #e2e4e8;
  margin: 0 16px;
}

/* AIM Badge - dashed border box matching screenshot */
.aic-aim-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aic-aim-badge span {
  font-size: 11px;
  font-weight: 500;
  color: #555b66;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------- Desktop nav links ---------- */
.aic-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aic-nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}

.aic-nav-links li a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.aic-nav-links li a:hover {
  color: #dc1e28;
}

/* Active link in red with red bottom pill underline */
.aic-nav-links li a.active {
  color: #dc1e28;
  font-weight: 600;
}

.aic-nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background-color: #dc1e28;
  border-radius: 2px;
}

/* ---------- Apply CTA (desktop) ---------- */
.aic-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #cc0000;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.aic-nav-cta:hover {
  background: #aa0000;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.3);
}

.aic-nav-cta .material-icons {
  font-size: 17px;
  line-height: 1;
}

/* ---------- Hamburger Button ---------- */
.aic-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color:#d00000;
  border: none; 
  cursor: pointer;
  padding:14px 12px;
  border-radius: 0px;
  gap: 3px;
  transition: background 0.2s ease;
  z-index: 1001;
  position: relative;
}

.aic-hamburger:hover {
  background: #f1f3f5;
}

.aic-hamburger span {
  display: block;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.aic-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.aic-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.aic-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE OVERLAY & SLIDE-TO-LEFT DRAWER
   ============================================================ */

/* Overlay */
.aic-mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aic-mob-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Slide from Left Drawer */
.aic-mob-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  /*box-shadow: 4px 0 30px rgba(0, 0, 0, 0.18);*/
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.aic-mob-drawer.is-open {
  transform: translateX(0);
}

/* Drawer Header */
.aic-mob-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e9ecef;
}

.aic-mob-drawer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.aic-mob-close {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #495057;
  transition: background 0.2s, color 0.2s;
}

.aic-mob-close:hover {
  background: #e9ecef;
  color: #000000;
}

.aic-mob-close .material-icons {
  font-size: 20px;
}

/* Drawer Navigation Links */
.aic-mob-nav {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  flex: 1;
}

.aic-mob-nav li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.aic-mob-nav li a:hover,
.aic-mob-nav li a.active {
  background: #fff5f5;
  color: #cc0000;
  border-left-color: #cc0000;
}

.aic-mob-nav li a .material-icons {
  font-size: 20px;
  color: #cc0000;
  opacity: 0.85;
}

/* Drawer Footer */
.aic-mob-drawer-footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  background: #fafbfc;
}

.aic-mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #cc0000;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.aic-mob-cta:hover {
  background: #aa0000;
}

.aic-mob-cta .material-icons {
  font-size: 18px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1140px) {
  .aic-nav-links {
    gap: 14px;
  }
  .aic-nav-links li a {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .aic-nav-links,
  .aic-nav-cta {
    display: none;
  }

  .aic-hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .aic-navbar {
    height: 64px;
  }

  .aic-logo-img {
    height: 30px;
  }

  .aic-logo-divider {
    margin: 0 10px;
    height: 34px;
  }
}