/* HEADER BG */
.custom-header {
  padding:10px 0;
  width: 100%;
  margin: 0 auto;
  position:sticky;
  top:0;
  z-index:99;
  background-color:var(--white);
}
.custom-header *{
  font-family: var(--montserrat-font);
}

.custom-header a {
  text-decoration: none;
}
.custom-logo{
  background-color:var(--white);
  border-radius:var(--rounded-20);
  padding:6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  max-height: 48px;
}
.custom-logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  max-width: 100%;
}
.custom-logo img,
.custom-logo picture img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* INNER BOX */
.header-inner {
  background: #1b2228;
  border-radius:var(--rounded-20);
  padding: 10px 15px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e3e7ed;
}
.logo {
  flex: 0 0 auto;
}

.menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.cta {
  flex: 0 0 auto;
}

/* LOGO */
.logo-icon {
  width: 35px;
  height: 35px;
  background: #000;
  border-radius: 50%;
}

.logo-text {
  font-weight: 600;
  font-size: 20px;
}

/* MENU */
.menu .nav-link {
  color:var(--black);
  margin: 0 5px;
  font-size: 15px;
  transition: 0.3s;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu .nav-link:hover {
   color:var(--black);
  border-color: #cbcfd6;
}

/* MOBILE */
.menu-toggle {
  font-size: 22px;
}

/* ===================== MEGA MENU ===================== */

.mega-parent {
  position: static;
}
.subdropdown {
  position: absolute;
  top: 56px; /* thoda niche start */
  left: 0;
  width: 100%;
  opacity: 0;
  padding-top: 24px;
  visibility: hidden;
  transform: translateY(20px); /* 👈 slide effect */
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  background-color: transparent;
  z-index:99;
}
.carsens-mega-menu {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

/* HOVER */
.mega-parent:hover .subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* 👈 upar aayega */
}

.mega-title {
  font-size: 14px;
  color: #999;
  margin-bottom: 40px;
  padding: 0 12px;
}

.mega-list {
  list-style: none;
  padding: 0;
}

.mega-list li a {
  display: block;
  color: var(--black);
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
}

.mega-list li a:hover {
  background: #f1f1f1;
}

/* CARD */
.mega-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 10px;
  font-size: 16px;
  color: var(--black);
  transition: 0.3s;
  font-weight: 400;
  line-height: 1.3;
}

.mega-card span {
  display: block;
  font-size: 14px;
  color: #1a1a1a99;
}

/* ===================== ENGAGE ===================== */

.engage-parent {
  position: relative;
}

.engage-menu {
  width: 323px;
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.engage-parent:hover .subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* 👈 upar aayega */
}
.engage-subdropdown {
  top: 100%;
}

.engage-item {
  display: flex;
  gap: 10px;
  align-items: start;

  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  transition: 0.2s;
}

.engage-item:hover {
  background: #f1f1f1;
}

.engage-item i {
  font-size: 18px;
}

/* ===================== INSIGHTS ===================== */

.insights-parent {
  position: relative;
}

.insights-menu {
  width: 323px;
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.insights-parent:hover .subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* 👈 upar aayega */
}
.insights-subdropdown {
  top: 100%;
}

.insights-item {
  display: flex;
  gap: 12px;
  align-items: center;

  padding: 12px;
  border-radius: 10px;
  color: inherit;
  transition: 0.2s;
}

.insights-item:hover {
  background: #f1f1f1;
}

.icon-box i {
  font-size: 16px;
}
.insights-menu .ph-icon-info {
  width: 44px;
  height: 44px;
}

/* ===================== ICON BOX ===================== */

.ph-icon-info {
  border: 1px solid #dfe4eb;
  width: 31px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===================== DROPDOWN ARROW ===================== */

.has-arrow::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../images/menu-dropdown-arrow.svg") no-repeat;
  display: inline-block;
  transition: 0.3s ease;
}

.mega-parent:hover .has-arrow::after,
.engage-parent:hover .has-arrow::after,
.insights-parent:hover .has-arrow::after {
  transform: rotate(180deg);
}

/* ===================== CTA BUTTON (FINAL CLEAN) ===================== */

.cta-btn {
  display: inline-flex;
  align-items: center;
  background-color:var(--white);
  color:var(--black);
 border-radius:var(--rounded-20);
  padding: 5px;
  overflow: hidden;
}

.cta-btn:hover {
  background-color:#f1f1f1;
  color:var(--black);
}

/* ICON */
.cta-btn .icon {
  width:36px;
  height: 44px;
  color: #000;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateX(0);
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-btn .icon svg {
  height: 24px;
}

/* TEXT */
.cta-btn .text {
  padding: 0 15px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;

  transform: translateX(0);
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER */
.cta-btn:hover .icon {
  transform: translateX(108px);
}

.cta-btn:hover .text {
  transform: translateX(-54px);
}

/* ............ */
.engage-item strong,
.insights-item strong {
  display: block;
  font-size: 16px;
  color: var(--black);
  font-weight: normal;
  line-height: 1;
}

.engage-item span,
.insights-item span {
  display: block;
  font-size: 14px;
  color: #1a1a1a99;
  margin-top: 2px;
}
.menu-toggle-close,
.menu-toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 16px;
  background-color: #f1f2f4;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
}
@media (max-width: 991px) {
  .main-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    z-index: 9999;

    display: flex;
    flex-direction: column;

    transition: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-menu-wrapper.active {
    right: 0;
  }

  /* TOP BAR (logo + close) */
  .mob-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  /* MENU LIST */
  .menu {
    display: flex !important;
    flex-direction: column;
    padding: 10px 15px !important;
    justify-content: start;
  }

  .menu .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .menu .nav-link {
    width: 100%;
    padding: 15px 5px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
  }
  .subdropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-top: 0;
    display: none; /* 👈 default hidden */
  }
  .carsens-mega-menu,
  .insights-menu,
  .engage-menu {
    box-shadow: none;
    background-color: none;
    padding: 0 25px;
    width: 100%;
  }

  .nav-item.active .subdropdown {
    display: block; /* 👈 click pe open */
  }
  .mega-list {
    margin-bottom: 12px;
  }
  .mega-title {
    margin-bottom: 20px;
  }
  .menu .nav-link {
    margin: 0;
  }
  .nav-item.active .has-arrow::after {
    transform: rotate(0deg);
  }
  .menu .nav-link:hover {
    border-color: transparent;
  }
  .has-arrow::after{
    filter: brightness(0);
  }
}
/* DESKTOP FIX */
@media (min-width: 992px) {
  .menu .nav-link {
  color: #cbcfd6;
}
.menu .nav-link:hover {
  color: #f4f4f4;
  border-color: #cbcfd6;
}
  .mega-list {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* last item (card wala li) ko niche push */
  .mega-list li:last-child {
    margin-top: auto;
  }
  .carsens-mega-menu {
    padding-bottom: 85px;
  }
}
