.team {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem; 

}

.team p {
  font-size: clamp(1rem, 1.5vw, 1.3rem); 
  line-height: 1.6; 
  max-width: 1700px;
  margin: 5rem auto; 
  padding: 0 1rem; 
}


@media (max-width: 1024px) {
  .team p {
    margin: 1.5rem auto;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .team {
    padding: 0 1.5rem;
  }
  .team p {
    margin: 1.25rem auto;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .team {
    padding: 0 1rem;
  }
  .team p {
    margin: 1rem auto;
    font-size: 1rem; 
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .team p {
    text-align: left;
  }
}

h3 {
  font-size: 20px;
  font-weight: 500;
}

p {
  font-size: 16px;
  margin: -2.5px 0 5px 0;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
}

.level {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.org-box {
  color: rgba(255, 255, 255, 1);
  padding: 7px 7px;
  border-radius: 15px;
  text-align: center;
  min-width: 280px;
  max-width: 400px;
  margin: 8px;
  border: 2px solid transparent;
  position: relative;
}

.org-box--teal {
  background-color: #4d6a6d;
  color: white;
}

.org-box--teal:hover {
  transform: translateY(-5px);
}

.org-box--gold {
  background-color: white;
  color: #4d6a6d;
  border: 2px solid #4d6a6d;
}

.org-box--gold:hover {
  transform: translateY(-5px);
  border-color: #4d6a6d;
}

.org-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
}

.arrow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
  position: relative;
}

.arrow-stem {
  width: 3px;
  height: 30px;
  background-color: #4d6a6d;
  border-radius: 2px;
}

.arrow-connector--split {
  height: 45px;
}

.arrow-split {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 200px;
  height: 30px;
  position: relative;
}

.arrow-branch {
  position: absolute;
  background-color: #4d6a6d;
  border-radius: 2px;
}

.arrow-branch--left {
  width: 100px;
  height: 3px;
  left: 0;
  top: 5px;
  transform-origin: right center;
  transform: rotate(-15deg);
}

.arrow-branch--right {
  width: 100px;
  height: 3px;
  right: 0;
  top: 5px;
  transform-origin: left center;
  transform: rotate(15deg);
}

.arrow-connector--merge {
  height: 45px;
}

.arrow-merge {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 200px;
  height: 30px;
  position: relative;
  margin-bottom: 0;
}

.arrow-branch--left-up {
  width: 100px;
  height: 3px;
  left: 0;
  top: 15px;
  transform-origin: right center;
  transform: rotate(15deg);
  background-color: #4d6a6d;
  border-radius: 2px;
}

.arrow-branch--right-up {
  width: 100px;
  height: 3px;
  right: 0;
  top: 15px;
  transform-origin: left center;
  transform: rotate(-15deg);
  background-color: #4d6a6d;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .org-chart {
    padding: 16px 8px;
  }

  .header h1 {
    font-size: 24px;
  }

  .org-box {
    min-width: 240px;
    max-width: 320px;
    padding: 12px 16px;
  }

  .org-row {
    gap: 16px;
  }

  .arrow-split,
  .arrow-merge {
    width: 150px;
  }

  .arrow-branch--left,
  .arrow-branch--right,
  .arrow-branch--left-up,
  .arrow-branch--right-up {
    width: 75px;
  }
}

@media (max-width: 480px) {
  .org-box {
    min-width: 200px;
    max-width: 280px;
  }

  .org-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .arrow-connector--split,
  .arrow-connector--merge {
    height: 40px;
  }

  .arrow-split,
  .arrow-merge {
    width: 100px;
    height: 20px;
  }

  .arrow-branch--left,
  .arrow-branch--right,
  .arrow-branch--left-up,
  .arrow-branch--right-up {
    width: 50px;
    transform: rotate(0deg) !important;
  }

  .arrow-branch--left {
    left: 10px;
  }

  .arrow-branch--right {
    right: 10px;
  }

  .arrow-branch--left-up {
    left: 10px;
  }

  .arrow-branch--right-up {
    right: 10px;
  }
}

.arrow-connector {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

:root {
  --primary-color: #4d6a6d;
  --secondary-color: #71888a;
  --text-color: #fff;
  --dark-bg: #2b2a29;
  --animation-duration: 0.3s;
}

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  margin-top: -100px;/*this is the new added line*/
  font-family: 'Roboto', Arial, sans-serif;
  overflow-x: hidden;
}

h1 {
  color: #4d6a6d;
}

.firm {
  position: relative;
  width: 100%;
  height: 60vh;
  margin-top: 80px;
  min-height: 300px;
  overflow: hidden;
  color: white;
  font-weight: 600;
  z-index: 1;
}

#bg-video {
  position: absolute;
  opacity: 60%;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.videotext {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.careers {
  font-size: 3.5rem;
  text-decoration: underline;
  color: #4d6a6d;
  text-decoration-color: #ffffff;
  text-underline-offset: 1rem;
  text-decoration-thickness: 0.2rem;
}