.haberler-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 0;
}
.haber
{
    width: calc(33.333% - 15px) !important;
}

.haber-detay {
  transition: var(--transition);
  color: var(--secondary);
}

.haber-detay:hover {
  color: var(--primary) !important;
}

.haber .title {
  color: var(--secondary);
  font-size: 20px;
  font-weight: 560;
  text-transform: uppercase;
  padding-bottom: 14px;
}

.haber-detay {
  display: flex;
  flex-direction: column;
}
.haber-ozet {
  width: 100%;
  line-height: 1.5;
}

.haber .haber-detay .haber-ozet p
{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 18px;
}

.haber .haber-detay img,
.haber-detail-image img
{
    width: auto;
    height: 100%;
}

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {

    .haber
    {
        width: 100% !important;
    }
    .haber-detail-image img
    {
        width: 100%;
        height: auto;
    }

}

@media screen and (max-width: 576px) {
  .haberler-container {
    padding: 20px 16px;
  }

  .haber-detay {
    gap: 10px;
  }
}

/* Haber Detail Styles */
.haber-detail-container {
  padding: 40px 0;
}

.haber-detail-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.haber-detail-header {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
}

.haber-detail-title {
  color: var(--secondary);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.haber-detail-date {
  color: var(--primary);
  font-size: 18px;
}

.haber-detail-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.haber-detail-image {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.haber-detail-image img {
  object-fit: cover;
}

.haber-detail-text {
  line-height: 1.7;
  color: var(--secondary);
}

.haber-detail-text p {
  margin-bottom: 15px;
  font-size: 18px;
}

.haber-detail-footer {
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
  font-size: 18px;
}

.back-to-news {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.back-to-news:hover {
  opacity: 0.8;
}


/* Responsive styles for haber detail */
@media screen and (max-width: 768px) {
    .haber
    {
        width: calc(100% - 15px) !important;
    }
  .haber-detail-container {
    padding: 30px 16px;
  }
  
  .haber-detail-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 576px) {
  .haber-detail-container {
    padding: 20px 16px;
  }
  .haber
    {
        width: 100%!important;
    }
  .haber-detail-title {
    font-size: 20px;
  }
  
  .haber-detail-wrapper {
    gap: 20px;
  }
}