/* Ana sarmalayıcı */
.hba-container {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Kayan içeriğin kendisi */
.hba-scroller {
    display: inline-block;
    white-space: nowrap;
    /* Süre, içerik sayısına göre otomatik ayarlanmış gibi olur. Uzun liste yavaşça akar. */
    animation: hba-marquee 200s linear infinite;
}

/* Fare üzerine gelince animasyonu durdur */
.hba-container:hover .hba-scroller {
    animation-play-state: paused;
}

/* Her bir haber ve ikon öğesini içeren sarmalayıcı */
.hba-item-wrapper {
    display: inline-block;
    vertical-align: top;
    margin: 0 15px;
}

/* Haber öğesinin kendisi */
.hba-item {
    display: block;
    width: 220px;
    height: 150px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hba-item:hover {
    transform: translateY(-5px) scale(1.03);
}

.hba-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hba-baslik-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    padding: 25px 12px 10px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
}

.hba-baslik-metin {
    white-space: normal;
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
    text-align: left;
    width: 100%;
}

/* İkonun stili */
.hba-dongu-ikonu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  width: 100px;
}

.hba-dongu-ikonu .dashicons {
  font-size: 40px;
  color: #888;
  animation: hba-spin 4s linear infinite;
}

/* İkonun kendi etrafında dönme animasyonu */
@keyframes hba-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Ana kaydırma animasyonu */
@keyframes hba-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}