/* EaSee Team Carousel — standard responsive CSS */
.carousel {
  --carousel-width: 1020px;
  --slide-width: 270px;
  --active-width: 360px;
  --gap: 34px;
  --button-size: 42px;

  position: relative;
  width: min(var(--carousel-width), 100%);
  margin: clamp(38px, 5vw, 64px) auto 0;
  padding: 0 0 58px;
  box-sizing: border-box;
}

.carousel *,
.carousel *::before,
.carousel *::after {
  box-sizing: border-box;
}

.carousel__viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--gap);
  width: 100%;
  min-height: 500px;
  transition: transform 420ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 var(--slide-width);
  width: var(--slide-width);
  text-align: center;
  opacity: .38;
  transform: scale(.72);
  transform-origin: center top;
  transition:
    transform 420ms cubic-bezier(.22,.61,.36,1),
    opacity 420ms ease,
    filter 420ms ease;
  filter: saturate(.72);
  pointer-events: none;
}

.carousel__slide.is-prev,
.carousel__slide.is-next {
  opacity: .45;
}

.carousel__slide.is-active {
  flex-basis: var(--active-width);
  width: var(--active-width);
  opacity: 1;
  transform: scale(1);
  filter: none;
  z-index: 2;
  pointer-events: auto;
}

.carousel__slide h2 {
  margin: 18px 0 4px;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.carousel__slide p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.carousel__slide .img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 38, 96, .15);
}

.carousel__slide .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: var(--button-size);
  height: var(--button-size);
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: #596273;
  color: #fff;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-20%);
  transition: transform 180ms ease, background 180ms ease;
}

.carousel__button:hover,
.carousel__button:focus-visible {
  background: var(--primary);
  transform: translateY(-20%) scale(1.08);
}

.carousel__button:focus-visible {
  outline: 3px solid rgba(16, 176, 202, .25);
  outline-offset: 3px;
}

.carousel__button--prev {
  left: -56px;
}

.carousel__button--next {
  right: -56px;
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c4ccd8;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.carousel__dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 980px) {
  .carousel {
    --slide-width: 230px;
    --active-width: 320px;
    --gap: 28px;
    width: min(720px, calc(100% - 96px));
  }

  .carousel__button--prev { left: -50px; }
  .carousel__button--next { right: -50px; }
}

@media (max-width: 720px) {
  .carousel {
    --active-width: min(340px, calc(100vw - 76px));
    width: min(100%, 420px);
    padding-bottom: 52px;
    margin-top: 34px;
  }

  .carousel__track {
    min-height: 450px;
  }

  .carousel__slide {
    flex-basis: var(--active-width);
    width: var(--active-width);
  }

  .carousel__slide:not(.is-active) {
    display: none;
  }

  .carousel__slide.is-active {
    margin: 0 auto;
  }

  .carousel__button {
    top: 43%;
  }

  .carousel__button--prev {
    left: 4px;
  }

  .carousel__button--next {
    right: 4px;
  }
}

@media (max-width: 480px) {
  .carousel {
    --active-width: min(320px, calc(100vw - 56px));
  }

  .carousel__track {
    min-height: 420px;
  }

  .carousel__slide h2 {
    font-size: 18px;
  }

  .carousel__slide p {
    font-size: 13px;
  }

  .carousel__button {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track,
  .carousel__slide,
  .carousel__button,
  .carousel__dot {
    transition: none;
  }
}


/* Team member placeholder — used until profile photos are supplied. */
.carousel__slide .team-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f8fb, #d9eef5);
  color: var(--primary);
}

.carousel__slide .team-placeholder span {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(16, 176, 202, .35);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: .02em;
}

/* =========================================================
   TEAM LEADERSHIP + LOWER MARQUEE
   The lower team members use the glass-overlay card style.
========================================================= */
/* =========================================================
   TEAM SECTION
   Leadership is intentionally more prominent than marquee
   ========================================================= */

.team-leadership {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  width: min(100%, 1120px);
  margin: clamp(42px, 5vw, 60px) auto 0;
  align-items: start;
}

