/* ── Teacher Carousel ── */

.cs-tc {
  --cs-tc-card-border-color: #dbe4f8;
  --cs-tc-card-radius: 24px;
  --cs-tc-name-bg: #1a43b8;
  --cs-tc-name-color: #ffffff;
  padding: 0;
}

/* ── Swiper container ── */

.cs-tc__swiper {
  position: relative;
  overflow: hidden;
  padding: 8px 8px 28px;
}

.cs-tc__swiper .swiper-wrapper {
  align-items: stretch;
  padding: 6px 0 18px;
}

.cs-tc__swiper .swiper-slide {
  display: flex;
  height: auto;
  overflow: unset;
}

.cs-tc__swiper .swiper-pagination {
  position: relative;
  margin-top: 30px;
  text-align: left;
}

.cs-tc__swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #d1d5db;
  opacity: 1;
  transition: 0.3s;
}

.cs-tc__swiper .swiper-pagination-bullet-active {
  background: #1a37ae;
  transform: scale(1.3);
}

/* ── Card ── */

.cs-tc__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 8px;
  border-radius: var(--cs-tc-card-radius) !important;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 46, 127, 0.1) !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cs-tc__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(15, 46, 127, 0.16);
}

.cs-tc__card:focus-visible {
  outline: 3px solid rgba(26, 55, 174, 0.2);
  outline-offset: 4px;
}

/* ── Image ── */

.cs-tc__media {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b49c4 0%, #86eef1 100%);
}

.cs-tc__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.18;
}

.cs-tc__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── Info block ── */

.cs-tc__body {
  flex: 1;
  padding: 14px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-tc__name {
  margin-bottom: 0 !important;
  padding: 11px 14px;
  border-radius: 0 10px 10px 0;
  background: var(--cs-tc-name-bg);
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--cs-tc-name-color) !important;
  line-height: 1.25;
  margin-left: -14px;
}

.cs-tc__subjects {
  margin: 0;
  margin-bottom: 0 !important;
  font-size: 16px !important;
  font-weight: 700;
  color: #1840b2;
  line-height: 1.4;
}

#content .cs-tc__highlight p {
  font-size: 16px !important;
  font-weight: 400;
  color: #4a5775;
  line-height: 1.55;
}

.cs-tc__highlight p,
.cs-tc__highlight ul,
.cs-tc__highlight ol {
  margin: 0;
}

.cs-tc__highlight p + p,
.cs-tc__highlight p + ul,
.cs-tc__highlight ul + p,
.cs-tc__highlight li + li {
  margin-top: 8px;
}

.cs-tc__highlight ul,
.cs-tc__highlight ol {
  padding-left: 18px;
}

@media (max-width: 767px) {
  .cs-tc__swiper {
    padding-inline: 0;
  }

  .cs-tc__card {
    border-radius: 20px;
    padding: 10px;
  }

  .cs-tc__name {
    font-size: 0.95rem;
  }

  .cs-tc__subjects,
  .cs-tc__highlight {
    font-size: 0.88rem;
  }
}
