/* Projelerimiz — iki kulvarlı, sade vitrin (Yazılım & Yapay Zeka / Ar-Ge & Teşvik) */

.projects-showcase {
  position: relative;
}

/* Güven panosu — ayrık, premium istatistik kartları */
.ps-stat-row {
  display: flex;
  width: 100%;
  gap: 16px;
  margin: 22px 0 30px;
}

.ps-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 18px 16px;
  position: relative;
  background: #ffffff;
  border: 1px solid #e6edf4;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s ease;
}

.ps-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(14, 159, 170, 0.88) 0%,
    rgba(14, 159, 170, 0.48) 58%,
    rgba(14, 159, 170, 0.18) 100%);
}

.ps-stat:hover {
  transform: translateY(-2px);
  border-color: #d8e6ee;
}

.ps-stat__value {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 2.15vw, 2.1rem);
  font-weight: 800;
  color: #18465d;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ps-stat__label {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5e7488;
  line-height: 1.38;
  letter-spacing: -0.01em;
}



/* Henüz hiç proje girilmemişse */
.ps-empty {
  padding: 36px 28px;
  border: 1px dashed #dce7f0;
  border-radius: 16px;
  text-align: center;
}

.ps-empty .ps-lane-label {
  margin: 0 6px 14px;
}

.ps-empty p {
  margin: 0;
  color: #5a6f86;
  font-size: 0.92rem;
}

/* Tek kulvar varsa sekme yerine sade etiket */
.ps-lane-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.ps-lane-label--sw {
  background: #0e9faa14;
  color: #0e9faa;
  border: 1px solid #0e9faa30;
}

.ps-lane-label--arge {
  background: #b8860b14;
  color: #b8860b;
  border: 1px solid #b8860b30;
}

