/* ==========================================================================
   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; /* Cranberry Red */
    background-image: none !important;
    z-index: 9999 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

/* Keeps mobile menu toggle container block clean red */
.navbar-collapse {
    background-color: #9d2222 !important;
    border: none !important;
    box-shadow: none !important;
}

/* NAVIGATION LINK COLOR RULES (Overrides broken tracking patterns) */
.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; /* Lets the master red bar render through */
    color: #ffffff !important;
    background-image: none !important;
}

/* Hover tracking color triggers */
.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; /* Gold text */
    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; /* Gold accent header bar */
    z-index: 10001 !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Dropdown link rules (Prevents navigation bar layout bleeding) */
.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; /* Cranberry */
    padding: 10px 20px !important;
    background-color: #ffffff !important; /* Solid background base color */
    transition: all 0.2s ease !important;
}

/* Hover tracking inside the sub-menu grids */
.navbar-inverse .navbar-nav .dropdown-menu > li > a:hover { 
    color: #ff9900 !important; /* Gold text */
    background-color: #f8f9fa !important; /* Soft grey panel select highlight */
    padding-left: 25px !important; /* Easing slide-right effect */
}

@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); }
    }
}

@media (max-width: 767px) {
    .navbar-nav .dropdown-menu > li > a {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        font-size: 16px !important; 
        border-bottom: 1px solid #f5f5f5;
    }
    .navbar-inverse .navbar-nav .open .dropdown-menu {
        background-color: #ffffff !important;
    }
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
        color: #9d2222 !important;
        background-color: #ffffff !important;
    }
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
        background-color: #f8f9fa !important;
        color: #ff9900 !important;
    }
}

/* ==========================================================================
   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; }

.client-map-wrapper {
    width: 100%;
    height: 130px;
    margin: 15px 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

@media (max-width: 768px) {
    .welcome-hero-banner { height: 220px; }
    .welcome-hero-text { font-size: 32px !important; }
    .client-logistics-row { display: block; }
}

/* ==========================================================================
   PURE CSS COMPASS MAP PLACEMENT FRAME
   ========================================================================== */
.wysiwyg-safe-map-frame {
    display: block !important;
    width: 100%;
    height: 140px;
    margin: 15px auto !important;
    border-radius: 6px;
    border: 1px dashed #0066cc !important;
    background-color: #f4f8fc !important; 
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.wysiwyg-safe-map-frame::before {
    content: "\f14e"; 
    font-family: FontAwesome;
    font-size: 32px;
    color: #0066cc;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    transition: all 0.2s ease;
}
.wysiwyg-safe-map-frame::after {
    content: "Click to open interactive map";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #0066cc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wysiwyg-safe-map-frame:hover {
    background-color: #e6f0fa !important;
    border-style: solid !important;
}
.wysiwyg-safe-map-frame:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(15deg);
}

/* ==========================================================================
   HOMEPAGE FRAMEWORKS & ANIMATION ENGINES
   ========================================================================== */
.home #site_main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
#billboards-full-width {
    position: relative !important;
    margin-top: 0 !important; 
    padding-top: 0 !important;
    z-index: 1 !important;
}
#myCarousel, #myCarousel .carousel-inner {
    height: 620px !important; 
    overflow: hidden !important;
    background-color: #000 !important;
}
#myCarousel .item img {
    width: 100vw !important;
    height: 620px !important;
    object-fit: cover !important;
    display: block !important;
    margin-top: 0 !important;
}
#myCarousel .carousel-inner::after {
    content: "" !important;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%) !important;
    z-index: 5 !important;
    pointer-events: none;
}
.carousel-fade .carousel-inner .item {
    opacity: 0 !important;
    transition: opacity 1.5s ease-in-out !important;
    left: 0 !important;
    display: block !important;
    position: absolute !absolute;
    top: 0; width: 100%; z-index: 1;
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden;
}
.carousel-fade .carousel-inner .active.item { opacity: 1 !important; z-index: 2 !important; }
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right { opacity: 1 !important; z-index: 3 !important; }

@keyframes billboardZoom {
    from { transform: scale(1.05); } 
    to { transform: scale(1.15); }
}
#myCarousel .item.active img,
#myCarousel .item.next img,
#myCarousel .item.prev img {
    animation: billboardZoom 12s linear infinite alternate !important;
    image-rendering: -webkit-optimize-contrast;
}
#home-welcome {
    position: relative !important;
    margin-top: -300px !important; 
    z-index: 10 !important;
    color: #ffffff !important;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 1) !important;
}

.row:has(h4:contains("Ready")), 
.row:has(a[href*="about_pathways"]),
#main-content > div:nth-of-type(3) {
    background-color: #f8f9fa !important;
    background-image: none !important;
}
.row:has(a[href*="about_pathways"]) h4,
.row:has(a[href*="about_pathways"]) p {
    color: #333333 !important;
}
a.btn-primary[href*="about_pathways"] {
    background-color: #00a4e3 !important;
    border-color: #0092ca !important;
    color: #ffffff !important;
}

.pathways-btn-final {
    display: inline-block;
    padding: 12px 35px;
    background-color: #0066cc; 
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid #0066cc;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.pathways-btn-final:hover {
    background-color: transparent;
    color: #0066cc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.full-width-stripe {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #f4f7f9; 
    padding: 50px 0;
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}
.image-gallery-container {
    max-width: 1100px; 
    margin: 0 auto;
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 30px; 
    padding: 0 20px;
}
.gallery-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-item img {
    height: 250px; 
    width: auto;   
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    background-color: #ffffff; 
    padding: 10px; 
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: translateY(-5px); 
}

@media (max-width: 768px) {
    .image-gallery-container {
        flex-direction: column;
    }
    .full-width-stripe {
        width: 100%;
        left: 0;
        margin-left: 0;
    }
    .gallery-item img {
        height: auto;
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   NEWCOMERS PAGE SPLIT FLEX LAYOUTS
   ========================================================================== */
.newcomer-split-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    align-items: stretch;
}
.newcomer-side-block {
    flex: 1;
    min-width: 300px; 
}
.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background-color: #000;
}
.video-responsive-wrapper iframe,
.video-responsive-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}