.top-navbar {
    padding: 15px 0;
    background: url('/global/files/Image/newwp/images/nav-bg.png') repeat-x;
}

.top-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex-wrap: wrap;
}

.wide-logo {
    max-height: 100px;
    transition: opacity 0.3s ease;
    max-width: 100%;
    height: auto;
}

.hover-logo {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    max-height: 100px;
    max-width: 100%;
    height: auto;
}

/* Media queries for responsive logo */
@media (max-width: 768px) {

    .wide-logo,
    .hover-logo {
        max-height: 70px;
    }

    .navbar-brand {
        max-width: 80%;
    }

    .top-navbar {
        min-height: 120px;
    }
}

@media (max-width: 576px) {

    .wide-logo,
    .hover-logo {
        max-height: 50px;
    }
}

.navbar-brand {
    position: relative;
    display: inline-block;
    padding: 0px;
}

.navbar-brand:hover .wide-logo:first-child {
    opacity: 0;
}

.navbar-brand:hover .hover-logo {
    opacity: 1;
}

.small-logo {
    max-height: 100px;
}

.top-navbar .d-flex {
    margin-left: auto;
    margin-right: 15px;
}

/* 搜索表单样式 */
.search-form {
    display: flex;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 20px;
    padding: 2px 10px;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 0.875rem;
    color: white;
    width: 150px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    background: transparent;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.2s;
}

.search-button:hover {
    opacity: 0.8;
}


.category-navbar {
    position: relative;
    width: 100%;
    z-index: 1000;
    background-color: #0056b3;
    /* Blue background color */
}

.category-navbar .navbar-nav {
    align-items: center;
}

.category-navbar .nav-item:not(:last-child)::after {
    content: '|';
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.category-navbar .nav-item {
    position: relative;
    padding: 0 10px;
}

.category-navbar .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: white;
}

/* Remove dropdown triangle icon */
.category-navbar .dropdown-toggle::after {
    display: none;
}

/* Make dropdown menu match the navbar theme */
.category-navbar .dropdown-menu {
    background-color: #0056b3;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-bottom: none;
    display: none;
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Show dropdown on hover */
.category-navbar .nav-item.dropdown:hover .dropdown-menu,
.category-navbar .dropdown-menu.show {
    display: block;
}

/* Add transition effect */
.category-navbar .dropdown-menu {
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    opacity: 0;
    visibility: hidden;
}

.category-navbar .nav-item.dropdown:hover .dropdown-menu,
.category-navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.1s, 0s;
}

.category-navbar .dropdown-item {
    color: #333;
    background-color: white;
    transition: all 0.2s ease;
}

.category-navbar .dropdown-item:hover {
    background-color: #0056b3;
    color: white;
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Custom carousel control icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Carousel label styling with text-stroke effect */
.carousel-label {
    position: absolute;
    bottom: 20px;
    left: 40px;
    padding: 12px 20px;
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    font-weight: 400;
    text-align: left;
    z-index: 10;
}

.carousel-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background-color: #FFD700;
    border-radius: 2px;
}

.article-lists {
    padding: 30px 0;
}

.article-list {
    margin-bottom: 20px;
}

.article-list h4 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.article-list ul {
    padding-left: 20px;
}

.article-list li {
    margin-bottom: 8px;
}

/* OwlCarousel Project Cards */
.second-carousel {
    padding: 30px 0;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Project label styling */
.project-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background-color: rgba(30, 62, 151, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
    /* Changed to blue color */
    font-size: 1.2rem;
    /* Increased font size */
    font-weight: 700;
    /* Bold font */
    text-align: center;
    transition: all 0.3s ease;
}

.project-card:hover .project-label {
    background-color: rgba(30, 62, 151, 0.8);
    /* Using the footer blue color */
    color: white;
    font-size: 1.4rem;
    /* Change text color on hover for better contrast */
}

.project-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
}

.project-caption h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* OwlCarousel Custom Navigation */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.owl-nav button.owl-prev {
    left: -20px;
}

.owl-nav button.owl-next {
    right: -20px;
}

.owl-dots {
    margin-top: 15px;
}

footer {
    background-color: #1E3E97;
    color: white;
    padding: 30px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}


.top-navbar .form-control {
    height: 30px;
    padding: 0.25rem 0.5rem;
}

.top-navbar .btn {
    height: 30px;
    padding: 0.25rem 0.75rem;
    line-height: 1;
}

.top-navbar .btn-sm svg {
    margin: -3px;
}


/* Custom carousel indicators */
#mainCarouselIndicators {
    margin-left: auto;
    margin-right: 30px;
    justify-content: flex-end;
}

#mainCarouselIndicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid white;
    margin-right: 8px;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
}

#mainCarouselIndicators button:hover {
    opacity: 1;
    transform: scale(1.1);
}

#mainCarouselIndicators button.active {
    background-color: #ffcc00;
    border-color: #ffcc00;
    opacity: 1;
}

/* Auto-scrolling table */
.scroll-table-container {
    height: 400px;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.scroll-table {
    width: 100%;
    animation: scrollTable 30s linear infinite;
    font-size: 0.8rem;
    table-layout: fixed;
}

.scroll-table:hover {
    animation-play-state: paused;
}

.scroll-table thead {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    z-index: 2;
    border-bottom: 2px solid #dee2e6;
}

.scroll-table thead tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.scroll-table tbody {
    display: block;
    padding-top: 40px;
    /* Height of the header */
}

.scroll-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.scroll-table th,
.scroll-table td {
    padding: 6px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    /* Center align text */
    vertical-align: middle;
    /* Vertically center text */
}

.scroll-table th:nth-child(1),
.scroll-table td:nth-child(1) {
    width: 20%;
}

.scroll-table th:nth-child(2),
.scroll-table td:nth-child(2) {
    width: 20%;
}

.scroll-table th:nth-child(3),
.scroll-table td:nth-child(3) {
    width: 15%;
}

.scroll-table th:nth-child(4),
.scroll-table td:nth-child(4) {
    width: 45%;
}

.scroll-table tr:last-child td {
    border-bottom: none;
}

@keyframes scrollTable {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-100% + 300px));
    }
}


