/* ============================================================
   Taslak.html - Özel Stiller
   ============================================================ */

/* ------------------------------------------------------------
   İç Sayfa Genel Yapı
   ------------------------------------------------------------ */

/* İç sayfa: yeşil toolbar çubuğunu gizle */
body.icsayfa #kt_toolbar,
body.icsayfa .toolbar.toolbar-enabled {
  display: none !important;
}

/* İç sayfa wrapper arka plan */
body.icsayfa .wrapper {
  background-color: #fff;
  padding-top: 0 !important;
}

/* Sticky aktifken Metronic CSS değerini kullan (80px) */
body.icsayfa[data-kt-sticky-header="on"] .wrapper {
  padding-top: 80px !important;
}

/* İç sayfa icsayfa-wrapper */
body.icsayfa .icsayfa-wrapper {
  background-color: #f8f9fb;
  min-height: 70vh;
}

/* Breadcrumb */
.icsayfa-breadcrumb .breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color .2s;
}
.icsayfa-breadcrumb .breadcrumb-item a:hover {
  color: #374151;
}
.icsayfa-breadcrumb .breadcrumb-item.active {
  color: #374151;
  font-size: 0.82rem;
}
.icsayfa-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #9ca3af;
}

/* ---- Sidebar ---- */
.icsayfa-sidebar {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.icsayfa-sidebar-baslik {
  background: #2d3748;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  display: flex;
  align-items: center;
}

.icsayfa-sidebar-menu {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.icsayfa-sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.icsayfa-sidebar-menu li a:hover,
.icsayfa-sidebar-menu li.active a {
  background: #f3f4f6;
  color: #1f2937;
  border-left-color: #BA8A7A;
}
.icsayfa-sidebar-menu li + li {
  border-top: 1px solid #f3f4f6;
}

/* Hızlı iletişim kartı */
.icsayfa-iletisim-kart {
  border-top: 1px solid #f3f4f6;
  padding: 16px 18px;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ---- Ana İçerik ---- */
.icsayfa-icerik {
  background: #fff;
  border-radius: 4px;
  padding: 32px 36px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  min-height: 400px;
}

.icsayfa-baslik-bolum {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 16px;
}
.icsayfa-baslik {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px 0;
}
.icsayfa-baslik-cizgi {
  width: 48px;
  height: 3px;
  background: #BA8A7A;
  border-radius: 2px;
}

.icsayfa-metin {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.8;
}
.icsayfa-metin p {
  margin-bottom: 1rem;
}

/* Mobil */
@media (max-width: 991.98px) {
  .icsayfa-sidebar {
    position: static;
    margin-bottom: 16px;
  }
  .icsayfa-icerik {
    padding: 20px 18px;
  }
}

/* ------------------------------------------------------------
   Mobil düzenlemeler (max 991.98px)
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
	/* Nav satırını gizle (drawer menü kullanılıyor) */
	#kt_header_nav_row {
		display: none !important;
	}
	/* Mobil header yüksekliği */
	.header {
		height: 85px !important;
	}
	/* Logo */
	.header .header-logo {
		height: 85px !important;
		overflow: hidden;
		display: flex;
		align-items: center;
	}
	.header .header-logo .logo-default {
		height: 60px !important;
		width: auto !important;
	}
	/* Mobil arka plan koyu */
	body:not(.app-blank) {
		background-image: url('../img/header_koyu.jpg') !important;
	}
	/* Mobil menü butonu - beyaz çerçeve (koyu arka plan üzerinde) */
	#kt_header_menu_mobile_toggle {
		border: 2px solid rgba(255, 255, 255, 0.7) !important;
		border-radius: 6px !important;
	}
	#kt_header_menu_mobile_toggle i,
	#kt_header_menu_mobile_toggle .path1::before,
	#kt_header_menu_mobile_toggle .path2::before {
		color: #ffffff !important;
	}
	/* Mobil topbar ikonları - beyaz */
	.header .topbar .btn-custom i,
	.header .topbar .btn-custom .ki-duotone .path1::before,
	.header .topbar .btn-custom .ki-duotone .path2::before,
	.header .topbar .btn-icon i,
	.header .topbar .btn-icon .ki-duotone .path1::before,
	.header .topbar .btn-icon .ki-duotone .path2::before {
		color: #ffffff !important;
	}
}

/* ------------------------------------------------------------
   Desktop ikonları ve hover (min 992px)
   ------------------------------------------------------------ */
@media (min-width: 992px) {
	/* İkon rengi - koyu */
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom .svg-icon,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom i {
		color: #1e1e2d !important;
	}
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom.dropdown-toggle:after {
		color: #1e1e2d !important;
	}

	/* Hover / focus / active - koyu yarı saydam arka plan */
	.btn-check:active + body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom,
	.btn-check:checked + body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom,
	.show > body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom.active,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom.show,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:active:not(.btn-active),
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:focus:not(.btn-active),
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:hover:not(.btn-active) {
		background-color: rgba(0, 0, 0, 0.08) !important;
	}

	/* Hover sonrası ikon rengi koyu kalır */
	.btn-check:active + body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom .svg-icon,
	.btn-check:active + body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom i,
	.btn-check:checked + body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom .svg-icon,
	.btn-check:checked + body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom i,
	.show > body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom .svg-icon,
	.show > body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom i,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom.active .svg-icon,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom.active i,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom.show .svg-icon,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom.show i,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:active:not(.btn-active) .svg-icon,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:active:not(.btn-active) i,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:focus:not(.btn-active) .svg-icon,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:focus:not(.btn-active) i,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:hover:not(.btn-active) .svg-icon,
	body:not([data-kt-sticky-header="on"]) .topbar .btn.btn-custom:hover:not(.btn-active) i {
		color: #1e1e2d !important;
	}
}

/* ------------------------------------------------------------
   Haberler & Duyurular Bloğu
   ------------------------------------------------------------ */

