/* ===== Kenya Ni Home Author Page ===== */
:root {
  --author-navy: #071b44;
  --author-green: #087a43;
  --author-red: #ef3439;
  --author-bg: #ffffff;
  --author-muted: #4b5563;
  --author-border: #e8edf0;
  --author-radius: 4px;
}

.author-page {
  font-family: 'Montserrat', sans-serif;
  background: #f8fafc;
  color: var(--author-navy);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 44px;
}

@media (min-width: 768px) {
  .author-page {
    padding: 0 24px 44px;
  }
}

/* ===== Hero ===== */
.author-hero {
  margin: 24px 0 28px;
  background: linear-gradient(135deg, #f6faf7 0%, #ffffff 100%);
  border: 1px solid var(--author-border);
  border-radius: 12px;
  padding: 28px;
}

.author-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.author-hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
}

.author-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.author-hero-body {
  min-width: 0;
}

.author-hero-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--author-navy);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.author-hero-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--author-green);
  margin: 0 0 14px;
}

.author-hero-bio {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--author-muted);
  margin: 0 0 16px;
  max-width: 640px;
}

.author-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.author-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--author-navy);
}

.author-hero-meta-item svg {
  color: var(--author-green);
}

.author-hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--author-border);
  color: var(--author-navy);
  text-decoration: none;
  transition: all 200ms ease;
}

.author-social-link:hover {
  background: var(--author-green);
  color: var(--author-bg);
  border-color: var(--author-green);
}

/* ===== Controls / Editorial Toolbar ===== */
.author-toolbar {
  border-bottom: 1px solid var(--author-border);
  padding: 18px 0 20px;
  margin-bottom: 24px;
}

.author-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.author-toolbar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.author-toolbar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--author-navy);
  margin: 0;
  white-space: nowrap;
}

.author-toolbar-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--author-muted);
  white-space: nowrap;
}

.author-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.author-search {
  padding: 8px 12px;
  border: 1px solid var(--author-border);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
  min-width: 220px;
  color: var(--author-navy);
  background: #fff;
}

.author-search:focus {
  border-color: var(--author-green);
  box-shadow: 0 0 0 3px rgba(8, 122, 67, 0.08);
}

.author-sort {
  padding: 8px 12px;
  border: 1px solid var(--author-border);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--author-navy);
  cursor: pointer;
  white-space: nowrap;
}

/* ===== Scrollable Category Row ===== */
.author-category-row {
  position: relative;
  display: flex;
  align-items: center;
}

.author-category-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
  padding-right: 36px;
  flex-shrink: 0;
}

.author-category-scroll::-webkit-scrollbar {
  height: 8px;
}

.author-category-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.author-category-scroll::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 4px;
  border: 2px solid #f1f5f9;
}

.author-category-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.author-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--author-border);
  background: #ffffff;
  color: var(--author-navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.author-filter-chip:hover {
  border-color: var(--author-green);
  color: var(--author-green);
}

.author-filter-chip.is-active {
  background: var(--author-green);
  color: var(--author-bg);
  border-color: var(--author-green);
}

.author-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--author-border);
  background: #ffffff;
  color: var(--author-navy);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: all 200ms ease;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.author-scroll-arrow:hover:not(:disabled) {
  opacity: 1;
  border-color: var(--author-green);
  color: var(--author-green);
}

.author-scroll-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.author-scroll-prev { left: -8px; }
.author-scroll-next { right: -8px; }

@media (max-width: 767px) {
  .author-scroll-arrow {
    opacity: 1;
    pointer-events: auto;
  }

  .author-category-scroll {
    padding-right: 0;
  }
}

/* ===== Layout ===== */
.author-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding-bottom: 48px;
}

.author-stories-header {
  margin-bottom: 20px;
}

.author-stories-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--author-navy);
  margin: 0;
}

.author-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.author-story {
  border-top: 1px solid var(--author-border);
  padding-top: 22px;
}

.author-story:first-child {
  border-top: none;
  padding-top: 0;
}

.author-story-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.author-story-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--author-radius);
  margin-bottom: 14px;
  background: #e5e7eb;
}

.author-story-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-story-category {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--author-green);
}

.author-story-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--author-navy);
  margin: 0;
}

.author-story-excerpt {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--author-muted);
  margin: 0;
}

.author-story-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--author-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.author-story-sep {
  color: var(--author-border);
}

.author-stories-empty {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--author-muted);
  padding: 24px 0;
}

/* ===== Sidebar ===== */
.author-sidebar-card {
  position: sticky;
  top: 100px;
}

.author-sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--author-navy);
  margin: 0 0 14px;
}

.author-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.author-sidebar-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--author-navy);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--author-border);
  transition: color 200ms ease;
}

