/* Font-family is deliberately not set here — it inherits the theme's/
   Elementor global kit's typography rather than overriding it. */

.aiw-author-info {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
}

.aiw-author-info.aiw-clickable {
  cursor: pointer;
}

.aiw-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  border-radius: inherit;
}

.aiw-author-image-wrap {
  flex: 0 0 180px;
}

.aiw-author-image-wrap img,
.aiw-author-image-wrap .aiw-author-image {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  background: #f1f1f1;
}

.aiw-author-content {
  flex: 1;
  min-width: 0;
}

.aiw-author-name {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.aiw-author-name a {
  color: #333;
  text-decoration: none;
}

.aiw-author-name a:hover {
  text-decoration: underline;
}

.aiw-author-bio {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.aiw-author-bio p {
  margin: 0 0 5px;
}

.aiw-author-bio p:last-child {
  margin-bottom: 0;
}

.aiw-author-social {
  position: relative; /* sits above .aiw-overlay-link so icons stay clickable even when the whole box is a link */
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.aiw-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #666;
  transition: color 0.2s, border-color 0.2s;
}

.aiw-social-icon:hover {
  color: #333;
}

@media only screen and (max-width: 600px) {
  .aiw-author-social {
    justify-content: center;
  }
}

@media only screen and (max-width: 600px) {
  .aiw-author-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .aiw-author-image-wrap {
    flex: 0 0 auto;
  }
}