/* Team Leader Cards */
.team-leader-card {
  min-width: 0;
  text-align: center;
}

.team-leader-image {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 38, 96, 0.15);
}

.team-leader-card h3 {
  color: var(--primary);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.25;
  margin: 0 0 5px;
}

.team-leader-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}


/* =========================================================
   LOWER TEAM MARQUEE
   Smaller than leadership cards
   ========================================================= */

.team-marquee {
  width: 100%;
  margin: clamp(55px, 7vw, 80px) auto 0;
}

.team-marquee__viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.team-marquee__track {
  display: flex;
  width: max-content;
  animation: easeeTeamMarquee 28s linear infinite;
}

.team-marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 22px;
  padding-right: 22px;
}


/* Smaller marquee cards */
.team-marquee-card {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  height: 285px;

  padding: 0;
  margin: 0;

  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 0;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);
  background: #fff;
}

.team-marquee-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}



/* Glass overlay */
.team-marquee-content {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  color: #fff;
  text-align: center;

 

  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(15px);

  border-top: 1px solid rgba(255, 255, 255, 0.22);

  box-shadow: 0 -10px 10px rgba(255, 255, 255, 0.10);

  transition: bottom 0.4s ease-in;
}

.team-marquee-content h3,
.team-marquee-content p {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;

  opacity: 0;
  transform: translateY(-30px);

  transition: 0.6s;
  transition-delay: 0.15s;
}

.team-marquee-content h3 {
  font-size: 0.9rem;
  font-weight: 500;
}

.team-marquee-content p {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 1px;
  transform: translateY(-25px);
}


/* Hover */
.team-marquee-card:hover .team-marquee-content,
.team-marquee-card:focus-within .team-marquee-content {
  bottom: 0;
}

.team-marquee-card:hover .team-marquee-content h3,
.team-marquee-card:hover .team-marquee-content p,
.team-marquee-card:focus-within .team-marquee-content h3,
.team-marquee-card:focus-within .team-marquee-content p {
  transform: translateY(8px);
  opacity: 1;
}


/* Social icons */
.team-social-icons {
  list-style: none;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 14px;

  padding: 0;
  margin: 12px 0 0;
}

.team-social-icons li {
  transform: translateY(35px);
  transition: transform 0.5s ease;
}

.team-marquee-card:hover .team-social-icons li,
.team-marquee-card:focus-within .team-social-icons li {
  transform: translateY(15px);
}

.team-social-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}


/* Marquee animation */
@keyframes easeeTeamMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.team-marquee:hover .team-marquee__track,
.team-marquee:focus-within .team-marquee__track {
  animation-play-state: paused;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .team-leadership {
    grid-template-columns: repeat(2, minmax(190px, 260px));
    width: min(100%, 560px);
    justify-content: center;
    gap: 28px 24px;
  }

  .team-leader-image {
    max-width: 260px;
  }

  .team-member-card {
    flex-basis: 205px;
    width: 205px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

  .team-leadership {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
    gap: 24px 16px;
  }

  .team-leader-image {
    max-width: 100%;
    border-radius: 18px;
  }

  .team-leader-card h3 {
    font-size: 16px;
  }

  .team-leader-card p {
    font-size: 12px;
  }

  .team-marquee {
    margin-top: 50px;
  }

  .team-marquee__group {
    gap: 18px;
    padding-right: 18px;
  }

  .team-member-card {
    flex-basis: 190px;
    width: 190px;
  }

  .team-member-card .team-marquee-image {
    max-width: 100%;
    border-radius: 18px;
  }

  .team-member-card h3 {
    font-size: 16px;
  }

  .team-member-card p {
    font-size: 12px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .team-leadership {
    grid-template-columns: minmax(0, 245px);
    justify-content: center;
  }

  .team-leader-image {
    max-width: 245px;
  }

  .team-member-card {
    flex-basis: 180px;
    width: 180px;
  }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .team-marquee__track {
    animation: none;
  }
}/* =========================================================
   TEAM MEMBERS CAROUSEL
   ========================================================= */

.team-members-carousel {
  position: relative;

  width: min(100%, 1000px);


  display: flex;
  align-items: center;
  gap: 18px;
}


/* Viewport */

.team-carousel-viewport {
  width: 100%;
  overflow: hidden;
}


/* Track */

.team-carousel-track {
  display: flex;
  gap: 22px;

  transition: transform 0.45s ease;

  will-change: transform;
}


/* =========================================================
   CARDS
   ========================================================= */

.team-member-card {
  min-width: 0;
  flex: 0 0 220px;
  width: 220px;
  text-align: center;
}

.team-member-card .team-marquee-image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 38, 96, 0.15);
}

