/**
 * Profile hero + WYSIWYG body — ported from travel-agent-support-DMC our_team.css
 * (same legacy class names: manager_info, karen_name, team-advisor-profile-content, etc.)
 */

.team-advisor-profile-content img {
  object-fit: cover;
}

.team-advisor-profile .manager_info {
  width: 900px;
  max-width: 100%;
  margin: 50px auto;
}

.team-advisor-profile .manager_info img {
  float: left;
  width: 200px !important;
  height: 200px !important;
  border-radius: 50% !important;
  display: block;
  object-fit: cover;
  margin-inline-end: 40px;
}

.team-advisor-profile .advisor_info {
  width: 100%;
}

.team-advisor-profile .karen_name {
  font-weight: 600;
  font-size: 1.875rem;
  margin-block-end: 10px;
  font-style: italic;
  color: #202020;
}

.team-advisor-profile .karen_title {
  font-size: 1.25rem;
  font-style: italic;
  margin-block-end: 20px;
  color: #303030;
}

.team-advisor-profile .manager_info p {
  background: #f3f3f3;
  border-radius: 6px;
  padding: 20px 30px;
  position: relative;
  display: table-cell;
  font-size: 1.125rem;
  line-height: 1.375rem;
  color: #303030;
}

.team-advisor-profile .manager_info p::before {
  content: ' ';
  position: absolute;
  border-style: solid;
  border-width: 15px;
  border-color: #f3f3f3 transparent transparent #f3f3f3;
  background-color: #f3f3f3;
  margin: 15px;
  left: -30px;
  transform: rotate(135deg);
  top: -5px;
}

/* Body content — migrated WYSIWYG classes */

.team-advisor-profile-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #444;
}

.team-advisor-profile-content > :first-child {
  margin-top: 0;
}

.team-advisor-profile-content p {
  margin: 0 0 1.15em;
}

.team-advisor-profile-content h2,
.team-advisor-profile-content h3,
.team-advisor-profile-content h4 {
  margin: 1.5em 0 0.75em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary, #00332E);
}

.team-advisor-profile-content h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

.team-advisor-profile-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.team-advisor-profile-content h4 {
  font-size: 1.125rem;
}

.team-advisor-profile-content ul,
.team-advisor-profile-content ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}

.team-advisor-profile-content li {
  margin-bottom: 0.45em;
  line-height: 1.8;
}

.team-advisor-profile-content .img-responsive,
.team-advisor-profile-content video,
.team-advisor-profile-content .table-responsive {
  display: block;
  max-width: 100%;
  height: auto;
  overflow-x: auto;
}

.team-advisor-profile-content .recotitlebg h2 {
  font-size: 2.1rem;
  padding-bottom: 30px;
  padding-top: 70px;
  line-height: 2.3rem;
  margin-block-end: 0;
  margin-block-start: 0;
  color: #2c3e50;
}

.team-advisor-profile-content .infoimage,
.team-advisor-profile-content .infovideo {
  clear: both;
  margin: 0 auto 30px;
  color: #999;
  position: relative;
}

.team-advisor-profile-content .infoimage img {
  border-radius: 4px;
}

.team-advisor-profile-content .articlenext {
  width: 100%;
  margin: 0;
}

.team-advisor-profile-content .articlereco .articlenext__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f3f3;
}

.team-advisor-profile-content .articlereco .articlenext__media a {
  display: block;
  width: 100%;
  height: 100%;
  border-bottom: 0;
  line-height: 0;
}

.team-advisor-profile-content .articlereco .articlenext__media img,
.team-advisor-profile-content .articlereco .articlenext__media img.img-responsive {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.team-advisor-profile-content .articlenext a {
  border-bottom: 0;
}

.team-advisor-profile-content .articlenexttitle {
  text-align: center;
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0 0;
  line-height: 1.5rem;
  height: auto;
}

.team-advisor-profile-content .articlenexttitle a {
  text-decoration: none;
  color: #202020;
  border-bottom: 0;
}

.team-advisor-profile-content blockquote {
  border-left: 4px solid var(--primary) !important;
  background: rgba(var(--primary-rgb, 0, 51, 46), 0.08);
  padding: 14px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--primary);
  border-radius: 4px;
}

.team-advisor-profile-content blockquote p:last-child {
  margin-bottom: 0;
}

.team-advisor-profile-content .wp-caption {
  width: auto !important;
}

@media (max-width: 750px) {
  .team-advisor-profile .manager_info {
    margin: 0 0 32px;
    width: auto;
  }

  .team-advisor-profile .manager_info img {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }

  .team-advisor-profile .advisor_info {
    overflow: visible;
    text-align: center;
    width: 100%;
  }

  .team-advisor-profile .karen_name {
    font-size: 1.56rem;
    margin-top: 0;
    display: block;
  }

  .team-advisor-profile .karen_title {
    display: block;
  }

  .team-advisor-profile .manager_info p {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-block-start: 12px;
    padding: 16px 18px;
    overflow: visible;
    text-align: left;
  }

  .team-advisor-profile .manager_info p::before {
    display: none;
  }

  .team-advisor-profile-content .recotitlebg h2 {
    padding-top: 0;
  }

  .team-advisor-profile-content .articlereco {
    padding: 15px;
  }
}