.author-sidebar-links a:last-child {
  border-bottom: none;
}

.author-sidebar-links a:hover {
  color: var(--author-red);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .author-layout {
    grid-template-columns: 1fr;
  }
  .author-sidebar {
    display: none;
  }
  .author-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .author-page {
    padding: 0 16px;
  }
  .author-hero {
    padding: 20px;
  }
  .author-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-hero-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .author-hero-meta {
    justify-content: center;
  }
  .author-hero-social {
    justify-content: center;
  }
  .author-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }
  .author-toolbar-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .author-toolbar-title {
    white-space: normal;
  }
  .author-toolbar-count {
    white-space: normal;
  }
  .author-toolbar-actions {
    width: 100%;
  }
  .author-search {
    min-width: auto;
    width: 100%;
  }
  .author-sort {
    width: 100%;
  }
  .author-category-scroll {
    padding-right: 0;
  }
  .author-stories-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .author-story {
    border-top: 1px solid var(--author-border);
    padding: 18px 0;
  }
  .author-story:first-child {
    border-top: 1px solid var(--author-border);
    padding-top: 18px;
  }
  .author-story-title {
    font-size: 18px;
  }
  .author-story-excerpt {
    font-size: 14px;
  }
}

/* ===== Premium author page ===== */
.author-page {
  background: #f8fafc;
  padding: 0 16px 44px;
}

@media (min-width: 768px) {
  .author-page {
    padding: 0 24px 44px;
  }
}

.author-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%, #fff7ed 100%);
  border: 1px solid #d1fae5;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.author-hero::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 144, 99, 0.09), transparent 70%);
  border-radius: 50%;
}

.author-hero-inner {
  position: relative;
  z-index: 1;
}

.author-hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  background: #e5e7eb;
}

.author-hero-avatar img {
  filter: none;
}

.author-hero-name {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.author-hero-role {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.author-hero-meta-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.author-social-link {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  width: 42px;
  height: 42px;
}

.author-social-link:hover {
  background: #009063;
  border-color: #009063;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 144, 99, 0.25);
}

.author-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: 0 6px 24px -14px rgba(0, 0, 0, 0.12);
}

.author-toolbar-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.author-toolbar-count {
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.author-search {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 14px;
  min-width: 240px;
  background: #f8fafc;
  font-size: 13px;
}

.author-search:focus {
  background: #ffffff;
  border-color: #009063;
  box-shadow: 0 0 0 3px rgba(0, 144, 99, 0.1);
}

.author-sort {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 14px;
  background: #f8fafc;
  font-size: 13px;
}

.author-filter-chip {
  border-radius: 999px;
  padding: 7px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
}

.author-filter-chip:hover {
  border-color: #009063;
  color: #009063;
  background: #f0fbf6;
}

.author-filter-chip.is-active {
  background: #009063;
  border-color: #009063;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 144, 99, 0.22);
}

.author-stories-header h2 {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.author-stories-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.author-story {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-story:first-child {
  border-top: 1px solid #e2e8f0;
  padding-top: 0;
}

.author-story:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.18);
  border-color: #a7f3d0;
}

.author-story-image {
  margin-bottom: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

.author-story-content {
  padding: 16px;
  gap: 7px;
}

.author-story-category {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #009063;
}

.author-story-title {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
}

.author-story-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-story-meta {
  font-size: 11.5px;
  color: #94a3b8;
}

.author-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 24px -14px rgba(0, 0, 0, 0.12);
}

.author-sidebar-title {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #64748b;
}

.author-sidebar-links a {
  border-radius: 8px;
  padding: 9px 10px;
  border-bottom: 0;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}

.author-sidebar-links a:hover {
  background: #f0fbf6;
  color: #009063;
}

@media (max-width: 1199px) {
  .author-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .author-page {
    padding: 0 16px 32px;
  }
  .author-hero {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .author-hero-avatar {
    width: 110px;
    height: 110px;
    border-width: 3px;
  }
  .author-hero-name {
    font-size: 24px;
  }
  .author-hero-role {
    font-size: 10px;
  }
  .author-hero-meta {
    gap: 8px;
  }
  .author-hero-meta-item {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .author-toolbar {
    padding: 14px;
    border-radius: 14px;
    margin: 16px 0;
  }
  .author-toolbar-top {
    gap: 10px;
  }
  .author-toolbar-actions {
    flex-direction: column;
    gap: 8px;
  }
  .author-search,
  .author-sort {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }
  .author-filter-chip {
    padding: 6px 13px;
    font-size: 12px;
  }
  .author-stories-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .author-story {
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    padding-top: 0;
  }
  .author-story:first-child {
    border: 1px solid #e2e8f0;
    padding-top: 0;
  }
  .author-story-image {
    aspect-ratio: 16 / 9;
  }
  .author-story-content {
    padding: 14px;
  }
  .author-story-title {
    font-size: 16px;
  }
}

/* ===== Premium author toolbar ===== */
.author-toolbar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid #e6edf0;
  border-radius: 18px;
  padding: 22px 24px 18px;
  margin: 20px 0 26px;
  box-shadow: 0 8px 32px -18px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.author-toolbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #009063 0%, #f68b1e 60%, #dc1027 100%);
}

.author-toolbar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.author-toolbar-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.author-toolbar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #009063;
  background: #ecfdf5;
  padding: 3px 9px;
  border-radius: 999px;
}

.author-toolbar-eyebrow i {
  font-size: 11px;
}

.author-toolbar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0f172a;
  margin: 0;
  white-space: normal;
}

.author-toolbar-title span {
  color: #009063;
}

.author-toolbar-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: normal;
}

