/* 仅添加Bootstrap无法实现的样式 */
:root {
    --bs-primary-rgb: 29, 32, 136; /* 覆盖主蓝色 */
}

/* 搜索 */
.fullscreen-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--bs-primary-rgb),1);
	transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    overflow: auto;
}

/*菜单尚亮*/

.nav-link:hover, 
.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb),1) !important; /* or your primary color */
    color: white !important;
    text-decoration: none;
    border-radius: 0.25rem; /* optional rounded corners */
    padding: 0.25rem 0.5rem; /* optional padding for better hover area */
}

/* Keep dropdown-toggle text white when menu is open */
.nav-item.dropdown.show .dropdown-toggle {
    color: white !important;
}


/* For dropdown-toggle (if you want it included) */
.dropdown-toggle:hover {
    background-color: rgba(var(--bs-primary-rgb),1)  !important;
    color: white !important;
}

/*菜单显示*/

/* Enable hover behavior with proper positioning */
.dropdown-hover:hover .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%; /* Positions dropdown below the parent */
    left: 0;
    margin-top: 0;
}

/* Ensure the nav-item has proper positioning context */
.nav-item.dropdown-hover {
    position: relative; /* This is crucial for absolute positioning of dropdown */
}



/* Custom style to enlarge the icon and align vertically */
.nav-link.big-icon {
    font-size: 1.5rem; /* Makes icon bigger */
    display: flex;
    align-items: center;
}

.topitem{
    margin-right: auto;
}

.btn-primary{
	--bs-btn-bg:#1d2088;       /* Primary button background */
    --bs-btn-border-color: #2980b9;
    --bs-btn-hover-bg: #2980b9; /* Hover state */
}


/* 悬停阴影效果 */
.hover-shadow {
    transition: transform 0.3s, box-shadow 0.3s;
}
.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* 轮播图高度控制 */
.carousel-item {
    height: 500px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    .navbar-brand img {
        height: 40px;
    }
}

/* Hide the | separator on screens smaller than 992px (Bootstrap's lg breakpoint) */
@media (max-width: 768px) {
    .topitem {
        display: none !important;
    }
}

/* Adjust Post Iamge*/
@media only screen and (max-width: 600px) {
    .post img {
        max-width: 100%;
        height: auto;
    }
}

/* Add to Appearance > Customize > Additional CSS */
.wp-block-image {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image img {
    display: block;
    margin: 0 auto;
}

/* Dropdowm Menu*/
.dropdown-menu {
--bs-dropdown-min-width: 8rem;
}

/* Breadcrumb base styles */
.breadcrumb {
    --bs-breadcrumb-divider: '›'; /* Custom separator */
  }
  
  .breadcrumb-item a {
    text-decoration: none !important; /* No underline */
    color: #6c757d; /* Bootstrap's secondary color */
    transition: all 0.2s ease;
    font-weight: normal; /* Normal weight by default */
  }
  
  /* Hover effects */
  .breadcrumb-item a:hover {
    text-decoration: none !important;
    color: rgba(var(--bs-primary-rgb),1) !important; /* Bootstrap primary blue */
    font-weight: 600 !important; /* Semi-bold on hover (600 = fw-bold in BS) */
  }
  
  /* Active item styling */
  .breadcrumb-item.active {
    color: #495057;
    font-weight: 500; /* Slightly bold for current page */
  }
  
  /* Icon styling (if using home icon) */
  .breadcrumb-item .bi {
    vertical-align: middle;
    margin-right: 0.35rem;
    font-size: 0.95em;
    transition: inherit; /* Match parent transition */
  }
  
  /* Separator styling */
  .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
    padding: 0 0.5rem;
    font-weight: normal;
  }

/* Navigation Links */
.sidebar-nav .nav-link {
    position:relative;
    color: rgba(var(--bs-primary-rgb),1);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
  }

 /* Main Pagination Container */
 .custom-pagination {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    margin: 2rem 0;
}

/* List Container */
.custom-pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Individual Items */
.custom-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

/* Page Links */
.custom-pagination a.page-numbers,
.custom-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
}

/* Hover State */
.custom-pagination a.page-numbers:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #000;
}

/* Current Page */
.custom-pagination span.current {
    background: #3a57e8;
    color: white !important;
    border-color: #3a57e8;
}

/* Navigation Arrows */
.custom-pagination .prev,
.custom-pagination .next {
    padding: 0 15px;
    min-width: 120px;
}

/* Dots */
.custom-pagination .dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .custom-pagination .prev,
    .custom-pagination .next {
        min-width: 100px;
        padding: 0 10px;
    }
    
    .custom-pagination a.page-numbers,
    .custom-pagination span.page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

.tag-image {
    /* Basic styling */
    display: inline-block;
    height: 28px;
    object-fit: cover;
    
    /* Bootstrap alignment */
    vertical-align: text-top;
    
    /* Circular design */
    border-radius: 50%;
    border: 2px solid var(--bs-white, #fff);
    
    /* Bootstrap shadow utility equivalent */
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    
    /* Smooth transitions */
    transition: all .15s ease-in-out;
    
    /* Spacing compatible with Bootstrap utilities */
    margin-right: .5rem;
    
    /* Fallback background */
    background-color: var(--bs-light, #f8f9fa);
}

/* Hover state */
.tag-link:hover .tag-image {
    transform: scale(1.1);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    border-color: var(--bs-primary, #0d6efd);
}

/* When used with mb-3 */
.tag-image.mb-3 {
    margin-bottom: 1rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tag-image {
        width: 24px;
        height: 24px;
    }
}

.hero-banner {
    height: 500px;
}


/* Active TOC link - subtle navy blue highlight */
#page-toc .nav-link.active {
  color: #0d6efd;              /* Bootstrap Primary/Navy */
  font-weight: 500;
  background-color: rgba(13, 110, 253, 0.08); /* Soft blue background */
  border-radius: 4px;
  padding: 4px 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active heading in content - subtle navy blue accent */
.entry-content .active-heading {
  background-color: rgba(13, 110, 253, 0.06); /* Soft wash behind heading */
  border-left: 4px solid #0d6efd;              /* Navy blue bar */
  padding-left: 10px;
  transition: background-color 0.3s ease;
}

/* Hides the entire comment section on single posts */
.comments-area {
    display: none;
}

#ajax-pagination {
    margin-bottom: 4rem; /* Creates space above the footer */
    display: block; /* Ensures it's a block element for proper margin */
}

/* Make the "Load More" button navy */
#load-more-posts.btn-primary {
    background-color: #1d2088; /* Your navy color */
    border-color: #1d2088;     /* Match the border color */
}

/* Optional: Set the hover color as well */
#load-more-posts.btn-primary:hover {
    background-color: #151760; /* A slightly darker navy for hover */
    border-color: #151760;
}
