.ecd-author-main {
  padding: 2rem 0 5rem 0;
  background-color: #f8fafc;
  min-height: 80vh;
}

.ecd-author-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ecd-author-breadcrumb {
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ecd-author-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ecd-author-breadcrumb a:hover {
  color: #1E9FF2;
}

.ecd-author-breadcrumb .ecd-breadcrumb__sep,
.ecd-author-breadcrumb .separator {
  color: #cbd5e1;
  padding: 0 0.15rem;
}

.ecd-author-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ecd-author-card--header {
  padding: 2.75rem 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1.75rem;
}

.ecd-author-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  width: 130px;
  height: 130px;
}

.ecd-author-avatar {
  width: 130px;
  height: 130px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid #f0f9ff;
  box-shadow: 0 0 0 1px #bae6fd, 0 8px 24px -4px rgba(30, 159, 242, 0.2);
}

.ecd-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.ecd-author-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  line-height: 1.2;
}

.ecd-author-name {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.45rem 0;
  line-height: 1.15;
}

.ecd-author-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ecd-author-google-action {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
}

.ecd-author-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 0;
  box-sizing: border-box;
}

.ecd-author-social-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.ecd-author-social-btn:hover {
  border-color: #1E9FF2;
  color: #1E9FF2;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 159, 242, 0.15);
}

.ecd-author-card--bio {
  padding: 2.75rem 3rem;
  margin-bottom: 3.5rem;
}

.ecd-author-subtitle {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.ecd-author-bio-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
}

.ecd-author-bio-body h2 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 1rem 0;
  line-height: 1.3;
}

.ecd-author-bio-body h2:first-child {
  margin-top: 0;
}

.ecd-author-bio-body h3 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.75rem 0 0.85rem 0;
}

.ecd-author-bio-body p {
  margin-bottom: 1.35rem;
  line-height: 1.8;
  color: #334155;
}

.ecd-author-bio-body ul,
.ecd-author-bio-body ol {
  margin: 0 0 1.35rem 1.5rem;
  color: #334155;
  line-height: 1.75;
}

.ecd-author-bio-body li {
  margin-bottom: 0.5rem;
}

.ecd-author-bio-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-left: 3px solid #1E9FF2;
  border-radius: 0 10px 10px 0;
  color: #475569;
  font-style: italic;
}

.ecd-author-articles-section {
  margin-top: 2rem;
}

.ecd-author-section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ecd-author-section-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.ecd-author-count-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.3rem 0.75rem;
  border-radius: 10px;
  line-height: 1.2;
}

.ecd-author-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.ecd-author-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ecd-author-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.ecd-author-post-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #081220;
}

.ecd-author-post-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.ecd-author-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ecd-author-post-card:hover .ecd-author-post-card__img {
  transform: scale(1.04);
}

.ecd-author-post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #16243b 0%, #0d1728 50%, #060b13 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  box-sizing: border-box;
}

.ecd-author-post-card__placeholder span {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.ecd-author-post-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  display: inline-block;
}

.ecd-author-post-card__title {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.ecd-author-post-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.ecd-author-post-card__title a:hover {
  color: #1E9FF2;
}

.ecd-author-post-card__excerpt {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ecd-author-post-card__footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

.ecd-author-post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ecd-author-post-card__dot {
  color: #cbd5e1;
}

.ecd-author-post-card__link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ecd-author-post-card__link:hover {
  color: #1E9FF2;
  transform: translateX(2px);
}

.ecd-author-pagination-wrap {
  margin-top: 4rem;
  text-align: center;
}

.ecd-author-pagination-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem 0;
}

.ecd-author-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ecd-author-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ecd-author-pagination .page-numbers:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ecd-author-pagination .page-numbers.current {
  background: #1E9FF2;
  border-color: #1E9FF2;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(30, 159, 242, 0.25);
}

.ecd-author-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
}

@media (max-width: 1200px) {
  .ecd-author-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .ecd-author-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecd-author-card--header {
    padding: 2rem;
    gap: 1.75rem;
  }
  .ecd-author-card--bio {
    padding: 2rem;
  }
  .ecd-author-name {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .ecd-author-card--header {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }
  .ecd-author-info {
    align-items: center;
  }
  .ecd-author-card--bio {
    padding: 1.75rem 1.25rem;
  }
  .ecd-author-grid {
    grid-template-columns: 1fr;
  }
  .ecd-author-name {
    font-size: 1.65rem;
  }
}
