/* ================= HEADER ================= */
.cdot-header {
  background-color: inherit;
  position: relative;
  padding: 0 1rem;
  overflow: visible;
}

/* Logo */
.cdot-logo img {
  height: 40px;
}

/* ================= DESKTOP NAV ================= */
.cdot-nav-wrapper {
  margin-left: 2rem;
  margin-right: auto;
  background: #E2EAEE;
  padding: 4px 6px;
  border-radius: 999px;
}

.cdot-nav {
  display: flex;
  gap: 3px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: #333;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
}

.nav-link.active {
  background: #16499C;
  color: #fff;
}

/* ================= RIGHT SIDE ================= */
.cdot-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ================= REGISTER ================= */
.cdot-register-btn {
  background: linear-gradient(90deg, #2E70D1, #16499C);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ================= TOGGLE ================= */
.mobile-nav-toggle {
  display: none;
}

/* ================= MOBILE DROPDOWN ================= */
.mobile-nav-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #E2EAEE;
  margin: 0;
  list-style: none;
  padding: 12px 0;

  z-index: 9999;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);

  display: none; /* GSAP controls this */
}

.mobile-nav-list li {
  padding: 10px 20px;
}

.mobile-nav-list li a {
  display: block;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
}

.mobile-nav-list li a:hover {
  background: #d9d9d9;
}

/* ================= MOBILE ================= */
@media (max-width: 767px) {

  .cdot-logo img {
    height: 50px;
    margin-left: -30px;
  }

  .cdot-nav-wrapper {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px;
    border-radius: 50%;
    background-color: #f1f3f5;
    border: none;
  }

  .cdot-register-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    margin-right: -25px;
  }
}

/* ================= MID-SCREENS (TABLET / SMALL LAPTOP) ================= */
@media (max-width: 1100px) and (min-width: 768px) {

  /* Reduce nav spacing */
  .cdot-nav {
    gap: 2px;
  }

  .nav-link {
    padding: 5px 10px;   /* 🔥 tighter */
    font-size: 11px;     /* 🔥 smaller text */
  }

  /* Reduce nav container padding */
  .cdot-nav-wrapper {
    padding: 3px 4px;
  } 

  /* Slightly shrink register button
  .cdot-register-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

}

@media (max-width: 1000px) and (min-width: 768px) {

  .cdot-nav-wrapper {
    transform: scale(0.95);
    transform-origin: left center;
  }

} */

@media (max-width: 991px) {
  .cdot-nav-wrapper {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }
}