/* Filtre çipleri (yalnızca /projeler tam sayfasında) */
.ps-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ps-filter-chip {
  border: 1px solid #dce7f0;
  background: #fff;
  color: #354b60;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}

.ps-filter-chip.is-active {
  background: #0a2540;
  border-color: #0a2540;
  color: #fff;
}

.ps-filter-row--arge .ps-filter-chip.is-active {
  background: #b8860b;
  border-color: #b8860b;
}

/* Tek, birleşik kart sistemi — iki kulvar da aynı sade kart, sadece vurgu rengi değişir */


/* Kulvar seçici — Yazılım / Ar-Ge geçiş anahtarı (tam genişlik, kayan gösterge) */
.ps-lane-switch {
  position: relative;
  display: flex;
  width: 100%;
  gap: 4px;
  padding: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 28px;
}

.ps-lane-switch__indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 8px;
  background: linear-gradient(135deg, #0e9faa, #0a6b73);
  box-shadow: 0 6px 16px rgba(14, 159, 170, .25);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .4s ease, box-shadow .4s ease;
  z-index: 1;
  will-change: transform;
}

/* Ar-Ge sekmesi seçiliyken gösterge farklı (gri) bir tonda — iki kulvar
   görsel olarak birbirinden ayrışsın diye; kırmızı/bordo kullanılmıyor
   (daha önce kulvar genelinde bordo "salakça" bulunmuştu). */
.ps-lane-switch__indicator--arge {
  background: linear-gradient(135deg, #64748b, #334155);
  box-shadow: 0 6px 16px rgba(51, 65, 85, .25);
}

.ps-lane-switch__btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  background: transparent;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: color .3s ease;
  letter-spacing: 0.01em;
}

.ps-lane-switch__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.ps-lane-switch__btn:hover {
  color: #0f172a;
}

.ps-lane-switch__btn.is-active {
  color: #fff;
}

.ps-lane-switch__btn.is-active:hover {
  color: #fff;
}

@media (max-width: 560px) {
  .ps-lane-switch__btn {
    font-size: 0.8rem;
    padding: 12px 10px;
    gap: 6px;
  }

  .ps-lane-switch__btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Kulvarlar (Lanes) */
.ps-lanes {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Panel geçişi — kayarak + solarak (fade + translateY) */
.ps-lane-panel {
  transition: opacity .4s cubic-bezier(.2, .7, .2, 1), transform .4s cubic-bezier(.2, .7, .2, 1);
  opacity: 1;
  transform: translateY(0);
}

.ps-lane-panel.is-leaving {
  opacity: 0;
  transform: translateY(-14px);
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(.4, 0, 1, 1);
}

.ps-lane-panel.is-entering {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .ps-lane-panel {
    transition: none !important;
  }
}

.ps-lane__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  padding-left: 8px;
}

/* Yatay kaydırmalı (Horizontal Scroll) Track - Premium
   Alt padding sadece hover'da kartların gölge/scale taşmasını önleyecek
   kadar (16px) — asıl alt boşluk .ps-software-content'in kendi padding'inden
   geliyor, ikisini üst üste yığmıyoruz. */
.ps-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 16px 20px 16px 20px;
  margin: 0 -20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.ps-track::-webkit-scrollbar {
  display: none;
}

.ps-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.ps-track.is-dragging .ps-card {
  user-select: none;
}

.ps-track .ps-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.ps-track::-webkit-scrollbar {
  height: 6px;
}

.ps-track::-webkit-scrollbar-thumb {
  background: #dce7f0;
  border-radius: 999px;
}

.ps-track::-webkit-scrollbar-track {
  background: transparent;
}

.ps-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  position: relative;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dce7f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s cubic-bezier(.2, .7, .2, 1), border-color .35s;
  user-select: none;
  display: flex;
  flex-direction: column;
}

/* TÜBİTAK — kurumsal kırmızı */
.ps-card--tubitak::before {
  background: conic-gradient(transparent 60%, rgba(227, 10, 23, 0.75) 100%);
}

/* KOSGEB — kurumsal mavi */
.ps-card--kosgeb::before {
  background: conic-gradient(transparent 60%, rgba(0, 84, 166, 0.75) 100%);
}

/* AB / Ufuk Avrupa — AB mavisi */
.ps-card--ab::before {
  background: conic-gradient(transparent 60%, rgba(0, 51, 153, 0.75) 100%);
}

/* Sağ üst köşe numara — terminal satır numarası stili */
.ps-card__number {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(16, 152, 162, 0.35);
  line-height: 1;
  z-index: 10;
  pointer-events: none;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

/* Kitap kartında numara — kapak görselinin sağ alt köşesinde, göze batmayan ince bir iz */
.ps-card__number--dossier {
  top: 148px;
  left: auto;
  bottom: auto;
  right: 12px;
  width: auto;
  padding: 0;
  background: none;
  border-radius: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: none;
  font-size: 0.72rem;
  z-index: 7;
}

.ps-card__body {
  padding: 24px;
  flex-grow: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ps-card__media {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid #edf1f6;
}

.ps-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.ps-card:hover .ps-card__media img {
  transform: scale(1.06);
}

/* Yazılım kartı — terminal/ekran teması */
.ps-software-showcase .ps-card__media--placeholder {
  background: #0a1628;
  background-image:
    linear-gradient(rgba(16, 152, 162, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 152, 162, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Ar-Ge dossier kartları için (Yazılım temasının etkilememesi için override) */
.ps-card--dossier .ps-card__media--placeholder {
  background: #fdfbf7 !important;
  background-image: none !important;
}

.ps-card--dossier .ps-card__media--placeholder::after {
  display: none !important;
}

/* köşe ışıma */
.ps-software-showcase .ps-card__media--placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.8), transparent);
  pointer-events: none;
}

.ps-card__placeholder-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.3s;
}

.ps-software-showcase .ps-card:hover .ps-card__placeholder-icon {
  background: rgba(16, 152, 162, 0.2);
  transform: scale(1.05);
}

.ps-card__placeholder-icon svg {
  width: 28px;
  height: 28px;
  opacity: 1;
  color: #ffffff;
}

.ps-card--tubitak:hover {
  border-color: rgba(227, 10, 23, 0.3);
}

.ps-card--kosgeb:hover {
  border-color: rgba(0, 84, 166, 0.3);
}

.ps-card--ab:hover {
  border-color: rgba(0, 51, 153, 0.3);
}

.ps-card--teal .ps-card__placeholder-icon svg {
  color: #0e9faa;
}

.ps-card--gold .ps-card__placeholder-icon svg {
  color: #b8860b;
}

.ps-card--tubitak .ps-card__placeholder-icon svg {
  color: #e30a17;
}

.ps-card--kosgeb .ps-card__placeholder-icon svg {
  color: #0054a6;
}

.ps-card--ab .ps-card__placeholder-icon svg {
  color: #003399;
}

/* Ar-Ge (kitap) kartları krem zemin üzerinde — cam/koyu tema yerine
   düz beyaz kutu + gölge (yazılımın koyu terminaline özel stil burada işe yaramıyordu) */
.ps-card--dossier .ps-card__placeholder-icon {
  background: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.08);
  backdrop-filter: none;
}
.ps-card--dossier:hover .ps-card__placeholder-icon {
  transform: scale(1.05);
}
.ps-card--dossier .ps-card__placeholder-icon svg {
  opacity: 0.9;
}

.ps-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10, 37, 64, 0.08), 0 4px 12px rgba(10, 37, 64, 0.03);
  border-color: #dce7f0;
}

