/* Public author pages + blog post author card (sisgain.com) */

.author-profile-card--post {
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 24px 28px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  margin-top: 2rem;
  clear: both;
}

.author-profile-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
}

.author-profile-photo {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f3f4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

.author-profile-photo--placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #e8f4fc;
  color: #0a78be;
  font-size: 48px;
}

.author-profile-photo-link:hover .author-profile-photo {
  box-shadow: 0 4px 16px rgba(10, 120, 190, 0.3);
}

.author-profile-content {
  flex: 1 1 220px;
  min-width: 0;
}

.author-profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 4px;
}

.author-profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
}

.author-profile-name a {
  color: inherit;
  text-decoration: none;
}

.author-profile-name a:hover {
  color: #0a78be;
}

.author-linkedin-inline {
  color: #0a66c2;
  font-size: 1.25rem;
  line-height: 1;
}

.author-profile-role {
  color: #5f6368;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 10px;
}

.author-profile-meta {
  color: #80868b;
  font-size: 0.875rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-profile-more {
  color: #0a78be;
  font-weight: 600;
  text-decoration: none;
}

.author-profile-more:hover {
  text-decoration: underline;
}

/* Author directory + profile pages */
.author-page-banner {
  position: relative;
  padding: 3rem 0 2.5rem;
  margin-bottom: 0;
  overflow: hidden;
  color: #fff;
}

.author-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #0a78be 0%, #054d7a 45%, #0d3d5c 100%);
  z-index: 0;
}

.author-page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.author-page-banner .container {
  position: relative;
  z-index: 1;
}

.author-page-banner--directory {
  text-align: center;
}

.author-page-banner--directory .author-page-banner__name {
  margin-bottom: 0.5rem;
}

.author-page-banner__name {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.2;
}

.author-page-banner__role {
  font-size: 1.125rem;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  max-width: 720px;
}

.author-page-banner__layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
}

.author-page-banner__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: block;
}

.author-page-banner__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 64px;
}

.author-page-banner__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  color: #0a66c2;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background 0.2s, transform 0.15s;
}

.author-page-banner__linkedin:hover {
  background: #fff;
  color: #004182;
  text-decoration: none;
  transform: translateY(-1px);
}

.author-page-banner__crumbs,
.author-page-banner__crumbs a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
}

.author-page-banner__crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.author-page-banner__crumbs span[aria-hidden] {
  margin: 0 6px;
  opacity: 0.6;
}

.author-page-body {
  padding: 2.5rem 15px 4rem;
}

.author-directory-section {
  background: #f8f9fa;
}

.author-directory-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.author-directory-card:hover {
  border-color: #0a78be;
  box-shadow: 0 8px 28px rgba(10, 120, 190, 0.12);
}

.author-directory-card__main {
  display: block;
  padding: 1.35rem 1.35rem 1.25rem;
  padding-right: 3rem;
  text-decoration: none;
  color: inherit;
}

.author-directory-card__main:hover {
  text-decoration: none;
  color: inherit;
}

.author-directory-card__media {
  margin-bottom: 14px;
}

.author-directory-card__media img,
.author-directory-card__placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #f1f3f4;
}

.author-directory-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f4fc;
  color: #0a78be;
  font-size: 32px;
}

.author-directory-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111827;
}

.author-directory-card__short {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
  line-height: 1.45;
}

.author-directory-card__long {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-directory-card__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0a78be;
}

.author-directory-card__linkedin {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f4fc;
  color: #0a66c2;
  z-index: 2;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.author-directory-card__linkedin:hover {
  background: #d0e8f7;
  color: #004182;
  text-decoration: none;
}

.author-page-empty {
  text-align: center;
  padding: 2rem;
}

.author-page-about {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.author-page-about__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: #111;
}

.author-page-about__text {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  margin: 0;
}

.author-posts-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-posts-section__count {
  color: #80868b;
  margin-bottom: 1.25rem;
}

.author-post-card {
  border: 1px solid #e8eaed;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.author-post-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.author-post-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.author-post-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}

.author-post-card__title a {
  color: #1a1a2e;
  text-decoration: none;
}

.author-post-card__title a:hover {
  color: #0a78be;
}

.author-post-card__excerpt {
  color: #5f6368;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.author-post-card__meta {
  color: #80868b;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.author-post-card__read {
  color: #0a78be;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.author-post-card.is-hidden {
  display: none;
}

.author-posts-load-wrap {
  margin-top: 1.5rem;
}

.blog-banner-author-link {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .author-page-banner {
    padding: 2rem 0 1.75rem;
  }

  .author-page-banner__name {
    font-size: 1.75rem;
  }

  .author-page-banner__layout {
    flex-direction: column;
    text-align: center;
  }

  .author-page-about {
    padding: 22px 20px;
  }

  .author-profile-card--post {
    padding: 18px;
  }
}
