.top-navbar {
    padding: 15px 0;
    background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, #B9CAE3 25%, #6C90C4 50%, #2B60AA 75%, #014099 100%);
    min-height: 160px;
}

.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;
}


.category-navbar {
    position: absolute;
    width: 100%;
    z-index: 1000;
    background-color: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(3px);
}

.category-navbar .navbar-nav {
    align-items: center;
}

.category-navbar .nav-item:not(:last-child)::after {
    content: '|';
    display: inline-block;
    color: #6c757d;
    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;
}

/* Remove dropdown triangle icon */
.category-navbar .dropdown-toggle::after {
    display: none;
}

/* Make dropdown menu semi-transparent */
.category-navbar .dropdown-menu {
    background-color: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(1px);
}

.category-navbar .dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.9);
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Carousel label styling with text-stroke effect */
.carousel-label {
    position: absolute;
    bottom: 20px;
    right: 40px;
    padding: 10px;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    /* Text stroke effect using multiple text-shadows */
    text-shadow: 
        -1px -1px 0 #f3f4f7,  
        1px -1px 0 #f3f4f7,
        -1px 1px 0 #f3f4f7,
        1px 1px 0 #f3f4f7,
        0px 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 10;
}
.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(230, 198, 15, 0.642);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #1E3E97; /* 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; /* 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;
}


.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: 30px;
    margin-right: auto;
    justify-content: flex-start;
}

#mainCarouselIndicators button {
    width: 15px;
    height: 15px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-right: 8px;
}

#mainCarouselIndicators button.active {
    background-color: white;
}

/* 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: #007bff;
    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: #007bff;
    text-decoration: underline;
}


/* 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: #007bff;
    background-color: transparent;
    border: none;
}

#newsTab .nav-link:hover {
    color: #0056b3;
}

/* 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;
    border-bottom: 1px solid #dee2e6;
}

/* 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;
}

.gradient-border-image {
  position: relative;
  display: inline-block;
}

.gradient-border-image::before,
.gradient-border-image::after {
  content: '';
  position: absolute;
  top: 5%;
  height: 90%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.8) 80%, transparent);
}

.gradient-border-image::before {
  left: -8px;
}

.gradient-border-image::after {
  right: -8px;
}

/* 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;
}
