.kb-hero { background: linear-gradient(180deg, #fff, #eefcf7); border: 1px solid #e7f5ee; border-radius: var(--radius); padding: 20px; }
/* Ana sayfa hero – mobilde başlık/butonlar ortalı dursun */
@media (max-width: 767.98px) {
  /* Mobilde hero kartını biraz daha sıkı tut (CTA butonlarının altındaki boşluğu azalt) */
  .kb-hero{
    padding: 16px 16px 12px;
  }

  .kb-hero .col-lg-8 {
    text-align: center;
  }

  /* Mobilde CTA butonları daha küçük olsun */
  .kb-hero .kb-hero-actions--mobile .btn{
    padding: .26rem .48rem;
    font-size: .78rem;
    /* Masaüstü gibi: köşeler çok oval olmasın */
    border-radius: 12px;
    --bs-btn-padding-y: .38rem;
    --bs-btn-padding-x: .7rem;
    white-space: nowrap;
  }
  .kb-hero .kb-hero-actions--mobile .btn i{
    font-size: .86rem;
    margin-right: .35rem !important;
  }
  .kb-hero .kb-hero-actions--mobile{
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    flex-wrap: nowrap !important; /* alt satıra düşmesin */
    gap: 8px !important;
  }
  /* "Neden?" butonu: küçük ekranda kısa metin göster */
  .kb-home-brand-btn .kb-home-brand-short{ display: none; }
  .kb-home-brand-btn .kb-home-brand-long{ display: inline; }

  /* Renk ayrımı: Kampanya = yeşil vurgu, Korkuteli = nötr */
  .kb-hero .kb-hero-actions--mobile .kb-btn-kampanya{
    border-color: rgba(22,160,133,.85) !important;
    color: #0f766e !important;
    background: #ffffff !important;
  }
  .kb-hero .kb-hero-actions--mobile .kb-btn-brand{
    border-color: rgba(148,163,184,.65) !important;
    color: #334155 !important;
    background: #ffffff !important;
  }

  @media (max-width: 360px){
    .kb-hero .kb-hero-actions--mobile{ gap: 6px !important; }
    .kb-hero .kb-hero-actions--mobile .btn{
      padding: .24rem .42rem;
      font-size: .76rem;
    }
    .kb-home-brand-btn .kb-home-brand-long{ display: none; }
    .kb-home-brand-btn .kb-home-brand-short{ display: inline; }
    .kb-hero .kb-hero-actions--mobile .btn i{ margin-right: .25rem !important; }
  }

  /* Hızlı arama kartı mobilde ortalı ve taşmasın */
  .kb-hero .kb-quicksearch {
    margin-inline: auto;
    max-width: 560px;
  }
}
.kb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; margin-bottom: 8px; }
@media (max-width: 1199.98px) { .kb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .kb-grid { grid-template-columns: repeat(2, 1fr); } }
.kb-card { border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.kb-card .card-title { margin-bottom: .2rem; font-size: .98rem; }
.kb-card .card-body { padding: 10px 12px; }
.kb-card .card-footer { padding: 8px 12px; }
.ratio-thumb { aspect-ratio: 16/9; }
@media (max-width: 575.98px) {
  .ratio-thumb { aspect-ratio: 4/3; }
  .kb-card .card-footer { display: none; }

  /* Ana sayfa firmalar: mobilde masaüstü oranını koru (görsel kırpılmasın) */
  #firmalar .ratio-thumb { aspect-ratio: 16/9; }
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.tile-fill { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 10px; min-height: auto; }
.tile-fill a { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #16a085; font-weight: 700; }
.cta { background: linear-gradient(135deg, #16a085 0%, #0ea5a8 50%, #0ea5a847 100%); color: #fff; border-radius: var(--radius); padding: 18px; }
.cta .btn { box-shadow: 0 6px 14px rgba(0,0,0,.15); }

/* CTA kartı (turkuaz) – mobilde daha kompakt ve düzenli */
@media (max-width: 575.98px) {
  .cta {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .cta .d-flex.flex-wrap {
    gap: .25rem .35rem;
    margin-bottom: .35rem !important;
  }

  .cta .chip {
    font-size: .72rem;
    padding: 1px 8px;
  }

  .cta h2.h5 {
    font-size: .98rem;
    line-height: 1.25;
  }

  /* Mobilde mini CTA görünümü (tek satıra yakın) */
  .cta .cta-compact .chip{
    font-size: .72rem;
    padding: 1px 8px;
  }
  .cta .cta-compact .btn{
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .9rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
  }

  /* Banner altındaki ilk başlığı biraz yukarı çek */
  .cta + .row .kb-section-title{
    margin-top: 12px;
    margin-bottom: 8px;
  }
}
.kb-quicksearch {
  position: relative;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%);
  border-radius: var(--radius);
  border: 1px solid #d1fae5;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 26px rgba(22,160,133,.14);
}
.kb-quicksearch-icon {
  position: absolute;
  top: -10px;
  right: -8px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #d1fae5;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}
.kb-quicksearch-icon .bi {
  color: #16a085;
  font-size: 20px;
  line-height: 1;
  display: block;
}
@media (max-width: 575.98px) {
  .kb-quicksearch-icon {
    top: -8px;
    right: -6px;
    padding: 5px;
  }
  .kb-quicksearch-icon .bi {
    font-size: 18px;
  }
}
.kb-quicksearch-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
}
.kb-quicksearch-subtitle {
  font-size: .78rem;
  color: #6b7280;
}
.kb-quicksearch-tags {
  margin-top: .4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .35rem;
  align-items: center;
  transition: opacity .15s ease;
}
.kb-quicksearch-tag-label {
  font-size: .78rem;
  color: #9ca3af;
}
.kb-quicksearch-tag {
  font-size: .78rem;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #d1fae5;
  background: #ffffff;
  color: #047857;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.kb-quicksearch-tag i {
  font-size: .8rem;
}
.kb-quicksearch-tag:hover {
  background: #ecfdf5;
  border-color: #16a085;
  color: #065f46;
}

/* Ana sayfa hızlı arama input placeholder (tüm cihazlarda standart) */
#kbSearchInput::placeholder {
  opacity: .72;
}

/* Ana sayfa hızlı arama – Popüler etiketler (mobilde tek satır, scrollbar yok) */
@media (max-width: 575.98px) {
  .kb-quicksearch-tags {
    flex-wrap: nowrap;
    gap: .2rem .25rem;
  }

  /* Mobilde input placeholder daha sakin dursun */
  #kbSearchInput::placeholder {
    font-size: .82rem;
    opacity: .7;
  }

  .kb-quicksearch-tag-label {
    font-size: .72rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .kb-quicksearch-tag {
    font-size: .72rem;
    padding: 1px 8px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .kb-quicksearch-tag i {
    font-size: .75rem;
  }
}

/* Çok dar ekranlarda 2. satıra düşmeyi engellemek için yer kazan */
@media (max-width: 360px) {
  .kb-quicksearch-tag-label { display: none; }
  .kb-quicksearch-tag i { display: none; }
}
.kb-quicksearch #kbSearchWrap {
  border-radius: 999px;
  /* Normal durumda sade ve ince çerçeve (abartı olmasın) */
  background: transparent;
  padding: 0;
  box-shadow: 0 0 0 1px #d1fae5;
  /* Dropdown öneri listesinin input grubunun dışına taşmasına izin ver */
  overflow: visible;
}

/* Input-group odakta iken görsel bütünlük:
   fokus halkası wrap'ta kalsın, input'un mavi outline'ı görünmesin */
.kb-quicksearch #kbSearchWrap .input-group-text,
.kb-quicksearch #kbSearchWrap .form-control,
.kb-quicksearch #kbSearchWrap .btn {
  border: 0;
}
.kb-quicksearch #kbSearchWrap .input-group-text {
  background: #fff;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}
.kb-quicksearch #kbSearchWrap .btn {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}
.kb-quicksearch #kbSearchWrap .form-control {
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
}
.kb-quicksearch #kbSearchWrap .form-control:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* "En az 3 karakter" mesajı absolute olduğu için alttaki içerikle çakışmasın */
.kb-quicksearch #kbSearchWrap.kb-has-feedback {
  margin-bottom: 54px;
}
@media (max-width: 360px) {
  .kb-quicksearch #kbSearchWrap.kb-has-feedback { margin-bottom: 62px; }
}
.kb-quicksearch #kbSearchWrap:focus-within {
  /* Focus'ta çok hafif iki renkli halo */
  box-shadow:
    0 0 0 2px rgba(22,160,133,.35),
    0 0 0 5px rgba(14,165,233,.14);
}
.kb-quicksearch.is-focused .kb-quicksearch-tags {
  opacity: .45;
}
.ad-box { background: #fff; border: 1px dashed #d8dbe0; border-radius: var(--radius); min-height: 210px; display: flex; align-items: center; justify-content: center; color: #6b7280; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.ad-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.chip {
  background: #ffffff;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid #d1fae5;
  color: #047857;
  font-weight: 600;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.ecz-neutral { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.ecz-neutral .title { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.ecz-neutral .title i { opacity: .9; }
.ecz-neutral .item { display: flex; align-items: start; gap: .5rem; color: #374151; line-height: 1.35; }
.ecz-neutral .addr { color: #6b7280; font-size: .92rem; line-height: 1.5; margin-top: 1px; }
.ecz-neutral .btn { --bs-btn-padding-y: .25rem; --bs-btn-padding-x: .55rem; }
@media (max-width: 767.98px) {
  .card-body { padding: .25rem !important; }
  .card-footer { padding: .125rem .25rem !important; }
  .card { margin-bottom: .5rem; cursor: pointer; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15) !important; }
  .card-title { margin-bottom: .125rem !important; font-size: .875rem !important; }
  .text-secondary { margin-bottom: .125rem !important; font-size: .75rem !important; }
  .ratio-thumb { height: 120px !important; overflow: hidden; }
  /* Ana sayfa firmalar: mobilde görseli kırpmamak için sabit yüksekliği iptal et */
  #firmalar .ratio-thumb {
    height: auto !important;
  }
  /* Ana sayfa firmalar: görsel container yüksekliği sabitken img boşluk bırakmasın */
  #firmalar .thumb img {
    width: 100% !important;
    height: 100% !important;
    /* Firma-ekle'de hazırlanan kapak mantığı: doldur + kırp (cover) */
    object-fit: cover !important;
    object-position: center !important;
    display: block;
  }
  #haberler .card img { width: 100% !important; height: 200px !important; object-fit: cover !important; object-position: center !important; border-radius: 8px !important; }
  #haberler .thumb { height: 200px !important; overflow: hidden !important; border-radius: 8px !important; }
  #haberler .ratio-thumb { height: 200px !important; border-radius: 8px !important; }
}
.ads-leaderboard { background: #fff; border: 1px dashed #d8dbe0; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #6b7280; margin: 10px 0 16px; box-shadow: 0 6px 18px rgba(0,0,0,.06); overflow: hidden; transition: height .2s ease; height: 100px; }
@media (min-width: 1200px) { .ads-leaderboard { height: 120px; } }
.ads-leaderboard.is-empty { height: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important; }
#yazarlar .avatar {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 52px;
  display: block;
}
@media (max-width: 575.98px) {
  #yazarlar .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
  }
}
#yazarlar .flex-grow-1 { min-width: 0; }
#yazarlar .fw-semibold,
#yazarlar .text-secondary.small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#yazarlar .text-muted.small { display: none !important; }
#kbSearchWrap { position: relative; }
#kbSearchSuggest { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 1050; max-height: 360px; overflow: auto; }
#kbSearchSuggest.show { display: block; }
#kbSearchSuggest .dropdown-item { padding: .35rem .5rem; }
#kbSearchSuggest .dropdown-item .fw-semibold { font-size: .875rem; }
#kbSearchSuggest mark { background: #ecfdf5; color: #16a085; padding: 0 .1rem; border-radius: 3px; }

/* Arama önerileri: uzun firma adları taşmasın, daha okunur görünsün */
#kbSearchSuggest .dropdown-item .flex-grow-1 { min-width: 0; }
#kbSearchSuggest .dropdown-item .text-truncate { min-width: 0; }

/* Mobilde 2 satıra kadar göster, sonra kırp */
@media (max-width: 575.98px) {
  #kbSearchSuggest .dropdown-item { align-items: flex-start; }
  #kbSearchSuggest .dropdown-item .fw-semibold.text-truncate {
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }
}
#kbSearchFeedback { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.06); padding: 8px 10px; color: #374151; font-size: .82rem; }
#kbSearchFeedback.show { display: block; }
.kb-section-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin: 18px 0 10px; font-size: 1.02rem; }
.kb-section-title .dot { width: 8px; height: 8px; background: var(--kb-primary); border-radius: 50%; }
.kb-section-title--firms .dot { background: #16a085; }
.kb-section-title--firms i { color: #16a085; }
.kb-section-title--campaigns .dot { background: var(--kb-primary); }
.kb-section-title--campaigns i { color: #f59e0b; }
.kb-section-title--news .dot { background: #6366f1; }
.kb-section-title--news i { color: #6366f1; }

/* Ana sayfa haber kartları: manşet daha büyük, 2 satıra kadar */
#haberler .kb-home-news-title {
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: .25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  /* 2 satırın yüksekliğini sabitleyerek kartları daha "standart" tut */
  min-height: calc(2 * 1.25em);
}

/* Ana sayfa haber kartları: görsel linki blok gibi davransın */
#haberler .kb-home-news-cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 0; /* inline baseline kaynaklı görsel boşluklarını engelle */
}

@media (max-width: 767.98px) {
  /* Mobilde global .card-title küçültmesine rağmen ana sayfa haber manşetini biraz büyük tut */
  #haberler .kb-home-news-title {
    font-size: .98rem !important;
  }
}
.home-section-title--jobs { padding-left: 0; }
.home-section-title--jobs i { color: #0ea5e9; }
.card .card-title i.bi-journal-text { color: var(--kb-primary); }
.kb-section-title-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .9rem;
  background: #f3f4f6;
}
.kb-section-title-label--firms {
  background: rgba(22,160,133,.08);
  color: #065f46;
}
.kb-section-title-label--campaigns {
  background: rgba(245,158,11,.10);
  color: #92400e;
}
.kb-section-title-label--news {
  background: rgba(99,102,241,.10);
  color: #3730a3;
}
.kb-section-title-label--jobs {
  background: rgba(14,165,233,.10);
  color: #075985;
}
.kb-section-title-label--ecz {
  background: rgba(248,113,113,.10);
  color: #b91c1c;
}
.kb-section-title-label--authors {
  background: rgba(22,160,133,.08);
  color: #065f46;
}
.ecz-neutral .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #9ca3af;
}
.card-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: .35rem;
  background: var(--kb-primary);
}
.home-section-title--jobs .dot {
  background: var(--kb-primary);
}
.ad-box { margin-top: 10px; }
@media (max-width: 767.98px) { html { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); } main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); } .ad-sticky .ad-box:last-child { margin-bottom: calc(92px + 4px + env(safe-area-inset-bottom)); } }
.avatar { width: 52px !important; height: 52px !important; object-fit: cover; border-radius: 50%; flex: 0 0 52px; display: block; }
@media (max-width: 575.98px) { .avatar { width: 44px !important; height: 44px !important; border-radius: 50%; } }
#yazarlar .flex-grow-1 { min-width: 0; }
#yazarlar .fw-semibold, #yazarlar .text-secondary.small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#yazarlar .text-muted.small { display: none !important; }

/* Ana sayfa – Kampanyalar kart bloğu */
[data-home-campaigns] {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  padding: 10px 12px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
[data-home-campaigns] .kb-section-title {
  margin-top: 0;
  margin-bottom: 10px;
}
[data-home-campaigns] .news-grid {
  margin-top: 0;
  margin-bottom: 4px;
}
/* haberler.css içindeki mobil güvenlik boşluğunu ana sayfa bloğu için iptal et */
[data-home-campaigns] .news-grid::after {
  content: none;
  height: 0;
}
.home-campaigns-more {
  border-top: 1px dashed #e5e7eb;
  padding-top: 8px;
  text-align: right;
}
.home-campaigns-more .btn {
  border-radius: 999px;
  font-size: .85rem;
  padding-inline: 1.1rem;
}
@media (max-width: 767.98px) {
  .home-campaigns-more {
    text-align: center;
  }
}

