
/**
 * CertiNext header styles
 * Header layout and sticky behaviour
 */
/* ========================================
   FIX HORIZONTAL OVERFLOW ISSUE
   ======================================== */
/* Fix Bootstrap row negative margins causing overflow */

/* Constrain mega menu dropdown width to viewport */


/* ========================================
   DUAL HEADER SCROLL BEHAVIOR (Zoho-like)
   ======================================== */

/* Main header container */
#header {
  position: relative;
  transition: transform 0.3s ease-in-out;
}

/* Secondary header - initially static, becomes sticky when active */
.cnx-header {
  position: relative;
  transition: all 0.3s ease-in-out;
  z-index: -1;
}

/* Secondary header sticky behavior */
.cnx-header.sticky-active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  animation: slideDown 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Slide down animation for sticky header */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Prevent layout shift when the secondary header becomes fixed */
#header.scroll-up .cnx-header.sticky-active ~ * {
  margin-top: 0;
}
/* STICKY TOP HEADER */

/* BRAND LOGO */

/* NAVIGATION HEADER */

/* NAVIGATION LIST */

/* MOBILE LOGO WRAPPER */

/* NAV CLOSE BUTTON */

/* DROPDOWN MENUS */

/* NAV ITEM HEADER */


@media (min-width: 992px) {
/* About Us dropdown only (--sm): its backdrop padding stacks on top of the parent
   .feature-container__item padding, leaving too much gap on all four sides. Zero it
   here (the parent padding still provides spacing). Scoped to --sm so the Products
   (--lg) and Resources (--md) backdrops keep their 35px padding. */

.blogs_pro img {
    border-radius: 20px;
    min-height: 70px;
}
/* Latest Blog Posts (header dropdown): clamp description to 2 lines */
.blogs_pro + div p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 0;
}
/* Same cards: clamp the headline to 2 lines too */
.blogs_pro + div h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 4px;
}
}
/* HEADER DROPDOWN */

/* MEGAMENU TABS */

/* FEATURE CARDS */

/* SUB BRAND */

/* Restore left padding for the first column of the Resources / About Us (md/sm)
   dropdowns. The :nth-child(odd) reset above is meant for the Products mega-menu's
   flush gray panel; without this, the Document Library / Connect With Us column
   sits hard against the panel's left edge. Scoped to --md/--sm so the Products
   (--lg) mega-menu is unaffected. Higher specificity overrides the reset above. */

/* FEATURE CONTAINER */

/* LOGIN BUTTONS */

/* MOBILE-ONLY CONTACT BUTTON */

/* COUNTRY LIST */

 .industry-swiper img {
    width: 100%;
    border-radius: 16px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===========================================
   FALLBACK TAB HIDING RULES
   Forces non-active product tabs to be hidden
   =========================================== */
/* Hide all product tab content by default */

/* Show only the active tab */

/* Same for industry tabs */


/* Case Study Icon Boxes (Primary Header Mega Menu) */
.ems-cs-icon-box {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ems-cs-icon-box i {
  font-size: 30px;
}
.ems-cs-icon--bfsi { background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%); }
.ems-cs-icon--bfsi i { color: #1a56db; }
.ems-cs-icon--govt { background: linear-gradient(135deg, #ede9fe 0%, #f5f0ff 100%); }
.ems-cs-icon--govt i { color: #6d28d9; }
.ems-cs-icon--telecom { background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%); }
.ems-cs-icon--telecom i { color: #0f766e; }
.ems-cs-icon--other { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); }
.ems-cs-icon--other i { color: #92400e; }
.ems-cs-icon--gst { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); }
.ems-cs-icon--gst i { color: #92400e; }
.ems-cs-icon--mca { background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%); }
.ems-cs-icon--mca i { color: #1a56db; }
.ems-cs-icon--tender { background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%); }
.ems-cs-icon--tender i { color: #065f46; }
.ems-cs-icon--health { background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%); }
.ems-cs-icon--health i { color: #be185d; }
