/* Hero Bölümü */
.haberler-hero {
  background: url('../../media/homepage/page-header-bg.jpg') no-repeat center center;
  background-size: cover;
  height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
} 

.haberler-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.ortala {
  text-align: center;
}

.hero-overlay {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.2rem;
}

/* Container */
.haberler-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}
.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #230b68;
}

/* Haber Grid */
.haberler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

/* Haber Kartı */
.haber-karti {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.haber-karti:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.haber-karti img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.haber-icerik {
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Kategori Etiketleri */
.kategori {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 8px;
}
.etiket-duyuru { background: #230b68; }
.etiket-haber { background: #2980b9; }
.etiket-faaliyet { background: #27ae60; }

/* Tarih */
.haber-tarih {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

/* Başlık */
.haber-icerik h3 a {
  font-size: 18px;
  font-weight: bold;
  color: #000; /* Siyah başlık */
  text-decoration: none; /* Alt çizgi kaldırıldı */
}
.haber-icerik h3 a:hover {
  color: #230b68;
}

/* Açıklama */
.haber-icerik p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Devam Butonu */
.devam-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #230b68;
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}
.devam-btn:hover {
  background: #1b0854;
}


/* Responsive Düzenlemeler */

@media (max-width: 992px) {
  .haberler-hero {
    height: 250px;
    padding: 0 15px;
  }

  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .haberler-container {
    padding: 0 15px;
    margin: 40px auto;
  }

  .haberler-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .haber-karti img {
    height: 180px;
  }

  .haber-icerik h3 a {
    font-size: 16px;
  }

  .haber-icerik p {
    font-size: 13px;
  }

  .devam-btn {
    font-size: 13px;
    padding: 7px 14px;
  }
}

@media (max-width: 576px) {
  .haberler-hero {
    height: 180px;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }

  .haberler-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .haber-karti img {
    height: 140px;
  }

.haber-icerik h3 a {
    font-size: 15px;
    display: flex;
    justify-content: center; /* yatay ortalama */
    align-items: center;    /* dikey ortalama */
    text-align: center;     /* metin ortalama (gerekiyorsa) */
}

.devam-btn {
    font-size: 12px;
    padding: 6px 12px;
    display: flex;
    justify-content: center; /* yatay ortalama */
    align-items: center;    /* dikey ortalama */
    text-align: center;     /* metin ortalama (gerekiyorsa) */
}


  .kategori {
    font-size: 11px;
    padding: 4px 10px;
  }
}
