.additive-detail-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f4f8;
  margin-bottom: 50px;
}

.e-code-badge {
  background: #d4ff80; /* Senin meşhur yeşilin */
  color: #0e3d6b;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
}

.additive-main-title {
  margin-top: 20px;
  color: #0e3d6b;
  font-weight: 700;
  font-size: 32px;
}

.info-section {
  margin-top: 35px;
}

.info-section h4 {
  color: #1679ab;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-section p {
  color: #64748b;
  line-height: 1.7;
}

.danger-zone {
  background: #ddf6f8;
  padding: 20px;
  border-radius: 15px;
  border-left: 7px solid #0e3d6b;
}

/* Yan Menü (Sağ Taraf) Düzenlemesi */
.other-additives-sidebar {
  background: #0e3d6b;
  border-radius: 30px;
  padding: 30px;
  color: #fff;

  /* DEĞİŞTİRECEĞİN KISIM BURASI */
  position: relative; /* 'sticky' olan yeri 'relative' yapıyoruz */
  top: 0; /* 'top: 100px' gibi olan değeri de sıfırlayabilirsin */

  /* Diğer mevcut kodların (margin, padding vs.) kalabilir */
}

.other-additives-sidebar h3 {
  font-size: 20px;
  margin-bottom: 25px;
  font-weight: 700;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 12px;
  transition: 0.3s;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.small-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #d4ff80;
  color: #0e3d6b;
}

/* Arama Çubuğu Tasarımı */
.dictionary-search-wrapper {
  display: flex;
  background: #fff;
  border-radius: 50px;
  padding: 10px 10px 10px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
}

.dictionary-search-wrapper input {
  border: none;
  width: 100%;
  outline: none;
  font-family: "Poppins";
}

.search-icon-btn {
  background: #0e3d6b;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

/* 1. Arama Çubuğunun Varsayılan Hali */
.dictionary-search-wrapper {
  display: flex;
  background: #fff;
  border-radius: 50px;
  padding: 10px 10px 10px 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Hafif başlangıç gölgesi */
  border: 2px solid #0e3d6b; /* Başlangıçta çok açık gri bir border */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Modern bir yumuşama eğrisi */
  position: relative;
  z-index: 5;
}

/* 2. TIKLANDIĞINDA (FOCUS) OLUŞACAK HAREKET */
.dictionary-search-wrapper:focus-within {
  border-color: #3b86c4; /* Senin ana mavi tonun */
  transform: translateY(-2px); /* Çok hafif yukarı zıplama hareketi */
  box-shadow: 0 10px 25px rgba(22, 121, 171, 0.15); /* Mavi tonlu modern bir parlama */
}

/* 3. INPUT ALANININ KENDİSİ */
.dictionary-search-wrapper input {
  border: none;
  width: 100%;
  outline: none;
  font-family: "Poppins", sans-serif;
  background: transparent;
  font-size: 15px;
}

/* 4. İKON BUTONUNA DA KÜÇÜK BİR TEPKİ (Opsiyonel) */
.dictionary-search-wrapper:focus-within .search-icon-btn {
  background: #0e5e86; /* Tıklandığında butonun rengi biraz koyulaşsın */
  transform: scale(1.05); /* Buton hafifçe büyüsün */
}

.search-icon-btn {
  transition: all 0.3s ease;
}
/* Gıda Sözlüğü Detay Sayfası için özel düzeltme */

.dictionary-detail-section {
  padding-bottom: 80px;
  min-height: 100vh;
  background-color: #fdfdfd;
}

/* Arama çubuğunun daha belirgin olması için z-index ekleyelim */
.dictionary-search-wrapper {
  position: relative;
  z-index: 5;
  margin-top: 20px; /* Header'dan bir tık daha uzaklaşması için */
}

/* Mobilde boşluğu biraz daha daraltabiliriz */
@media (max-width: 480px) {
  .dictionary-detail-section {
    padding-top: 100px !important;
  }
}
/* 1. TÜM SÖZLÜĞÜ GÖR BAĞLANTISI */
.view-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  padding: 12px;
  color: #d4ff80;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px dashed rgba(212, 255, 128, 0.3); /* Hafif kesikli çerçeve */
  border-radius: 15px;
  transition: all 0.3s ease;
}

/* 2. ÜZERİNE GELİNDİĞİNDE (HOVER) */
.view-all-link:hover {
  color: #0e3d6b; /* Lacivert arka planda yazı lacivert olsun */
  background-color: #d4ff80; /* Arka plan yeşile dönsün */
  border-style: solid;
  border-color: #d4ff80;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 255, 128, 0.2);
}

/* 3. İÇİNDEKİ OK İKONU HAREKETİ */
.view-all-link i {
  transition: transform 0.3s ease;
}

.view-all-link:hover i {
  transform: translateX(5px); /* Ok işareti sağa doğru kaysın */
}
.dictionary-hero {
  width: 100%;
  height: 550px;
  position: relative;
  margin-bottom: -50px;
  display: flex;
  align-items: center;
  justify-content: center; /* Yazılar merkezi kalmaya devam ediyor */
  text-align: center;
  overflow: hidden;
  background-color: #0e3d6b; /* Arka planı senin lacivertinle doldurduk */
}

