/* ============================================================
   Anvaya Team Slider – Stylesheet
   v1.0.0 | anvayahealthcare.com
   ============================================================ */

/* ── CSS Variables (overridden per-widget via Elementor) ── */
.ats-root {
  --ats-primary:     #0B7396;
  --ats-accent:      #FF594D;
  --ats-card-bg:     #ffffff;
  --ats-section-bg:  #F4F9FB;
  --ats-card-radius: 20px;

  /* Derived */
  --ats-primary-10:  rgba(11, 115, 150, 0.10);
  --ats-primary-20:  rgba(11, 115, 150, 0.20);
  --ats-accent-10:   rgba(255, 89, 77, 0.10);
  --ats-text-dark:   #1a2535;
  --ats-text-mid:    #4a5568;
  --ats-text-light:  #718096;
  --ats-border:      #e8f1f5;

  font-family: 'Quicksand', 'Nunito Sans', sans-serif;
  background: var(--ats-section-bg);
  padding: 56px 24px;
  border-radius: 24px;
}

/* ── Section header ── */
.ats-header {
  text-align: center;
  margin-bottom: 40px;
}

.ats-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ats-primary);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.ats-section-subtitle {
  font-size: 1rem;
  color: var(--ats-text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Slider wrapper (positions nav buttons) ── */
.ats-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Nav buttons ── */
.ats-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ats-card-bg);
  border: 2px solid var(--ats-primary-20);
  color: var(--ats-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ats-prev { left: -22px; }
.ats-next { right: -22px; }

.ats-nav:hover {
  background: var(--ats-primary);
  border-color: var(--ats-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

/* ── Swiper overrides ── */
.ats-swiper {
  width: 100%;
  padding: 12px 4px 48px !important;
  overflow: hidden;
}

/* ── Dots ── */
.ats-dots.swiper-pagination {
  bottom: 0;
}
.ats-dots .swiper-pagination-bullet {
  background: var(--ats-primary-20);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: background 0.2s, width 0.2s;
  border-radius: 4px;
}
.ats-dots .swiper-pagination-bullet-active {
  background: var(--ats-primary);
  width: 22px;
}

/* ============================================================
   CARD
   ============================================================ */
.ats-card {
  background: var(--ats-card-bg);
  border-radius: var(--ats-card-radius);
  border: 1.5px solid var(--ats-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.ats-card:hover {
  transform: translateY(-5px);
}

/* Shadow variants */
.ats-shadow-none  { box-shadow: none; }
.ats-shadow-soft  { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.ats-shadow-none .ats-card:hover  { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.ats-shadow-medium { box-shadow: 0 4px 20px rgba(11,115,150,0.10); }
.ats-shadow-medium .ats-card:hover { box-shadow: 0 12px 36px rgba(11,115,150,0.18); }
.ats-shadow-strong { box-shadow: 0 8px 32px rgba(11,115,150,0.18); }
.ats-shadow-strong .ats-card:hover { box-shadow: 0 16px 48px rgba(11,115,150,0.28); }

/* ── Special badge ── */
.ats-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 180px;
  line-height: 1.3;
}
.ats-badge-icon { font-size: 0.75rem; }

/* ── Photo ── */
.ats-card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ats-primary-10), var(--ats-border));
  overflow: hidden;
}
.ats-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.ats-card:hover .ats-card-photo {
  transform: scale(1.04);
}

/* Availability dot indicators on photo */
.ats-avail-dots {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.ats-avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.ats-avail-dot.ats-online   { background: #22c55e; }
.ats-avail-dot.ats-inperson { background: var(--ats-primary); }

/* ── Card body ── */
.ats-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* ── Name + role ── */
.ats-card-meta { display: flex; flex-direction: column; gap: 4px; }

.ats-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ats-text-dark);
  margin: 0;
  line-height: 1.2;
}

.ats-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  width: fit-content;
  text-transform: uppercase;
}
.ats-role-psychiatrist  { background: var(--ats-primary-10); color: var(--ats-primary); }
.ats-role-clinical      { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }
.ats-role-counselling   { background: rgba(249, 115, 22, 0.10);  color: #c2410c; }
.ats-role-custom        { background: var(--ats-accent-10); color: var(--ats-accent); }

/* ── Info rows ── */
.ats-info-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ats-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ats-text-mid);
  line-height: 1.3;
}
.ats-info-icon { font-size: 0.9rem; flex-shrink: 0; }

/* ── Expertise tags ── */
.ats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ats-tag {
  background: var(--ats-primary-10);
  color: var(--ats-primary);
  border: 1px solid var(--ats-primary-20);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  transition: background 0.2s;
}
.ats-tag:hover {
  background: var(--ats-primary-20);
}

/* ── Availability pills ── */
.ats-avail-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ats-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  border: 1.5px solid;
}
.ats-pill-online   { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.ats-pill-inperson { color: var(--ats-primary); border-color: var(--ats-primary-20); background: var(--ats-primary-10); }

/* ── CTA row ── */
.ats-cta-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.ats-btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.ats-btn-outline {
  border: 2px solid var(--ats-primary);
  color: var(--ats-primary);
  background: transparent;
}
.ats-btn-outline:hover {
  background: var(--ats-primary);
  color: #fff;
}

.ats-btn-solid {
  background: var(--ats-accent);
  color: #fff;
  border: 2px solid var(--ats-accent);
}
.ats-btn-solid:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 89, 77, 0.35);
}

/* ============================================================
   HORIZONTAL LAYOUT
   ============================================================ */
.ats-layout-horizontal .ats-card {
  flex-direction: row;
}
.ats-layout-horizontal .ats-card-photo-wrap {
  width: 130px;
  min-width: 130px;
  aspect-ratio: unset;
  border-radius: 0;
}
.ats-layout-horizontal .ats-card-body {
  padding: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .ats-root { padding: 36px 12px; }
  .ats-prev { left: -16px; }
  .ats-next { right: -16px; }
  .ats-nav  { width: 36px; height: 36px; }
  .ats-layout-horizontal .ats-card { flex-direction: column; }
  .ats-layout-horizontal .ats-card-photo-wrap { width: 100%; min-width: unset; aspect-ratio: 4/3; }
}
