/* ===================================================== */
/* BLOG GENEL ALANI                                       */
/* ===================================================== */

.blog-section {
  width: 100%;
  text-align: center;
  padding: 60px 20px 30px;
  background: #f7f3ec;
  margin-top: 25px;
}

/* Başlık */
.main-title {
  font-size: 36px;
  font-family: "Georgia", serif;
  color: #731919;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  max-width: 650px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Bloglar */
.blog-title {
  margin: 20px 0 25px;
  font-size: 30px;
  font-family: "Georgia", serif;
  color: #2c1a18;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ===================================================== */
/* BLOG GRID (SABİT KART GENİŞLİĞİ + FLEX LAYOUT)        */
/* ===================================================== */

.blogs-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 20px;
}

/* ===================================================== */
/* BLOG KART                                              */
/* ===================================================== */

.blog-card {
  width: 320px; /* SABİT GENİŞLİK — en stabil çözüm */
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 15px;

  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e6e6e6;

  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

/* Görsel */
.blog-image-wrapper {
  width: 100%;
  height: 185px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

/* Başlık */
.blog-header {
  font-size: 20px;
  font-family: "Georgia", serif;
  font-weight: 700;
  color: #731919;
  padding: 15px 18px 5px;
  line-height: 1.3;

  /* --- BAŞLIK KISITLAMA --- */
  display: -webkit-box;
  -webkit-line-clamp: 1;   /* yalnızca 1 satır */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Özet */
.blog-text {
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 18px;

  display: -webkit-box;
  -webkit-line-clamp: 1; /* TEK SATIR */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Devam butonu */
.blog-button {
  width: calc(100% - 36px);
  margin: 0 auto;
  padding: 12px 0;
  background: #731919;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.blog-button:hover {
  background: #8f1c1c;
}

/* Meta */
.blog-meta {
  margin-top: 15px;
  padding: 0 18px;
  font-size: 13px;
  color: #555;
  text-align: left;
  line-height: 1.55;
}

/* ===================================================== */
/* PAGINATION                                             */
/* ===================================================== */

.pagination {
  margin: 40px 0 20px;
  text-align: center;
}

.page-info {
  font-size: 15px;
  color: #444;
  margin-bottom: 12px;
  display: block;
}

.page-btn {
  padding: 8px 15px;
  background: #731919;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.page-btn:hover {
  background: #8f1c1c;
}

/* ===================================================== */
/* ALT BÖLÜM – SEN DE TARİHİNİ YAZ                       */
/* ===================================================== */

.write-history {
  width: 100%;
  max-width: 900px; /* kutuyu ortalamak için */
  margin: 40px auto 60px; /* ortalama + boşluk */
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center; /* tüm yazıları ortalar */
}

.write-title {
  font-size: 28px;
  font-family: "Georgia", serif;
  font-weight: 700;
  color: #731919;
  margin-bottom: 10px;
}

.write-text {
  max-width: 550px;
  margin: 0 auto 25px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  text-align: center;
}

.create-blog {
  margin-top: 15px;
}

.create-link {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* ikon + yazıyı ortalar */
  padding: 10px 18px;
  background: #731919;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  gap: 10px;
  transition: 0.2s ease;
}

.create-link:hover {
  background: #8f1c1c;
}

.img-more {
  width: 20px;
  height: 20px;
}

/* ===================================================== */
/* RESPONSIVE                                             */
/* ===================================================== */

@media (max-width: 768px) {
  .main-title {
    font-size: 28px;
  }
  .blog-header {
    font-size: 18px;
  }
  .write-history {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .blog-card {
    width: 94%;
  }
}