.team-member-card h3 {
  color: var(--primary);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.25;
  margin: 0 0 5px;
}

.team-member-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

/* Match team members to the leadership card structure.
   Member details stay below the image and remain visible. */
.team-member-card {
  overflow: visible;
  height: auto;
  cursor: default;
}

.team-member-card .team-marquee-image {
  height: auto;
  aspect-ratio: 4 / 5;
}

/* =========================================================
   CAROUSEL BUTTONS
   ========================================================= */

.team-carousel-btn {
  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  background: var(--primary);
  color: #fff;

  box-shadow: 0 5px 15px rgba(27, 38, 96, 0.18);

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.team-carousel-btn:hover {
  transform: scale(1.08);
}

.team-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.team-carousel-btn i {
  font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .team-members-carousel {
    width: min(100%, 700px);
  }

  .team-member-card {
    flex-basis: 205px;
    width: 205px;
    height: 270px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

  .team-members-carousel {
    gap: 10px;
  }

  .team-carousel-track {
    gap: 14px;
  }

  .team-member-card {
    flex-basis: calc(
      (100% - 14px) / 2
    );

    width: calc(
      (100% - 14px) / 2
    );

    height: auto;
    aspect-ratio: 190 / 250;
  }

  .team-carousel-btn {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .team-members-carousel {
    gap: 7px;
  }

  .team-member-card {
    flex-basis: 100%;
    width: 100%;
  }

  .team-carousel-btn {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;
  }

}

/* =========================================================
   TEAM MEMBER CAROUSEL — CENTERED TO LEADERSHIP GRID
   Scoped overrides only. Existing team styling is preserved.
   ========================================================= */
.team-members-carousel {
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.team-members-carousel .team-carousel-viewport {
  min-width: 0;
}

/* Three cards on desktop so the arrows remain functional with 4 members. */
@media (min-width: 981px) {
  .team-members-carousel .team-carousel-viewport {
    width: 704px;
    flex: 0 0 704px;
  }
}

/* Two cards on tablet. */
@media (min-width: 681px) and (max-width: 980px) {
  .team-members-carousel .team-carousel-viewport {
    width: 430px;
    flex: 0 0 430px;
  }
}

/* One card on mobile, centered between the arrows. */
@media (max-width: 680px) {
  .team-members-carousel .team-carousel-viewport {
    width: min(100%, 190px);
    flex: 0 1 190px;
  }
}

@media (max-width: 420px) {
  .team-members-carousel .team-carousel-viewport {
    width: min(100%, 180px);
    flex-basis: 180px;
  }
}

/* =========================================================
   TEAM CAROUSEL FINAL OVERRIDES
   Keep existing card styling; replace circular controls with
   clear arrow controls and add separation from leadership.
   ========================================================= */
.team-members-carousel {
  margin-top: clamp(70px, 8vw, 95px);
}

.team-carousel-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.team-carousel-btn:hover:not(:disabled) {
  transform: scale(1.12);
  background: transparent;
}

.team-carousel-btn:disabled {
  opacity: .32;
  cursor: not-allowed;
  background: transparent;
  transform: none;
}

.team-carousel-btn i {
  display: none;
}

.team-carousel-prev::before,
.team-carousel-next::before {
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.team-carousel-prev::before {
  content: "‹";
}

.team-carousel-next::before {
  content: "›";
}

/* Keep the lower carousel aligned to the leadership content width. */
.team-members-carousel {
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 680px) {
  .team-members-carousel {
    margin-top: 55px;
  }

  .team-carousel-btn {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .team-carousel-prev::before,
  .team-carousel-next::before {
    font-size: 30px;
  }
}

@media (max-width: 420px) {
  .team-members-carousel {
    margin-top: 48px;
  }

  .team-carousel-btn {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .team-carousel-prev::before,
  .team-carousel-next::before {
    font-size: 28px;
  }
}


/* =========================================================
   TEAM MEMBERS — DESKTOP STATIC / MOBILE CAROUSEL
   Existing card styling is preserved.
   ========================================================= */

/* Desktop: show all 4 members, centered; no controls. */
@media (min-width: 1400px) {
  .team-members-carousel {
    width: min(100%, 1120px);
    margin: clamp(70px, 8vw, 95px) auto 0;
    display: block;
  }

  .team-members-carousel .team-carousel-viewport {
    width: 100%;
    overflow: visible;
  }

  .team-members-carousel .team-carousel-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 210px);
    justify-content: center;
    gap: 22px;
    transform: none !important;
  }

  .team-members-carousel .team-carousel-btn {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .team-members-carousel {
    width: min(100%, 1120px);
    margin: clamp(70px, 8vw, 95px) auto 0;
    display: block;
  }

  .team-members-carousel .team-carousel-viewport {
    width: 100%;
    overflow: visible;
  }

  .team-members-carousel .team-carousel-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 210px);
    justify-content: center;
    gap: 22px;
    transform: none !important;
  }

  .team-members-carousel .team-carousel-btn {
    display: none;
  }
}

/* Tablet: static 2 x 2 layout, no controls. */
@media (min-width: 681px) and (max-width: 980px) {
  .team-members-carousel {
    width: min(100%, 700px);
    margin: 65px auto 0;
    display: block;
  }

  .team-members-carousel .team-carousel-viewport {
    width: 100%;
    overflow: visible;
  }

  .team-members-carousel .team-carousel-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 205px);
    justify-content: center;
    gap: 24px;
    transform: none !important;
  }

  .team-members-carousel .team-carousel-btn {
    display: none;
  }
}

/* Mobile: use the existing carousel with arrows. */
@media (max-width: 680px) {
  .team-members-carousel {
    width: 100%;
    margin: 55px auto 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .team-members-carousel .team-carousel-viewport {
    width: min(100%, 230px);
    flex: 0 1 230px;
    overflow: hidden;
    margin: 0 auto;
  }

  .team-members-carousel .team-carousel-track {
    display: flex;
    width: max-content;
    gap: 0;
    transition: transform .45s ease;
  }

  /* Match the leadership card sizing on mobile. */
  .team-members-carousel .team-member-card {
    flex: 0 0 230px;
    width: 230px;
  }

  .team-members-carousel .team-member-card .team-marquee-image {
    max-width: 230px;
    border-radius: 18px;
  }

  .team-members-carousel .team-carousel-btn {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
  }

  .team-members-carousel .team-carousel-btn i {
    display: none;
  }

  .team-members-carousel .team-carousel-prev::before,
  .team-members-carousel .team-carousel-next::before {
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
  }

  .team-members-carousel .team-carousel-prev::before {
    content: "‹";
  }

  .team-members-carousel .team-carousel-next::before {
    content: "›";
  }
}

@media (max-width: 420px) {
  .team-members-carousel .team-carousel-viewport {
    width: min(100%, 210px);
    flex-basis: 210px;
  }

  .team-members-carousel .team-member-card {
    flex-basis: 210px;
    width: 210px;
  }

  .team-members-carousel .team-member-card .team-marquee-image {
    max-width: 210px;
  }

  .team-members-carousel .team-carousel-btn {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .team-members-carousel .team-carousel-prev::before,
  .team-members-carousel .team-carousel-next::before {
    font-size: 28px;
  }
}
