@import url("/assets/css/base/tokens.css");

body {
  background: #fff;
  color: var(--partners-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== HERO (Referanslar ile birebir) ===== */
.p-hero {
  position: relative;
  background: linear-gradient(160deg, #002237 0%, #004080 100%);
  color: #eaf6ff;
  padding: 120px 0 110px;
  text-align: center;
  overflow: hidden;
}
.p-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 12px;
}
.p-hero .lead {
  font-size: 18px;
  color: #bed4e6;
  max-width: 760px;
  margin: 0 auto;
}
.p-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 90px;
  background: #fff;
  clip-path: polygon(0 65%, 100% 0, 100% 100%, 0% 100%);
}

/* ===== GRID ===== */
.partners-wrap {
  padding: 28px 0 64px;
}
.partners-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start;
}

/* ===== KART (Referans kartıyla aynı estetik) ===== */
.p-card {
  border: 1px solid var(--partners-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.p-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(30, 136, 229, 0.12);
  border-color: rgba(30, 136, 229, 0.35);
}

/* Üst görsel */
.p-img {
  position: relative;
  overflow: hidden;
  background: #f3f6fa;
  aspect-ratio: 16/10;
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.p-card:hover .p-img img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* Hover overlay */
.p-ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  color: #fff;
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(0, 34, 55, 0.15) 0%,
    rgba(0, 34, 55, 0.85) 100%
  );
  opacity: 0;
  transition: 0.28s ease;
}
.p-card:hover .p-ov {
  opacity: 1;
}
.p-ov h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}
.p-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.p-actions .btn {
  border-radius: 28px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}
.p-actions .btn:hover {
  background: var(--partners-brand);
  border-color: var(--partners-brand);
  color: #fff;
}

/* Alt içerik */
.p-body {
  padding: 18px 18px 6px;
}
.p-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f2433;
  margin: 0 0 10px;
}

/* Proje özeti gibi: sadece 1 satır göster (… ile) */
.p-summary {
  padding: 0 18px 18px;
  margin: 0;
}
.p-summary h5 {
  font-size: 14px;
  color: #345;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.p-summary p {
  margin: 6px 0;
  color: #334;
  line-height: 1.45;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

@media (max-width: 480px) {
  .p-ov h3 {
    font-size: 18px;
  }
  .p-title {
    font-size: 18px;
  }
}
