/* Küçük, güvenli overrides */
.footer-brand{ align-self: start !important; }

/* Mobil düzenlemeler: mobile.css içerikleri taşındı */
@media (max-width: 900px){
  /* Topbar metin boşluklarını nötrle */
  .companies .company .company__topbar-text{
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Topbar bloklarını hücre içinde ortala */
  .company__topbar{
    justify-self: center;
    align-self: center;
    margin: 0 auto !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Logo alanını ortala ve kısıtla */
  .company__logo{
    justify-self: center !important;
    align-self: stretch;
    text-align: center;
    margin: 0 auto !important;
    left: auto !important;
    right: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .company:nth-child(even) .company__logo,
  .company:nth-child(odd) .company__logo{ justify-self:center !important; }
  .company__logo img{
    display: block;
    margin: 0 auto;
    max-height: 56px;
    width: auto;
    object-fit: contain;
  }
  /* Metni ortala ve konum kısıtlarını nötrle */
  .company__text{
    text-align: center;
    left: auto !important;
    right: auto !important;
  }
}

/* Masaüstüne geri dönünce mobil full-bleed izlerini temizle */
@media (min-width: 901px){
  .company__image,
  .company__image img{
    width: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Alt menü öğeleri arasındaki çizgiyi kaldır */
.dropdown-menu li:not(:last-child)::after{ display:none !important; content:none !important; }

/* Top header: telefon ve e-posta birer grup gibi davransın */
.top-header .container{ align-items: center; }
.left-info{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.left-info .contact-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* ikon + metin birlikte alta iner/üste çıkar */
  line-height: 1;      /* dikey hizayı sabitler */
}
.left-info .contact-item i{ margin: 0; }
/* PNG ikonlar: boyut ve dikey hizalama */
.left-info .icon{
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Linter: add standard 'line-clamp' alongside -webkit-line-clamp */
.activity-name{ line-clamp: 2; }
.footer-desc{ line-clamp: 2; }

/* (scroll reveal animasyonları kaldırıldı) */
/* Eski ayraç yerine, ayraç ikinci item'ın parçası olsun ki satır kırılmalarında düzgün görünsün */
.left-info .sep{ display: none !important; }
.left-info .contact-item + .contact-item::before{
  content: '|';
  color: var(--muted);
  margin: 0 8px;
}

/* Header/Footer: tıklanabilir yazılarda hover altı çizgi */
.top-header a:hover,
.top-header a:focus-visible,
.footer-top a:hover,
.footer-top a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
/* Ana navigasyonda mevcut hover barı korunur (altı çizgi yok) */
.main-nav a{ text-decoration: none !important; }

/* ===== Kenar boşluklarını azaltma ===== */
/* Faaliyet alanları: 80% max-width kaldır, tam genişlik */
.activities{ padding-left: 0; padding-right: 0; }
.activities__grid{ max-width: 100% !important; width: 100%; margin-left: 0; margin-right: 0; }

/* Firmalar (görsel alanı): genel hizalama */
.companies{ margin-left: 0; margin-right: 0; }
/* Not: padding JS ile desktop'ta bar genişliğinin yarısı kadar ayarlanıyor.
   Bu nedenle globalde padding'i sıfırlamıyoruz. */
.company__image img{ display:block; width:100%; height:100%; object-fit:cover; }

/* (Varsa) küçük firma kartları için kenarlardaki boşluk algısını azalt */
.firms{ width: 100%; margin-left: 0; margin-right: 0; }

/* Mobilde belirli bölümleri tam ekran (full-bleed) yap */
@media (max-width: 900px){
  /* Faaliyet alanları bölümü: arkaplanı kenardan kenara taşı */
  .activities{
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  /* İçerik rahat okunsun diye ortada makul genişlik tut */
  .activities .section-title,
  .activities__grid{
    width: 92%;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Firmalar: resim kısmı full-bleed olsun */
  /* Mobilde resim tarafında iç boşluk olmasın */
  .company__image{ padding: 0 !important; margin: 0 !important; }
  .company__image,
  .company__image img{
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }
}

/* === Anasayfa pop-up (video/görsel) === */
.site-popup{
  position: fixed;
  inset: 0;
  padding: clamp(12px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.62);
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.site-popup.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-popup__backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.site-popup__dialog{
  position: relative;
  width: min(960px, 96vw);
  max-height: min(90vh, 760px);
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.site-popup__dialog:focus{ outline: none; }
.site-popup__media{
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.site-popup__media.is-image{ background: #fff; }
.site-popup__embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.site-popup__embed iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.site-popup__video{
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}
.site-popup__image{
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88vh, 720px);
  object-fit: contain;
  background: #fff;
}
.site-popup__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.site-popup__close:hover,
.site-popup__close:focus-visible{
  background: rgba(0,0,0,.82);
  transform: scale(1.05);
}
body.popup-open{ overflow: hidden; }
.site-popup__note{
  display: flex;
  justify-content: center;
  padding: 10px 12px 14px;
  background: rgba(0,0,0,.65);
}
.site-popup__note a{
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-popup__fallback{
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 16px;
  background: #0f172a;
  color: #fff;
}
.site-popup__fallback .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #1d4ed8;
  transition: background .18s ease, transform .18s ease;
}
.site-popup__fallback .btn:hover,
.site-popup__fallback .btn:focus-visible{
  background: #2563eb;
  transform: translateY(-1px);
}
.site-popup--link .site-popup__dialog{
  width: min(520px, 92vw);
}
.site-popup--link .site-popup__media{
  background: #0f172a;
  padding: 22px 18px 18px;
  display: grid;
  gap: 10px;
  place-items: center;
}
.site-popup--link .site-popup__fallback{
  background: transparent;
  padding: 0;
}
.site-popup--link .site-popup__fallback p{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.site-popup--link .site-popup__fallback .btn{
  width: auto;
  min-width: 220px;
}
.site-popup.is-embed-failed .site-popup__embed{
  display: none !important;
}
.site-popup.is-embed-failed .site-popup__note{
  display: none !important;
}
.site-popup.is-embed-failed .site-popup__media{
  background: #0f172a;
  padding: 22px 18px 18px;
  display: grid;
  place-items: center;
}

@media (max-width: 640px){
  .site-popup{ padding: 10px; }
  .site-popup__dialog{
    width: 100%;
    max-height: 90vh;
  }
  .site-popup__close{
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}