.author-toolbar-count strong {
  color: #0f172a;
  font-weight: 800;
}

.author-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.author-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 240px;
}

.author-search-wrap > i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.author-search {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px 9px 34px;
  background: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  transition: all 0.18s ease;
  min-width: 240px;
}

.author-search:focus {
  background: #ffffff;
  border-color: #009063;
  box-shadow: 0 0 0 3px rgba(0, 144, 99, 0.1);
}

.author-sort {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  background: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: all 0.18s ease;
}

.author-sort:focus {
  border-color: #009063;
  box-shadow: 0 0 0 3px rgba(0, 144, 99, 0.1);
}

.author-category-row {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #eef2f5;
}

.author-category-scroll {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 40px;
  flex-shrink: 0;
  width: 100%;
}

.author-category-scroll::-webkit-scrollbar {
  display: none;
}

.author-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.author-filter-chip:hover {
  border-color: #009063;
  color: #009063;
  background: #f0fbf6;
  transform: translateY(-1px);
}

.author-filter-chip.is-active {
  background: linear-gradient(135deg, #0b8f5f, #009063);
  border-color: #009063;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 144, 99, 0.25);
}

.author-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.18s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-toolbar:hover .author-scroll-arrow:not(:disabled) {
  opacity: 1;
}

.author-scroll-arrow:hover:not(:disabled) {
  border-color: #009063;
  color: #009063;
}

.author-scroll-arrow:disabled {
  opacity: 0;
  cursor: default;
}

.author-scroll-prev { left: -6px; }
.author-scroll-next { right: -6px; }

@media (max-width: 767px) {
  .author-toolbar {
    padding: 16px 14px 14px;
    border-radius: 14px;
    margin: 16px 0 20px;
  }
  .author-toolbar-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .author-toolbar-title {
    font-size: 19px;
  }
  .author-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .author-search-wrap,
  .author-search,
  .author-sort {
    min-width: 0;
    width: 100%;
  }
  .author-category-scroll {
    padding-right: 0;
  }
  .author-scroll-arrow {
    display: none;
  }
  .author-filter-chip {
    padding: 6px 13px;
    font-size: 11.5px;
  }
}

/* ===== Award-winning author hero ===== */
.author-hero {
  background: linear-gradient(135deg, #0b8f5f 0%, #009063 45%, #007a52 100%);
  border: none;
  border-radius: 22px;
  padding: 40px 44px;
  margin: 20px 0 24px;
  box-shadow: 0 20px 50px -24px rgba(0, 144, 99, 0.45);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.author-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.author-hero::after {
  content: '';
  position: absolute;
  bottom: -90px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(246, 139, 30, 0.16), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.author-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.author-hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 38px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.author-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  display: block;
}

.author-hero-body {
  min-width: 0;
}

.author-hero-role {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.author-hero-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 10px;
}

.author-hero-bio {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
  max-width: 640px;
}

.author-hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.author-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 9px 16px;
  min-width: 92px;
  backdrop-filter: blur(6px);
}

.author-stat strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.author-stat span {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.author-hero-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  backdrop-filter: blur(6px);
}

.author-social-link:hover {
  background: #ffffff;
  color: #009063;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .author-hero {
    padding: 24px 18px;
    border-radius: 16px;
    margin: 16px 0 20px;
  }
  .author-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    justify-items: center;
  }
  .author-hero-avatar {
    width: 96px;
    height: 96px;
    border-width: 3px;
    font-size: 28px;
  }
  .author-hero-name {
    font-size: 26px;
  }
  .author-hero-bio {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .author-hero-stats {
    justify-content: center;
    gap: 8px;
  }
  .author-stat {
    padding: 7px 12px;
    min-width: 78px;
  }
  .author-stat strong {
    font-size: 14px;
  }
  .author-hero-social {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}
