/* ==========================================================================
   TEZ SAVUNMALARI CAROUSEL
   lg-4 grid kolonu icin kompakt kart carousel
   ========================================================================== */

.td-carousel-wrapper {
  margin-bottom: 1.5rem;
}

/* --- Swiper container --- */
.td-swiper {
  overflow: hidden;
  position: relative;
}

.td-swiper .swiper-slide {
  height: auto;
}

/* --- Navigation arrows — foto dikey merkezine ortalanmis --- */
.td-nav {
  position: absolute;
  top: 110px;
  transform: translateY(-50%);
  z-index: 10;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e0e4ea;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.td-nav svg {
  width: 13px;
  height: 13px;
  color: #00194a;
}

.td-nav-prev {
  left: 6px;
}

.td-nav-next {
  right: 6px;
}

.td-carousel-wrapper:hover .td-nav {
  opacity: 1;
}

.td-nav:hover {
  background: #0076ff;
  border-color: #0076ff;
}

.td-nav:hover svg {
  color: #fff;
}

/* --- Pagination --- */
.td-pagination {
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
  gap: 0.25rem;
}

.td-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #c4c4c4;
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.td-pagination .swiper-pagination-bullet-active {
  background: #0076ff;
  width: 20px;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.td-card {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 1.25rem;
  height: 460px;
  display: flex;
  flex-direction: column;
}

/* --- Top row: badge + date --- */
.td-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.td-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.4;
}

.td-program--doktora .td-badge {
  background: #0076ff;
}

.td-program--yuksek_lisans .td-badge {
  background: #ff7276;
}

.td-date-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a6a7e;
}

/* --- Student --- */
.td-student {
  text-align: center;
  margin-bottom: 0.625rem;
}

.td-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e2e2e2;
  background: #f5f7fa;
  position: relative;
}

.td-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.td-photo .field,
.td-photo .field__item,
.td-photo .field__item > a,
.td-photo picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.td-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e2e2;
}

.td-photo-placeholder svg {
  width: 48px;
  height: 48px;
  color: #9aa5b4;
}

.td-program--doktora .td-photo {
  border-color: rgba(0, 118, 255, 0.3);
}

.td-program--yuksek_lisans .td-photo {
  border-color: rgba(255, 114, 118, 0.3);
}

.td-student-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #00194a;
  margin: 0;
  line-height: 1.3;
}

/* --- Divider --- */
.td-divider {
  height: 1px;
  background: #e2e2e2;
  margin: 0.5rem 0;
}

/* --- Thesis --- */
.td-thesis-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0076ff;
  margin: 0 0 0.25rem;
}

.td-thesis-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a2332;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Meta --- */
.td-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  border-top: 1px solid #e2e2e2;
  padding-top: 0.5rem;
}

.td-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.td-meta-label {
  color: #5a6a7e;
  flex-shrink: 0;
  font-weight: 500;
}

.td-meta-value {
  color: #1a2332;
  font-weight: 600;
}

.td-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #5a6a7e;
  position: relative;
  top: 1px;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

.dark-mode .td-card {
  background: #1e2a3a;
  border-color: #2d3d50;
}

.dark-mode .td-date-badge {
  color: #8a99ab;
}

.dark-mode .td-photo {
  border-color: #2d3d50;
  background: #253345;
}

.dark-mode .td-photo-placeholder {
  background: #253345;
}

.dark-mode .td-photo-placeholder svg {
  color: #4a5d73;
}

.dark-mode .td-student-name {
  color: #e0e6ed;
}

.dark-mode .td-divider {
  background: #2d3d50;
}

.dark-mode .td-meta {
  border-top-color: #2d3d50;
}

.dark-mode .td-thesis-title {
  color: #c8d1db;
}

.dark-mode .td-meta-label {
  color: #7a8a9e;
}

.dark-mode .td-meta-value {
  color: #c8d1db;
}

.dark-mode .td-icon {
  color: #7a8a9e;
}

.dark-mode .td-pagination .swiper-pagination-bullet {
  background: #3d4f63;
}

.dark-mode .td-pagination .swiper-pagination-bullet-active {
  background: #0076ff;
}

.dark-mode .td-nav {
  background: rgba(30, 42, 58, 0.92);
  border-color: #3d4f63;
}

.dark-mode .td-nav svg {
  color: #c8d1db;
}

.dark-mode .td-nav:hover {
  background: #0076ff;
  border-color: #0076ff;
}

.dark-mode .td-nav:hover svg {
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 575px) {
  .td-card {
    padding: 1rem;
    height: 440px;
  }

  .td-photo {
    width: 100px;
    height: 100px;
  }

  .td-nav {
    top: 100px;
  }
}