/* SVG icon for h4 headings */
h4 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-family: "微软雅黑", "宋体", Arial;
    font-weight: bold;
}

/* Content section styling */
.content-section {
    padding: 30px 0;
    background-color: #ffffff;
}

.content-header h2 {
    color: #1E3E97;
    font-family: "微软雅黑", "宋体", Arial;
    font-size: 1.8rem;
}

.content-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.content-body .lead {
    font-size: 1.2rem;
    color: #1E3E97;
    font-weight: 500;
}

.content-date {
    text-align: right;
}

h4::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='%23F7D228' stroke='none'/%3E%3Crect x='2' y='14' width='8' height='8' fill='%231E3E97'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.nav-tabs::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-top: 10px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='%23F7D228' stroke='none'/%3E%3Crect x='2' y='14' width='8' height='8' fill='%231E3E97'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.article-list h4 {
    border-bottom: 2px solid #007bff;
}



/* Article list header styling */
.article-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.article-list-header h4 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 20px;
}

.article-list-header a {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: none;
}

.article-list-header a:hover {
    color: #0f3864;
    text-decoration: underline;
}

/* Breadcrumb navigation in article list header */
.breadcrumb-nav {
    font-size: 0.85rem;
    color: #6c757d;
}

.breadcrumb-nav a {
    color: #1E3E97;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: #007bff;
    text-decoration: underline;
}

.breadcrumb-nav .active {
    color: #6c757d;
}


/* Updated featured news styling */
.featured-news {
    position: relative;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.featured-news .news-content {
    position: absolute;
    bottom: 10px;
    /* Changed from top: 0 to bottom: 10px */
    left: 0;
    right: 0;
    z-index: 2;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
}

.featured-news h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: white;
}

.featured-news .small {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8) !important;
}

.featured-news img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.featured-news p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #6c757d;
}

/* Updated news list styling */
.news-list {
    padding-left: 0;
    list-style-type: none;
    margin-top: 10px;
}

.news-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted #eee;
    padding-bottom: 5px;
}

.news-list li a {
    color: #333;
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list li span {
    margin: 0;
    padding-left: 10px;
    color: #999;
    font-size: 0.8rem;
    white-space: nowrap;
}

.news-list li a:hover {
    color: #2853c9;
}


/* Tab styling */
/* Custom styling for nav tabs */
#newsTab .nav-link {
    font-size: 1.25rem;
    font-family: "微软雅黑", "宋体", Arial;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    /* Reduced padding from 0.5rem 1rem */
    color: #6c757d;
    border: none;
    background-color: transparent;
}

#newsTab .nav-link.active {
    font-weight: 600;
    color: #0056b3;
    background-color: transparent;
    border: none;
}

#newsTab .nav-link:hover {
    color: #00346c;
}

/* Remove tab underline */
#newsTab {
    border-bottom: none;
}

#newsTab .nav-link:hover {
    color: #0056b3;
    border: none;
}

/* Adjust article list header */
.article-list-header {
    padding-bottom: 10px;
    position: relative;
    border-bottom: none;
}

/* Create split colored bottom line */
.article-list-header::before,
.article-list-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
}

/* Blue left part (shorter) */
.article-list-header::before {
    left: 0;
    width: 20%;
    background-color: #1E3E97;
    /* Blue color */
}

/* Yellow right part */
.article-list-header::after {
    left: 20%;
    right: 0;
    background-color: #F7D228;
    /* Yellow color */
}

/* Announcement styling */
.announcement-list {
    padding: 10px 0;
}

.announcement-item {
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #007bff;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.announcement-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.announcement-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-bottom: 8px;
}

.announcement-content {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0;
}



/* Add these styles for the donate button hover effect */
.navbar-brand .small-logo {
    transition: opacity 0.3s ease;
    max-height: 100px;
}

.navbar-brand .small-logo:nth-child(2) {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
}

.navbar-brand:hover .small-logo:first-of-type {
    opacity: 0;
}

.navbar-brand:hover .small-logo:nth-child(2) {
    opacity: 1;
}

/* View more links styling */
.view-more-links {
    display: flex;
    align-items: center;
}

.view-more-link {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: none;
}

.view-more-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Content Page Styles */
.page-content {
    padding-top: 30px;
    padding-bottom: 50px;
    min-height: 600px;
}

/* Breadcrumb styles */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #1E3E97;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Content header styles */
.content-header {
    border-bottom: 2px solid #1E3E97;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.content-title {
    color: #1E3E97;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.content-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Content body styles */
.content-body {
    line-height: 1.8;
    color: #333;
}

.content-body .lead {
    font-size: 1.2rem;
    color: #1E3E97;
    font-weight: 500;
}

.content-body h2 {
    color: #1E3E97;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-body ul {
    padding-left: 20px;
}

.content-body li {
    margin-bottom: 10px;
}

/* Sidebar styles */
.content-sidebar .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.content-sidebar .card-header {
    background-color: #1E3E97;
    color: white;
    font-weight: 600;
}

.content-sidebar .list-group-item a {
    color: #1E3E97;
    text-decoration: none;
}

.content-sidebar .list-group-item a:hover {
    text-decoration: underline;
}