/*---=============================================================
   Pharma TecHub — custom overrides
   Loaded after style.css and responsive.css so these rules win
   at equal specificity. Keep vendor theme files untouched.
=============================================================---*/


/*---=============================================================
   01. Header / primary navigation
=============================================================---*/

.header-navigation .primary-menu {
    min-height: 86px;
}

/* Slightly smaller, calmer links — 17px bold read heavy in a six-item bar */
.header-navigation .main-menu ul li > a {
    padding: 31px 16px;
    font-size: 16px;
    color: #33415c;
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
}

/* Underline was a 1px hairline sitting in the text flow. Anchor it to
   the foot of the link as a rounded 3px indicator instead. */
.header-navigation .main-menu > ul > li > a {
    position: relative;
}

.header-navigation .main-menu > ul > li > a:after {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 0;
    height: 3px;
    border-radius: 3px;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.header-navigation .main-menu ul li > a.active:after,
.header-navigation .main-menu ul li:hover > a:after {
    width: calc(100% - 32px);
}

/* Dropdown caret: smaller, muted, and it turns over on open */
.header-navigation .main-menu ul > li.has-children > a:before {
    font-size: 12px;
    color: #8a93a8;
    margin-left: 7px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.header-navigation .main-menu ul > li.has-children:hover > a:before {
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
}

/* ── Dropdown panel ───────────────────────────────────────
   Was a square white box with a barely-there shadow. */
.header-navigation .main-menu ul li .sub-menu {
    min-width: 262px;
    padding: 10px;
    border: 1px solid rgba(89, 86, 233, 0.10);
    border-radius: 14px;
    box-shadow: 0 18px 45px -12px rgba(0, 2, 72, 0.18);
    -webkit-transform: translateY(10px);
    -ms-transform: translateY(10px);
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.header-navigation .main-menu ul li:hover > .sub-menu {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.header-navigation .main-menu ul li .sub-menu li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    line-height: 46px;
    font-size: 15px;
    font-weight: 600;
}

.header-navigation .main-menu ul li .sub-menu li a:hover,
.header-navigation .main-menu ul li .sub-menu li:hover > a {
    background-color: rgba(89, 86, 233, 0.08);
    color: var(--blue-dark);
}

/* Icon chip in front of each dropdown entry */
.header-navigation .sub-menu li a .menu-ico {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 30px;
    flex: 0 0 30px;
    height: 30px;
    margin-right: 12px;
    border-radius: 8px;
    background-color: rgba(89, 86, 233, 0.10);
    color: var(--blue-dark);
    font-size: 13px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.header-navigation .sub-menu li a:hover .menu-ico {
    background-color: var(--blue-dark);
    color: #fff;
}

/* ── Right-hand actions ───────────────────────────────────── */

.header-navigation .header-right-nav ul li + li {
    margin-left: 12px;
}

/* Primary call to action — the bar had no conversion point at all */
.nav-cta-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 46px;
    padding: 0 22px;
    border-radius: 8px;
    background-color: var(--blue-dark);
    color: #fff;
    font-family: var(--rajdhani);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(89, 86, 233, 0.65);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-cta-btn i {
    margin-right: 9px;
    font-size: 15px;
}

.nav-cta-btn:hover {
    background-color: #4340d6;
    color: #fff;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(89, 86, 233, 0.75);
}

/* Panel trigger: was a solid purple tile competing with the CTA */
.header-right-nav ul li.bar-item a {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid rgba(89, 86, 233, 0.25);
    color: var(--blue-dark);
    font-size: 16px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-right-nav ul li.bar-item a:hover {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

/* ── Sticky state ─────────────────────────────────────────── */

.header-navigation.sticky {
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(89, 86, 233, 0.10);
    box-shadow: 0 6px 24px -10px rgba(0, 2, 72, 0.16);
}

.header-navigation.sticky .primary-menu {
    min-height: 74px;
    border-bottom: none;
}

.header-navigation.sticky .main-menu ul li > a {
    padding-top: 25px;
    padding-bottom: 25px;
}

.header-navigation.sticky .main-menu > ul > li > a:after {
    bottom: 14px;
}

/* Never let the bar reflow onto a second line */
.header-navigation .main-menu > ul {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* 1200-1399px: the CTA leaves the six-item menu without room at the
   theme's 70px gutters, so tighten the gutters and link padding. */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .navigation-style-v1 .container-fluid {
        padding-left: 28px;
        padding-right: 28px;
    }

    .header-navigation .main-menu ul li > a {
        padding-left: 11px;
        padding-right: 11px;
    }

    .header-navigation .main-menu ul li > a.active:after,
    .header-navigation .main-menu ul li:hover > a:after {
        width: calc(100% - 22px);
    }

    .nav-cta-btn {
        padding: 0 18px;
    }
}

/*---=============================================================
   02. Mobile navigation drawer (<= 1199px)
=============================================================---*/

/* Leading icons are hidden on desktop — they'd clutter a six-item
   bar — and shown in the drawer, where they aid scanning. */
.main-menu .nav-ico {
    display: none;
}

.header-navigation.breakpoint-on .main-menu .nav-ico {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 20px;
    margin-right: 12px;
    color: var(--blue-dark);
    font-size: 15px;
}

.header-navigation.breakpoint-on .nav-menu .main-menu ul li > a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 14px 20px;
    font-size: 16px;
}

.header-navigation.breakpoint-on .main-menu > ul > li > a:after {
    display: none;
}

/* The desktop CTA and panel trigger fold into the drawer instead */
.header-navigation.breakpoint-on .header-right-nav ul li.nav-cta-item {
    display: none;
}

.nav-drawer-cta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 48px;
    margin: 20px;
    border-radius: 8px;
    background-color: var(--blue-dark);
    color: #fff;
    font-family: var(--rajdhani);
    font-size: 16px;
    font-weight: 700;
}

.nav-drawer-cta i {
    margin-right: 9px;
}

.nav-drawer-cta:hover {
    background-color: #4340d6;
    color: #fff;
}
