/* Global box-sizing reset – her şey kutu sınırında kalsın */
*, ::before, ::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.latest-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 10px auto 30px;
  background: #fff;
  padding: 15px;

  /* Dışarıya doğru beyaz gölgeli efekt (Yorum kutusundaki gibi) */
  box-shadow:
    inset 2px 2px 2px rgba(255, 255, 255, 0.3),
    2px 2px 8px rgba(0, 0, 0, 0.2),
    inset 0px -3px 5px rgba(0, 0, 0, 0.2);

  border-radius: 1rem;
}


/* Başlık ve nav container - kutu dışı üstünde */
.latest-header {
  position: absolute;
  top: -70px; /* kutunun üstünde */
  left: 15px; /* wrapper padding ile hizalı */
  right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 20px;
  color: #000;
  background: transparent;
  z-index: 10;
  padding: 0;
  margin: 0;
}

/* Başlık stili - margin ve border kaldırıldı */
.latest-wrapper h2 {
  margin: 0;
  padding: 0;
  border: none;
}

/* Slider ileri/geri butonları */
.slider-nav button {
  padding: 6px 14px;
  background-color: #3498db;
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  height: 36px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.slider-nav button:hover {
  background-color: #2980b9;
}

/* İçerik taşıyıcı, taşmayı gizle */
.latest-container {
  overflow: hidden;
}

/* Her bir slider elemanı */
.latest-item {
  display: flex !important;
  align-items: flex-start;
  gap: 15px;
  width: 50%;
  box-sizing: border-box;
  padding: 15px;
}

/* Sliderdaki görsel */
.latest-item img {
  width: 300px;       /* Sohbettemasi.com ölçüleri */
  height: 182px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.content-text p {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* En fazla 3 satır göster */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 60px; /* Yüksekliği sabit tut */
}

.devam-btn {
  padding: 6px 14px;
  background-color: #210065;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}

/* Carousel genel kapsayıcı */
.carousel {
  position: relative;
}

/* Carousel içeriği */
.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Aktif slayt sola hizalanır */
.carousel-inner > .active {
  left: 0;
}

/* Aktif, önceki, sonraki slaytlar görünür */
.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
  display: block;
}

/* Slayt itemları */
.carousel-inner > .item {
  position: relative;
  display: none;
  -webkit-transition: .6s ease-in-out left;
  transition: .6s ease-in-out left;
}

/* Genel img reset */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

/* Margin bottom yardımcı sınıf */
.m-b-50 {
  margin-bottom: 5rem !important;
}

.section-heading {
  margin-bottom: 0; /* Kutuya sıfır mesafe */
}

.latest-heading {
  background-image: url('http://sohbettemalari.xyz/wp-content/themes/Sohbetcik/images/blog.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 0.8rem 2rem;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: -2px; /* Kutuyla tam bitişme */
  white-space: nowrap;
  margin-left: 500px; /* ← BURAYI EKLEDİK, SAĞA KAYDIRIR */
}

.latest-item .content-text h3 {
  color: #000000 !important;
}

/* lastContentBox içerik stili */
.lastContentBox .content {
  height: 280px;
  padding: 2rem 0.7rem 1rem 3rem;
  background-color: #fff;
  border-radius: 1rem;
  -webkit-box-shadow: inset 2px 2px 2px #fff5, 2px 2px 2px #0007, inset 0px -3px 5px #0007;
  -moz-box-shadow: inset 2px 2px 2px #fff5, 2px 2px 2px #0007, inset 0px -3px 5px #0007;
  box-shadow: inset 2px 2px 2px #fff5, 2px 2px 2px #0007, inset 0px -3px 5px #0007;
  position: relative;
}

/* Responsive container genişlikleri */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Örnek: anne kapsayıcının Z‑index’ini sıfırlamak */
.parent-wrapper {
  position: static !important;
  z-index: auto !important;
}

/* === Slider metin eşitleme (CSS-only) === */

/* Flex çocuğun taşmasını engelle – kritik */
.latest-item .content-text {
  flex: 1 1 auto;
  min-width: 0; /* taşmayı engeller */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

/* Başlık: en fazla 2 satır + ... */
.latest-item .content-text h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.3em * 2);
  word-break: break-word;       /* uzun kelimeleri kır */
  overflow-wrap: anywhere;
}

/* Açıklama: en fazla 3 satır + ... */
.latest-item .content-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.4em * 3);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Buton her zaman kutunun en altında kalsın */
.latest-item .devam-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Kartların iç yükseklik davranışı daha stabil olsun */
.latest-item {
  align-items: stretch; /* resim yüksekliğiyle hizayı korur */
}



/* Sadece En Çok Okunanlar ve Son Yorumlar kutuları */
.last-contents-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

.last-contents-container {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;  /* Ortalamak için eklendi */
    margin-right: auto; /* Ortalamak için eklendi */
}

.last-content-box {
    flex: 1;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: inset 2px 2px 2px #fff5, 2px 2px 2px #0007, inset 0px -3px 5px #0007;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.last-content-box .title {
  background-image: url('http://sohbettemalari.xyz/wp-content/themes/Sohbetcik/images/blog.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 265px auto;   /* ← BURAYI sen ayarlayabilirsin genişletmek için */
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem 0.6rem 3.2rem;  /* Sol padding görsel için boşluk */
  border-radius: 6px;
  min-height: 40px;              /* Yüksekliği sabitleyebiliriz istersen */
}



.last-content-box .title h4 {
  color: #fff;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;           /* Tek satır kalsın */
}



.last-content-box .content {
    padding: 2rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.last-content-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.last-content-box ul li {
    border-bottom: 1px solid #ddd;
    padding: 1rem;
    position: relative;
}

.last-content-box ul li h5 {
    font-size: 16px;
    margin: 0 0 0.5rem 0;
}

.last-content-box ul li p {
    font-size: 13px;
    color: #817a7a;
    margin: 0;
}

.last-content-box ul li .read-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background-color: #f2c505;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.last-content-box ul li .read-btn:hover {
    background-color: #e6b11e;
    color: #fff;
}

/* Responsive: Mobilde kutular alt alta */
@media (max-width: 992px) {
    .last-contents-container {
        flex-direction: column;
    }
    .last-content-box {
        width: 100%;
    }
    .last-content-box ul li .read-btn {
        position: static;
        display: inline-block;
        margin-top: 0.5rem;
    }
}
