/* Genel Blog Sayfası Stilleri */
.blog-page-content {
  font-family: 'Outfit', sans-serif;
  color: #333;
}
.hero-bg {
  min-height: 30vh;
  padding-bottom: 20px;
  height: auto;
}
.blog-hero {
  position: relative;
}

.search-input-group input {
  background: #d0e3ff;
}

.blog-hero h1 {
  font-size: 3rem;
}

.blog-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.search-input-group input {
  border-radius: 50px 0 0 50px;
  padding: 10px 20px;
  border: none;
}

.search-input-group button {
  border-radius: 0 50px 50px 0;
  padding: 10px 25px;
}

/* Blog Kartları Ortak Stilleri */
.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-card-title a:hover {
  color: #0056b3;
}

.blog-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00aaff;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.blog-card-excerpt {
  flex-grow: 1;
  margin: 10px 0 15px;
  color: #555;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blog-card-meta i {
  color: #00aaff;
}

/* Featured Blog Card */
.blog-card-featured {
  flex-direction: column;
}

.blog-card-featured .blog-card-img {
  height: 445px;
}

.blog-card-featured .blog-card-meta span {
  display: inline-flex;
  align-items: center;
}

/* Yazar Bilgisi */
.blog-card-meta span.author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-meta span.author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Kompakt Blog Kartları */
.blog-card-compact .blog-card-img {
  height: 180px;
}

.list-group.top-read-list a {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: background 0.3s;
}

.list-group.top-read-list a:hover {
  background: rgba(0, 123, 255, 0.05);
}

/* Tüm Bloglar Grid */
.blog-grid .blog-card-grid {
  height: 100%;
}

.blog-filter-nav .btn-filter {
  margin: 0 5px 10px 5px;
  border-radius: 50px;
  background: #f0f0f0;
  color: #333;
  border: none;
  transition: all 0.3s;
}

.blog-filter-nav .btn-filter.active,
.blog-filter-nav .btn-filter:hover {
  background: #007bff;
  color: #fff;
}

/* Load More Butonu */
.load-more-btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 1rem;
}

.blog-read-item {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  height: 100%;
  padding: 10px;
  text-decoration: none;
  align-items: center;
}

.blog-read-item > :nth-child(1) {
  flex: 0.1;
}

.blog-read-item > :nth-child(2) {
  margin-right: 10px;
  height: 100%;
  flex: 0.7;
}

.blog-read-item > :nth-child(3) {
  flex: 2;
}

.blog-item-title {
  font-size: 19px;
  font-weight: 600;
}
.blog-read-item img {
  border-radius: 10px;
  border: 1px solid #b7daff;
  height: 100%;
}
.blog-content {
  display: flex;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin: 40px 0;
}
.blog-content > :nth-child(1) {
  flex: 0.1;
}
.blog-content > :nth-child(2) {
  flex: 2;
}
.blog-content-area {
  padding: 20px;
}

.blog-porifle {
  background: linear-gradient(180deg, #2b8bfd, #0b6be0);
  border-radius: 10px;
  padding: 10px;
}
.blog-porifle .blog-profile-sticky {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.blog-profile-image {
  border-radius: 10px;
  margin-bottom: 10px;
}
.blog-info-item {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.17s;
  text-align: center;
  width: 100%;
}
.blog-content-text h2 {
  color: #001455;
  font-size: 28px;
  position: relative;
  padding: 10px 10px 10px 13px;
}
.blog-content-text h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  width: 4px; /* çizgi kalınlığı */
  height: 70%; /* h2 başlığının yüksekliği kadar */
  background: #007bff; /* çizgi rengi */
  border-radius: 3px; /* hafif yuvarlatma */
}
.blog-content-text h3 {
  color: #001455;
  font-size: 22px;
  position: relative;
  padding: 10px 10px 10px 13px;
}
.blog-content-text h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  width: 4px; /* çizgi kalınlığı */
  height: 70%; /* h2 başlığının yüksekliği kadar */
  background: #007bff; /* çizgi rengi */
  border-radius: 3px; /* hafif yuvarlatma */
}
.blog-content-area img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 5px;
}
.blog-sidebar {
  margin: 40px 0;
  position: sticky;
  top: 110px;
}
.blog-sidebar .blog-sidebar-title {
  font-size: 25px;
  font-weight: 400;
  color: #001455;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.blog-sidebar-content .blog-read-item > :nth-child(1) {
  margin-right: 10px;
  height: 100%;
  flex: 0.7;
}

.blog-sidebar-content .blog-read-item > :nth-child(2) {
  flex: 2;
}
.blog-sidebar-content .blog-read-item .blog-item-title {
  font-size: 15px;
  font-weight: 500;
}
.blog-sidebar-content .blog-read-item .text-muted {
  font-size: 13px;
}
.categories-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card {
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #001455;
  transition: all 0.2s ease;
}

.category-card i {
  font-size: 18px;
  color: #007bff;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: #f0f7ff;
}
.social-media {
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-social-media-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.toc {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.toc-header {
  padding: 16px;
}

.toc-toggle {
  background: none;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  font-size: 15px;
}

.toc-toggle i {
  font-size: 18px;
  color: #2563eb;
}

.toc.open .arrow {
  transform: rotate(180deg);
}

.toc-list {
  border-top: 1px solid #e2e8f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

.toc.open .toc-list {
  max-height: 600px; /* İçeriğe göre ayarlanır */
}

.toc-list li {
  margin: 4px 0;
}

.toc-list a {
  display: block;
  padding: 10px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s ease;
}

.toc-list a:hover {
  background: #f1f5ff;
  color: #2563eb;
}

.toc-list a.active {
  background: linear-gradient(90deg, #2563eb1a, #60a5fa1a);
  color: #2563eb;
  font-weight: 600;
}
.toc-list li.toc-level-0 a::before,
.toc-list li.toc-level-1 a::before,
.toc-list li.toc-level-2 a::before,
.toc-list li.toc-level-3 a::before,
.toc-list li.toc-level-4 a::before {
  content: '•'; /* Nokta simgesi, istediğin sembol olabilir */
  color: #2575fc;
  display: inline-block;
  width: 15px; /* indent için boşluk bırakıyor */
  margin-right: -5px;
  font-size: 12px;
}
.toc-list li.toc-level-0 {
  padding-left: 0;
}
.toc-list li.toc-level-1 {
  padding-left: 15px;
}
.toc-list li.toc-level-2 {
  padding-left: 30px;
}
.toc-list li.toc-level-3 {
  padding-left: 45px;
}
.toc-list li.toc-level-4 {
  padding-left: 60px;
}

@media (max-width: 768px) {
  .toc {
    position: relative;
    max-width: 100%;
    top: 0;
  }
}
/* Responsive */
@media (max-width: 992px) {
  .blog-card-img {
    height: 200px;
  }

  .blog-card-featured .blog-card-img {
    height: 250px;
  }
  .blog-content {
    flex-direction: column;
  }
  .blog-item-area {
    display: flex;
    flex-wrap: wrap;
  }

  .blog-porifle .blog-profile-sticky {
    flex-direction: row;
    align-items: start;
    justify-content: flex-start;
  }
  .blog-profile-image {
    width: 100%;
  }
  .blog-social-media-area {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-hero p {
    font-size: 1rem;
  }
}
