

.pinned-news::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.2); /* Transparent label background */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px; /* Icon size */
    font-weight: bold;
    color: #ff4081; /* Vibrant color */
    text-transform: uppercase;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinned-news::before {
    content: '\f08d'; /* Font Awesome thumbtack icon */
    font-family: "Font Awesome 5 Free"; /* Font Awesome icon font family */
    font-weight: 900; /* Required for solid icons */
}

.pinned-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(66, 1, 58, 0.5); /* Enhanced hover effect */
}

/* Tooltip container styling */
[data-tooltip] {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  
  /* Tooltip box styling */
  [data-tooltip]::after {
    content: attr(data-tooltip); /* Display the tooltip text */
    position: absolute;
    bottom: 120%; /* Position it above the element */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000; /* Ensure it is above other content */
  }
  
  /* Tooltip visible on hover */
  [data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
  }
  
  /* Optional: Tooltip arrow */
  [data-tooltip]::before {
    content: '';
    position: absolute;
    top: 100%; /* Position it at the bottom of the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }
  