.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.team-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 170px;           /* CHANGED: height se min-height, aur value badha di */
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(20, 51, 31, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 51, 31, 0.14);
}

.team-avatar {
  flex: 0 0 96px;
  width: 96px;
  height: auto;                /* CHANGED: 100% se auto, stretch flex khud sambhal lega */
  overflow: hidden;
  background: #eaf4ea;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.team-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;    /* NEW: default sab left-aligned rahenge */
  min-width: 0;
  padding: 10px 10px 10px 12px;
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
  
}

.team-info h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--green-deep);
  width: 100%;
  box-sizing: border-box;
}

.team-name,
.team-contact-group {
  text-align: left;      /* NEW: explicitly left, kisi bhi inheritance ko override karne ke liye */
  align-self: flex-start; /* NEW: agar flex container center kar raha ho to bhi ye left hi rahega */
}


.team-name {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  /* color: var(--green-highlight); */
  color: var(--green-primary);
}

.team-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 300;
  text-decoration: none;
  margin-bottom: 3px;
  word-break: break-word;
  transition: color 0.2s ease;
}

.team-contact-group {
  display: block;
  margin-bottom: 3px;
}

.team-contact-label {
  display: block;
  font-size: 0.9rem;
  color: var(--green-deep);
  font-weight: 500;
  margin-bottom: -8px;   /* CHANGED: aur kam kiya, negative value se label-value gap ghatega */
}

.team-contact-group .team-contact {
  display: inline;
  margin-bottom: 0;
}

.mail:hover {
  /* color: #2563eb; */
  color: var(--green-primary);   /* hover par accent green — pehle #2563eb (blue) tha */
  text-decoration: underline;
}

.team-contact .icon {
  display: none;
}

.get-in-touch {
  padding: 60px 0;
}

.eyebrow-blue {
  color: var(--green-highlight);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.git-heading {
  font-size: 2.4rem;
  margin: 8px 0 16px;
  color: var(--green-deep);
}

.git-heading strong {
  font-weight: 800;
}

.git-desc {
  color: var(--gray-text);
  max-width: 700px;
  margin-bottom: 40px;
  font-size: 1rem;
}

.office-title {
  font-size: 1.4rem;
  color: var(--green-deep);
  margin: 20px 0 10px;
}

.divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin-bottom: 24px;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.office-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.office-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.office-info h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--green-deep);
}

.office-info p {
  margin: 0 0 4px;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.office-info a {
  color: var(--gray-text);
  text-decoration: none;
}

.office-info a:hover {
  color: var(--green-primary);
  text-decoration: underline;
}

.company-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}
.git-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.git-info-col {
  display: flex;
  flex-direction: column;
}

.git-map-col {
  display: flex;
  align-items: flex-start;
}
.git-map-col .company-map {
  width: 100%;
  height: 100%;
  min-height: 560px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .git-columns {
    grid-template-columns: 1fr;
  }

  .git-map-col .company-map {
    height: 350px;
    min-height: 350px;
  }
}
@media (max-width: 768px) {
  .office-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Additional Responsive Rules (Contact Page)
   ========================================================================== */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .team-grid { gap: 14px; }
  .git-columns { gap: 32px; }
}

/* Small mobile: 600px and below */
@media (max-width: 600px) {
  .team-card {
    flex-direction: column;
    min-height: auto;
  }
  .team-avatar {
    width: 100%;
    flex: none;
    height: 160px;
  }
  .team-info {
    align-items: center;
    text-align: center;
    padding: 14px;
  }
  .team-name,
  .team-contact-group {
    text-align: center;
    align-self: center;
  }
  .team-contact-group .team-contact {
    display: block;
  }

  .git-heading { font-size: 1.8rem; }
  .git-desc { font-size: 0.92rem; margin-bottom: 28px; }
  .office-title { font-size: 1.2rem; }

  .office-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .office-icon { width: 48px; height: 48px; }

  .company-map,
  .git-map-col .company-map {
    height: 280px;
    min-height: 280px;
  }
}

/* Extra small: 400px and below */
@media (max-width: 400px) {
  .team-avatar { height: 130px; }
  .git-heading { font-size: 1.5rem; }
  .office-icon { width: 42px; height: 42px; }
}