.page-masthead .netdania-hero {
    background: #151515 url("/images/migration-brand/home-background.jpg") center / cover no-repeat fixed;
    box-sizing: border-box;
    color: #fff;
    min-height: 450px;
    padding: 98px 0 120px;
    text-align: center;
}

.netdania-hero-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    width: 904px;
}

.page-masthead .netdania-hero .netdania-hero-tagline {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2.4vw, 28px);
    font-weight: 300;
    line-height: 1.2;
    margin: 65px auto 0;
    padding: 0 16px;
}

.page-masthead:has(.netdania-hero) + .t3-mainbody {
    padding-top: 0;
}

.page-masthead:has(.netdania-hero) + .t3-mainbody .features-intro .row-feature:first-child .feature-ct h3 {
    text-align: center;
}

#t3-footer .copyright:has(.netdania-footer-details) > small {
    display: none;
}

.netdania-footer-details {
    font-size: 12px;
}

#t3-footer .netdania-footer-details small {
    display: block;
    font-size: inherit;
}

.netdania-footer-details address {
    font-style: normal;
    line-height: 1.85;
    margin: 18px 0 0;
}

@media (max-width: 1024px) {
    .page-masthead .netdania-hero {
        background-attachment: scroll;
    }
}

@media (max-width: 767px) {
    .page-masthead .netdania-hero {
        min-height: auto;
        padding: 64px 20px 72px;
    }

    .page-masthead .netdania-hero .netdania-hero-tagline {
        margin-top: 30px;
    }
}

@media (max-width: 990px) {
    #t3-mainnav .t3-navbar-collapse.in {
        max-height: 460px;
        max-height: min(460px, calc(100dvh - 56px));
        overflow-y: auto;
        scrollbar-color: rgba(255, 255, 255, 0.55) transparent;
        scrollbar-width: thin;
    }
}

@media (max-width: 990px) and (hover: hover) and (pointer: fine) {
    #t3-mainnav .t3-navbar-collapse .navbar-nav > .dropdown:hover > .dropdown-menu {
        display: block;
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background: #0067a2;
        border: 0;
        box-shadow: none;
    }

    #t3-mainnav .t3-navbar-collapse .navbar-nav > .dropdown:hover > a {
        color: #fff;
    }

    #t3-mainnav .t3-navbar-collapse .navbar-nav .dropdown:hover > .dropdown-menu > li {
        border-top-color: #005788;
    }

    #t3-mainnav .t3-navbar-collapse .navbar-nav .dropdown:hover > .dropdown-menu > li > a {
        color: #bbe6ff;
        padding: 20px 20px 20px 30px;
    }

    #t3-mainnav .t3-navbar-collapse .navbar-nav .dropdown:hover > .dropdown-menu > li > a:is(:hover, :focus-visible) {
        color: #fff;
        background: transparent;
    }
}

.ba-form-footer > p:has(> a:is([href="http://www.balbooa.com/joomla-forms"], [href="https://www.balbooa.com/joomla-forms"])) {
    display: none;
}

.page-masthead:has(> .jumbotron) + .t3-mainbody {
    padding-top: 0;
}

@media (min-width: 768px) and (max-width: 990px) {
    .page-masthead > .jumbotron > .container {
        padding-inline: 0;
    }
}

a.btn.netdania-brochure,
a.btn.netdania-brochure:is(:visited, :hover, :focus, :active) {
    background-color: #e74c3c;
    border-color: #e74c3c;
    border-radius: 3px;
    color: #fff;
}

/* Contact page layout */
#t3-mainbody:has(.netdania-contact-intro) {
    padding-top: 0;
}

#t3-content .netdania-contact-intro {
    background: transparent;
    margin-bottom: 30px;
    padding: 10px 0 0;
}

#t3-content .netdania-contact-form {
    margin-bottom: 20px;
    padding-block: 0;
}

#t3-content .netdania-contact-details {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .netdania-contact-form .ba-form-page {
        padding: 40px;
    }

    .netdania-contact-form .ba-form-column-wrapper > .span6 {
        width: 44.6%;
    }

    .netdania-contact-form .ba-form-column-wrapper > .span6 + .span6 {
        margin-left: 10.8%;
    }
}

@media (max-width: 767px) {
    #t3-content .netdania-contact-form {
        padding-inline: 0;
    }
}

/* Keep form navigation consistent with the original multi-step forms. */
.com-baforms-wrapper .ba-form-page .ba-form-page-break-button[data-action="back"] {
    align-self: flex-end;
    background-color: #0077bb;
    color: #fff;
    float: right;
    font-size: 14px;
    justify-content: center;
    line-height: 28px;
    padding: 15px 60px;
    width: auto !important;
}

.com-baforms-wrapper .ba-form-page .ba-form-page-break-button[data-action="back"]:hover {
    background-color: #00689f !important;
}