.ps-card--teal:hover {
  border-color: rgba(16, 152, 162, 0.45);
  box-shadow:
    0 20px 48px rgba(10, 37, 64, 0.08),
    0 0 0 1px rgba(16, 152, 162, 0.15),
    0 0 20px rgba(16, 152, 162, 0.08);
}

.ps-card--gold:hover {
  border-color: rgba(184, 134, 11, 0.3);
}

.ps-card__tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  background: transparent;
  padding: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ps-card__tag--own {
  color: #0e9faa;
}

.ps-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0a2540;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.35;
  height: 2.7em;
  /* Exactly 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Başlık/açıklama ayracı — ince, ortalı, iki uçtan soluklaşan zarif çizgi */
.ps-card__divider {
  display: block;
  width: 44px;
  height: 1.5px;
  margin: 4px 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(14, 159, 170, 0.65) 50%, transparent);
}

/* Kart açıklaması — küçük, sönük, en fazla 2 satır */
.ps-card__desc-line {
  font-size: 0.8rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-card__desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
}

/* Kategori/sektör — kutu/rozet değil, tek satır sade metin; her kartta aynı hizada */
.ps-card__meta-line {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-card__outcome {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a2540;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed #dce7f0;
}

.ps-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0e9faa;
  text-decoration: none;
}

.ps-card__link:hover {
  text-decoration: underline;
}

/* ── Animasyon ─────────────────────────────────────────────── */
@keyframes ps-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal].is-visible .ps-stat {
  animation: ps-fade-up .5s cubic-bezier(.2, .7, .2, 1) both;
}

[data-reveal].is-visible .ps-stat:nth-child(1) {
  animation-delay: .04s;
}

[data-reveal].is-visible .ps-stat:nth-child(2) {
  animation-delay: .1s;
}

[data-reveal].is-visible .ps-stat:nth-child(3) {
  animation-delay: .16s;
}

[data-reveal].is-visible .ps-stat:nth-child(4) {
  animation-delay: .22s;
}

.ps-tabs__panel.is-active .ps-card {
  animation: ps-fade-up .5s cubic-bezier(.2, .7, .2, 1) both;
}

.ps-tabs__panel.is-active .ps-card:nth-child(1) {
  animation-delay: .04s;
}

.ps-tabs__panel.is-active .ps-card:nth-child(2) {
  animation-delay: .1s;
}

.ps-tabs__panel.is-active .ps-card:nth-child(3) {
  animation-delay: .16s;
}

.ps-tabs__panel.is-active .ps-card:nth-child(4) {
  animation-delay: .22s;
}

@media (prefers-reduced-motion: reduce) {

  [data-reveal].is-visible .ps-stat,
  .ps-tabs__panel.is-active .ps-card {
    animation: none !important;
  }
}

@media (max-width: 560px) {
  .ps-stat-row {
    display: flex;
    width: 100%;
  }

  .ps-stat {
    flex: 1 1 0;
    padding: 14px 10px;
  }

  .ps-stat__label {
    white-space: normal;
  }

  .ps-tabs__nav {
    display: flex;
    width: 100%;
  }

  .ps-tabs__trigger {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }
}


.ps-card__action {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed #edf1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0e9faa;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
}

.ps-card--gold .ps-card__action {
  color: #b8860b;
}

.ps-card--tubitak .ps-card__action {
  color: #e30a17;
}

.ps-card--kosgeb .ps-card__action {
  color: #0054a6;
}

.ps-card--ab .ps-card__action {
  color: #003399;
}

.ps-card__action:hover {
  color: #0f172a;
}

.ps-card__action svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.ps-card__action:hover svg {
  transform: translateX(6px);
}

/* Modal */
.ps-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.ps-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ps-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(10, 37, 64, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.95) translateY(15px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  scrollbar-width: none;
}

.ps-modal::-webkit-scrollbar {
  display: none;
}

.ps-modal-overlay.is-open .ps-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.ps-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #edf1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ps-modal__close:hover {
  background: #fff;
  color: #0f172a;
  transform: scale(1.05);
}

.ps-modal__cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f8fafc;
  display: block;
}

.ps-modal__icon-cover {
  height: 160px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-modal__icon-cover svg {
  width: 56px;
  height: 56px;
  opacity: 0.3;
  color: #0f172a;
}

.ps-modal__body {
  padding: 32px 40px 40px;
}

.ps-modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.ps-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ps-modal__tags span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 8px;
}

