/* ─── Blog single: author card ─── */
.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-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: #9aa0a6;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
}

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

.author-profile-media {
  flex: 0 0 auto;
}

/* Override .publicBlog img { width: 100% } */
.publicBlog .author-profile-card .author-profile-photo,
.publicBlog .author-profile-card .author-profile-photo-link .author-profile-photo {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  min-width: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 !important;
  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;
}

.author-profile-photo--placeholder .material-icons {
  font-size: 48px;
}

.author-profile-photo-link {
  display: block;
  line-height: 0;
  border-radius: 50%;
}

.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.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

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

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

.author-profile-role {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 10px;
  font-weight: 500;
  line-height: 1.4;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.author-profile-meta__icon {
  font-size: 18px !important;
  width: auto !important;
  height: auto !important;
}

.author-profile-bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 10px;
}

.author-profile-bio--excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.author-profile-more:hover {
  text-decoration: underline;
  color: #065a8f;
}

.author-linkedin-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8f4fc;
  color: #0a66c2;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.author-linkedin-inline:hover {
  background: #d0e8f7;
  color: #004182;
  text-decoration: none;
  transform: translateY(-1px);
}

.author-linkedin-inline svg {
  width: 20px !important;
  height: 20px !important;
}

.author-post-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

.author-post-nav .btn-nav {
  background: #0a78be;
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.author-post-nav .btn-nav:hover {
  background: #086299;
  color: #fff;
}

.author-post-nav .btn-nav--disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.55;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #fff;
}

.blog-banner-author-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-banner-author-link:hover {
  color: #e0f2fe;
}

/* ─── Author dedicated page: banner + body ─── */
.author-page-banner {
  position: relative;
  padding: 3rem 0 2.5rem;
  margin-bottom: 0;
  overflow: hidden;
}

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

.author-page-banner__bg::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;
}

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

.author-page-banner__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.25rem;
  font-weight: 600;
}

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

.author-page-banner__media {
  flex: 0 0 auto;
}

.publicBlog .author-page-banner__photo {
  width: 160px !important;
  height: 160px !important;
  max-width: 160px !important;
  min-width: 160px;
  border-radius: 50%!important;
  object-fit: cover;
  margin: 0 !important;
  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 !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.author-page-banner__photo--placeholder .material-icons {
  font-size: 64px;
}

.author-page-banner__info {
  flex: 1 1 280px;
  min-width: 0;
  color: #fff;
}

.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;
}

.author-page-banner__actions {
  margin-bottom: 16px;
}

.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;
  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__linkedin svg {
  width: 20px !important;
  height: 20px !important;
}

.author-page-banner__crumbs {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.author-page-banner__crumbs a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.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-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 {
  margin-top: 0;
}

.author-posts-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111;
}

.author-posts-section__count {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
}

/* Author page: blog grid cards */
.author-post-item--hidden {
  display: none !important;
}

.author-blog-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

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

.author-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.author-blog-card__link:hover {
  text-decoration: none;
  color: inherit;
}

.author-blog-card__image {
  /* aspect-ratio: 16 / 10; */
  /* overflow: hidden; */
  background: #f1f5f9;
}

.publicBlog .author-blog-card__image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0;
}

.author-blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.author-blog-card__image-placeholder .material-icons {
  font-size: 48px;
}

.author-blog-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.author-blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
  color: #111827;
}

.author-blog-card__desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

.author-blog-card__meta .material-icons {
  font-size: 16px !important;
  width: auto !important;
  height: auto !important;
}

.author-blog-card__read {
  margin-left: auto;
  color: #0a78be;
  font-weight: 600;
}

.author-posts-load-more {
  min-width: 160px;
  padding: 0.55rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  background: #0a78be;
  border-color: #0a78be;
}

.author-posts-load-more:hover {
  background: #086299;
  border-color: #086299;
}

/* Authors directory (/author) */
.author-page-banner--directory .author-page-banner__layout {
  display: block;
}

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

.author-page-banner__all-authors {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: 10px;
}

.author-page-banner__all-authors:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.author-page-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.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;
  text-decoration: none;
  color: inherit;
  padding-right: 3rem;
}

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

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

.publicBlog .author-directory-card__media img {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  min-width: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 !important;
  border: 3px solid #f1f3f4;
}

.author-directory-card__placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8f4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a78be;
}

.author-directory-card__placeholder .material-icons {
  font-size: 40px;
}

.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;
}

.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;
}

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

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

/* ─── Responsive ─── */
@media (max-width: 767.98px) {
  .author-profile-card--post {
    padding: 20px 18px;
  }

  .author-profile-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-profile-header {
    justify-content: center;
  }

  .author-profile-meta {
    justify-content: center;
  }

  .author-page-banner {
    padding: 2rem 0 1.75rem;
  }

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

  .author-page-banner__crumbs {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }

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

@media (max-width: 500px) {
  .publicBlog .author-profile-card .author-profile-photo,
  .publicBlog .author-profile-card .author-profile-photo-link .author-profile-photo {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    min-width: 100px;
  }

  .publicBlog .author-page-banner__photo {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    min-width: 120px;
    
  }
}

/* ─── Admin (unchanged) ─── */
.admin-author-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-author-panel__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: #1e293b;
}

.admin-author-panel__hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.admin-author-panel__hint a {
  color: #0a78be;
}

.admin-author-preview {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  min-height: 100px;
}

.admin-author-preview--empty {
  color: #94a3b8;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.admin-author-preview__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.admin-author-preview__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}

.admin-author-preview__name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: #0f172a;
}

.admin-author-preview__role {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 8px;
}

.admin-author-preview__bio {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  max-height: 4.5em;
  overflow: hidden;
}

.admin-authors-page .admin-author-form-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
  margin-bottom: 2rem;
}

.admin-authors-page .admin-author-form-card .card-header {
  background: #0a78be;
  color: #fff;
  font-weight: 600;
  border-radius: 12px 12px 0 0 !important;
}

.admin-authors-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.admin-authors-list-card .table {
  margin: 0;
}

.admin-authors-list-card .table thead th {
  background: #f1f5f9;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.admin-authors-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-authors-page-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
