/* Header Design 2 is fully scoped so Header Design 1 keeps its legacy styling. */
.header-design-2 {
    --header-blue: #104c99;
    --header-blue-dark: #0b365e;
    --header-green: #76c043;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    border-bottom: 1px solid rgba(17, 61, 94, .11);
    background: rgba(249, 252, 254, .84);
    box-shadow: 0 5px 20px rgba(9, 39, 63, .08);
    font-family: 'Roboto', sans-serif;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: headerDesign2Enter .45s ease-out both;
}

.header-design-2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--header-green) 0 18%, #5bad7d 36%, #55aee0 62%, var(--header-blue) 100%);
}

.header-design-2 .header-design-2__bar {
    min-height: 88px;
    padding: 4px 0 0;
    background: transparent;
}

.header-design-2 .header-design-2__brand {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 170px;
    min-height: 84px;
    padding: 10px 22px 10px 0;
    margin: 0 18px 0 0 !important;
}

.header-design-2 .header-design-2__brand::after {
    content: '';
    position: absolute;
    top: 21px;
    right: 0;
    bottom: 21px;
    width: 1px;
    background: linear-gradient(180deg, transparent, #cedbe4, transparent);
}

.header-design-2 .header-design-2__brand img {
    display: block;
    width: 148px;
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
}

.header-design-2 .header-design-2__navigation,
.header-design-2 .navbar-nav {
    min-width: 0;
}

.header-design-2 .navbar-nav {
    align-items: center;
    gap: 0;
}

.header-design-2 .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    transition: none;
}

.header-design-2 .navbar-nav > .nav-item:not(:first-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 1px;
    background: rgba(16, 76, 153, .48);
}

.header-design-2 li.nav-item:hover,
.header-design-2 li.nav-item:focus-within {
    border: 0;
    background: transparent;
}

.header-design-2 .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 12px 24px !important;
    border-radius: 8px;
    color: #29465d !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color .18s ease, background-color .18s ease;
}

.header-design-2 .nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 24px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--header-green);
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .18s ease, transform .18s ease, width .18s ease;
}

.header-design-2 .nav-item:hover > .nav-link,
.header-design-2 .nav-link:focus,
.header-design-2 .nav-item.show > .nav-link,
.header-design-2 .nav-item.is-current > .nav-link {
    color: var(--header-blue-dark) !important;
    background: #eef4f8;
}

.header-design-2 .nav-item:hover > .nav-link::before,
.header-design-2 .nav-link:focus::before,
.header-design-2 .nav-item.show > .nav-link::before,
.header-design-2 .nav-item.is-current > .nav-link::before {
    width: 30px;
    opacity: 1;
    transform: translateY(0);
}

.header-design-2 .dropdown-toggle::after {
    margin-left: 7px;
    color: #718798;
    vertical-align: .15em;
    transition: transform .18s ease;
}

.header-design-2 .nav-item.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

.header-design-2 .dropdown-menu {
    min-width: 232px;
    padding: 7px;
    margin-top: 7px !important;
    border: 1px solid #dfe8ee;
    border-radius: 11px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 35px rgba(12, 45, 70, .16);
}

.header-design-2 .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 22px;
    width: 18px;
    height: 18px;
    border-top: 1px solid #dfe8ee;
    border-left: 1px solid #dfe8ee;
    background: #fff;
    transform: rotate(45deg);
}

/* Keeps the hover path continuous across the visual space above the dropdown. */
.header-design-2 .dropdown-menu::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 0;
    left: 0;
    height: 9px;
}

.header-design-2 .dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 37px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #355269;
    font-size: 13.5px;
    line-height: 1.35;
    white-space: normal;
    text-decoration: none !important;
    transition: color .16s ease, background-color .16s ease, padding-left .16s ease;
}

.header-design-2 .dropdown-item i {
    width: 17px;
    color: var(--header-blue);
    text-align: center;
}

.header-design-2 .dropdown-item:hover,
.header-design-2 .dropdown-item:focus {
    padding-left: 16px;
    color: var(--header-blue-dark);
    background: #edf5e8;
}

.header-design-2 .header-design-2__contact {
    min-height: 84px;
    padding-left: 22px;
    margin-left: 0;
}