.ps-modal__desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 24px;
}

.ps-modal__outcome {
  background: #f8fafc;
  border-left: 3px solid #0e9faa;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .ps-modal__body {
    padding: 24px;
  }

  .ps-tabs__nav {
    max-width: 100%;
  }
}



/* Yazılım & Yapay Zeka - Apple macOS Penceresi */
.ps-software-showcase {
  position: relative;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  /* Apple ekranları gibi şık ve zarif köşeler */
  padding: 0;
  overflow: hidden;
  box-shadow: none !important;
}

.mac-window-header {
  background: linear-gradient(180deg, #fdfdfd 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.mac-dots {
  display: flex;
  gap: 8px;
}

.mac-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.mac-dots span:nth-child(1) {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.mac-dots span:nth-child(2) {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.mac-dots span:nth-child(3) {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.mac-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.ps-software-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px 32px;
}


/* Kayan Kod Arka Planı (Aydınlık Tema için Çok Silik) */

@keyframes code-scroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(400px);
  }
}

.ps-software-content {
  position: relative;
  z-index: 2;
}

.ps-software-showcase .ps-lane__title {
  color: #0f172a;
}

/* Kart animasyonları (Konteyner içi) */
.ps-software-showcase .ps-card {
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
}

.ps-software-showcase .ps-card:hover {
  transform: translateY(-8px);
}

/* Yazılım kartı — sade (çerçeve/bezel denemesi kaldırıldı, beğenilmedi) */

@media (max-width: 768px) {
  /* Mac pencere metaforu bozulmasın: dış kutu flush kalır (padding=0),
     iç boşluk yalnızca .ps-software-content'ten gelir. */
  .ps-software-showcase {
    padding: 0;
    border-radius: 14px;
  }
}


/* Yön Okları (Navigation Arrows) */
.ps-lane__header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ps-lane__header-wrapper .ps-lane__title {
  margin-bottom: 0;
}

.ps-lane__nav {
  display: flex;
  gap: 8px;
}

.ps-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  outline: none;
}

.ps-nav-btn:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  transform: scale(1.05);
}

.ps-nav-btn svg {
  width: 18px;
  height: 18px;
}





