/* =====================================================================
   Organizasyon şeması — yazıyla çizilmiş, hareketli (/sayfa/organizasyon_semasi)
   İçerik sayfanın metnindedir (panelden düzenlenebilir); görünüm bu dosyadan gelir.
   Hareketler site.js içindeki ".orgx" bölümünden tetiklenir; JS yoksa her şey sabit görünür.
   ===================================================================== */
.orgx {
  --ox-navy: var(--blue-900, #162b54);
  --ox-navy2: var(--blue-700, #1d3d78);
  --ox-cyan: var(--cyan, #1bbdc8);
  --ox-gap: 56px;
  position: relative; padding: .2rem 0; color: var(--ink, #12233d);
  overflow-wrap: normal; word-break: normal; cursor: default;
}
.orgx ul, .orgx li { list-style: none; margin: 0; padding: 0; }
.orgx p { margin: 0; }

/* simgeler (beyaz çizgi) */
.orgx .ox-ic-genelkurul { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6'/%3E%3Cpath d='M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20.5h18'/%3E%3C/svg%3E"); }
.orgx .ox-ic-denetim { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2M8.5 11l1.8 1.8 3.2-3.3'/%3E%3C/svg%3E"); }
.orgx .ox-ic-yonetim { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5.5A1.5 1.5 0 0 1 10.5 4h3A1.5 1.5 0 0 1 15 5.5V7M3 13h18'/%3E%3C/svg%3E"); }
.orgx .ox-ic-gm { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.5' r='3.5'/%3E%3Cpath d='M5 21a7 7 0 0 1 14 0M12 14.5l-1.3 2.3 1.3 3.2 1.3-3.2z'/%3E%3C/svg%3E"); }
.orgx .ox-ic-ticari { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8h13l-1 12.5h-11z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E"); }
.orgx .ox-ic-finans { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E"); }
.orgx .ox-ic-uye { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14.6A6.5 6.5 0 0 1 21.5 20'/%3E%3C/svg%3E"); }
.orgx .ox-ic-muhasebe { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M8.5 7.5h7M8.5 12h.01M12 12h.01M15.5 12h.01M8.5 16h.01M12 16h.01M15.5 16h.01'/%3E%3C/svg%3E"); }
.orgx .ox-ic-sigorta { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.orgx .ox-ic-bt { --ox-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4M10 8.5L8 10l2 1.5M14 8.5l2 1.5-2 1.5'/%3E%3C/svg%3E"); }

/* renk açıklaması */
.orgx .ox-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0 0 1.8rem; font-size: .8rem; color: var(--muted, #5b6b82); }
.orgx .ox-legend li { display: inline-flex; align-items: center; gap: 7px; }
.orgx .ox-legend li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 5px; box-sizing: border-box; }
.orgx .lg-kurul::before { background: linear-gradient(135deg, var(--ox-navy), var(--ox-navy2)); }
.orgx .lg-gm::before { background: linear-gradient(135deg, var(--ox-navy2), var(--ox-cyan)); }
.orgx .lg-staff::before { background: #fff6ea; border: 1.5px solid #f2c48a; }
.orgx .lg-dept::before { background: #fff; border: 1.5px solid var(--ox-cyan); }
.orgx .lg-unit::before { background: #fafad6; border: 1.5px solid #d6d65a; }
.orgx .lg-ext::before { background: #fff; border: 1.5px dashed #8d9bb0; }

/* ---- üst bölüm: kurullar ve genel müdür (ortadan inen çizgi) ---- */
.orgx .ox-spine { position: relative; display: flex; flex-direction: column; }
.orgx .ox-spine::before {
  content: ""; position: absolute; left: calc(50% - 1px); top: 30px; bottom: 16px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ox-navy) 0%, var(--ox-navy2) 55%, var(--ox-cyan) 100%); transform-origin: top;
}
/* çizgi boyunca akan ışık */
.orgx .ox-spine::after {
  content: ""; position: absolute; left: 50%; top: 30px; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--ox-cyan), 0 0 16px 5px rgba(27, 189, 200, .6); opacity: 0; pointer-events: none;
}
.orgx .ox-spine.in::after { animation: oxFlow 4.2s 2.2s cubic-bezier(.45, 0, .55, 1) infinite; }

.orgx .ox-row { position: relative; display: flex; justify-content: center; padding: 12px 0; }
.orgx .ox-spine > :last-child { padding-bottom: 0; }
.orgx .ox-side { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--ox-gap); align-items: center; padding: 7px 0; }
.orgx .ox-l { position: relative; justify-self: end; }
.orgx .ox-r { position: relative; justify-self: start; }
.orgx .ox-l:not(:empty)::after, .orgx .ox-r:not(:empty)::before {
  content: ""; position: absolute; top: 50%; width: calc(var(--ox-gap) / 2); height: 2px; margin-top: -1px; background: #a9bdd6;
}
.orgx .ox-l::after { right: calc(var(--ox-gap) / -2); transform-origin: right; }
.orgx .ox-r::before { left: calc(var(--ox-gap) / -2); transform-origin: left; }

.orgx .ox-node {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-width: 240px; padding: .9rem 1.5rem; border-radius: 16px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--ox-navy), var(--ox-navy2));
  box-shadow: 0 10px 26px rgba(22, 43, 84, .22); transition: transform .35s ease, box-shadow .35s ease;
}
.orgx .ox-node strong { color: #fff; font-size: 1rem; line-height: 1.3; letter-spacing: .01em; }
.orgx .ox-node::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--ox-ic, none) center / contain no-repeat; opacity: .95; }
.orgx .ox-node:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(22, 43, 84, .3); }
.orgx .ox-top { min-width: 300px; padding: 1.15rem 2rem; border-radius: 18px; overflow: hidden; }
.orgx .ox-top strong { font-size: 1.2rem; }
.orgx .ox-top::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .24) 50%, transparent 70%);
  animation: oxSheen 6s 1.4s ease-in-out infinite;
}
.orgx .ox-sm { min-width: 0; padding: .75rem 1.25rem; }
.orgx .ox-sm strong { font-size: .93rem; }
.orgx .ox-gm { min-width: 270px; padding: 1rem 1.7rem; background: linear-gradient(135deg, var(--ox-navy2), var(--ox-cyan)); }
.orgx .ox-gm strong { font-size: 1.08rem; }
.orgx .ox-gm::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: oxRing 3.4s 1.8s ease-out infinite; }

.orgx .ox-staff {
  position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 200px; max-width: 270px; padding: .6rem 1.1rem; border-radius: 12px; text-align: center;
  background: #fff6ea; border: 1.5px solid #f2c48a; color: #8a4300; font-size: .86rem; font-weight: 600; line-height: 1.3;
  box-shadow: 0 6px 16px rgba(154, 74, 0, .08); transition: transform .3s ease, box-shadow .3s ease;
}
.orgx .ox-staff:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(154, 74, 0, .15); }
.orgx .ox-ext { background: #fff; border: 1.5px dashed #8d9bb0; color: #33445e; box-shadow: none; }
.orgx .ox-ext small { display: block; margin-top: 2px; font-size: .74rem; font-weight: 500; color: var(--muted, #5b6b82); }

.orgx .ox-hub {
  position: relative; z-index: 1; display: inline-block; padding: .5rem 1.3rem; border-radius: 99px;
  background: #fff; border: 2px solid var(--ox-cyan); color: var(--ox-navy); font-size: .84rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(27, 189, 200, .2);
}

/* ---- alt bölüm: müdürlük kartları ---- */
.orgx .ox-depts {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; padding: 22px;
  border-radius: 22px; background: linear-gradient(180deg, #edf5fb 0%, #f7fafd 100%); border: 1px solid var(--line, #e3e9f2);
}
.orgx .ox-depts::before { content: ""; position: absolute; left: calc(50% - 1px); top: -27px; width: 2px; height: 27px; background: var(--ox-cyan); }
.orgx .ox-depts::after { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ox-cyan); box-shadow: 0 0 0 4px #fff; }

.orgx .ox-dept {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid #e1e9f3; box-shadow: 0 8px 22px rgba(22, 43, 84, .07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.orgx .ox-dept::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ox-navy), var(--ox-cyan)); transform-origin: left; }
.orgx .ox-dept:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(22, 43, 84, .14); border-color: #c8dbec; }
.orgx .ox-head { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 4px; }
.orgx .ox-head::before {
  content: ""; flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--ox-ic, none) center / 24px no-repeat, linear-gradient(135deg, var(--ox-navy2), var(--ox-cyan));
  box-shadow: 0 8px 18px rgba(27, 189, 200, .3); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.orgx .ox-dept:hover .ox-head::before { transform: rotate(-6deg) scale(1.07); }
.orgx .ox-head strong { color: var(--ox-navy); font-size: 1rem; line-height: 1.3; }
.orgx .ox-mgr { position: relative; padding: 10px 12px 10px 14px; border-radius: 12px; background: #f5f8fc; border-left: 3px solid var(--ox-cyan); transition: background .3s ease; }
.orgx .ox-dept:hover .ox-mgr, .orgx .ox-dept:hover .ox-units-direct { background: #eef6fb; }
.orgx .ox-mgr > strong { display: block; color: var(--ox-navy2); font-size: .88rem; line-height: 1.35; }
.orgx .ox-units { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.orgx .ox-units li {
  padding: .26rem .72rem; border-radius: 14px; background: #fafad6; border: 1px solid #e0e07a; color: #545306;
  font-size: .76rem; font-weight: 600; line-height: 1.35; transition: transform .25s ease, background .25s ease;
}
.orgx .ox-units li:hover { transform: translateY(-2px); background: #f3f3b4; }
.orgx .ox-units-direct { margin-top: 0; padding: 12px; border-radius: 12px; background: #f5f8fc; border-left: 3px solid var(--ox-cyan); transition: background .3s ease; }

/* ---- beliriş hareketleri (yalnızca JS çalışırsa; "in" sınıfı ekranda görününce eklenir) ---- */
.orgx.ox-js .ox-legend li { animation: oxFade .5s ease var(--j, 0ms) backwards; }
.orgx.ox-js .ox-spine:not(.in)::before { transform: scaleY(0); }
.orgx.ox-js .ox-spine.in::before { animation: oxGrowY 1.9s cubic-bezier(.55, 0, .25, 1) backwards; }
.orgx.ox-js .ox-spine:not(.in) .ox-node, .orgx.ox-js .ox-spine:not(.in) .ox-staff, .orgx.ox-js .ox-spine:not(.in) .ox-hub { opacity: 0; }
.orgx.ox-js .ox-spine.in .ox-node, .orgx.ox-js .ox-spine.in .ox-staff, .orgx.ox-js .ox-spine.in .ox-hub { animation: oxPop .7s cubic-bezier(.2, .9, .25, 1.2) var(--d, 0ms) backwards; }
.orgx.ox-js .ox-spine:not(.in) .ox-l::after, .orgx.ox-js .ox-spine:not(.in) .ox-r::before { transform: scaleX(0); }
.orgx.ox-js .ox-spine.in .ox-l::after, .orgx.ox-js .ox-spine.in .ox-r::before { animation: oxGrowX .45s ease var(--d, 0ms) backwards; }
.orgx.ox-js .ox-depts:not(.in)::before { transform: scaleY(0); }
.orgx.ox-js .ox-depts.in::before { transform-origin: top; animation: oxGrowY .5s ease backwards; }
.orgx.ox-js .ox-depts:not(.in)::after { opacity: 0; }
.orgx.ox-js .ox-depts.in::after { animation: oxPop .5s cubic-bezier(.2, .9, .25, 1.4) .4s backwards; }

.orgx.ox-js .ox-dept:not(.in), .orgx.ox-js .ox-dept:not(.in) .ox-mgr, .orgx.ox-js .ox-dept:not(.in) .ox-units li, .orgx.ox-js .ox-dept:not(.in) .ox-head::before { opacity: 0; }
.orgx.ox-js .ox-dept.in { animation: oxRise .75s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) backwards; }
.orgx.ox-js .ox-dept.in::before { animation: oxGrowX .9s ease calc(var(--d, 0ms) + 150ms) backwards; }
.orgx.ox-js .ox-dept.in .ox-head::before { animation: oxSpin .8s cubic-bezier(.2, .9, .25, 1.3) calc(var(--d, 0ms) + 120ms) backwards; }
.orgx.ox-js .ox-dept.in .ox-mgr { animation: oxSlide .55s ease calc(var(--d, 0ms) + var(--j, 0ms)) backwards; }
.orgx.ox-js .ox-dept.in .ox-units li { animation: oxChip .45s cubic-bezier(.2, .9, .25, 1.4) calc(var(--d, 0ms) + var(--j, 0ms)) backwards; }

@keyframes oxFade { from { opacity: 0; transform: translateY(6px); } }
@keyframes oxPop { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes oxRise { from { opacity: 0; transform: translateY(26px); } }
@keyframes oxSlide { from { opacity: 0; transform: translateX(-12px); } }
@keyframes oxChip { from { opacity: 0; transform: scale(.7); } }
@keyframes oxSpin { from { opacity: 0; transform: scale(.4) rotate(-25deg); } }
@keyframes oxGrowY { from { transform: scaleY(0); } }
@keyframes oxGrowX { from { transform: scaleX(0); } }
@keyframes oxFlow {
  0% { top: 30px; opacity: 0; }
  8%, 88% { opacity: 1; }
  100% { top: calc(100% - 16px); opacity: 0; }
}
@keyframes oxSheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes oxRing {
  0% { box-shadow: 0 0 0 0 rgba(27, 189, 200, .45); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(27, 189, 200, 0); }
}

/* ---- dar ekranlar ---- */
@media (max-width: 1000px) {
  .orgx .ox-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .orgx .ox-legend { gap: 6px 14px; font-size: .74rem; margin-bottom: 1.3rem; }
  .orgx .ox-side { grid-template-columns: 1fr; row-gap: 12px; justify-items: center; padding: 8px 0; }
  .orgx .ox-l, .orgx .ox-r { justify-self: center; }
  .orgx .ox-r:empty { display: none; }
  .orgx .ox-l::after, .orgx .ox-r::before { display: none; }
  .orgx .ox-node, .orgx .ox-top, .orgx .ox-gm { min-width: 0; width: min(100%, 290px); }
  .orgx .ox-staff { min-width: 0; width: min(100%, 260px); }
  .orgx .ox-depts { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .orgx *, .orgx *::before, .orgx *::after { animation: none !important; transition: none !important; }
}