.header-design-2 .header-design-2__contact .nav-link {
    min-height: 50px;
    padding: 8px 10px 8px 16px !important;
    border-radius: 25px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--header-blue-dark), var(--header-blue));
    box-shadow: 0 6px 14px rgba(16, 76, 153, .18);
}

.header-design-2 .header-design-2__contact .nav-link::before {
    display: none;
}

.header-design-2 .header-design-2__contact i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border-radius: 50%;
    color: #315b46;
    background: #dff2d3;
    font-size: 10px;
    transition: transform .18s ease, background-color .18s ease;
}

.header-design-2 .header-design-2__contact .nav-link:hover,
.header-design-2 .header-design-2__contact .nav-link:focus,
.header-design-2 .header-design-2__contact.is-current .nav-link {
    color: #fff !important;
    background: linear-gradient(135deg, #082d50, #0d5aaa);
}

.header-design-2 .header-design-2__contact .nav-link:hover i,
.header-design-2 .header-design-2__contact .nav-link:focus i {
    background: #e8f8de;
    transform: translateX(2px);
}

.header-design-2 .header-design-2__toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #d5e1e9;
    border-radius: 10px;
    background: #f1f6f9;
}

.header-design-2 .header-design-2__toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--header-blue-dark);
}

.header-design-2 a:focus-visible,
.header-design-2 button:focus-visible {
    outline: 3px solid var(--header-green);
    outline-offset: 3px;
}

@keyframes headerDesign2Enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header-design-2 .header-design-2__brand { width: 133px; margin-right: 6px !important; padding-right: 12px; }
    .header-design-2 .header-design-2__brand img { width: 118px; }
    .header-design-2 .nav-link { padding-right: 10px !important; padding-left: 10px !important; font-size: 11px; }
    .header-design-2 .nav-link::before { left: 10px; }
    .header-design-2 .header-design-2__contact { padding-left: 10px; margin-left: 0; }
    .header-design-2 .header-design-2__contact .nav-link { padding-right: 8px !important; padding-left: 12px !important; }
}

@media (max-width: 991px) {
    .header-design-2 .header-design-2__bar { min-height: 74px; padding: 4px 14px 0 18px; }
    .header-design-2 .header-design-2__brand { width: 145px; min-height: 70px; padding: 8px 0; margin-right: 0 !important; }
    .header-design-2 .header-design-2__brand::after { display: none; }
    .header-design-2 .header-design-2__brand img { width: 130px; max-height: 52px; }
    .header-design-2 .header-design-2__navigation { max-height: calc(100vh - 74px); margin: 0 -14px 0 -18px; padding: 8px 14px 18px 18px; overflow-y: auto; border-top: 1px solid #e2eaf0; background: rgba(255, 255, 255, .99); }
    .header-design-2 .navbar-nav { align-items: stretch; gap: 0; }
    .header-design-2 .nav-item { display: block; }
    .header-design-2 .navbar-nav > .nav-item:not(:first-child)::after { display: none; }
    .header-design-2 .nav-link { justify-content: space-between; min-height: 47px; padding: 9px 11px !important; border-bottom: 1px solid #edf1f4; border-radius: 5px; white-space: normal; }
    .header-design-2 .nav-link br { display: none; }
    .header-design-2 .nav-link::before { bottom: 5px; left: 11px; }
    .header-design-2 .dropdown-menu { position: static !important; float: none; min-width: 100%; margin: 4px 0 9px; border-radius: 8px; box-shadow: none; transform: none !important; }
    .header-design-2 .dropdown-menu::before { display: none; }
    .header-design-2 .dropdown-menu::after { display: none; }
    .header-design-2 .header-design-2__contact { min-height: 0; padding-left: 0; margin: 11px 0 0; }
    .header-design-2 .header-design-2__contact .nav-link { justify-content: center; min-height: 48px; border: 0; text-align: center; }
}

@media (max-width: 575px) {
    .header-design-2 .container { max-width: none; padding: 0; }
    .header-design-2 .header-design-2__bar { padding-right: 15px; padding-left: 15px; }
    .header-design-2 .header-design-2__navigation { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .header-design-2 { animation: none; }
    .header-design-2 .nav-link,
    .header-design-2 .nav-link::before,
    .header-design-2 .dropdown-item,
    .header-design-2 .header-design-2__contact i { transition: none; }
}
