/* ABOUT: LEADERSHIP SECTION */
.about-leadership {
  position: relative;
  padding: 80px 0 96px;
}

.about-leadership .page__content {
  position: relative;
  z-index: 1;
  background: transparent !important;
  padding-top: 0;
  padding-bottom: 0;
}

.about-leadership__header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.about-leadership .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.about-leadership .section-title {
  margin-bottom: 8px;
  color: #ffffff;
}

.about-leadership .section-subtitle {
  opacity: 0.9;
  color: rgba(226, 232, 240, 0.95);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .page-team-grid .about-leadership {
    padding-top: 56px;
  }

  .page-team-grid .about-leadership__header {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    margin-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .page-team-grid .about-leadership {
    padding-top: 44px;
  }

  .page-team-grid .about-leadership__header {
    position: relative;
    z-index: 2;
    margin-top: -20px;
    margin-bottom: 24px;
  }
}

/* =========================================
   LEADERSHIP GRID (desktop 3 / tablet 2 / mob 1)
   Wrapper: .leadership-grid
   ========================================= */

.about-leadership .leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 24px 42px 88px;
  max-width: 1200px;
  margin: 0 auto;
}

/* TABLET: 2 */
@media (max-width: 1024px) {
  .about-leadership .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px 16px 88px;
  }
}

/* MOBILE: 1 */
@media (max-width: 767px) {
  .about-leadership .leadership-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px 88px;
  }
}

/* Hidden cards for load more functionality */
.team-card-hidden {
  display: none;
}

/* Load More Button */
.about-leadership__load-more {
  text-align: center;
  margin-top: 32px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.75);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.load-more-btn:hover {
  background: linear-gradient(90deg, #f39222, #ffd27a);
  color: #0b1120;
  border-color: #f39222;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.load-more-btn:disabled:hover {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.75);
  box-shadow: none;
}

/* =========================================
   LEAD CARD – GLASSMORPHISM + RECTANGULAR IMAGE TOP
   (OSTAVLJENO KAKO JE)
   ========================================= */
.lead-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(243, 146, 34, 0.18), transparent 55%),
    radial-gradient(
      circle at 100% 100%,
      rgba(96, 165, 250, 0.18),
      transparent 55%
    ),
    rgba(4, 7, 22, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(0) scale(1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.lead-card__overlay-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 5;
  background: transparent;
  text-indent: -9999px;
}

.lead-card__overlay-link:focus-visible {
  outline: 2px solid #f39222;
  border-radius: inherit;
  outline-offset: 3px;
}

.lead-card__image {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.lead-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  border-radius: 0;
  margin: 0;
  box-shadow: none;
  position: absolute;
  inset: 0;

  transition:
    filter 0.45s ease,
    transform 0.45s ease,
    opacity 0.45s ease;
}

.lead-card__img--default {
  filter: grayscale(100%);
  transform: scale(1.05);
  opacity: 0.95;
  z-index: 1;
}

.lead-card__img--hover {
  filter: none;
  transform: scale(1.02);
  opacity: 0;
  z-index: 2;
}

.lead-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.25),
    rgba(15, 23, 42, 0.9)
  );
  pointer-events: none;
  z-index: 3;
}

.lead-card__inner {
  position: relative;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
}

.lead-card__avatar {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #f39222, #b45309);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(243, 146, 34, 0.9);
  animation: leadership-avatar-pulse 3s ease-in-out infinite;
  z-index: 5;
}

.lead-card__initials {
  display: inline-block;
}

.lead-card__content {
  margin-top: 24px;
  text-align: left;
  color: #e5e7eb;
}

.lead-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.lead-card__role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 10px;
}

.lead-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-card__tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.lead-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.9);
  border-color: rgba(248, 250, 252, 0.8);
}

.lead-card:hover .lead-card__img--default {
  opacity: 0;
  transform: scale(1.12);
}

.lead-card:hover .lead-card__img--hover {
  opacity: 1;
  transform: scale(1.08);
}

.about-leadership__cta {
  margin-top: 32px;
  text-align: center;
}

.about-leadership__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.75);
  color: #ffffff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.85);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.about-leadership__cta-link:hover {
  background: linear-gradient(90deg, #f39222, #ffd27a);
  color: #0b1120;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
}

@keyframes leadership-avatar-pulse {
  0% {
    box-shadow: 0 0 0 rgba(243, 146, 34, 0);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow: 0 0 28px rgba(243, 146, 34, 0.9);
    transform: translateX(-50%) scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 rgba(243, 146, 34, 0);
    transform: translateX(-50%) scale(1);
  }
}

/* =========================================
   TEAM TICKER — infinite horizontal auto-scroll
   ========================================= */

.team-ticker {
  overflow: hidden;
  padding: 48px 0 64px;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* tablet */
@media (max-width: 1024px) {
  .team-ticker {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%
    );
  }
}

/* mobile */
@media (max-width: 767px) {
  .team-ticker {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 3%,
      black 97%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 3%,
      black 97%,
      transparent 100%
    );
  }
}

.team-ticker__track {
  display: flex;
  gap: 28px;
  animation: teamTickerScroll 120s linear infinite;
  width: max-content;
  will-change: transform;
}

.team-ticker--paused .team-ticker__track {
  animation-play-state: paused;
}

@keyframes teamTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* card override — fixed width so carousel stays uniform */
.team-ticker .lead-card {
  width: 300px;
  flex-shrink: 0;
  height: auto;
  /* neutralise the fade-in animation added by s2-team-grid.js */
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.team-ticker .lead-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
}

.team-ticker .lead-card__role {
  font-family: "Hind", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
  color: var(--services-text-secondary);
  margin-bottom: 0;
}

/* tablet */
@media (max-width: 1024px) {
  .team-ticker .lead-card {
    width: 260px;
  }
}

/* mobile */
@media (max-width: 767px) {
  .team-ticker .lead-card {
    width: 220px;
  }
  .team-ticker__track {
    gap: 16px;
  }
}
