/* Container and Layout
-------------------------------------------------- */
a:link {
  color: 00005E !important;
}
.profiles-container {
  max-width: 1200px;
/*   margin: 0 auto;
  padding: 2rem; */
  margin: 0 auto;
  align-content: center;
  background-image: linear-gradient(#a2c4c9, #fffff);
}

.title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #000;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

/* Profile Cards
-------------------------------------------------- */
.profile-card {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  justify-content: space-between; /* Push button to the bottom */
  border: 2px solid #08538c;
  border-radius: 8px;
  padding: 1.5rem;
  font-family: arial;
  color: #000;
  font-weight: 1.9x bold;
}

.profile-card:hover{
  transform : scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 1);
}


/* Profile Info Section */
.profile-info {
  min-height: 210px; /* Adjust this to set a consistent height for text content */
  margin-bottom: 0.5rem; /* Add space below profile info */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-image {
  min-width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

} */

.analyst-name {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.analyst-link {
  color: #00005e !important;
  text-decoration: none;
  
}
.analyst-link:visited {
  color: #551a8b;
}

.analyst-link:hover {
  text-decoration: underline;
}

.analyst-bio {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.see-more-link {
  font-size: 0.9rem;
  color: #00005e !important;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: color 0.3s ease;
}

.see-more-link:hover {
  color: #0000e6;
  text-decoration: underline;
}

/* Publications
-------------------------------------------------- */

/* Buttons
-------------------------------------------------- */
.follow-button,
.subscribe-button {
  background-color: transparent;
  border: 2px solid #0f038c;
  color: #0f038c;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: center;
}

.follow-button:hover,
.subscribe-button:hover {
  background-color: #0000e6;
  color: #fff;
}

.subscribe-button {
  width: 100%;
  margin-top: 0.5rem;
}

/* Responsive Design
-------------------------------------------------- */
@media (max-width: 768px) {
  .profiles-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .follow-button {
    margin-top: 1rem;
  }
}