/* 1. BÜYÜTEÇ RESMİNİ ARKA PLANA DÜŞÜK OPAKLIĞIYLA EKLEDİK */
/* Büyüteç resmini sağa çekmek için güncellenen alan */
.dictionary-hero::before {
  content: "";
  position: absolute;
  top: 25px;

  /* DEĞİŞİKLİK BURADA: -50px yerine pozitif bir değer vererek sağa kaydırdık */
  /* Örneğin 10% veya 100px yaparak istediğin yere kadar itebilirsin */
  left: 150px;

  width: 50%;
  height: 100%;
  background-image: url("/images/buyutec.png");
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;

  z-index: 1;

  transform: rotate(6deg);
}

/* 2. KARANLIK KATMAN (OVERLAY) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Geçişli karartma: Soldan sağa doğru biraz daha derinleşebilir */
  background: linear-gradient(
    90deg,
    rgba(14, 61, 107, 0.6) 0%,
    rgba(14, 61, 107, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* Yazıların en üstte kalmasını sağlar */
  color: #fff;
  padding: 0 20px;
  max-width: 800px; /* Yazıların çok yayılmaması için */
}

.hero-tag {
  color: #0e3d6b;
  background-color: #92eef5d7;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-top: 15px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  font-weight: 300;
  max-width: 600px;
  margin: 10px auto 0;
}

/* Mobilde poster yüksekliğini daraltalım */
@media (max-width: 480px) {
  .dictionary-hero {
    height: 250px;
    border-radius: 0; /* Mobilde tam ekran daha iyi durur */
    margin-bottom: -30px;
  }
  .hero-content h1 {
    font-size: 24px;
  }
  .hero-content p {
    font-size: 14px;
  }
}
@media (max-width: 576px) {
  /* 1. Kapsayıcıyı Daralt ve Orantıla */
  .dictionary-search-wrapper {
    padding: 6px 6px 6px 15px !important; /* İç boşluğu azalt */
    margin: 0 5px px 5px !important; /* Dış boşluğu minimize et */
    height: 50px; /* Sabit bir yükseklik vererek daha derli toplu durmasını sağla */
    align-items: center;
  }

  /* 2. Yazıyı (Placeholder) Uyumlu Yap */
  .dictionary-search-wrapper input {
    font-size: 12px !important; /* Yazı boyutunu bir tık küçült */
    letter-spacing: -0.2px; /* Harfleri çok hafif yaklaştır (sığması için) */
  }

  /* 3. Placeholder Metnini Mobilde Kısa Tutabiliriz (Alternatif) */
  /* Eğer HTML'e müdahale edemiyorsan, yazı boyutunu düşürmek en iyisidir */
  .dictionary-search-wrapper input::placeholder {
    font-size: 11px;
  }

  /* 4. Arama İkonunu Küçült */
  .search-icon-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px; /* Esnemesini engelle */
  }

  .search-icon-btn i {
    font-size: 14px;
  }
}
@media (max-width: 576px) {
  /* 1. Ana Başlık (MSG yazısı) */
  .additive-main-title {
    font-size: 24px !important; /* 32px'den 24px'e düşürdük */
    line-height: 1.2 !important;
    margin-top: 12px !important;
    margin-bottom: 20px !important;
  }

  /* 2. E-Kodu Badge */
  .e-code-badge {
    font-size: 13px !important;
    padding: 4px 12px !important;
  }

  /* 3. Alt Başlıklar (Kökeni, İşlevi vb.) */
  .info-section h4 {
    font-size: 16px !important; /* Daha kibar bir görünüm */
    margin-bottom: 8px !important;
  }

  .info-section h4 i {
    font-size: 18px !important; /* İkonlar başlıkla uyumlu olsun */
  }

  /* 4. Açıklama Metinleri (P etiketleri) */
  .info-section p {
    font-size: 14px !important; /* 16-18px mobilde yorucu olur, 14px idealdir */
    line-height: 1.5 !important;
    color: #475569 !important; /* Bir tık koyulaştırarak okunabilirliği artırdık */
  }

  /* 5. Bölümler Arası Boşluklar */
  .info-section {
    margin-top: 20px !important; /* Bölümleri birbirine biraz daha yaklaştırdık */
  }

  /* 6. Yan Etkiler Alanı (Danger Zone) */
  .danger-zone {
    padding: 15px !important;
    margin-top: 25px !important;
  }
}

/* ==========================================================================
   SAYFALAMA (PAGINATION)
   ========================================================================== */

.custom-pagination .page-link {
    border: none;
    color: #0e3d6b;
    margin: 0 4px;
    border-radius: 8px;
    font-size: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-pagination .page-item.active .page-link {
    background-color: #0e3d6b;
    color: #fff;
}

.custom-pagination .page-link:hover:not(.active) {
    background-color: #d4ff80;
    color: #0e3d6b;
}
