/* ===== UĞURLARIMIZ — qəbul olunmuş tələbələr (interaktiv) ===== */
/* Sol: featured (272×365). Sağ: 2 üfüqi sürüşən cərgə (hər biri 10 thumbnail). */

.success-panel {
  padding: 0;            /* daxili boşluqlar head/body tərəfindən verilir (karusel bölmələri kimi) */
}

/* ---- Başlıq: tam en, mərkəzdə; "Hamısına bax" universitetlər bölməsi ilə eyni xətdə (60px sağ) ---- */
.success-head {
  position: relative;
  text-align: center;
  padding: 56px 60px 0;
}
.success-head h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.success-head p {
  margin: 0;
  color: rgba(26, 26, 77, 0.55);
  font-size: 1rem;
  text-align: center;
}
.success-head .success-sub strong { color: #5B4FCF; font-weight: 700; }

.success-all {
  position: absolute;
  right: 60px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5B4FCF;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.success-all:hover { gap: 11px; }

/* ---- Gövdə: featured (sol, sabit) + sürüşən sahə (sağ, kənara qədər) ---- */
.success-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 28px 0 60px 80px;     /* sol 80px (karusel kartları ilə düzülür); sağ 0 → kənara axır */
}

/* ---- LEFT: featured ---- */
.success-featured {
  display: grid;
  grid-template-columns: 272px minmax(0, 313px);
  gap: 30px;
  align-items: start;
  transition: opacity 0.25s ease;
}
.success-featured.is-fading { opacity: 0; }

.sf-photo {
  width: 272px;
  height: 365px;
  border-radius: 20px;
  overflow: hidden;
  background: #eceae3;
  box-shadow: 0 14px 34px rgba(26, 26, 77, 0.14);
}
.sf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sf-info { min-width: 0; }
.sf-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #1A1A4D;
  margin: 4px 0 6px;
  line-height: 1.12;
}
.sf-program { color: #5B4FCF; font-weight: 600; font-size: 1rem; margin: 0 0 12px; }
.sf-location {
  display: flex; align-items: center; gap: 7px;
  color: rgba(26, 26, 77, 0.6); font-size: 0.92rem; margin: 0 0 16px;
}
.sf-location svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.75; }
.sf-quote {
  color: rgba(26, 26, 77, 0.82);
  line-height: 1.65;
  font-size: 0.97rem;
  margin: 0 0 18px;
  text-align: left;
}
.sf-email {
  display: inline-flex; align-items: center; gap: 9px;
  color: rgba(26, 26, 77, 0.7); font-size: 0.92rem;
  text-decoration: none; transition: color 0.2s ease;
}
.sf-email:hover { color: #5B4FCF; }
.sf-email svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- E-poçt kopyalama düyməsi (boz → hover-də qradient) ---- */
.sf-email-row { display: inline-flex; align-items: center; gap: 10px; }
.email-copy {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border: none; padding: 0; cursor: pointer;
  background-color: #9aa0ad;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}
.email-copy:hover { background: var(--brand-gradient); transform: translateY(-1px); }
.email-copy.copied {
  background: var(--brand-gradient);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---- RIGHT: 2 üfüqi sürüşən cərgə ---- */
.success-scroller {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.success-row-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  clip-path: inset(-14px 0 -14px 0);     /* hover-qalxma + kölgəyə şaquli yer */
  cursor: grab;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.success-row-wrap::-webkit-scrollbar { display: none; }
.success-row-wrap.dragging { cursor: grabbing; scroll-behavior: auto; }
.success-row-wrap.dragging .success-thumb { pointer-events: none; }

.success-row {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 8px 60px 8px 0;     /* sağ 60px → sürüşmə sonunda son thumbnail kənardan əvvəl dayanır */
}

.success-thumb {
  position: relative;
  flex: 0 0 145px;
  width: 145px;
  aspect-ratio: 145 / 198;
  border-radius: 16px;
  cursor: pointer;
  padding: 6px;
  border: 2px solid transparent;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(26, 26, 77, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-user-drag: none;
  user-select: none;
}
.success-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 11px;
  pointer-events: none;
  -webkit-user-drag: none;
}
.success-thumb::after {
  content: '';
  position: absolute; inset: 6px; border-radius: 11px;
  background: linear-gradient(160deg, rgba(91, 79, 207, 0.5), rgba(139, 92, 246, 0.3));
  opacity: 0; transition: opacity 0.25s ease;
}
.success-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(26, 26, 77, 0.16); }
.success-thumb.active { border-color: #5B4FCF; box-shadow: 0 12px 26px rgba(91, 79, 207, 0.26); }
.success-thumb.active::after { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .success-head { padding: 48px 32px 0; }
  .success-all { right: 32px; }
  .success-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 0 48px 32px;
  }
  .success-featured { grid-template-columns: 272px minmax(0, 1fr); padding-right: 32px; }
  .success-row { padding-right: 32px; }
}
@media (max-width: 560px) {
  .success-head { padding: 40px 20px 0; text-align: center; }
  .success-all { position: static; display: inline-flex; margin-top: 12px; }
  .success-body { padding: 20px 0 40px 20px; gap: 24px; }
  .success-featured { grid-template-columns: 1fr; gap: 18px; justify-items: center; text-align: center; padding-right: 20px; }
  .sf-photo { width: 100%; max-width: 240px; height: auto; aspect-ratio: 272 / 365; }
  .sf-location, .sf-email { justify-content: center; }
  .sf-quote { text-align: center; }
  .success-row { padding-right: 20px; gap: 12px; }
}
