/* ==========================================================================
   Çavuşlu Belediyesi — "cx" · Projelerimiz bandı (cx-s--proje)
   Tam genişlik: soldan sağa #003068 → #1a3f9e → mor, silik dağ/kıyı fotoğrafı, alta doğru koyulaşma.
   Kartlar 1440 px'te 5 sütun (235 × ≈134 px), scroll-snap; oklar yalnız taşma varken görünür.
   ========================================================================== */
.cx-s--proje {
  position: relative; isolation: isolate; overflow: hidden; padding: 16px 0 15px; color: #fff;
  background: linear-gradient(90deg, #003068 0%, #1a3f9e 50%, #7a1cb4 100%);
}
/* silik fotoğraf: sağ/orta ağırlıklı, soldan ve alttan sönümlenir */
.cx-proje__bg {
  position: absolute; z-index: 0; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  opacity: .36; mix-blend-mode: luminosity; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 52%), linear-gradient(180deg, #000 0, #000 40%, transparent 92%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 52%), linear-gradient(180deg, #000 0, #000 40%, transparent 92%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* alta doğru koyulaşma */
.cx-s--proje::after {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 38, 92, 0) 0%, rgba(6, 38, 92, .2) 15%, rgba(6, 38, 92, .38) 31%, rgba(6, 38, 92, .62) 62%, rgba(6, 38, 92, .78) 92%, rgba(6, 38, 92, .8) 100%);
}
.cx-proje { position: relative; z-index: 1; }

/* Üst satır */
.cx-proje__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.cx-proje__tt { min-width: 0; }
.cx-proje__tt h2 { font-size: calc(34px * var(--ax-fz, 1)); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; color: #fff; }
.cx-proje__tt p { margin-top: 4px; font-size: calc(12.5px * var(--ax-fz, 1)); line-height: 1.45; font-weight: 500; color: rgba(255, 255, 255, .86); }
.cx-proje__all { flex: none; margin-top: 6px; padding: 0 22px; border-color: rgba(255, 255, 255, .75); }

/* Kaydırıcı */
.cx-proje__rail { position: relative; }
.cx-proje__track {
  display: flex; gap: 12px; margin: -6px 0; padding: 6px 0;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cx-proje__track::-webkit-scrollbar { display: none; }
.cx-proje__item { flex: 0 0 calc((100% - 48px) / 5); min-width: 0; scroll-snap-align: start; display: flex; }

.cx-proje__card {
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: calc(12px * var(--ax-rs, 1)); background: #fff; color: var(--cx-ink);
  box-shadow: 0 10px 22px -14px rgba(0, 12, 48, .75); transition: transform .25s, box-shadow .25s;
}
.cx-proje__card:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -14px rgba(0, 12, 48, .85); }
.cx-proje__card:focus-within { outline: 3px solid #fff; outline-offset: 2px; }
.cx-proje__ph { position: relative; flex: none; aspect-ratio: 8 / 3; overflow: hidden; background: #dde8f6; display: flex; align-items: center; justify-content: center; }
.cx-proje__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cx-proje__card:hover .cx-proje__ph img { transform: scale(1.05); }
.cx-proje__ph > i { font-size: calc(30px * var(--ax-fz, 1)); color: var(--cx-blue); opacity: .45; }
.cx-proje__ph.is-logo { background: linear-gradient(135deg, #eef3fa, #dce8f7); }
.cx-proje__ph.is-logo img { object-fit: contain; padding: 6px 0; }
.cx-proje__ph.is-logo:hover img { transform: none; }

.cx-proje__body { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; padding: 7px 12px 8px; min-height: 46px; }
.cx-proje__txt { flex: 1 1 auto; min-width: 0; }
.cx-proje__txt h3 { font-size: calc(13px * var(--ax-fz, 1)); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; color: var(--cx-ink); }
.cx-proje__txt h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cx-proje__txt h3 a:focus-visible { outline: 0; }
.cx-proje__txt h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* tüm kart tıklanır */
.cx-proje__txt p { margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11.5px * var(--ax-fz, 1)); line-height: 1.3; font-weight: 500; color: var(--cx-muted); }
.cx-proje__go { flex: none; font-size: calc(12px * var(--ax-fz, 1)); color: var(--cx-blue); transition: transform .2s; }
.cx-proje__card:hover .cx-proje__go { transform: translateX(3px); }

/* Ok düğmeleri: bandın kenarında, beyaz yuvarlak */
.cx-proje__nav {
  position: absolute; z-index: 3; top: 50%; width: 32px; height: 32px; margin-top: -16px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--cx-blue); font-size: calc(12px * var(--ax-fz, 1));
  box-shadow: 0 8px 18px -8px rgba(0, 10, 40, .7); transition: transform .2s, opacity .2s, background .2s;
}
.cx-proje__nav[hidden] { display: none; }
.cx-proje__nav:hover { background: var(--cx-blue-100); transform: scale(1.08); }
.cx-proje__nav:focus-visible { outline: 3px solid #2f98d6; outline-offset: 2px; }
.cx-proje__nav:disabled { opacity: .45; cursor: default; transform: none; }
.cx-proje__nav--prev { left: -35px; }
.cx-proje__nav--next { right: -35px; }

@media (max-width: 1100px) {
  .cx-proje__tt h2 { font-size: calc(30px * var(--ax-fz, 1)); }
  .cx-proje__item { flex-basis: calc((100% - 24px) / 3); }
  .cx-proje__nav--prev { left: -10px; }
  .cx-proje__nav--next { right: -10px; }
}
@media (max-width: 700px) {
  .cx-s--proje { padding: 22px 0 20px; }
  .cx-proje__top { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
  .cx-proje__tt h2 { font-size: calc(28px * var(--ax-fz, 1)); }
  .cx-proje__all { margin-top: 0; }
  .cx-proje__item { flex-basis: 78%; }
  .cx-proje__nav { display: none; }                 /* dokunmatik kaydırma yeterli */
}
@media (prefers-reduced-motion: reduce) {
  .cx-proje__track { scroll-behavior: auto; }
  .cx-proje__card, .cx-proje__ph img, .cx-proje__nav, .cx-proje__go { transition: none; }
  .cx-proje__card:hover { transform: none; }
}
