/* FBI Header Specific Styles */

/* Clean up box shadow from default header */
header {
    box-shadow: none;
}
html{
    font-size: 16px;
}
.lnk-official-us-site {
    font-size: .9em;
    color: #f5f5f5;
    opacity: 1;
}
.top-nav-bar .top-nav-bar-bottom.open {
    margin: 30px 0;
    height: auto;
    opacity: 1;
    transform: translateY(0);
    transition: all .5s ease-out;
}
.top-nav-bar .top-nav-bar-bottom {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: initial;
    margin: 0;
    padding: 0 15px;
    font-size: .9em;
    height: 0;
    opacity: 0;
    transform: translateY(-104px);
    transition: all .5s ease-out;
}
/* Ensure the FBI header stays fixed at the top */
.fbi-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
}

/* Logo hover effect */
.fbi-logo:hover .fbi-name {
    color: #ccc;
}

/* 顶部搜索框样式（输入框和按钮同一行） */
.fbi-search form {
    display: flex;
    align-items: stretch;
}

.fbi-search input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #444;
    border-right: none;
    border-radius: 2px 0 0 2px;
    background-color: #fff;
    color: #fff;
    min-width: 180px;
}

.fbi-search input[type="text"]::placeholder {
    color: #aaa;
}

.fbi-search button {
    margin-left: 5px;
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: #111;
    color: #fff;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fbi-search button:hover{
    background-color: #fff;
    color: #000;
}

/* Search button hover effect */

.fbi-nav{
    display: flex;
    justify-content: left;
    align-items: center;
    width: 1320px;
    margin: 0 auto;
}
.fbi-nav div a:hover {
    color: #ffcc00;
}
.fbi-nav div a{
    color: #fff;
}

/* Mobile menu transition */
.fbi-nav-menu {
    transition: all 0.3s ease;
}
.offcanvas {
    position: fixed;
    background-color: #000;
    width: 400px;
    margin-left: -400px;
    top: 40px;
    transition: margin-left 0.5s ease;
    z-index: 1050;
    height: calc(100vh - 40px);
    overflow-y: auto;
}
.offcanvas-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem !important;
}
.offcanvas-header .btn-close {
    padding: calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);
    margin-top: calc(-.5 * var(--bs-offcanvas-padding-y));
    margin-right: calc(-.5 * var(--bs-offcanvas-padding-x));
    margin-bottom: calc(-.5 * var(--bs-offcanvas-padding-y));
}
.btn-close {
    --bs-btn-close-color: #000;
    --bs-btn-close-bg: url(../image/close.svg);
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: var(--bs-btn-close-color);
    background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: var(--bs-btn-close-opacity);
}
.btn-close-white {
    filter: var(--bs-btn-close-white-filter);
}
/* 添加 offcanvas  show 样式 */
.offcanvas.show {
    /* 向右移动367px 过渡时间1秒 */
    margin-left: 0;
    transition: margin-left 0.5s ease;
}

/* 搜索表单样式 */
.offcanvas-search {
    padding: 20px 0px;
    background-color: #000;
    border-bottom: 1px solid #333;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}


.search-input {
    width: 100%;
    padding: 10px 15px;
    background-color: #212529 !important;
    color: #fff;
    font-size: 16px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    /* color: #a4bebf; */
    /* color: rgb(164 190 191) !important; */
    color: rgb(168, 188, 189) !important;
}

.search-input:focus {
    outline: none;
    background-color: #212529;
    color: #fff;
    border: 1px solid #ccc;
}

.search-input:hover {
   border: 1px solid #ccc;
}

.search-btn {
    margin-top: 5px;
    width: 100%;
    padding: 6px 15px;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid #fff;
}

.search-btn:hover {
    background-color: #fff;
    color: #000;
}

.search-btn i {
    font-size: 18px;
}

/* 社交媒体图标样式 */
.offcanvas-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: none;
    margin-bottom: 20px;
}
.offcanvas-social-icons .me-3{
    margin-right: 0px !important;
}

.offcanvas-social-icons a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
    transform: scale(1.4);
}

.offcanvas-social-icons a:hover {
    color: #aaa;
    text-decoration: none;
    
}
.offcanvas-social-icons a:hover i,
.fab:hover{
    color: #ffcc00;
}
.nav-item a{
    font-size: 1.25rem !important;
}
.nav-item:hover{
    background-color: #000 !important;
    color: #ffcc00 !important;
}
/* Ensure social media icons are properly aligned */
.fbi-social-icons i {
    font-size: 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.offcanvas-social-icons i {
    display: inline-block;
    font-size: 24px;
    width: auto !important;
    height: auto !important;
}
.offcanvas-social-icons a .fab::before{
    /* 放大 */
    transform: scale(1.2);
}

.me-3{
    margin-right: 1rem !important;
}

/* Font Awesome icon adjustments for FBI header */
.fbi-header .fa {
    font-family: "Font Awesome 6 Free";
}

.fbi-header .fab {
    font-family: "Font Awesome 6 Brands";
}

.offcanvas-social-icons .fab{
    margin-right: 0px !important;
}

.d-flex {
    display: flex !important;
}
/* 
.py-2 {
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
}
.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
} */
 .vr {
    display: inline-block;
    align-self: stretch;
    width: 1px !important;
    min-height: 1em;
    background-color: currentcolor;
    opacity: .25;
    margin-top: 15px !important;
}
.my-2 {
    /* margin-top: .5rem !important; */
    margin-bottom: .5rem !important;
}

.nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: var(--bs-nav-link-color);
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.header-top-row .fa-bars {
    font-size: 1.5rem;
}
.fa-solid, .fas {
    font-weight: 900;
}
.fa-bars, .fa-navicon {
    --fa: "\f0c9";
}
.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free";
}
.fa, .fa-brands, .fa-regular, .fa-solid, .fab, .far, .fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}
.fa-2x{
    width: 21px;
    height: 26px;
}
.vr {
    display: inline-block;
    align-self: stretch;
    width: var(--bs-border-width);
    min-height: 1em;
    background-color: currentcolor;
    opacity: .25;
    width: 2px;
    height: 30px;
    margin-top: 10px;
    margin-left: 25px;
}
/* .fbi-nav-menu li 鼠标滑过样式*/
.fbi-nav-menu li a:hover {
    color: #ffcc00;
}

.offcanvas {
    padding: 20px;
}
.nav>li>a {
    position: relative;
    display: block;
    padding: 10px 0px !important;
}
h5{
    font-size: 1.5rem !important;
}

/* Ensure proper spacing for the navigation menu */
@media (max-width: 1100px) {
    .fbi-nav-menu {
        gap: 20px;
    }
    
    .fbi-nav-menu li a {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    /* Mobile menu styling */
    .fbi-nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #000;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
        padding: 0 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .fbi-nav-menu li {
        border-bottom: 1px solid #333;
    }
    
    .fbi-nav-menu li:last-child {
        border-bottom: none;
    }
    
    .fbi-nav-menu li a {
        padding: 15px 0;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .fbi-header-container {
        padding: 0 10px;
    }
    
    .fbi-logo img {
        width: 50px;
        margin-right: 10px;
    }
    
    .fbi-logo-text .fbi-name {
        font-size: 20px;
    }
    
    .fbi-logo-text .fbi-title {
        font-size: 10px;
    }
}