/* --------------------------
   Blog Liste Grid Düzeni
   -------------------------- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* --------------------------
   Her Bir Kart (Blog Item)
   -------------------------- */
.blog-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --------------------------
   Görsel Banner
   -------------------------- */
.blog-image {
  display: block;
  width: 100%;
  height: 180px;
  padding-top: 40%; /*  aspect ratio için 40% (=tırnaklı resme göre ayarlayın) */
  background-size: cover;
  background-position: left;
}

/* --------------------------
   İçerik Kısmı
   -------------------------- */
.blog-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Kategori Başlığı */
.blog-category {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  color: #c80b0f;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

/* Makale Başlığı */
.blog-title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 20px;
  flex: 1;
}

.blog-page-title {
      color: #3c464e;
        font-size: 40px;
        font-weight: bold;
        margin-top: 50px;
}
.blog-title a {
  color: #44321f;
  text-decoration: none;
}
.blog-title a:hover {
  text-decoration: underline;
}

/* Devamını Oku Butonu */
.read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #3c464e;
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.read-more span {
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.read-more:hover {
  background-color: #b10a0d;
}
.read-more:hover span {
  transform: translateX(4px);
}



/* Responsive Küçük Ekran Ayarı */
@media (max-width: 768px) {
  .blog-title { font-size: 18px; }
  .read-more { padding: 8px 16px; font-size: 13px; }
  #divIcerik {
    margin-top: 90px;
}
}



/* ------------- BLOG DETAY --------- */

.blogDetailContainer {
width: 80%;
margin: auto;
}

 .blog-detail-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px 0;
            width: 90%;
        }

        .blog-detail-content {
            flex: 1;
            min-width: 300px;
        }

      .recent-posts {
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

        .blog-detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 75px 0;
    width: 90%;
    margin: 0 auto; /* Ortalanmış */
}

        /* Masaüstü ekranlarda sabit "Son Yazılar" */
        @media (min-width: 768px) {
            .blog-detail-container {
                flex-wrap: nowrap;
            }

               .recent-posts {
        position: sticky;
        top: 50px; /* Header yüksekliğine göre ayarlayın */
        align-self: flex-start; /* Blog içeriği ile hizalı başlar */
    }
        }

          @media (max-width: 768px) {
            .blog-detail-container {
                width: 100%;
            }

            .blogDetailContainer {
                width: 100%;
            }

            .metadata {
                flex-direction: column;
            }

            
        }

        /* Blog İçerik Stil */
        .blog-detail-title {
            color: #b10a0d;
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .breadcrumb {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }

        .metadata {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            color: #999;
            margin-bottom: 20px;
        }

        .blog-detail-image {
            width: 1050px;
            /*height: auto;*/
            height:540px;
            margin: 20px 0;
            object-fit: contain;
            object-position: top;
            border-radius: 8px;
            /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

        .blog-detail-text p{
            font-size: 16px;
            color: #000;
            line-height: 1.6;
            padding: 10px 0px !important;
        }

        .blog-detail-text h2 {
            color: #b10a0d;
            text-align: left;
            font-size: 24px;
            font-weight: bold;
            margin-top: 20px;
        }
        
        .blog-detail-text h3 {
            color: #b10a0d;
            text-align: left;
            font-size: 22px;
            font-weight: bold;
            margin-top: 20px;
        }

        /* Son Yazılar Stil */
        .recent-posts h3 {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .recent-post-item {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .recent-post-thumbnail {
            width: 60px;
            height: 60px;
            margin-right: 10px;
            border-radius: 4px;
            object-fit: cover;
            
        }

        .recent-post-date {
            font-size: 12px;
            color: #b10a0d;
        }

        .recent-post-title {
            font-size: 14px;
            color: #000;
        }

        .table-of-contents {
    background-color: #f9f9f9; /* Hafif gri arka plan */
    padding: 15px;
    border-radius: 8px; /* Yuvarlak köşeler */
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Hafif gölge */
    width: 50%;
    max-height: 475px;
    overflow-y: auto;
}

.table-of-contents h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.table-of-contents .toc-h3 {
  margin-left: 1em; /* h3’leri biraz içeri alır */
  font-size: 0.95em;
}
.table-of-contents ul {
  list-style: none;
  padding-left: 0;
}
.table-of-contents li {
  margin-bottom: 0.4em;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
}

.table-of-contents li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #b10a0d; /* Blog başlığıyla uyumlu kırmızı renk */
    border-radius: 50%; /* Yuvarlak nokta */
}

.table-of-contents a {
    text-decoration: none;
    color: #b10a0d; /* Blog başlığıyla uyumlu */
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #900; /* Daha koyu bir kırmızı tonu */
}

.content-edit {
    font-size: 20px !important;
    margin-top: 50px !important;
    border-bottom:#00000031 1px solid;
}

/* Mobil cihazlarda TOC gizleme */
@media (max-width: 768px) {
    .table-of-contents {
        width: 100%;
        max-height: 250px;
    }
    
     .blog-detail-image {
            height: 190px;
}
}


/* Container */
.prev-next-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  width: 100%;
}

/* Her bir blok */
.nav-block {
  position: relative;
  flex: 1;
  padding: 1.5rem 1.5rem 1rem;
  background: #E6F1EC; /* örnekteki açık zeytin-yeşili */
  border-radius: 8px;
}

/* Sol üstteki küçük nokta */
.nav-bullet {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}

/* Link içeriği tüm bloğu kapsayacak */
.nav-content {
  display: block;
  margin-left: 1.5rem; /* bullet’tan boşluk */
  text-decoration: none;
  color: #111;
}

/* Üst etiket: ok + “ÖNCEKİ İÇERİK” */
.nav-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #444;
}

/* Ok ikonu SVG ile */
.nav-icon {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: #c80b0f;
  stroke-width: 2;
    margin-bottom: 5px;
}

/* Alt başlık (blog başlığı) */
.nav-title {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  transition-duration: 0.3s;
}

.nav-title:hover {
color: #c80b0f;
  transition-duration: 0.3s;
}

.prevnext-title {
    display:Flex;
    flex-direction:row;
    align-items: center;
    gap: 5px;
}

/* Mobilde bloklar alt alta */
@media (max-width: 768px) {
  .prev-next-nav {
    flex-direction: column;
  }
}
