/* ===========================
   DETAY SAYFA (Haber/Makale/Duyuru)
   Sol sidebar (diğer yazılar) + Sağ içerik
=========================== */

.detay-main {
  background: #f4f6f8;
  min-height: 60vh;
  padding: 30px 0 60px;
}

.detay-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ===========================
   SOL SIDEBAR
=========================== */
.detay-sidebar {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.sidebar-baslik {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1a1a2e;
  padding: 13px 16px;
  border-bottom: 2px solid #f0f0f0;
  letter-spacing: 0.3px;
}

.sidebar-liste {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.sidebar-liste li {
  border-bottom: 1px solid #f4f4f4;
}
.sidebar-liste li:last-child {
  border-bottom: none;
}

.sidebar-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.79rem;
  font-weight: 600;
  color: #333;
  line-height: 1.45;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sidebar-item:hover {
  background: #f5f5f5;
  color: #1a1a2e;
}
.sidebar-item.active {
  background: #1a6fa8;
  color: #fff;
}
.sidebar-item.active:hover {
  background: #135a8c;
}

/* ===========================
   SAĞ DETAY İÇERİK
=========================== */
.detay-icerik {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 28px 32px 36px;
  min-height: 400px;
}

.detay-icerik h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.35;
  margin-bottom: 8px;
}

.detay-ozet {
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 12px;
  font-style: italic;
}

.detay-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 20px;
}
.detay-meta i {
  color: #1a6fa8;
  margin-right: 4px;
}

.detay-img-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #dde8f0;
}
.detay-img-wrap img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.detay-metin {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.8;
}
.detay-metin p {
  margin-bottom: 14px;
}
.detay-metin p:last-child {
  margin-bottom: 0;
}
.detay-metin strong {
  color: #1a1a2e;
  font-weight: 700;
}

/* Geri dön butonu */
.detay-geri {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.btn-geri {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a6fa8;
  transition: color 0.2s;
}
.btn-geri:hover { color: #135a8c; }

/* ===========================
   RESPONSİF
=========================== */
@media (max-width: 860px) {
  .detay-container {
    grid-template-columns: 1fr;
  }
  .detay-sidebar {
    position: static;
  }
}
@media (max-width: 560px) {
  .detay-icerik {
    padding: 20px 16px 28px;
  }
  .detay-icerik h1 {
    font-size: 1.1rem;
  }
}
