/* ==========================================================================
   BASE SYSTEM OVERRIDES
   ========================================================================== */
html {
    min-height: 101%;
    margin-bottom: 1px;
}
body {
    background-color: #222;
}
img {
    max-width: 100%;
    height: auto;
}
.hname {
    display: none;
}

/* Style the minor directions toggle button to match our scheme */
.pathways-directions-btn {
    color: #9d2222 !important;
    border-color: #9d2222 !important;
    background-color: transparent !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    transition: all 0.2s ease;
}
.pathways-directions-btn:hover {
    color: #ffffff !important;
    background-color: #9d2222 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================================================================
   BOOTSTRAP EXTENSIONS
   ========================================================================== */
.clearer.form-control-feedback {
    pointer-events: auto;
}
.form-inline .form-group.group-has-clear {
    position: relative;
}
.form-inline .form-group.group-has-clear input {
    z-index: 1;
}
.form-inline .form-group.form-group-sm.group-has-clear .form-control-feedback {
    width: 30px;
    height: 30px;
    line-height: 30px;
}
.form-control-feedback.glyphicon-remove-circle {
    cursor: pointer;
}

/* ==========================================================================
   CORE LAYOUT REGIONS (#site_header, #site_main, #content, #sidebar)
   ========================================================================== */
.navbar-brand {
    display: block;
    padding: 5px 15px;
    line-height: 40px;
}
.navbar-brand img {
    max-height: 40px;
    width: auto;
}

#site_main {
    padding-top: 70px;
    padding-bottom: 50px; 
    background-color: #fff;
}

@media (min-width: 768px) {
    #content {
        min-height: 500px;
    }
}
#content .block-set {
    width: 40%;
    margin-bottom: 20px;
    font-size: 80%;
}
#content .block-set.pull-right {
    margin-left: 30px;
}
#content .block-set.pull-left {
    margin-right: 30px;
}
@media (max-width: 540px) {
    #content .block-set {
        width: 100%;
        margin-right: auto !important;
        margin-left: auto !important;
        margin-bottom: 20px;
        text-align: center;
    }
}

#sidebar {
    padding-top: 30px;
}
.news-teasers h2 {
    font-size: 18px;
}
.news-teasers h2 .small {
    margin-top: 3px;
    color: #00a4e3;
    font-size: 14px;
}
.news-teasers h3 {
    font-size: 15px;
    font-weight: 700;
}
.news-teasers .more-link {
    font-size: 12px;
}

/* ==========================================================================
   FOOTER FRAMEWORK
   ========================================================================== */
#site_footer {
    padding-top: 20px;
    padding-bottom: 20px; 
    color: #fff;
    background-color: #222222;
}
#site_footer a {
    color: #fff;
    text-decoration: underline;
}
#site_footer .legal {
    text-align: center;
}
#site_footer .social {
    padding-bottom: 20px;
    text-align: center;
}
#site_footer .social .fa {
    padding: 0 2px;
}
@media (min-width: 768px) {
    #site_footer .legal {
       text-align: left;
    }
    #site_footer .social {
       padding-bottom: 0;
       text-align: right;
    }
    #site_footer .social .fa {
       padding: 0 0 0 5px;
    }
}
#footer, footer, .site-footer {
    background-color: #6d1c2b !important;
}

/* ==========================================================================
   SYSTEM COMPONENT LISTINGS (NEWS, EVENTS, BIOS)
   ========================================================================== */
.home #billboards {
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
}
.home .news-teasers {
    margin-top: 30px;
    padding-top: 20px;
    border-top: solid 1px #666;
}
.news-detail .link-return {
    float: right;
    margin-top: 30px;
    margin-bottom: 30px;
}
.news-detail .entry {
    overflow: hidden;
    clear: both;
}
.events-detail .link-return {
    float: right;
    margin-top: 30px;
    margin-bottom: 30px;
}
.events-detail .entry {
    overflow: hidden;
    clear: both;
}
.events-detail .entry .location {
    font-weight: bold;
}
.bios-listing .item {
    padding-top: 30px;
    padding-bottom: 10px;
    border-bottom: solid 1px #666;
}
.bios-listing .item .image {
    padding-top: 20px;
}

