/* ==========================================================================
   TEAM.CSS
   Page layer for satkar-softwares-satkar-infotech-team.html.
   Builds on the "OUR TEAM PAGE" block in css/newstyle.css (.tm-*,
   .founder-modern-*, .founding-team-*, .expert-team-*). Loaded AFTER
   newstyle.css. The founding team section is left as it is.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FOUNDER — soft blue section, white panel, heading on its own row
   -------------------------------------------------------------------------- */
.founder-modern-section {
  background: #eaf5ff;
}

.founder-modern-panel {
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 60, 140, 0.08);
}

.founder-modern-head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-right: 110px; /* clear the corner dots */
}

.founder-modern-head .tm-heading {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
}

/* --------------------------------------------------------------------------
   3. EXPERT TEAM — soft blue section, creative portrait cards
   -------------------------------------------------------------------------- */
.expert-team-section {
  background: #eaf5ff;
  padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}

/* soft glow shapes behind the grid */
.expert-team-section::before,
.expert-team-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.expert-team-section::before {
  width: 420px;
  height: 420px;
  left: -160px;
  top: 30%;
  background: radial-gradient(circle, rgba(38, 132, 229, 0.16) 0%, transparent 70%);
}

.expert-team-section::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(11, 92, 240, 0.12) 0%, transparent 70%);
}

.expert-team-section .container {
  position: relative;
  z-index: 1;
}

/* split header: title left, intro right */
.expert-team-head {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  gap: 16px 48px;
  align-items: end;
}

.expert-team-head .tm-heading {
  margin-bottom: 0;
}

.expert-team-head .tm-heading span {
  white-space: nowrap;
}

.expert-team-section .expert-team-head .tm-sub {
  max-width: none;
  padding-left: 22px;
  border-left: 3px solid var(--tm-blue-2);
}

.expert-team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.expert-team-card {
  position: relative;
  display: block;
  padding: 0;
  text-align: left;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  transition: transform 0.35s ease;
}

.expert-team-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

/* portrait with a gradient frame and rounded corners */
.expert-team-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 4.4;
  border-radius: 24px;
  background: linear-gradient(160deg, #cfe6ff 0%, #9cc8f7 100%);
  box-shadow: 0 18px 44px rgba(20, 60, 140, 0.16);
}

.expert-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.6s ease;
}

.expert-team-card:hover .expert-team-photo img {
  transform: scale(1.06);
}

/* navy fade at the bottom of the photo */
.expert-team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 107, 0) 55%, rgba(10, 26, 107, 0.45) 100%);
  pointer-events: none;
}

.expert-team-num {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--tm-navy);
}

/* name plate overlapping the bottom of the photo */
.expert-team-info {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -42px 16px 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--tm-line);
  box-shadow: 0 14px 34px rgba(20, 60, 140, 0.14);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.expert-team-card:hover .expert-team-info {
  border-color: rgba(38, 132, 229, 0.4);
  box-shadow: 0 18px 40px rgba(20, 60, 140, 0.2);
}

.expert-team-ico {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e3f0ff;
  color: var(--tm-blue);
  font-size: 1.2rem;
  transition: background 0.35s ease, color 0.35s ease;
}

.expert-team-card:hover .expert-team-ico {
  background: var(--tm-blue);
  color: #fff;
}

.expert-team-info > div {
  min-width: 0;
}

.expert-team-name {
  margin: 0 0 3px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.expert-team-role {
  font-size: 0.76rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .founder-modern-head {
    padding-right: 0;
  }

  .expert-team-head {
    grid-template-columns: 1fr;
  }

  .expert-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .expert-team-grid {
    gap: 22px 14px;
  }

  .expert-team-card {
    padding: 0;
  }

  .expert-team-photo,
  .expert-team-photo img {
    border-radius: 18px;
  }

  .expert-team-num {
    top: 10px;
    left: 10px;
    min-width: 34px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  /* name plate sits under the photo on small cards */
  .expert-team-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: -26px 8px 0;
    padding: 12px;
    border-radius: 14px;
  }

  .expert-team-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .expert-team-name {
    font-size: 0.98rem;
  }

  .expert-team-role {
    font-size: 0.68rem;
  }

  .expert-team-section .expert-team-head .tm-sub {
    padding-left: 16px;
  }
}

@media (max-width: 359.98px) {
  .expert-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .expert-team-card,
  .expert-team-photo img,
  .expert-team-info,
  .expert-team-ico {
    transition: none;
  }

  .expert-team-card:hover,
  .expert-team-card:hover .expert-team-photo img {
    transform: none;
  }
}
