/* =====================================================
   Team Slideshow — team-slideshow.css
   Aesthetic: Editorial / Magazine — refined & geometric
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

/* ---------- Reset & Container ---------- */
.ts-slideshow *,
.ts-slideshow *::before,
.ts-slideshow *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ts-slideshow {
  --ts-radius: 20px;
  --ts-transition: 800ms cubic-bezier(0.65, 0, 0.35, 1);
  --ts-font-title: 'Cormorant Garamond', Georgia, serif;
  --ts-font-body:  'DM Sans', system-ui, sans-serif;
  --ts-brand-yellow: #ffad0b;
  --ts-brand-blue:   #01316F;

  position: relative;
  width: 100%;
  max-width: 100%; 
  margin: 40px auto;
  font-family: var(--ts-font-body);
  user-select: none;
  overflow: hidden;
}

/* ---------- Theme Overrides ---------- */
.ts-theme-dark, .ts-theme-light {
}

/* ---------- Alternating Card Colors ---------- */
.ts-card-color-0 {
  --ts-card-bg:     var(--ts-brand-yellow);
  --ts-name-color:  #01316F;
  --ts-pos-color:   rgba(1, 49, 111, 0.7);
  --ts-accent:      #01316F;
  --ts-overlay:     linear-gradient(to top, rgba(255, 197, 11, 1) 0%, rgba(255, 197, 11, 0.3) 60%, transparent 100%);
}

.ts-card-color-1 {
  --ts-card-bg:     var(--ts-brand-blue);
  --ts-name-color:  #FFFFFF;
  --ts-pos-color:   rgba(255, 255, 255, 0.75);
  --ts-accent:      #ffad0b;
  --ts-overlay:     linear-gradient(to top, rgba(1, 49, 111, 1) 0%, rgba(1, 49, 111, 0.3) 60%, transparent 100%);
}

/* ---------- Track & Slide ---------- */
.ts-track {
  display: flex;
  position: relative;
  transition: transform var(--ts-transition);
  will-change: transform;
  gap: 20px; /* Space between slides */
  padding-bottom: 10px;
}

.ts-slide {
  flex: 0 0 calc((100% - 40px) / 3); /* Responsive 3 items subtraction for gaps */
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.ts-slide.ts-active {
  /* No special scale/opacity needed as per user request */
}

/* ---------- Card ---------- */
.ts-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ts-card-bg);
  border-radius: var(--ts-radius);
  overflow: hidden;
  border: 1px solid var(--ts-border);
  box-shadow: 0 15px 45px -10px rgba(0,0,0,0.2);
}

/* ---------- Image ---------- */
.ts-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 14; /* Taller editorial look for the photo */
  overflow: hidden;
}

.ts-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.ts-slide.ts-active .ts-img-wrap img {
  transform: scale(1.06);
}

.ts-img-overlay {
  display: none; /* Removed as text is no longer overlaying the image */
}

/* ---------- Info Panel ---------- */
.ts-info {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  background: var(--ts-card-bg);
}



.ts-name {
  font-family: var(--ts-font-title);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 600;
  color: var(--ts-name-color);
  line-height: 1.15;
  letter-spacing: 0.01em;
  opacity: 1;
  transform: translateY(0);
}

.ts-position {
  font-family: var(--ts-font-body);
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  font-weight: 400;
  color: var(--ts-pos-color);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 1;
  transform: translateY(0);
}

/* Accent line on all items */
.ts-accent-line {
  width: 30px;
  height: 2px;
  background: var(--ts-accent);
  border-radius: 2px;
  margin-bottom: 10px;
  transform: scaleX(1);
}

/* ---------- Navigation Buttons ---------- */
.ts-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ts-border);
  background: var(--ts-btn-bg);
  color: var(--ts-btn-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 250ms ease, transform 250ms ease, border-color 250ms ease;
}

.ts-btn:hover {
  background: var(--ts-btn-hover);
  transform: translateY(-50%) scale(1.08);
  border-color: var(--ts-accent);
}

.ts-btn:focus-visible {
  outline: 2px solid var(--ts-accent);
  outline-offset: 3px;
}

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

.ts-prev { left: 16px; }
.ts-next { right: 16px; }

/* ---------- Dots ---------- */
.ts-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ts-dot);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 300ms ease, transform 300ms ease, width 300ms ease;
  flex-shrink: 0;
}

.ts-dot:hover {
  background: var(--ts-accent);
  transform: scale(1.3);
}

.ts-dot-active {
  background: var(--ts-accent) !important;
  width: 26px;
  border-radius: 4px;
}

/* ---------- Counter ---------- */
.ts-counter {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  font-family: var(--ts-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ts-counter);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ts-sep { opacity: 0.5; }

/* ---------- Progress Bar ---------- */
.ts-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ts-progress-bg);
  border-radius: 0 0 var(--ts-radius) var(--ts-radius);
  overflow: hidden;
  z-index: 10;
}

.ts-progress-fill {
  height: 100%;
  background: var(--ts-accent);
  width: 0%;
  transition: width linear;
  border-radius: 0 2px 2px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ts-slideshow { max-width: 800px; }
  .ts-slide { flex: 0 0 calc((100% - 20px) / 2); } /* 2 items */
}

@media (max-width: 650px) {
  .ts-slideshow { max-width: 450px; }
  .ts-slide { flex: 0 0 100%; } /* 1 item */
  .ts-info { padding: 22px 20px; }
  .ts-btn  { width: 38px; height: 38px; border-radius: 8px; }
  .ts-btn svg { width: 15px; height: 15px; }
  .ts-prev { left: 4px; }
  .ts-next { right: 4px; }
}

@media (min-width: 651px) {
  .ts-btn {
    top: 40%; /* Position higher relative to the card image */
  }
}

/* ---------- Global "Read More" Button ---------- */
.ts-read-more-wrap {
  text-align: center;
  margin-top: 50px;
  clear: both;
}

.ts-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  background: #01316F;
  color: #ffad0b;
  text-decoration: none;
  font-family: var(--ts-font-body);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 100px;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(1, 49, 111, 0.25);
  border: 2px solid transparent;
}

.ts-read-more-btn:hover {
  background: #ffad0b;
  color: #01316F;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(1, 49, 111, 0.35);
}

.ts-read-more-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 400ms ease;
}

.ts-read-more-btn:hover svg {
  transform: translateX(5px);
}

/* ---------- Member Link Wrapping ---------- */
.ts-member-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  z-index: 5;
  position: relative;
}

/* ---------- Placeholder (no featured image) ---------- */
.ts-img-wrap img[src$="placeholder.svg"] {
  object-fit: contain;
  padding: 40px;
  opacity: 0.3;
}