/* Haberler başlık icon path renkleri */
.haberler-baslik-icon .path1,
.haberler-baslik-icon .path2,
.haberler-baslik-icon .path3 { color: #fff !important; opacity: 1 !important; }

/* Haberler kolon konumlama */
.haberler-photo-wrap { height: 240px; position: relative; }
@media (min-width: 992px) {
  .haberler-col { margin-top: -180px; }
  .haberler-photo-wrap { height: 452px; } /* 390 -> 452: alt kenar 62px uzatildi */
  .duyurular-col { margin-top: -51px; }
}

/* Haberler slider iç yükseklik */
.haberler-photo-wrap .tns-outer,
.haberler-photo-wrap .tns-ovh,
.haberler-photo-wrap .tns-inner { height: 100%; }
.haberler-slide { position: relative; height: 240px; overflow: hidden; }
@media (min-width: 992px) { .haberler-slide { height: 452px; } } /* .haberler-photo-wrap ile ayni olmali */
.haberler-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Slide overlay — başlık okunurluğu
   "Tüm Haberler" butonu slaytın sağ altında mutlak konumda (129px geniş,
   mobilde 119px). Başlık onun altına girmesin diye:
     >=576px : başlık alanının SAĞINDA butona yer ayrılır
     <576px  : başlık butonun ÜSTÜNDE durur (dar ekranda sağ pay başlığı ezer)
   Uzun başlıklar 2 satırda kırpılır; tamamı haber detayında.
   NOT: değerler px — Metronic kök font boyutu 13px, rem burada yanıltır. */
.haberler-slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 52px 16px 60px;       /* alt: buton 32 + kenar 13 + boşluk 15 */
  background: linear-gradient(to top,
    rgba(12, 14, 20, 0.92) 0%,
    rgba(12, 14, 20, 0.70) 45%,
    rgba(12, 14, 20, 0) 100%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.haberler-slide-tarih {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(186, 138, 122, 0.92);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.haberler-slide-baslik {
  font-size: 15px; font-weight: 700; color: #fff;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.haberler-tum-btn { position: absolute; right: 14px; bottom: 14px; z-index: 10; }

@media (min-width: 576px) {
  .haberler-slide-overlay { padding: 56px 170px 18px 20px; }  /* sağ: buton 129 + kenar 14 + boşluk 27 */
  .haberler-slide-baslik { font-size: 16px; }
}
@media (min-width: 992px) {
  .haberler-slide-overlay { padding: 90px 180px 22px 26px; gap: 10px; }  /* sağ: buton 129 + kenar 18 + boşluk 33 */
  .haberler-slide-baslik { font-size: 20px; line-height: 1.38; }
  .haberler-tum-btn { right: 18px; bottom: 20px; }
}

/* Slider nav ok butonları */
.haberler-nav-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s; padding: 0;
}
.haberler-nav-btn:hover { background: rgba(255,255,255,0.32); }
.haberler-nav-btn i { color: #fff; }

/* Mobil: slider stacking context içinde kapat, haberler üste çık */
@media (max-width: 991.98px) {
  .slider-wrapper {
    overflow: hidden;
    position: relative !important;
    z-index: 1 !important;
    isolation: isolate;
  }
  .slider-wrapper .rev_slider_wrapper {
    z-index: 0 !important;
  }
  .haberler-duyurular-blok {
    position: relative !important;
    z-index: 10 !important;
    margin-top: -100px;
  }
}

/* Duyuru / Etkinlik tab linkleri */
.duyuru-tab-link { color: rgba(255,255,255,0.6) !important; border-bottom: 2px solid transparent; padding-bottom: 4px; transition: color .2s, border-color .2s; }
.duyuru-tab-link { font-size: 1.35rem !important; }
.duyuru-tab-link.active { color: #fff !important; border-bottom: 2px solid #fff; }
.duyuru-tab-link:hover:not(.active) { color: rgba(255,255,255,0.85) !important; }
.duyuru-tab-link i { font-size: 2rem; color: inherit; }
.duyuru-tab-link i .path1,
.duyuru-tab-link i .path2,
.duyuru-tab-link i .path3,
.duyuru-tab-link i .path4,
.duyuru-tab-link i .path5 { color: inherit !important; opacity: 1 !important; }
@media (max-width: 991.98px) {
  .duyuru-tab-link { color: #aaa !important; }
  .duyuru-tab-link.active { color: #222 !important; border-bottom-color: #333; }
  .duyuru-tab-link:hover:not(.active) { color: #555 !important; }
}

/* Duyuru liste item */
.duyuru-item { border-bottom: 1px solid #f0f0f0; transition: background .18s; border-radius: 6px; }
.duyuru-item:last-child { border-bottom: none; }
.duyuru-item:hover { background: #f4f6f8; }
.duyuru-icon i { color: #bbb; }
.duyuru-icon i .path1, .duyuru-icon i .path2,
.duyuru-icon i .path3, .duyuru-icon i .path4,
.duyuru-icon i .path5, .duyuru-icon i .path6 { color: inherit !important; opacity: 1 !important; }
.duyuru-tarih { font-size: 0.72rem; color: #aaa; letter-spacing: 0.03em; line-height: 1.2; }
.duyuru-baslik { font-size: 0.88rem; color: #555; font-weight: 500; line-height: 1.35; margin-top: 1px; }
.duyuru-item:hover .duyuru-baslik { color: #222; }
.duyuru-item:hover .duyuru-icon i { color: #777; }

/* Masaüstünde sekme değişiminde alttaki blok zıplamasın:
   tab-pane'ler üst üste bindirilir, kapsayıcı en uzun içeriğe göre sabit yükseklikte kalır */
@media (min-width: 992px) {
  .haberler-duyurular-blok .tab-content { display: grid; }
  .haberler-duyurular-blok .tab-content > .tab-pane {
    grid-area: 1 / 1 / 2 / 2;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }
  .haberler-duyurular-blok .tab-content > .tab-pane.active {
    visibility: visible;
    pointer-events: auto;
  }
}

/* Tüm Duyurular butonu */
.tum-duyurular-btn { font-size: 0.82rem; font-weight: 500; color: #aaa; padding: 5px 8px; border-radius: 5px; transition: background .18s, color .18s; }
.tum-duyurular-btn i { color: #ccc; transition: color .18s, transform .18s; }
.tum-duyurular-btn i .path1, .tum-duyurular-btn i .path2 { color: inherit !important; opacity: 1 !important; }
.tum-duyurular-btn:hover { background: #f4f6f8; color: #333; }
.tum-duyurular-btn:hover i { color: #555; transform: translateX(3px); }

/* Haber liste kartları (/haberler) */
.haber-kart {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  background: #fff;
}
.haber-kart:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: #e4e6ef;
}
.haber-kart-foto {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f4f6f8;
}
.haber-kart-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.haber-kart:hover .haber-kart-foto img { transform: scale(1.06); }
.haber-kart-tarih { font-size: 0.78rem; color: #9aa0ac; letter-spacing: 0.02em; }
.haber-kart-baslik { color: #1e1e2d; line-height: 1.35; transition: color .18s; }
.haber-kart:hover .haber-kart-baslik { color: var(--bs-primary, #0d6efd); }
.haber-kart-ozet { font-size: 0.9rem; line-height: 1.55; }
.haber-kart-devam { font-size: 0.85rem; font-weight: 600; color: var(--bs-primary, #0d6efd); }
.haber-kart-devam i { transition: transform .18s; }
.haber-kart:hover .haber-kart-devam i { transform: translateX(3px); }

/* Duyuru liste (/duyurular) */
.duyuru-liste-item {
  border-bottom: 1px solid #eef0f3;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
  transition: background .18s;
}
.duyuru-liste-item:last-child { border-bottom: none; }
.duyuru-liste-item:hover { background: #f6f8fa; }
.duyuru-liste-ikon i { color: #b5b9c5; transition: color .18s; }
.duyuru-liste-ikon i .path1, .duyuru-liste-ikon i .path2 { color: inherit !important; opacity: 1 !important; }
.duyuru-liste-item:hover .duyuru-liste-ikon i { color: var(--bs-primary, #0d6efd); }
.duyuru-liste-tarih { font-size: 0.78rem; color: #9aa0ac; }
.duyuru-liste-baslik { display: block; font-size: 1rem; font-weight: 600; color: #1e1e2d; line-height: 1.4; transition: color .18s; }
.duyuru-liste-item:hover .duyuru-liste-baslik { color: var(--bs-primary, #0d6efd); }
.duyuru-liste-ozet { font-size: 0.86rem; color: #7e8299; line-height: 1.5; }
.duyuru-liste-item:hover .ki-arrow-right { color: var(--bs-primary, #0d6efd) !important; }

/* ------------------------------------------------------------
   Desktop sticky durumu: logo sol, toolbar sağ, nav ortada  (min 992px)
   ------------------------------------------------------------ */
@media (min-width: 992px) {
	/* Header tek satır, 65px */
	.header-fixed[data-kt-sticky-header="on"] .header {
		height: 65px !important;
		flex-direction: row !important;
		align-items: center !important;
	}
	/* Logo yüksekliği sıfırla */
	.header-fixed[data-kt-sticky-header="on"] .header .header-logo {
		height: auto !important;
	}
	/* Nav satırı: header ortasına absolute konumlandır */
	.header-fixed[data-kt-sticky-header="on"] #kt_header_nav_row {
		display: flex !important;
		position: absolute !important;
		left: 50% !important;
		top: 0 !important;
		transform: translateX(-50%) !important;
		height: 65px !important;
		align-items: center !important;
		background-color: transparent !important;
		padding: 0 !important;
		width: auto !important;
		pointer-events: auto !important;
	}
	/* Nav menü öğesi renkleri sticky durumda */
	.header-fixed[data-kt-sticky-header="on"] #kt_header_nav_row .menu-title {
		color: var(--bs-gray-700) !important;
	}
}

/* ------------------------------------------------------------
   Ara Link Kartları — kurumsal / soft tasarım
   ------------------------------------------------------------ */
/* Metronic mobil override'ı sıfırla: px-0 padding korusun */
@media (max-width: 991.98px) {
  .container-fluid.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Kart — pastel zemin, üstte renkli çizgi, altta gri çizgi, sağda ince ayırıcı */
.aralink-kart {
  cursor: pointer;
  background-color: var(--aralink-bg, #f5f6f8);
  border-top: 4px solid var(--aralink-color, #ccc);
  border-bottom: 3px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color .38s ease, border-bottom-color .38s ease;
}
.aralink-kart:hover {
  background-color: var(--aralink-color, #888);
  border-bottom-color: var(--aralink-color, #888);
}

/* SVG arka plan — başlangıçta gri tonlarda ve soluk */
.aralink-svg-bg {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%) scale(0.82);
  width: 52%;
  height: 150%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.18;
  filter: grayscale(100%);
  transition: transform .38s ease, opacity .38s ease, width .38s ease, right .38s ease, filter .38s ease;
  pointer-events: none;
  z-index: 1;
}
/* Hover: SVG renklenir, belirginleşir ve yayılır */
.aralink-kart:hover .aralink-svg-bg {
  transform: translateY(-50%) scale(1.12);
  opacity: 0.42;
  filter: grayscale(0%);
  width: 72%;
  right: -14%;
}

/* İçerik SVG'nin üstünde */
.aralink-icerik {
  position: relative;
  z-index: 2;
}

/* İkon — kartın rengiyle, hover beyaz */
.aralink-icon {
  color: var(--aralink-color, #999);
  transition: color .38s ease;
}
.aralink-kart:hover .aralink-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Başlık — varsayılan koyu gri, hover beyaz */
.aralink-baslik {
  color: #374151;
  transition: color .38s ease;
}
.aralink-kart:hover .aralink-baslik {
  color: #fff;
}

/* Alt açıklama — soluk gri, hover yarı beyaz */
.aralink-alt {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.4;
  transition: color .38s ease;
}
.aralink-kart:hover .aralink-alt {
  color: rgba(255, 255, 255, 0.70);
}

/* Buton — varsayılan outlined gri */
.aralink-btn {
  background-color: transparent;
  color: #6b7280;
  border: 1.5px solid #d1d5db;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
/* Hover: sarı dolu buton */
.aralink-kart:hover .aralink-btn {
  background-color: #F5C518;
  color: #1a1a2e;
  border-color: #F5C518;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
  transform: scale(1.07);
}

/* ------------------------------------------------------------
   AI Atölye Alanı
   ------------------------------------------------------------ */
.ai-gorsel-wrap {
  display: block;
  line-height: 0; /* img altındaki inline boşluğu kaldır */
}

/* Dairesel ikon butonu — ortak
   Konumlandırma: zemin görselindeki dairelerin merkez noktaları
   ai_zemin.png (640×480) oranları baz alındı, % ile responsive
*/
.ai-dairesel-btn {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: ai-btn-pulse 2.4s ease-out infinite;
}
.ai-dairesel-btn:hover {
  transform: translate(-50%, -50%) scale(1.09);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  animation: none;
}

/* Fabrika butonu gecikmeyle — iki buton senkron çakmasın */
.ai-btn-fabrika {
  animation-delay: 1.2s;
}

@keyframes ai-btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55),
                0 6px 22px rgba(0, 0, 0, 0.25);
  }
  65% {
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0),
                0 6px 22px rgba(0, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0),
                0 6px 22px rgba(0, 0, 0, 0.25);
  }
}

/* AI / Beyin alanı — gri dairenin merkezi: sol %79.5, üst %18
   Konum ve boyut sarmalayıcıda (.ai-beyin-alan); buton onu doldurur,
   hızlı soru formu da aynı merkezden sağa doğru açılır. */
.ai-beyin-alan {
  position: absolute;
  width: 24%;
  aspect-ratio: 1 / 1;
  left: 79.5%;
  top: 18%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.ai-btn-beyin {
  background-color: #55566a;
}
.ai-beyin-alan .ai-dairesel-btn {
  left: 0; top: 0;
  width: 100%; height: 100%;
  transform: none;
  z-index: 2;
}
.ai-beyin-alan .ai-dairesel-btn:hover,
.ai-beyin-alan.acik .ai-dairesel-btn {
  transform: scale(1.06);
  animation: none;
}

/* Hızlı soru formu: kapalıyken genişliği daire yarıçapı kadar (dairenin
   arkasında gizli), açılınca sağa doğru uzar. Sol iç boşluk daire
   yarıçapı kadar olduğu için yazı dairenin yanından başlar. */
.ai-soru-form {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 54px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 calc(50% + 4px);
  box-sizing: content-box;
  background: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 0 28px 28px 0;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.16);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  z-index: 1;
  transition: width .35s ease, opacity .25s ease, visibility 0s linear .35s;
}
.ai-beyin-alan:hover .ai-soru-form,
.ai-beyin-alan:focus-within .ai-soru-form,
.ai-beyin-alan.acik .ai-soru-form {
  width: 300px;
  opacity: 1;
  visibility: visible;
  transition: width .35s ease, opacity .2s ease, visibility 0s;
}
.ai-soru-girdi {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2937;
}
.ai-soru-girdi::placeholder { color: #9aa2af; }
.ai-soru-gonder {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #BA8A7A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.ai-soru-gonder i { color: #fff !important; }
.ai-soru-gonder:hover,
.ai-soru-gonder:focus-visible { background: #a6735f; transform: scale(1.05); }

/* Dar ekranda daire sayfanın sağ kenarına yakın: form SOLA doğru açılır */
@media (max-width: 991.98px) {
  .ai-soru-form {
    left: auto;
    right: 50%;
    padding: 0 calc(50% + 4px) 0 14px;
    border-radius: 28px 0 0 28px;
    flex-direction: row-reverse;
  }
  .ai-beyin-alan:hover .ai-soru-form,
  .ai-beyin-alan:focus-within .ai-soru-form,
  .ai-beyin-alan.acik .ai-soru-form {
    width: min(260px, 52vw);   /* 390px'te sol kenara ~20px pay bırakır */
  }
}

[data-bs-theme="dark"] .ai-soru-form { background: #1e1e2d; border-color: #2b2b40; }
[data-bs-theme="dark"] .ai-soru-girdi { color: #f5f5f5; }

/* Fabrika butonu — kahverengi dairenin merkezi: sol %27, üst %72 */
.ai-btn-fabrika {
  background-color: #b84820;
  width: 20%;
  aspect-ratio: 1 / 1;
  left: 47.5%;
  top: 77.2%;
}

/* İkon görseli — dairenin tam ortasına absolute ile konumla */
.ai-btn-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: auto;
  pointer-events: none;
}

/* fabicon.png (siyah ikon) → beyaz ikona dönüştür */
.ai-btn-img-dark {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------
   Firma Arama Bölümü
   ------------------------------------------------------------ */
.firma-ara-bolum {
  height: 220px !important;
  min-height: 220px !important;
  background-image: url('../img/firma_bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.firma-ara-icerik {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px;
}

.firma-ara-baslik {
  color: #E8622A;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.firma-ara-form {
  display: flex;
  align-items: stretch;
  height: 46px;
}

.firma-ara-input-wrap {
  position: relative;
  width: 360px;
  display: flex;
}

.firma-ara-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  color: #fff;
  padding: 0 18px;
  font-size: 0.875rem;
  outline: none;
}
.firma-ara-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.firma-sektor-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.firma-ara-select {
  width: 260px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 44px 0 18px;
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  height: 44px;
}
.firma-ara-select option {
  color: #1f1f1f;
  background: #fff;
}

.firma-sektor-ok {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  background: #E8622A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  pointer-events: none;
}

.firma-ara-btn {
  background: #E8622A;
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
}
.firma-ara-btn:hover {
  background: #c95218;
}

/* ------------------------------------------------------------
   Galeri
   ------------------------------------------------------------ */
.galeri-kart {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  cursor: pointer;
}
.galeri-kart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .35s ease, transform .35s ease;
}
.galeri-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background .35s ease, opacity .35s ease;
}
.galeri-overlay i {
  transform: scale(0.7);
  transition: transform .35s ease;
}
.galeri-kart:hover img {
  filter: grayscale(85%);
  transform: scale(1.06);
}
.galeri-kart:hover .galeri-overlay {
  background: rgba(30, 30, 30, 0.45);
  opacity: 1;
}
.galeri-kart:hover .galeri-overlay i {
  transform: scale(1);
}

/* ------------------------------------------------------------
   Site Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: #26272b;
  position: relative;
  display: block;
  width: 100%;
}

/* Düşük opasiteli zemin dokusu */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../media/stock/600x600/img-37.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

/* İçerik z-index ile görünür kalır */
.footer-icerik {
  position: relative;
  z-index: 1;
}

/* Başlıklar */
.footer-baslik {
  color: #e5e7eb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Link listesi */
.footer-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-liste li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-liste li a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.855rem;
  padding: 0.45rem 0;
  transition: color .22s ease, padding-left .22s ease;
}
.footer-liste li a:hover {
  color: #ffffff;
  padding-left: 6px;
}

/* Genel metin */
.footer-metin {
  color: #9ca3af;
  font-size: 0.855rem;
  line-height: 1.65;
}

/* Adres başlığı */
.footer-adres-baslik {
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.855rem;
}

/* T/E/W etiketleri */
.footer-etiket {
  color: #6b7280;
  font-weight: 600;
  margin-right: 4px;
}

/* E-bülten formu */
.footer-bulten {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bulten-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  padding: 11px 14px;
  font-size: 0.855rem;
  outline: none;
  transition: border-color .22s ease;
}
.footer-bulten-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
}
.footer-bulten-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.footer-bulten-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
  padding: 11px;
  font-size: 0.855rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease;
}
.footer-bulten-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Alt çubuk */
.footer-alt-cubuk {
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
.footer-alt-cubuk span {
  color: #6b7280;
  font-size: 0.8rem;
}

/* Mobil: form dikey düzene geçsin */
@media (max-width: 767.98px) {
  .firma-ara-bolum {
    height: auto;
    min-height: 170px;
    background-attachment: scroll;
    padding: 30px 0;
  }
  .firma-ara-form {
    flex-direction: column;
    height: auto;
    width: 100%;
    max-width: 320px;
    gap: 0;
  }
  .firma-ara-input-wrap {
    width: 100%;
  }
  .firma-ara-input,
  .firma-ara-select {
    width: 100%;
    height: 44px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
  }
  .firma-sektor-wrap {
    width: 100%;
  }
  .firma-ara-btn {
    height: 44px;
    width: 100%;
  }
}

/* =============================================
   Sosyal Medya İkonları (footer şeridi)
   ============================================= */
.footer-sosyal-serit {
  background-color: #2a2a2a;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-sosyal-serit .container-xxl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Temel icon kartı */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.social-icon.si-small {
  width: 38px;
  height: 38px;
}
.social-icon i {
  display: block;
  position: absolute;
  font-size: 1.15rem;
  color: #fff !important;
  line-height: 38px;
  width: 100%;
  text-align: center;
  transition: top 0.28s ease;
  top: 0;
}
.social-icon i:last-child {
  top: 38px;
}
.social-icon:hover i:first-child {
  top: -38px;
}
.social-icon:hover i:last-child {
  top: 0;
}
.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Marka renkleri */
.bg-facebook   { background-color: #1877f2; }
.bg-instagram  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.bg-linkedin   { background-color: #0a66c2; }
.bg-x-twitter  { background-color: #111; }
.bg-twitter    { background-color: #1da1f2; }
.bg-youtube    { background-color: #ff0000; }
.bg-whatsapp   { background-color: #25d366; }
.bg-google     { background-color: #ea4335; }

/* ============================================================
   Firma Arama Sayfası (/firmalar)
   ============================================================ */

/* --- Arama paneli --- */
.firma-arama-panel {
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 16px;
}
.firma-arama-ikon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa2af;
  pointer-events: none;
  z-index: 2;
}
.firma-arama-input {
  height: 44px;
  padding-left: 44px !important;
  padding-right: 40px !important;
  font-size: 0.9rem;
}
.firma-arama-temizle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa2af;
  line-height: 0;
  z-index: 2;
}
.firma-arama-temizle:hover { color: #4b5563; }

.firma-arama-select {
  height: 44px;
  font-size: 0.9rem;
}
.firma-arama-btn {
  height: 44px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

/* --- Öneri (autocomplete) kutusu --- */
.firma-oneri-wrap { position: relative; }

.firma-oneri-kutu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  padding: 4px;
}
.firma-oneri-satir {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 0.85rem;
  color: #374151;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
}
.firma-oneri-satir i { color: #9aa2af; flex-shrink: 0; }
.firma-oneri-satir:hover,
.firma-oneri-satir.aktif {
  background: #f1f5fb;
  color: #111827;
}
.firma-oneri-satir mark {
  background: #fff2cc;
  color: inherit;
  padding: 0;
}

/* --- Harf şeridi --- */
.firma-harf-serit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.firma-harf-etiket {
  font-size: 0.78rem;
  color: #9aa2af;
  margin-right: 4px;
}
.firma-harf {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.firma-harf:hover {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #e4e6ef;
}
.firma-harf.aktif {
  background: #2d3748;
  border-color: #2d3748;
  color: #fff;
}

/* --- Sonuç özeti + sıralama --- */
.firma-ozet-satir {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}
.firma-ozet-sol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.firma-ozet-sayi {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}
.firma-siralama {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.firma-siralama .form-select { width: auto; min-width: 150px; }

/* Aktif filtre çipleri */
.firma-cip-grup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
.firma-cip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef2f7;
  color: #374151;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.78rem;
  max-width: 280px;
}
.firma-cip > i { color: #9aa2af; }
.firma-cip > a {
  color: #9aa2af;
  line-height: 0;
  display: inline-flex;
}
.firma-cip > a:hover { color: #dc3545; }
.firma-cip-sifirla {
  font-size: 0.78rem;
  color: var(--bs-primary, #1b84ff);
  text-decoration: none;
  font-weight: 600;
}
.firma-cip-sifirla:hover { text-decoration: underline; }

/* --- Firma kartı --- */
.firma-kart {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.firma-kart:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: #e4e6ef;
}
.firma-kart-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.firma-kart-ad {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  word-break: break-word;
}
.firma-kart-sektor {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-right: 4px;
  margin-top: 2px;
  /* Uzun sektör adları dar ekranda kartı taşırmasın */
  white-space: normal;
  text-align: left;
  word-break: break-word;
  max-width: 100%;
}
.firma-kart-ozet {
  font-size: 0.83rem;
  line-height: 1.6;
}
.firma-kart-bilgi li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.55;
  padding: 4px 0;
  word-break: break-word;
}
.firma-kart-bilgi li + li { border-top: 1px dashed #f3f4f6; }
.firma-kart-bilgi li i { margin-top: 2px; flex-shrink: 0; }
.firma-kart-bilgi a {
  color: #4b5563;
  text-decoration: none;
}
.firma-kart-bilgi a:hover {
  color: var(--bs-primary, #1b84ff);
  text-decoration: underline;
}

/* Arama terimi vurgusu */
mark.firma-vurgu {
  background: #fff2cc;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* --- Boş sonuç durumu --- */
.firma-bos-durum {
  text-align: center;
  padding: 48px 20px;
  background: #fafbfc;
  border: 1px dashed #e4e6ef;
  border-radius: 12px;
}

/* --- Mobil --- */
@media (max-width: 767.98px) {
  .firma-arama-panel { padding: 12px; }
  .firma-ozet-satir { align-items: flex-start; }
  .firma-siralama { width: 100%; }
  .firma-siralama .form-select { width: 100%; }
  .firma-harf-etiket { width: 100%; margin-bottom: 2px; }
}

/* Uzun kenar çubuğu listeleri (ör. firma sektörleri) kendi içinde kaysın */
.icsayfa-sidebar-menu-scroll {
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.icsayfa-sidebar-menu-scroll::-webkit-scrollbar { width: 6px; }
.icsayfa-sidebar-menu-scroll::-webkit-scrollbar-thumb {
  background: #d8dce3;
  border-radius: 3px;
}
.icsayfa-sidebar-menu-scroll::-webkit-scrollbar-thumb:hover { background: #c2c7d0; }

/* ============================================================
   Firma Profil Sayfası (/firmadetay/{id})
   ============================================================ */

/* --- Hero --- */
.firma-hero {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 60%, #3a4a5c 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2.5rem;
}
.firma-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(186, 138, 122, 0.22), transparent 55%);
  pointer-events: none;
}
.firma-hero-icerik { position: relative; z-index: 1; }

.firma-hero .breadcrumb { --bs-breadcrumb-divider: "/"; flex-wrap: wrap; }
.firma-hero .breadcrumb-item { min-width: 0; word-break: break-word; }
.firma-hero .breadcrumb-item a { color: rgba(255,255,255,.55); text-decoration: none; }
.firma-hero .breadcrumb-item a:hover { color: #fff; }
.firma-hero .breadcrumb-item.active { color: rgba(255,255,255,.85); }
.firma-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

.firma-hero-ust {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.firma-hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.firma-hero-metin { min-width: 0; }

.firma-hero-sektor {
  display: inline-flex;
  align-items: center;
  background: rgba(186, 138, 122, 0.18);
  border: 1px solid rgba(186, 138, 122, 0.45);
  color: #e6c3b6;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background .2s, color .2s;
}
.firma-hero-sektor:hover { background: rgba(186,138,122,.32); color: #fff; }

.firma-hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 .4rem;
  word-break: break-word;
}
.firma-hero-tabela {
  color: rgba(255,255,255,.62);
  font-size: 0.95rem;
  margin: 0 0 .6rem;
}

.firma-hero-etiketler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.firma-hero-etiket {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.76rem;
}
.firma-hero-etiket i { color: rgba(255,255,255,.5); }

.firma-hero-cizgi {
  width: 60px;
  height: 3px;
  background: #BA8A7A;
  border-radius: 2px;
  margin-top: 1.1rem;
}

.firma-hero-aksiyon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6rem;
}
.firma-aksiyon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.firma-aksiyon-btn:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  transform: translateY(-2px);
}
.firma-aksiyon-btn.birincil {
  background: #BA8A7A;
  border-color: #BA8A7A;
}
.firma-aksiyon-btn.birincil:hover { background: #a9755f; border-color: #a9755f; }

/* --- Gövde --- */
.firma-govde {
  background: #f8f9fb;
  padding: 2.5rem 0 3rem;
}

.firma-blok {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 24px;
}
.firma-blok-baslik {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.firma-blok-baslik i { color: #BA8A7A; }

.firma-blok-ozet {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 0;
}
.firma-blok-icerik {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #4b5563;
}
.firma-blok-icerik img { max-width: 100%; height: auto; border-radius: 8px; }
.firma-blok-icerik p:last-child { margin-bottom: 0; }

.firma-blok-bos { text-align: center; padding: 44px 26px; }

.firma-faaliyet-vurgu {
  background: #fbf6f4;
  border-left: 3px solid #BA8A7A;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3f4a58;
  margin-bottom: 18px;
}

/* Künye tanım listesi */
.firma-kunye { margin: 0; }
.firma-kunye > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #f1f3f5;
}
.firma-kunye > div:last-child { border-bottom: none; padding-bottom: 0; }
.firma-kunye dt {
  flex: 0 0 190px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9aa2af;
  margin: 0;
}
.firma-kunye dd {
  flex: 1 1 260px;
  font-size: 0.87rem;
  color: #374151;
  margin: 0;
  word-break: break-word;
}
.firma-kunye dd a { color: var(--bs-primary, #1b84ff); text-decoration: none; }
.firma-kunye dd a:hover { text-decoration: underline; }

/* Yetkili */
.firma-yetkili {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafbfc;
  border: 1px solid #f1f3f5;
  border-radius: 10px;
  padding: 14px 16px;
  height: 100%;
}
.firma-yetkili-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.firma-yetkili-ad { font-size: 0.88rem; font-weight: 700; color: #1f2937; }
.firma-yetkili-gorev { font-size: 0.78rem; color: #9aa2af; }

/* --- Sağ sütun --- */
.firma-yan { position: sticky; top: 100px; }

.firma-iletisim-liste li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #f1f3f5;
}
.firma-iletisim-liste li:first-child { padding-top: 0; }
.firma-iletisim-liste li:last-child { border-bottom: none; padding-bottom: 0; }
.firma-iletisim-ikon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.firma-iletisim-etiket {
  display: block;
  font-size: 0.72rem;
  color: #9aa2af;
  margin-bottom: 1px;
}
.firma-iletisim-liste a,
.firma-iletisim-liste div > span:not(.firma-iletisim-etiket) {
  font-size: 0.85rem;
  color: #374151;
  text-decoration: none;
  word-break: break-word;
}
.firma-iletisim-liste a:hover { color: var(--bs-primary, #1b84ff); text-decoration: underline; }

.firma-kayit-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.83rem;
  color: #4b5563;
}
.firma-kayit-liste li i { color: #BA8A7A; }

/* --- Benzer firmalar --- */
.firma-benzer { margin-top: 10px; padding-top: 26px; border-top: 1px solid #eaecef; }
.firma-benzer-baslik {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 18px;
}
.firma-benzer-kart {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 14px 16px;
  height: 100%;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.firma-benzer-kart:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
  border-color: #e4e6ef;
}
.firma-benzer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.firma-benzer-ad {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.firma-benzer-kart i { color: #c7ccd4; flex-shrink: 0; }
.firma-benzer-kart:hover i { color: #BA8A7A; }

/* --- Mobil --- */
@media (max-width: 767.98px) {
  .firma-hero { padding: 2rem 0 1.8rem; }
  .firma-hero-ust { flex-direction: column; gap: 14px; }
  .firma-hero-logo { width: 64px; height: 64px; font-size: 1.7rem; border-radius: 12px; }
  .firma-hero-aksiyon { margin-top: 1.2rem; }
  .firma-aksiyon-btn { flex: 1 1 100%; justify-content: center; }
  .firma-hero h1 { overflow-wrap: anywhere; }
  .firma-blok { padding: 18px 16px; }
  .firma-kunye dt { flex: 0 0 100%; }
  .firma-yan { position: static; }
}

/* Firma kartı: profile giden bağlantılar */
.firma-kart-ad a {
  color: inherit;
  text-decoration: none;
}
.firma-kart:hover .firma-kart-ad a { color: var(--bs-primary, #1b84ff); }
a.firma-kart-avatar { text-decoration: none; }
.firma-kart-profil {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-primary, #1b84ff);
  text-decoration: none;
  align-self: flex-start;
}
.firma-kart-profil:hover { text-decoration: underline; }

/* ============================================================
   Sayfalar Modülü (/sayfa, /sayfadetay)
   ============================================================ */

/* --- Üst meta şeridi --- */
.sayfa-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.sayfa-meta-bolum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fbf6f4;
  border: 1px solid #f0e2dc;
  color: #a9755f;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.sayfa-meta-bolum:hover { background: #f4e9e4; color: #8d5b47; }
.sayfa-meta-tarih {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9aa2af;
}

/* --- Kapak görseli --- */
.sayfa-kapak {
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6f8;
}
.sayfa-kapak img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* --- Kısa bilgi --- */
.sayfa-kisa {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: #3f4a58;
  padding-left: 14px;
  border-left: 3px solid #BA8A7A;
}

/* --- Zengin metin içeriği --- */
.sayfa-icerik {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #4b5563;
}
.sayfa-icerik p { margin-bottom: 1rem; }
.sayfa-icerik p:last-child { margin-bottom: 0; }
.sayfa-icerik h1,
.sayfa-icerik h2,
.sayfa-icerik h3,
.sayfa-icerik h4 {
  color: #1f2937;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.8rem 0 .8rem;
}
.sayfa-icerik h1 { font-size: 1.4rem; }
.sayfa-icerik h2 { font-size: 1.2rem; }
.sayfa-icerik h3 { font-size: 1.05rem; }
.sayfa-icerik h4 { font-size: 0.95rem; }
.sayfa-icerik ul,
.sayfa-icerik ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.sayfa-icerik li { margin-bottom: .4rem; }
.sayfa-icerik a { color: var(--bs-primary, #1b84ff); text-decoration: none; }
.sayfa-icerik a:hover { text-decoration: underline; }
.sayfa-icerik img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .6rem 0;
}
.sayfa-icerik blockquote {
  border-left: 3px solid #BA8A7A;
  background: #fbf6f4;
  border-radius: 0 6px 6px 0;
  padding: 12px 18px;
  margin: 1.2rem 0;
  color: #3f4a58;
}
.sayfa-icerik table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.85rem;
}
.sayfa-icerik table td,
.sayfa-icerik table th {
  border: 1px solid #eef0f3;
  padding: 8px 12px;
  vertical-align: top;
}
.sayfa-icerik table th { background: #f8f9fb; font-weight: 600; color: #374151; }
.sayfa-icerik hr { border: none; border-top: 1px solid #eef0f3; margin: 1.6rem 0; }

/* Geniş tablolar taşmasın */
.sayfa-icerik { overflow-x: auto; }

/* --- Sayfa kartı (bölümde birden fazla yayın varsa) --- */
.sayfa-kart {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.sayfa-kart:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: #e4e6ef;
}
.sayfa-kart-foto {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f4f6f8;
}
.sayfa-kart-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.sayfa-kart:hover .sayfa-kart-foto img { transform: scale(1.06); }
.sayfa-kart-tarih { font-size: 0.78rem; color: #9aa0ac; }
.sayfa-kart-baslik { color: #1e1e2d; line-height: 1.35; transition: color .18s; }
.sayfa-kart:hover .sayfa-kart-baslik { color: var(--bs-primary, #1b84ff); }
.sayfa-kart-ozet { font-size: 0.85rem; line-height: 1.65; }
.sayfa-kart-devam {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bs-primary, #1b84ff);
}

/* --- Bölüm kartı (/sayfa) --- */
.sayfa-bolum-kart {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px 20px;
  height: 100%;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.sayfa-bolum-kart:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
  transform: translateY(-3px);
  border-color: #e4e6ef;
}
.sayfa-bolum-ikon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fbf6f4;
  color: #BA8A7A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sayfa-bolum-metin { min-width: 0; }
.sayfa-bolum-ad {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}
.sayfa-bolum-aciklama {
  display: block;
  font-size: 0.8rem;
  color: #9aa2af;
  margin-top: 2px;
}
.sayfa-bolum-kart i.ki-arrow-right { color: #c7ccd4; flex-shrink: 0; }
.sayfa-bolum-kart:hover i.ki-arrow-right { color: #BA8A7A; }

/* --- Kardeş sayfa bağlantıları --- */
.sayfa-kardes { padding-top: 24px; border-top: 1px solid #f3f4f6; }
.sayfa-kardes-baslik {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}
.sayfa-kardes-kart {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafbfc;
  border: 1px solid #f1f3f5;
  border-radius: 10px;
  padding: 12px 16px;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.sayfa-kardes-kart:hover {
  background: #fff;
  border-color: #e4e6ef;
  color: var(--bs-primary, #1b84ff);
}
.sayfa-kardes-kart > i:first-child { color: #BA8A7A; flex-shrink: 0; }
.sayfa-kardes-kart .ki-arrow-right { color: #c7ccd4; flex-shrink: 0; }
.sayfa-kardes-kart:hover .ki-arrow-right { color: var(--bs-primary, #1b84ff); }

/* --- Mobil --- */
@media (max-width: 767.98px) {
  .sayfa-kapak img { max-height: 240px; }
  .sayfa-kisa { font-size: 0.92rem; }
  .sayfa-icerik { font-size: 0.88rem; }
  .sayfa-bolum-kart { padding: 14px 16px; }
}

/* Word'den gelen sözde madde imleri (bkz. icerik_helper :: icerik_temizle) */
.sayfa-icerik .icerik-madde,
.firma-blok-icerik .icerik-madde {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .4rem;
}
.sayfa-icerik .icerik-madde::before,
.firma-blok-icerik .icerik-madde::before {
  content: "\2022";
  position: absolute;
  left: .3rem;
  top: 0;
  color: #BA8A7A;
  font-weight: 700;
  line-height: inherit;
}

/* ============================================================
   Fotoğraf Albümü (/galeri, /albumdetay, /fotom)
   ============================================================ */

/* --- Albüm meta şeridi --- */
.album-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.album-meta-kat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fbf6f4;
  border: 1px solid #f0e2dc;
  color: #a9755f;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.album-meta-kat:hover { background: #f4e9e4; color: #8d5b47; }
.album-meta-bilgi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9aa2af;
}

.album-ozet {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: #3f4a58;
  padding-left: 14px;
  border-left: 3px solid #BA8A7A;
}

/* --- Fotoğraf ızgarası --- */
.album-foto {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: #f4f6f8;
  cursor: pointer;
}
.album-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}
.album-foto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background .3s ease, opacity .3s ease;
}
.album-foto-overlay i {
  transform: scale(.7);
  transition: transform .3s ease;
}
.album-foto:hover img { transform: scale(1.06); filter: grayscale(30%); }
.album-foto:hover .album-foto-overlay { background: rgba(30, 30, 30, .45); opacity: 1; }
.album-foto:hover .album-foto-overlay i { transform: scale(1); }

/* --- Albüm kartı (liste) --- */
.album-kart {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.album-kart:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
  border-color: #e4e6ef;
}
.album-kart-foto {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #f4f6f8;
}
.album-kart-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.album-kart:hover .album-kart-foto img { transform: scale(1.06); }
.album-kart-bos {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7ccd4;
}
.album-kart-rozet {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}
.album-kart-tarih { font-size: 0.78rem; color: #9aa0ac; }
.album-kart-baslik { color: #1e1e2d; line-height: 1.35; transition: color .18s; }
.album-kart:hover .album-kart-baslik { color: var(--bs-primary, #1b84ff); }
.album-kart-ozet { font-size: 0.85rem; line-height: 1.6; }

/* --- Mobil --- */
@media (max-width: 767.98px) {
  .album-ozet { font-size: 0.92rem; }
  .album-kart-foto { height: 160px; }
}

/* ============================================================
   Personel Birim Sayfası (/personel/{kat_id})
   ============================================================ */

.personel-kart {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.personel-kart:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
  border-color: #e4e6ef;
}

/* Fotoğraf — sabit en-boy oranı, kırpmalı */
.personel-foto {
  width: 132px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f6f8;
}
.personel-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Tam satır kartlarda fotoğraf biraz daha büyük */
.personel-kart-genis .personel-foto { width: 150px; }

.personel-bilgi { min-width: 0; }

.personel-ad {
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.35;
  word-break: break-word;
}
.personel-gorev {
  font-size: 0.85rem;
  line-height: 1.5;
}

.personel-iletisim li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #4b5563;
  padding: 3px 0;
}
.personel-bilgi.text-center .personel-iletisim li { justify-content: center; }
.personel-iletisim li i { color: #BA8A7A; flex-shrink: 0; }
.personel-iletisim a {
  color: #4b5563;
  text-decoration: none;
  word-break: break-word;
}
.personel-iletisim a:hover { color: var(--bs-primary, #1b84ff); text-decoration: underline; }

/* --- Mobil --- */
@media (max-width: 575.98px) {
  .personel-foto,
  .personel-kart-genis .personel-foto { width: 118px; }
}

/* ============================================================
   Sık Sorulan Sorular (/sss)
   ============================================================ */

.sss-giris {
  font-size: 0.92rem;
  color: #6b7280;
  padding-left: 14px;
  border-left: 3px solid #BA8A7A;
}

/* Kategori başlığı */
.sss-kat-baslik {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.sss-kat-baslik i { color: #BA8A7A; }
.sss-kat-adet {
  background: #f1f3f5;
  color: #6b7280;
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Akordiyon */
.sss-akordion .accordion-item {
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.sss-akordion .accordion-item:last-child { margin-bottom: 0; }

.sss-akordion .accordion-button {
  background: #fff;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 16px 20px;
  box-shadow: none;
}
.sss-akordion .accordion-button:not(.collapsed) {
  background: #fbf6f4;
  color: #a9755f;
  box-shadow: none;
}
.sss-akordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.sss-akordion .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
  flex-shrink: 0;
  margin-left: 12px;
}

.sss-akordion .accordion-body {
  padding: 18px 20px 20px;
  border-top: 1px solid #f3f4f6;
}

/* Cevap içindeki görsel */
.sss-gorsel img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: 8px;
  display: block;
}

/* --- Mobil --- */
@media (max-width: 575.98px) {
  .sss-akordion .accordion-button { font-size: 0.88rem; padding: 14px 16px; }
  .sss-akordion .accordion-body { padding: 16px; }
}

/* ============================================================
   Firma Portalı (/firma/*)
   ============================================================ */

/* --- Giriş formu --- */
.firma-giris-form {
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 28px;
}

/* --- Panel özeti --- */
.firma-panel-ozet {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}
.firma-panel-logo {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.firma-panel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.firma-panel-harf {
  font-size: 2rem;
  font-weight: 700;
  color: #BA8A7A;
}

.firma-panel-kart {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
}
.firma-panel-kart-baslik {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.firma-panel-kart-baslik i { color: #BA8A7A; }

.firma-panel-liste li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.83rem;
  border-bottom: 1px dashed #f3f4f6;
}
.firma-panel-liste li:last-child { border-bottom: none; }
.firma-panel-liste li span { color: #9aa2af; flex-shrink: 0; }
.firma-panel-liste li b { color: #374151; text-align: right; word-break: break-word; }

/* --- Form bölüm başlıkları --- */
.firma-form-baslik {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.firma-form-baslik i { color: #BA8A7A; }

.firma-form-onizleme {
  width: 120px;
  height: 90px;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #f8f9fb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.firma-form-onizleme img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Talep kartları --- */
.firma-talep-kart {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px 20px;
}
.firma-talep-ust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.firma-talep-not {
  font-size: 0.83rem;
  color: #4b5563;
  background: #fafbfc;
  border-radius: 8px;
  padding: 10px 14px;
}

/* --- Mobil --- */
@media (max-width: 575.98px) {
  .firma-giris-form { padding: 20px; }
  .firma-panel-ozet { flex-direction: column; align-items: flex-start; }
  .firma-panel-liste li { flex-direction: column; gap: 2px; }
  .firma-panel-liste li b { text-align: left; }
}

/* Firma portalı: yatay gezinme şeridi (kenar çubuğu kaldırıldı) */
.firma-portal-firma {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}
.firma-portal-firma i { color: #BA8A7A; }

.firma-portal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.firma-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.firma-portal-link i { color: #9aa2af; }
.firma-portal-link:hover {
  background: #f8f9fb;
  color: #1f2937;
  border-color: #e4e6ef;
}
.firma-portal-link.aktif {
  background: #2d3748;
  border-color: #2d3748;
  color: #fff;
}
.firma-portal-link.aktif i { color: #BA8A7A; }
.firma-portal-link.cikis { margin-left: auto; color: #dc3545; }
.firma-portal-link.cikis i { color: #dc3545; }
.firma-portal-link.cikis:hover { background: #fdf2f3; border-color: #f5c6cb; color: #b02a37; }

@media (max-width: 575.98px) {
  .firma-portal-link { flex: 1 1 calc(50% - 6px); justify-content: center; padding: 9px 10px; font-size: 0.8rem; }
  .firma-portal-link.cikis { margin-left: 0; flex-basis: 100%; }
}

/* ============================================================
   Yapay Zeka Asistan Rehberi (/ai/rehber)
   ============================================================ */

.ai-rehber-giris {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #3f4a58;
  padding-left: 14px;
  border-left: 3px solid #BA8A7A;
}

.ai-rehber-baslik {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.ai-rehber-baslik i { color: #BA8A7A; }

/* --- Adım listesi --- */
.ai-adim-liste {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-adim {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.ai-adim:hover {
  border-color: #e4e6ef;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}
.ai-adim-ikon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fbf6f4;
  color: #BA8A7A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-adim-baslik {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}
.ai-adim-metin {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #4b5563;
}

/* --- Kip kartları --- */
.ai-kip-kart {
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px 20px;
  height: 100%;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #4b5563;
}
.ai-kip-kart.vurgulu {
  background: #fbf6f4;
  border-color: #f0e2dc;
}
.ai-kip-baslik {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}
.ai-kip-baslik i { color: #BA8A7A; }

/* --- İpucu / sınır listeleri --- */
.ai-ipucu-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ai-ipucu-liste li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.87rem;
  line-height: 1.65;
  color: #4b5563;
  border-bottom: 1px dashed #f3f4f6;
}
.ai-ipucu-liste li:last-child { border-bottom: none; }
.ai-ipucu-liste li i { color: #50cd89; margin-top: 3px; flex-shrink: 0; }
.ai-ipucu-liste.sinir li i { color: #f1bc00; }

/* --- Mobil --- */
@media (max-width: 575.98px) {
  .ai-adim { padding: 14px; gap: 12px; }
  .ai-adim-ikon { width: 38px; height: 38px; }
  .ai-rehber-giris { font-size: 0.9rem; }
}

/* ============================================================
   Etkinlikler (/etkinlikler, /etkinlikdetay)
   ============================================================ */

/* --- Süzgeç şeridi --- */
.etkinlik-suzgec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.etkinlik-suzgec-etiket { font-size: 0.85rem; color: #6b7280; font-weight: 600; }
.etkinlik-suzgec-gruplar { display: flex; flex-wrap: wrap; gap: 6px; }
.etkinlik-suzgec-btn {
  padding: 6px 14px;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.etkinlik-suzgec-btn:hover { background: #f8f9fb; color: #1f2937; border-color: #e4e6ef; }
.etkinlik-suzgec-btn.aktif { background: #2d3748; border-color: #2d3748; color: #fff; }

/* --- Etkinlik kartı --- */
.etkinlik-kart {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.etkinlik-kart:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: translateY(-4px);
  border-color: #e4e6ef;
}
.etkinlik-kart-foto {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f4f6f8;
}
.etkinlik-kart-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.etkinlik-kart:hover .etkinlik-kart-foto img { transform: scale(1.06); }
.etkinlik-kart-durum { position: absolute; top: 10px; right: 10px; }

.etkinlik-kart-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #9aa0ac;
}
.etkinlik-kart-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.etkinlik-kart-baslik { color: #1e1e2d; line-height: 1.35; transition: color .18s; }
.etkinlik-kart:hover .etkinlik-kart-baslik { color: var(--bs-primary, #1b84ff); }
.etkinlik-kart-ozet { font-size: 0.85rem; line-height: 1.6; }
.etkinlik-kart-devam { font-size: 0.85rem; font-weight: 600; color: var(--bs-primary, #1b84ff); }

/* --- Detay --- */
.etkinlik-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.etkinlik-meta-bilgi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #9aa2af;
}
.etkinlik-meta-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fbf6f4;
  border: 1px solid #f0e2dc;
  color: #a9755f;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.etkinlik-kapak {
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6f8;
}
.etkinlik-kapak img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.etkinlik-ozet {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: #3f4a58;
  padding-left: 14px;
  border-left: 3px solid #BA8A7A;
}
.etkinlik-foto {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f6f8;
}
.etkinlik-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 767.98px) {
  .etkinlik-kart-foto { height: 160px; }
  .etkinlik-kapak img { max-height: 240px; }
  .etkinlik-suzgec { align-items: flex-start; }
}

/* ==========================================================================
   Slider — banner zamanlayici cubugu
   Slider Revolution her slaytta ust kenara ilerleme cubugu (.tp-bannertimer)
   basiyor. Tasarimda istenmedigi icin gizlenir; slayt gecisleri etkilenmez.
   ========================================================================== */
.tp-bannertimer,
.rev_slider .tp-bannertimer,
.rev_slider_wrapper .tp-bannertimer {
    display: none !important;
}

/* ==========================================================================
   Header zemin görseli — menü barının altına taşmaz
   Metronic body'ye sabit "background-size: 100% 350px" veriyor (style.tum.css).
   Header ise logo (130px) + nav satırı (56px) = 187px'te bitiyor; aradaki
   163px slider'ın / iç sayfa içeriğinin üstünü kaplıyordu.
   Zemin yüksekliği artık header yüksekliğine bağlı.
   ========================================================================== */
:root {
    /* Desktop: logo 130px + nav satırı 56px */
    --vosb-header-zemin: 187px;
}

body:not(.app-blank),
body.page-bg-image-lg:not(.app-blank) {
    background-size: 100% var(--vosb-header-zemin) !important;
}

@media (max-width: 991.98px) {
    :root {
        /* Mobilde nav satırı gizli, header tek satır 85px */
        --vosb-header-zemin: 85px;
    }
}

/* ==========================================================================
   Koyu mod header zemini
   Metronic koyu temada kendi stok görselini (media/patterns/header-bg-dark.jpg)
   kullanıyor; projenin koyu zemini img/header_koyu.jpg. Aynı seçici sonradan
   yazıldığı için ezer, !important mobil kuralıyla çakışmaması için.
   ========================================================================== */
[data-bs-theme="dark"] body:not(.app-blank) {
    background-image: url('../img/header_koyu.jpg') !important;
}

/* ==========================================================================
   Dokümanlar (filemanager) — /filemanager
   Klasör ağacı iç sayfa yan bloğunda, dosya listesi ana içerikte.
   Palet: marka #BA8A7A, kenarlık #eef0f3, başlık #1f2937 (iç sayfa dili).
   ========================================================================== */

/* --- İstatistik şeridi --- */
.dok-ist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dok-ist-kart {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
}
.dok-ist-ikon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fbf6f4;
}
.dok-ist-ikon i { color: #BA8A7A !important; }
.dok-ist-govde { display: flex; flex-direction: column; min-width: 0; }
.dok-ist-deger { font-weight: 700; font-size: 1.15rem; color: #1f2937; line-height: 1.2; }
.dok-ist-etiket { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }

/* --- Bölüm başlığı --- */
.dok-bolum-baslik {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 18px;
}
.dok-bolum-baslik::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 8px;
  background: #BA8A7A;
  border-radius: 2px;
}

/* --- Klasör ağacı (yan blok) --- */
.dok-agac { max-height: 520px; overflow-y: auto; padding: 4px 2px; }
.dok-agac-liste { list-style: none; margin: 0; padding: 0; }
.dok-agac-cocuk { margin-left: 1.1rem; border-left: 1px solid #eef0f3; padding-left: 2px; }
.dok-agac-cocuk.kapali { display: none; }

.dok-agac-satir {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
  transition: background .18s ease;
}
.dok-agac-satir:hover { background: #f4f6f8; }
.dok-agac-satir.aktif { background: #fbf6f4; }
.dok-agac-satir.aktif::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: #BA8A7A;
}
.dok-agac-satir.aktif .dok-agac-ad { color: #8c6555; font-weight: 700; }
.dok-agac-satir.bos .dok-agac-ad { color: #9aa2af; }

.dok-agac-sevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  padding: 0; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #9aa2af;
  transition: transform .2s ease;
}
.dok-agac-sevron i { font-size: 12px; color: inherit !important; }
.dok-agac-sevron.acik { transform: rotate(90deg); }
.dok-agac-sevron.bos-sevron { cursor: default; }

.dok-agac-link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 2px;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.86rem;
}
.dok-agac-link:hover { color: #1f2937; }
.dok-agac-link:focus-visible { outline: 2px solid #BA8A7A; outline-offset: -2px; border-radius: 8px; }
.dok-agac-ikon { flex-shrink: 0; width: 20px; height: 20px; }
.dok-agac-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-agac-sayi { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; }

/* --- Üst çubuk: yol izi + arama + görünüm --- */
.dok-ustcubuk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f3;
}
.dok-ustcubuk-sag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dok-yolizi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.82rem; min-width: 0; }
.dok-yolizi a { color: #6b7280; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.dok-yolizi a:hover { color: #BA8A7A; }
.dok-yolizi-sep { color: #c9ced6; }
.dok-yolizi-aktif { color: #1f2937; font-weight: 700; }

.dok-arama { position: relative; display: flex; align-items: center; }
.dok-arama > i { position: absolute; left: 10px; color: #9aa2af !important; pointer-events: none; }
.dok-arama input { padding-left: 32px; padding-right: 30px; width: 200px; border-radius: 8px; font-size: 0.82rem; }
.dok-arama input::-webkit-search-cancel-button { display: none; }
.dok-arama-temizle {
  position: absolute; right: 6px;
  border: none; background: none; padding: 2px;
  color: #9aa2af; cursor: pointer; line-height: 1;
}
.dok-arama-temizle:hover { color: #BA8A7A; }
.dok-gorunum .btn.active { background: #fbf6f4; color: #8c6555; }

/* --- Dosya listesi --- */
.dok-icerik { min-height: 110px; }
.dok-icerik[data-gorunum="izgara"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding-top: 14px;
}
.dok-icerik[data-gorunum="izgara"] .dok-satir { display: none; }

.dok-satir {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  transition: background .18s ease;
}
.dok-satir:hover { background: #f4f6f8; }
.dok-satir + .dok-satir { border-top: 1px solid #f3f4f6; }
.dok-satir-ikon { flex-shrink: 0; display: flex; }
.dok-satir-ad { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dok-satir-baslik { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-satir-yol { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-satir-rozet { flex-shrink: 0; font-size: 0.64rem; font-weight: 700; }
.dok-satir-boyut { flex-shrink: 0; width: 72px; text-align: right; }
.dok-satir-tarih { flex-shrink: 0; width: 82px; text-align: right; }
.dok-satir-aksiyon { flex-shrink: 0; display: flex; gap: 6px; }

/* --- Doküman kartı (vitrin + ızgara) --- */
.dok-kart {
  height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.dok-kart:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(31,41,55,.09); border-color: #e4e6ef; }
.dok-kart:focus-within { outline: 2px solid #BA8A7A; outline-offset: 2px; }
.dok-kart-gorsel {
  position: relative; height: 140px;
  background: #f4f6f8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.dok-kart--kucuk .dok-kart-gorsel { height: 108px; }
.dok-kart-resim { width: 100%; height: 100%; object-fit: cover; display: block; }
.dok-kart-ikon { display: flex; align-items: center; justify-content: center; }
.dok-kart-ikon img { width: 56px; height: 56px; }
.dok-kart--kucuk .dok-kart-ikon img { width: 44px; height: 44px; }
.dok-kart-rozet { position: absolute; top: 10px; right: 10px; font-size: 0.64rem; font-weight: 700; letter-spacing: .04em; }

.dok-kart-govde { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.dok-kart-ad {
  line-height: 1.35; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.dok-kart-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 12px; }
.dok-nokta { opacity: .5; }
.dok-kart-aksiyon { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.dok-kart-aksiyon .btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; }

/* --- Boş durum --- */
.dok-bos { text-align: center; padding: 40px 20px; color: #6b7280; font-size: 0.9rem; }
.dok-bos img { opacity: .55; margin-bottom: 12px; }
.dok-bos p { margin: 0; }
.dok-icerik[data-gorunum="izgara"] .dok-bos { grid-column: 1 / -1; }

/* --- Yükleniyor iskeleti --- */
.dok-skeleton { display: flex; align-items: center; gap: 12px; padding: 12px 10px; }
.dok-skeleton span {
  display: block; border-radius: 7px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e9ecf1 37%, #f3f4f6 63%);
  background-size: 400% 100%;
  animation: dokParilti 1.2s ease-in-out infinite;
}
.dok-skeleton .sk-ikon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; }
.dok-skeleton .sk-ad { height: 13px; flex: 1; }
.dok-skeleton .sk-kisa { height: 13px; width: 70px; flex-shrink: 0; }
.dok-icerik[data-gorunum="izgara"] .dok-skeleton { flex-direction: column; align-items: stretch; height: 210px; }
.dok-icerik[data-gorunum="izgara"] .dok-skeleton .sk-ikon { width: 100%; height: 108px; }
.dok-icerik[data-gorunum="izgara"] .dok-skeleton .sk-kisa { width: 100%; }
@keyframes dokParilti { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* --- Duyarlılık --- */
@media (max-width: 991.98px) {
  .dok-agac { max-height: 320px; }
}
@media (max-width: 575.98px) {
  .dok-ist { grid-template-columns: 1fr; }
  .dok-arama { flex: 1; }
  .dok-arama input { width: 100%; }
  .dok-ustcubuk-sag { width: 100%; }
  .dok-satir-tarih { display: none; }
  .dok-satir-boyut { width: auto; }
  .dok-icerik[data-gorunum="izgara"] { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
}

/* --- RTL (Farsça) --- */
[dir="rtl"] .dok-agac-cocuk {
  margin-left: 0; margin-right: 1.1rem;
  border-left: none; border-right: 1px solid #eef0f3;
  padding-left: 0; padding-right: 2px;
}
[dir="rtl"] .dok-agac-satir.aktif::before { left: auto; right: 0; }
[dir="rtl"] .dok-agac-sevron i { transform: scaleX(-1); }
[dir="rtl"] .dok-agac-sevron.acik { transform: rotate(-90deg); }
[dir="rtl"] .dok-agac-link { padding: 7px 2px 7px 8px; }
[dir="rtl"] .dok-arama > i { left: auto; right: 10px; }
[dir="rtl"] .dok-arama input { padding-left: 30px; padding-right: 32px; }
[dir="rtl"] .dok-arama-temizle { right: auto; left: 6px; }
[dir="rtl"] .dok-satir-boyut,
[dir="rtl"] .dok-satir-tarih { text-align: left; }
[dir="rtl"] .dok-kart-rozet { right: auto; left: 10px; }

/* Footer alt çubuk — Makbil bağlantısı (span rengini miras alır) */
.footer-alt-cubuk .footer-makbil {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.footer-alt-cubuk .footer-makbil:hover,
.footer-alt-cubuk .footer-makbil:focus {
  color: #BA8A7A;
  text-decoration: underline;
}

/* ==========================================================================
   Koyu modda header ikonları beyaz
   "Desktop ikonları ve hover" bloğu (min-width:992px) ikon rengini
   #1e1e2d olarak !important ile sabitliyor ve tema ayrımı yapmıyordu;
   koyu zeminde ikonlar siyah kalıyordu.

   Seçicilerin başına [data-bs-theme="dark"] eklenerek özgüllük o bloğun
   üzerine çıkarılır. Header ikonlarının tamamı ki-duotone olduğu için
   gerçek glifi .path1/.path2 span'leri basar — onlar da listelenmelidir,
   yoksa yalnız <i> rengi değişir ve ikon siyah görünmeye devam eder.
   ========================================================================== */
[data-bs-theme="dark"] .header .topbar .btn.btn-custom i,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom .svg-icon,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom .ki-duotone .path1::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom .ki-duotone .path2::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom .ki-duotone .path3::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-icon i,
[data-bs-theme="dark"] .header .topbar .btn.btn-icon .ki-duotone .path1::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-icon .ki-duotone .path2::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-icon .ki-duotone .path3::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom.dropdown-toggle::after,
[data-bs-theme="dark"] #kt_header_menu_mobile_toggle i,
[data-bs-theme="dark"] #kt_header_menu_mobile_toggle .ki-duotone .path1::before,
[data-bs-theme="dark"] #kt_header_menu_mobile_toggle .ki-duotone .path2::before {
    color: #ffffff !important;
}

/* Hover / focus / active durumunda da beyaz kalsın (açık temada koyuya
   dönen kurallar burada etkisiz bırakılır) */
[data-bs-theme="dark"] .header .topbar .btn.btn-custom:hover:not(.btn-active) i,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom:focus:not(.btn-active) i,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom:active:not(.btn-active) i,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom.show i,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom.active i,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom:hover:not(.btn-active) .ki-duotone .path1::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom:hover:not(.btn-active) .ki-duotone .path2::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom.show .ki-duotone .path1::before,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom.show .ki-duotone .path2::before {
    color: #ffffff !important;
}

/* Koyu zeminde hover arka planı açık yarı saydam olmalı (açık temadaki
   siyah %8 koyu üstünde görünmüyor) */
[data-bs-theme="dark"] .header .topbar .btn.btn-custom:hover:not(.btn-active),
[data-bs-theme="dark"] .header .topbar .btn.btn-custom:focus:not(.btn-active),
[data-bs-theme="dark"] .header .topbar .btn.btn-custom.show,
[data-bs-theme="dark"] .header .topbar .btn.btn-custom.active {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Mobil menü butonunun çerçevesi koyu temada da beyaz */
[data-bs-theme="dark"] #kt_header_menu_mobile_toggle {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================================
   Duyurular / Etkinlikler sekmesi — aktif sekmenin altında aşağı ok
   İçeriğin sekmenin altında olduğunu belirtir. Yalnız MASAÜSTÜ (>=992px):
   mobilde sekmeler beyaz zemine düşüyor ve blok farklı akıyor.
   Yalnız .active sekmede çıkar; sekme değişince CSS kendiliğinden taşır.

   Konum: top:100% butonun alt kenarı (2px beyaz çizgi dahil) demektir;
   ok oradan slider çerçevesine doğru iner. Zemin bazen açık fotoğrafa
   denk geldiği için beyaz üçgene hafif gölge veriliyor (alt çizgiyle
   aynı sorun, aynı çözüm).
   ========================================================================== */
@media (min-width: 992px) {
  .duyuru-tab-link {
    position: relative;
  }
  .duyuru-tab-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 1px);
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #fff;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
    pointer-events: none;
  }
}

/* ==========================================================================
   RTL (Farsça) + mobil — logo hamburger butonuna biniyordu
   RTL'de logo, hamburger butonunun SOLUNDA durur; düzen bloklarındaki
   ".header-logo { margin-right: 0 }" kuralı aradaki boşluğu sıfırlayınca
   logo butonun üzerine taşıyordu (ölçülen örtüşme 6px).
   Burada, düzen bloğundaki kuralı ezecek özgüllükle sağ boşluk verilir.
   tasarim.css'te tutulmasının sebebi: firma.php düzeninde RTL <style>
   bloğu yok, bu kural oraya da ulaşsın.
   ========================================================================== */
@media (max-width: 991.98px) {
  [dir="rtl"] .header-logo {
    margin-right: 12px !important;
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   İçerik eki — haber / duyuru detayının sonunda indirme kartı
   (components/_ek_dosya.php)
   ========================================================================== */
.ek-dosya { border-top: 1px solid #eef0f3; padding-top: 20px; }
.ek-dosya-baslik {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700; color: #1f2937;
  margin-bottom: 12px;
}
.ek-dosya-baslik i { color: #BA8A7A !important; }
.ek-dosya-kart {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid #eef0f3; border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ek-dosya-kart:hover { border-color: #e4e6ef; box-shadow: 0 8px 22px rgba(31, 41, 55, 0.07); }
.ek-dosya-ikon { flex-shrink: 0; }
.ek-dosya-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ek-dosya-ad {
  font-size: 0.9rem; font-weight: 600; color: #1f2937;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ek-dosya-meta { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: #6b7280; }
.ek-dosya-meta .badge { font-size: 0.64rem; font-weight: 700; }
.ek-dosya-indir { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 575.98px) {
  .ek-dosya-kart { flex-wrap: wrap; }
  .ek-dosya-indir { width: 100%; justify-content: center; }
}
[data-bs-theme="dark"] .ek-dosya-kart { background: #1e1e2d; border-color: #2b2b40; }
[data-bs-theme="dark"] .ek-dosya-ad,
[data-bs-theme="dark"] .ek-dosya-baslik { color: #f5f5f5; }

/* ==========================================================================
   Mobil yapışkan header — kaydırınca beyaza dönüp ikonları kaybetmesin
   Metronic yapışkan durumda header'a beyaz zemin veriyor
   (--bs-header-tablet-and-mobile-fixed-bg-color); bizim mobil kuralımız ise
   ikonları ve hamburger'i BEYAZA zorluyor -> beyaz üstünde beyaz, görünmez.
   Yapışkan durum da kaydırmadan önceki koyu görünümü taşır.
   ========================================================================== */
@media (max-width: 991.98px) {
  .header-tablet-and-mobile-fixed[data-kt-sticky-header="on"] .header {
    background-color: #2a2a2a;
    background-image: url('../img/header_koyu.jpg');
    background-size: cover;
    background-position: center top;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    border-bottom: 0;
  }
  /* Küçük simge logo (logou.png) yerine tam logo; header yüksekliği mobil
     kuralımızla 85px kalır, logo kabı da 85px (dikey hiza bozulmasın) */
  .header-tablet-and-mobile-fixed[data-kt-sticky-header="on"] .header .header-logo .logo-sticky {
    display: none !important;
  }
  .header-tablet-and-mobile-fixed[data-kt-sticky-header="on"] .header .header-logo .logo-default {
    display: inline-block !important;
    height: 46px !important;
    width: auto !important;
  }
}
