/* ═══════════════════════════════════════════════════════════════════
   home.css  –  Migrated from SharePoint inline <style> blocks
   ═══════════════════════════════════════════════════════════════════ */

/* ── Global Font — Segoe UI matches original site ─────────────────── */
/* Applied site-wide — size/weight left unchanged except nav and footer */
*:not(svg):not(path):not(script):not(style) {
    font-family: "Segoe UI", "microsoft yahei", Arial, sans-serif !important;
}

/* ── Nav menu — 18px weight 200 (matches original) ─────────────────── */
nav .navbar-nav .nav-link {
    font-size: 18px !important;
    font-weight: 200 !important;
}

/* ── Footer links — 12px weight 400 (matches original) ─────────────── */
footer a,
.footer-links a {
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* ── News Ticker ──────────────────────────────────────────────────── */
.sub-navbar {
    background-color: #6d6d6d;
    height: 36px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

    .sub-navbar .container {
        display: flex;
        align-items: center;
        width: 100%;
        height: 36px;
        overflow: hidden;
        padding: 0 15px;
    }

    .sub-navbar .title {
        font-family: "Segoe UI", "microsoft yahei", Arial, sans-serif;
        text-transform: uppercase;
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        padding-right: 12px;
        border-right: 1px solid #9d9d9d;
        white-space: nowrap;
        flex-shrink: 0;
        margin-right: 12px;
        line-height: 36px;
    }

#TickerArea {
    flex: 1;
    height: 36px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

#NewsTickerItems {
    overflow: hidden;
    font-weight: 400;
    font-size: 13px;
    color: #fff;
    line-height: 36px;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    #NewsTickerItems {
        color: #fff;
        padding: 2px 2px 2px 15px;
        font-size: 1.2em;
    }
}

#NewsTickerItems.Horizontal .NewsItem {
    margin-right: 100px;
    float: left;
}

#NewsTickerItems.Vertical .NewsItem {
    margin-bottom: 15px;
}

#NewsTickerItems.Vertical {
    height: 20px;
}

/* ── Carousel / Banner ────────────────────────────────────────────── */
.carousel {
    position: relative;
}

    .carousel.pointer-event {
        touch-action: pan-y;
    }

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .carousel-inner::after {
        display: block;
        clear: both;
        content: "";
    }

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none;
    }
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end {
        transform: translateX(100%);
    }

    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start {
        transform: translateX(-100%);
    }

.bannerBG {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Carousel height — works for both <header> and <div> carousel */
.fill {
    height: 400px;
}

header.carousel .fill {
    height: calc(66vh);
}

@media (min-width: 992px) {
    .fill {
        height: 400px;
    }
}

@media (min-width: 1200px) {
    .fill {
        height: 420px;
    }
}

@media (max-width: 991px) {
    .fill {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .fill {
        height: 200px;
    }
}

@media (max-width: 500px) {
    .fill {
        height: 150px;
    }
}

.carousel-caption {
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,.6);
}

@media (max-width: 991px) {
    .carousel-caption {
        font-size: 18px !important;
        line-height: 22px !important;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        font-size: 12px !important;
        line-height: 18px !important;
    }
}

@media (max-width: 500px) {
    .carousel-caption {
        font-size: 10px !important;
        top: 1%;
    }
}

/* ── Grant Call Tables ────────────────────────────────────────────── */
#imaginary_container {
    display: inline-block;
    padding: 0;
    vertical-align: middle;
    float: right;
}

@media only screen and (max-width: 991px) {
    #imaginary_container {
        display: none;
    }
}

.searchbox-sm {
    display: none;
}

@media only screen and (min-width: 991px) {
    .searchbox-sm {
        display: none !important;
    }
}

.stylish-input-group .input-group-addon {
    background: #fff !important;
}

.stylish-input-group .form-control {
    border-right: 0;
    box-shadow: none;
    border-color: #ccc;
}

.stylish-input-group button {
    border: 0;
    background: transparent;
}

.input-group-addon {
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    color: #555;
    text-align: right;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input.form-control {
    background-color: #fff;
    height: 30px;
    width: 300px;
}

.glyph-searchButton {
    min-width: 0;
}

.txt_search {
    background-color: #fff !important;
}

.btn_search {
    padding: 0 !important;
}

.simple-pagination {
    margin: 5px;
}

h2.ms-webpart-titleText {
    display: none;
}

/* ── News List (left sidebar) ─────────────────────────────────────── */
.news-list dt a {
    color: #144283;
    font-size: 14px;
    font-weight: bold;
}

.news-list dd a {
    color: #585858;
    font-size: 14px;
}

.no-hyper {
    cursor: default !important;
    text-decoration: none !important;
}

/* ── Last-updated strip ───────────────────────────────────────────── */
#divArticleModifiedDateContainer.lastupdate {
    clear: both;
    padding: 8px 15px;
    font-size: 12px;
    color: #888;
    text-align: right;
}