/* ==========================================================================
   MASTER HEADER & NAVIGATION state engine (LOGO & VISITED STATES FIXED)
   ========================================================================== */
#site_header, 
.navbar-inverse, 
.navbar-fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    background-color: #9d2222 !important;
    background-image: none !important;
    z-index: 9999 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.navbar-collapse {
    background-color: #9d2222 !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-nav > li > a:visited,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:visited,
.navbar-inverse .navbar-nav > .active > a:focus {
    background-color: transparent !important;
    color: #ffffff !important;
    background-image: none !important;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-nav > li.open > a,
.navbar-nav > li.open > a:hover,
.navbar-nav > li.open > a:focus { 
    color: #ff9900 !important;
    background-color: transparent !important;
}

.navbar-nav > li > a { 
    position: relative; 
    z-index: 10000; 
}

/* ==========================================================================
   DROPDOWN DRAWER ANIMATIONS & INTERACTIVE STATES
   ========================================================================== */
.navbar-nav > li > .dropdown-menu { 
    background-color: #ffffff !important; 
    border: none !important;
    border-top: 4px solid #ff9900 !important;
    z-index: 10001 !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.navbar-inverse .navbar-nav .dropdown-menu > li > a,
.navbar-inverse .navbar-nav .dropdown-menu > li > a:visited,
.navbar-inverse .navbar-nav .dropdown-menu > li > a:focus { 
    color: #9d2222 !important;
    padding: 10px 20px !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.navbar-inverse .navbar-nav .dropdown-menu > li > a:hover { 
    color: #ff9900 !important;
    background-color: #f8f9fa !important;
    padding-left: 25px !important;
}

@media (min-width: 768px) {
    ul.nav li.dropdown:hover > ul.dropdown-menu {
        display: block;
        margin-top: 0; 
        animation: fadeInMenu 0.2s ease-in-out;
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ==========================================================================
   INNER PAGE HERO LAYOUT ENGINE
   ========================================================================== */
.welcome-hero-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 320px;
    background-image: url('/images/billboards/Front_BLDG_1421947677_8339.jpg');
    background-size: cover;
    background-position: center;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 40px !important;
}
.welcome-hero-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.welcome-hero-text {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: 46px !important;
    font-weight: 800 !important;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.85);
}

.client-logistics-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.client-card {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.client-card i { margin-bottom: 15px; }
.client-card h3 { font-size: 18px; font-weight: 700; margin-top: 0; }

/* ==========================================================================
   HOMEPAGE BILLBOARD: ZOOM, FILTER, & STABILITY FIX (MOBILE COMPATIBLE)
   ========================================================================== */

#myCarousel .item img {
    width: 100% !important;
    height: 620px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    
    /* Animation settings with webkit support */
    -webkit-animation: billboardZoom 20s linear infinite alternate !important;
    animation: billboardZoom 20s linear infinite alternate !important;
    
    /* Cinematic Filter */
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
    
    /* Stability and Performance */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    transform-origin: center center;
}

@-webkit-keyframes billboardZoom {
    0%   { -webkit-transform: scale(1.05) translateZ(0); }
    100% { -webkit-transform: scale(1.15) translateZ(0); }
}

@keyframes billboardZoom {
    0%   { transform: scale(1.05) translateZ(0); }
    100% { transform: scale(1.15) translateZ(0); }
}

/* MOBILE RESPONSIVENESS FIX */
@media (max-width: 768px) {
    #myCarousel .item img {
        height: 300px !important;
        /* Force animation to restart on mobile size */
        -webkit-animation: billboardZoom 20s linear infinite alternate !important;
        animation: billboardZoom 20s linear infinite alternate !important;
    }
}