/* Cấu hình dropdown mặc định */
.fancy-dropdown {
    max-width: 250px; /* Giới hạn chiều rộng dropdown */
    overflow-x: hidden; /* Ẩn tràn ngang */
    white-space: nowrap; /* Không cho xuống dòng */
    text-overflow: ellipsis; /* Hiện "..." nếu text dài */
    max-height: 220px;
    overflow-y: auto;
}

.fancy-dropdown .dropdown-item {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 6px 12px;
    font-size: 14px;
}
.fancy-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) rotateX(-10deg);
    transform-origin: top;
    transition: all 0.3s ease-in-out;
    background: white;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Hover vào .nav-item thì dropdown hiện ra */
.custom-hover-dropdown:hover .fancy-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotateX(0);
    pointer-events: auto;
}
.related-posts .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.share .title {
    font-size: 24px;
    font-weight: bold;
    color: #1c7c67;
    margin-bottom: 20px;
}

.share-detail .title {
    font-weight: 500;
    color: #000;
    font-size: 16px;
    line-height: 1.4;
}

.share-detail .title:hover {
    color: #007bff;
    text-decoration: underline;
}

.share-detail .date {
    color: #666;
}
.share-detail .title:hover {
    color: #004d40;
    text-decoration: underline;
}
.highlightflag {
    color: orange;
}
.card-body a:hover {
        background-color: #008F80;
        color: white !important;
        border-color: #008F80;
    }
.card-body a {
       
        border-color: #008F80;
    }/* Cấu hình dropdown mặc định */
.pagination-sm li a,
.pagination-sm li span {
    font-size: 12px;
    padding: 4px 8px;
}
.pagination-wrapper {
    text-align: center;
    margin-top: 20px;
}