.ps-card__media {
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.ps-code-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transform: rotate(-1deg) scale(1.05);
  /* Şık bir eğim (tilt) */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.code-flow-lane {
  display: flex;
  white-space: nowrap;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
  width: max-content;
  opacity: 0.25;
}

.code-flow-lane-1 {
  animation: code-marquee-left 45s linear infinite;
  color: #0e9faa;
  opacity: 0.15;
}

.code-flow-lane-2 {
  animation: code-marquee-right 35s linear infinite;
}

.code-flow-lane-3 {
  animation: code-marquee-left 55s linear infinite;
  font-size: 0.85rem;
}

.code-flow-lane-4 {
  animation: code-marquee-right 40s linear infinite;
  opacity: 0.2;
}

@keyframes code-marquee-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes code-marquee-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* --- PREMIUM MODAL TASARIMI --- */
.ps-modal--premium {
  max-width: 720px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

.ps-modal__close {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #334155 !important;
  cursor: pointer !important;
  z-index: 100 !important;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.ps-modal__close:hover {
  background: #fff !important;
  transform: scale(1.1) !important;
  color: #ef4444 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.ps-modal__header-area {
  position: relative;
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.ps-modal__header-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Kapak görseli, kendi bulanıklaştırılmış büyütülmüş kopyası üzerinde yüzen,
   gölgeli bir "çerçeve" olarak gösterilir — küçük/kare görseller de dolgun görünür,
   hiçbir oranda kırpılma olmaz. */
.ps-modal__media-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.15) brightness(0.92);
  transform: scale(1.15);
  z-index: 0;
}

.ps-modal__cover {
  position: relative;
  z-index: 2;
  max-width: 76%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 56px rgba(10, 37, 64, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.ps-modal__icon-cover {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  color: #0e9faa;
  transform: translateY(15px);
}

.ps-modal__icon-cover svg {
  width: 48px;
  height: 48px;
}

.ps-modal__body-premium {
  padding: 28px 32px 32px;
  text-align: left;
}

.ps-modal__tags-premium {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ps-modal__tags-premium span {
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid #e2e8f0;
}

.ps-modal__tag--lead {
  background: rgba(14, 159, 170, 0.08) !important;
  color: #0d9488 !important;
  border-color: rgba(14, 159, 170, 0.18) !important;
}

/* Kurum vurgusuna göre modal başlık alanı, öncü etiket ve vurgu rengi */
.ps-modal--tubitak .ps-modal__header-area {
  background: linear-gradient(135deg, #fdeceb 0%, #f8d0cd 100%);
}

.ps-modal--tubitak .ps-modal__icon-cover {
  color: #e30a17;
}

.ps-modal--tubitak .ps-modal__tag--lead {
  background: rgba(227, 10, 23, .08) !important;
  color: #e30a17 !important;
  border-color: rgba(227, 10, 23, .18) !important;
}

.ps-modal--tubitak .ps-modal__outcome-premium {
  border-left-color: #e30a17;
}

.ps-modal--tubitak .ps-modal__outcome-premium strong {
  color: #e30a17;
}

.ps-modal--kosgeb .ps-modal__header-area {
  background: linear-gradient(135deg, #eaf2fb 0%, #cfe3f7 100%);
}

.ps-modal--kosgeb .ps-modal__icon-cover {
  color: #0054a6;
}

.ps-modal--kosgeb .ps-modal__tag--lead {
  background: rgba(0, 84, 166, .08) !important;
  color: #0054a6 !important;
  border-color: rgba(0, 84, 166, .18) !important;
}

.ps-modal--kosgeb .ps-modal__outcome-premium {
  border-left-color: #0054a6;
}

.ps-modal--kosgeb .ps-modal__outcome-premium strong {
  color: #0054a6;
}

.ps-modal--ab .ps-modal__header-area {
  background: linear-gradient(135deg, #eaecf8 0%, #d2d7f0 100%);
}

.ps-modal--ab .ps-modal__icon-cover {
  color: #003399;
}

.ps-modal--ab .ps-modal__tag--lead {
  background: rgba(0, 51, 153, .08) !important;
  color: #003399 !important;
  border-color: rgba(0, 51, 153, .18) !important;
}

.ps-modal--ab .ps-modal__outcome-premium {
  border-left-color: #003399;
}

.ps-modal--ab .ps-modal__outcome-premium strong {
  color: #003399;
}

.ps-modal--gold .ps-modal__header-area {
  background: linear-gradient(135deg, #faf5e8 0%, #f0e3c4 100%);
}

.ps-modal--gold .ps-modal__icon-cover {
  color: #8a6408;
}

.ps-modal--gold .ps-modal__tag--lead {
  background: rgba(138, 100, 8, .08) !important;
  color: #8a6408 !important;
  border-color: rgba(138, 100, 8, .18) !important;
}

.ps-modal--gold .ps-modal__outcome-premium {
  border-left-color: #8a6408;
}

.ps-modal--gold .ps-modal__outcome-premium strong {
  color: #8a6408;
}

/* Kurum & Çağrı — başlığın üstünde sade, küçük bir eyebrow metni (kutu/rozet yok) */
.ps-modal__headline {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0d9488;
  margin-bottom: 6px;
}

.ps-modal--tubitak .ps-modal__headline { color: #e30a17; }
.ps-modal--kosgeb .ps-modal__headline  { color: #0054a6; }
.ps-modal--ab .ps-modal__headline      { color: #003399; }
.ps-modal--gold .ps-modal__headline    { color: #8a6408; }

.ps-modal__headline--empty {
  opacity: 0.5;
}

.ps-modal__title-premium {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* Meta şeridi — proje no, bütçe, süre, aşama. Kutu/ikon yok, ince ayraçlarla
   bölünmüş sade bir istatistik satırı; boş alanlar soluk "—" ile gösterilir. */
.ps-modal__meta-grid {
  display: none;
  flex-wrap: wrap;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  margin-bottom: 18px;
}

.ps-modal__meta-item {
  flex: 1 1 120px;
  padding: 10px 16px 10px 0;
  margin-right: 16px;
  border-right: 1px solid #edf1f6;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ps-modal__meta-item:last-child {
  border-right: none;
  margin-right: 0;
}

.ps-modal__meta-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.ps-modal__meta-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.ps-modal__meta-value--empty {
  color: #cbd5e1;
  font-weight: 500;
}

.ps-modal__desc-premium {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 22px;
}

.ps-modal__outcome-premium {
  background: #f8fafc;
  border-left: 4px solid #0d9488;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ps-modal__outcome-premium strong {
  display: block;
  margin-bottom: 6px;
  color: #0d9488;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ps-modal__action-area {
  display: flex;
  justify-content: flex-start;
}

.ps-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #fff;
  padding: 11px 24px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.ps-modal__btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.ps-modal__btn:hover {
  background: #0e9faa;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(14, 159, 170, 0.3);
}

.ps-modal__btn:hover svg {
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .ps-modal__body-premium {
    padding: 32px 24px;
  }

  .ps-modal__title-premium {
    font-size: 1.15rem;
  }

  .ps-modal__header-area {
    height: 220px;
  }

  .ps-modal__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   Ar-Ge & Teşvik Dosyası — resmi başvuru evrakı estetiği
   (Yazılım kulvarının "kod penceresi" kimliğinden bilinçli olarak
   ayrışır: devlet destekli Ar-Ge süreci somut evrak/damga diliyle
   anlatılır — 1501/1507/1711/KOSGEB gerçek çağrı kodları üzerinden.)
   ══════════════════════════════════════════════════════════════ */

.ps-software-showcase--arge {
  background: #ffffff;
}

/* Başlık şeridi — yazılım kulvarıyla aynı nötr cam bandı (kurumsal kırmızı yalnızca
   gerçek TÜBİTAK projelerinde kart/mühür seviyesinde anlamlıdır, kulvar genelinde değil) */
.ps-software-showcase--arge .mac-title {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

/* Cetvel kağıdı dokusu — teknik ek/form hissi */
.ps-software-showcase--arge .ps-code-bg {
  background-image:
    repeating-linear-gradient(0deg, rgba(10, 37, 64, 0.05) 0, rgba(10, 37, 64, 0.05) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(10, 37, 64, 0.035) 0, rgba(10, 37, 64, 0.035) 1px, transparent 1px, transparent 28px);
  transform: none;
  mask-image: linear-gradient(to bottom, black, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, black 70%, transparent);
}

.ps-code-bg--arge .code-flow-lane {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.ps-code-bg--arge .code-flow-lane-1 {
  color: #0a2540;
  opacity: 0.1;
}

.ps-code-bg--arge .code-flow-lane-2 {
  color: #0a2540;
  opacity: 0.08;
}

/* Dosya kartı — kitap kapağı: sol sırt (kurum rengi) + sağda sayfa yığını + mühür */
.ps-software-showcase--arge .ps-card--dossier {
  background: #ffffff;
  border-color: #e2e8f0;
  border-radius: 12px 6px 6px 12px;
  padding-left: 22px;
  margin-right: 16px;
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.08),
    3px 4px 0 -1px #ffffff,
    3px 4px 0 0 #e2e8f0,
    6px 8px 0 -1px #f8fafc,
    6px 8px 0 0 #cbd5e1;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s cubic-bezier(.2, .8, .2, 1), border-color .4s;
}

/* Cilt sırtı — kurum rengi + zımba deliği hissi veren düz noktalar (spiral yok, sade delik) */
.ps-card--dossier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  border-radius: 12px 0 0 12px;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .92) 2.4px, transparent 2.6px),
    linear-gradient(90deg, rgba(255, 255, 255, .25) 0%, rgba(0, 0, 0, .2) 100%);
  background-repeat: repeat-y, no-repeat;
  background-size: 100% 26px, 100% 100%;
  background-position: center 13px, 0 0;
  box-shadow: inset 1.5px 0 0 rgba(255, 255, 255, .4), inset -1px 0 0 rgba(0, 0, 0, .15);
  z-index: 6;
}

.ps-card--tubitak.ps-card--dossier::before { background-color: #e30a17; }
.ps-card--kosgeb.ps-card--dossier::before  { background-color: #0054a6; }
.ps-card--ab.ps-card--dossier::before      { background-color: #003399; }
.ps-card--gold.ps-card--dossier::before    { background-color: #8a6408; }

.ps-software-showcase--arge .ps-card--dossier:hover {
  border-color: #cbd5e1;
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.15),
    4px 6px 0 -1px #ffffff,
    4px 6px 0 0 #cbd5e1,
    8px 12px 0 -1px #f8fafc,
    8px 12px 0 0 #94a3b8;
}

/* Not: backdrop-filter + rotate transform birlikte kullanılınca hover sırasında
   mühür bulanıklaşıyordu (tarayıcı blur+transform birleşimini net render edemiyor).
   Katı arka plan + sabit açı kullanıyoruz, sadece hafif büyüme animasyonu var. */
.ps-card__stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 12;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  background: #ffffff;
  line-height: 1.05;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ps-card--dossier:hover .ps-card__stamp {
  transform: rotate(-12deg) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.ps-card__stamp-code {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ps-card__stamp-inst {
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ps-card--tubitak .ps-card__stamp {
  color: #e30a17;
}

.ps-card--kosgeb .ps-card__stamp {
  color: #0054a6;
}

.ps-card--ab .ps-card__stamp {
  color: #003399;
}

.ps-card--gold .ps-card__stamp {
  color: #8a6408;
}

.ps-software-showcase--arge .ps-card--dossier .ps-card__title {
  margin-top: 4px;
}

/* Çağrı bilgisi — kapaklı/kapaksız her kartta AYNI konumda, TEK SATIR (taşarsa üç nokta) */
.ps-card__eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 6px 8px;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 12px);
}
.ps-card__eyebrow--tubitak { color: #e30a17; }
.ps-card__eyebrow--kosgeb  { color: #0054a6; }
.ps-card__eyebrow--ab      { color: #003399; }
.ps-card__eyebrow--gold    { color: #8a6408; }
.ps-card__eyebrow--teal    { color: #0e9faa; }

/* Teknoloji etiketleri — gerçek proje verisi (admin panelden) varsa görünür */
.ps-card__tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.ps-card__tech-chip {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0a6b73;
  background: rgba(14, 159, 170, 0.08);
  border: 1px solid rgba(14, 159, 170, 0.2);
  border-radius: 5px;
  padding: 3px 8px;
}

/* Aşama — kartın en altında, sade renkli metin (rozet değil) */
.ps-card__stage-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.ps-card__stage-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.ps-card__stage-line--degerlendirme { color: #92700c; }
.ps-card__stage-line--destekleniyor { color: #1d4ed8; }
.ps-card__stage-line--tamamlandi    { color: #047857; }

/* Aksiyon çizgisi — perfore kesim uçları */
.ps-software-showcase--arge .ps-card--dossier .ps-card__action {
  position: relative;
}

.ps-software-showcase--arge .ps-card--dossier .ps-card__action::before,
.ps-software-showcase--arge .ps-card--dossier .ps-card__action::after {
  content: '';
  position: absolute;
  top: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #edf1f6;
}

.ps-software-showcase--arge .ps-card--dossier .ps-card__action::before {
  left: -4px;
}

.ps-software-showcase--arge .ps-card--dossier .ps-card__action::after {
  right: -4px;
}

@media (max-width: 560px) {
  .ps-card__stamp {
    width: 46px;
    height: 46px;
    top: 10px;
    right: 12px;
  }

  .ps-card__stamp-code {
    font-size: 0.62rem;
  }

  .ps-card__stamp-inst {
    font-size: 0.4rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   Ar-Ge & Teşvik — kurum bazlı portföy panelleri
   ══════════════════════════════════════════════════════════════ */
.ps-arge-showcase__sub {
  margin: -12px 0 24px 8px;
  color: #5a6f86;
  font-size: .88rem;
}

.ps-inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

.ps-inst-panel {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px -18px rgba(10, 37, 64, .16);
  opacity: 0;
  animation: ps-inst-in .5s cubic-bezier(.2, .7, .2, 1) forwards;
}

.ps-inst-grid .ps-inst-panel:nth-child(1) {
  animation-delay: .05s;
}

.ps-inst-grid .ps-inst-panel:nth-child(2) {
  animation-delay: .15s;
}

.ps-inst-grid .ps-inst-panel:nth-child(3) {
  animation-delay: .25s;
}

.ps-inst-grid .ps-inst-panel:nth-child(4) {
  animation-delay: .35s;
}

@keyframes ps-inst-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ps-inst-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 20px;
  color: #fff;
}

.ps-inst-panel__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.ps-inst-panel__sub {
  display: block;
  margin-top: 3px;
  font-size: .76rem;
  color: rgba(255, 255, 255, .78);
}

.ps-inst-panel__count {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  font-size: 1.1rem;
  font-weight: 800;
}

.ps-inst-panel--tubitak .ps-inst-panel__head {
  background: linear-gradient(135deg, #e30a17, #a80410);
}

.ps-inst-panel--kosgeb .ps-inst-panel__head {
  background: linear-gradient(135deg, #0068cc, #003d7a);
}

.ps-inst-panel--ab .ps-inst-panel__head {
  background: linear-gradient(135deg, #003399, #001e5c);
}

.ps-inst-panel--gold .ps-inst-panel__head {
  background: linear-gradient(135deg, #b8860b, #8a6408);
}

.ps-inst-panel__list {
  display: flex;
  flex-direction: column;
}

.ps-inst-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 22px;
  border: none;
  border-bottom: 1px solid #eef1f5;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, padding-left .15s ease;
}

.ps-inst-panel__list .ps-inst-item:last-child {
  border-bottom: none;
}

.ps-inst-item__title {
  color: #1c2733;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
}

.ps-inst-item__sector {
  flex-shrink: 0;
  color: #8a94a3;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.ps-inst-panel--tubitak .ps-inst-item:hover {
  background: #e30a1709;
  padding-left: 26px;
}

.ps-inst-panel--kosgeb .ps-inst-item:hover {
  background: #0068cc09;
  padding-left: 26px;
}

.ps-inst-panel--ab .ps-inst-item:hover {
  background: #00339909;
  padding-left: 26px;
}

.ps-inst-panel--gold .ps-inst-item:hover {
  background: #b8860b09;
  padding-left: 26px;
}

.ps-inst-panel--tubitak .ps-inst-item:hover .ps-inst-item__title {
  color: #e30a17;
}

.ps-inst-panel--kosgeb .ps-inst-item:hover .ps-inst-item__title {
  color: #0068cc;
}

.ps-inst-panel--ab .ps-inst-item:hover .ps-inst-item__title {
  color: #003399;
}

.ps-inst-panel--gold .ps-inst-item:hover .ps-inst-item__title {
  color: #b8860b;
}


/* --- ARCHIVE PAGE STYLES (Tabs, Filters, Grid) --- */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ps-tabs {
  margin-top: 48px;
}

.ps-tabs__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 99px;
  width: max-content;
  margin: 0 auto 40px auto;
}

.ps-tabs__trigger {
  padding: 12px 24px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
}

.ps-tabs__trigger.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ps-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.ps-filter-chip {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ps-filter-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ps-filter-chip.is-active {
  background: #0e9faa;
  color: #fff;
  border-color: #0e9faa;
  box-shadow: 0 4px 12px rgba(14, 159, 170, 0.2);
}

.ps-filter-row--arge .ps-filter-chip.is-active {
  background: #b8860b;
  border-color: #b8860b;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.ps-tabs__panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.ps-tabs__panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ps-lane-label {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  margin-bottom: 32px;
}

.ps-lane-label--sw {
  background: #e0f2fe;
  color: #0284c7;
}

.ps-lane-label--arge {
  background: #fef08a;
  color: #854d0e;
}

/* ══════════════════════════════════════════════════════════════
   MOBİL — Projelerimiz vitrini (≤640px)
   Sorunlar: mac-header başlığı ok butonlarıyla çakışıyordu, kod arka
   planı kartın etrafından sızıyordu, iç boşluk fazlaydı, kartlar
   ekrana sığmayıp "kaydırılabilir" ipucu vermiyordu.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Ok butonları — mobilde kaydırma/swipe yeterli, gizle */
  .ps-lane__nav { display: none; }

  /* Mac pencere başlığı: absolute-ortalı yerine dots'un yanında,
     tek satır, taşarsa üç nokta — böylece çakışma biter */
  .mac-window-header {
    height: 42px;
    padding: 0 14px;
    gap: 10px;
  }
  .mac-title {
    position: static;
    left: auto;
    transform: none;
    text-align: left;
    flex: 1;
    min-width: 0;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* İç boşluk azalt */
  .ps-software-content { padding: 24px 14px 20px; }

  /* Kod arka planı sızıntısını sönümle */
  .ps-code-bg { opacity: .45; }

  /* Kart track: kaydırma ipucu için sonraki karttan bir tutam görünsün.
     NOT: Yalnızca carousel (.ps-track) içindeki kartlar daraltılır —
     çıplak .ps-card seçicisi /projeler grid'ine sızıp kartları 320px'e
     sabitleyip sola yaslıyordu. */
  .ps-track {
    gap: 16px;
    padding: 14px 14px 16px;
    margin: 0 -14px;
  }
  .ps-track .ps-card {
    flex: 0 0 84%;
    max-width: 320px;
  }

  .ps-card__body { padding: 20px 18px; min-height: 0; }
  .ps-card__media { height: 150px; }
  .ps-card__title { font-size: 1rem; height: auto; }
  .ps-card__number--dossier { top: auto; bottom: 12px; }
  .ps-lane__title { font-size: 1rem; padding-left: 4px; }

  /* Ar-Ge kitap kartı: sağ margin yığın gölgesi mobilde taşmasın */
  .ps-software-showcase--arge .ps-card--dossier { margin-right: 10px; }
}

@media (max-width: 400px) {
  .ps-track .ps-card { flex: 0 0 88%; }
  .ps-card__media { height: 138px; }
}
