.author-page .page-title-section {
  background: #f8f9fa;
  padding: 60px 20px;
  margin: 0;
}

.author-page .elementor-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.author-page .back-button {
  position: absolute;
  top: 0;
  left: 0;
}

.author-page .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b6074;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.author-page .arrow-link svg {
  transform: rotate(180deg);
}

.author-page .author-bio-section {
  text-align: center;
  padding-top: 40px;
}

.author-page .author-avatar {
  margin-bottom: 30px;
}

.author-page .author-avatar img,
.author-page .author-avatar-img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  border: 4px solid #fff;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}

.author-page .title-h1 {
  font-size: 48px;
  font-weight: 700;
  color: #171514;
  margin-bottom: 24px;
  line-height: 1.2;
}

.author-page .author-bio {
  margin: 0 auto 30px;
  color: #4b6074;
  font-size: 20px;
  line-height: 1.6;
}

.author-page .author-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.author-page .posts-count {
  color: #171514;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.author-page .linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  background: #0077b5;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.author-page .elementor-section {
  padding: 80px 20px 80px 20px;
}

.author-page .author-posts .elementor-container {
  max-width: 1400px;
  margin: 0 auto;
}

.author-page .title-h2 {
  font-size: 36px;
  font-weight: 600;
  color: #171514;
  margin-bottom: 40px;
  text-align: center;
}

.author-page .posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

.author-page .post-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0px 4px 20px rgba(109, 135, 159, 0.12);
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 135, 159, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 1.2s ease forwards;
}

.author-page .post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.author-page .post-thumbnail img,
.author-page .post-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.author-page .post-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.author-page .post-meta {
  margin-bottom: 12px;
}

.author-page .post-meta time {
  color: #4b6074;
  font-size: 14px;
  font-weight: 500;
}

.author-page .post-title {
  margin-bottom: 16px;
  line-height: 24px;
  flex: 1;
}
@media (min-width: 992px) {
  .author-page .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 60px;
  }
}

.author-page .post-title a {
  text-decoration: none;
  color: #171514;
  font-size: 20px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.author-page .post-excerpt {
  color: #4b6074;
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 15px;
}

.author-page .btn.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  color: #4b6074;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #e1e5e9;
  margin-top: auto;
  text-align: center;
}

.author-page .no-posts-message {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 24px;
}

.author-page .no-posts-message h3 {
  margin-bottom: 16px;
  color: #4b6074;
}

.author-page .no-posts-message p {
  color: #4b6074;
}

/* HOVER */
.author-page .arrow-link:hover {
  color: #fa5d89 !important;
  background: rgba(250, 93, 137, 0.1) !important;
}

.author-page .linkedin-btn:hover {
  background: #005885 !important;
  transform: translateY(-1px);
}

.author-page .btn:hover {
  box-shadow: 0 4px 12px rgba(250, 93, 137, 0.3);
}

.author-page .post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 16px 2px rgba(109, 135, 159, 0.15);
}

.author-page .post-card:hover .post-thumbnail img,
.author-page .post-card:hover .post-thumbnail-img {
  transform: scale(1.05);
}

.author-page .post-card:hover .post-title a {
  color: #fa5d89 !important;
}

.author-page .post-card:hover .btn {
  background: #fa5d89 !important;
  color: white !important;
  border-color: #fa5d89 !important;
  transform: translateY(-1px);
}

/* MEDIA QUERIES */
@media (min-width: 1200px) {
  .author-page .posts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
  }

  .elementor-container {
    max-width: 1400px !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .author-page .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .elementor-container {
    max-width: 1200px !important;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .author-page .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .elementor-section {
    padding: 60px 20px !important;
  }

  .page-title-section {
    padding: 50px 20px !important;
  }

  .page-title-section h1 {
    font-size: 40px !important;
  }

  .author-page .author-bio {
    font-size: 18px !important;
  }

  .author-page .back-button {
    position: relative !important;
    margin-bottom: 20px !important;
  }

  .author-page .author-bio-section {
    padding-top: 0 !important;
  }
}

@media (max-width: 767px) {
  .author-page .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .elementor-section {
    padding: 60px 16px !important;
  }

  .page-title-section {
    padding: 40px 16px !important;
  }

  .page-title-section h1 {
    font-size: 32px !important;
    margin-bottom: 16px !important;
  }

  .author-page .author-bio {
    font-size: 16px !important;
  }

  .author-page .author-meta {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .author-page .post-card {
    border-radius: 20px !important;
  }

  .author-page .post-card:hover {
    transform: translateY(-4px);
  }

  .author-page .back-button {
    position: relative !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }

  .author-page .author-bio-section {
    padding-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .elementor-section {
    padding: 50px 12px !important;
  }

  .page-title-section {
    padding: 32px 12px !important;
  }

  .page-title-section h1 {
    font-size: 28px !important;
  }

  .author-page .post-card {
    border-radius: 16px !important;
    margin: 0 -5px;
  }

  .author-page .post-content {
    padding: 24px 20px !important;
  }
}

/* Animations */
.author-page .post-card,
.author-page .post-card *,
.author-page .btn,
.author-page .arrow-link,
.author-page .linkedin-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-page .post-card:nth-child(1) {
  animation-delay: 0.1s;
}
.author-page .post-card:nth-child(2) {
  animation-delay: 0.2s;
}
.author-page .post-card:nth-child(3) {
  animation-delay: 0.3s;
}
.author-page .post-card:nth-child(4) {
  animation-delay: 0.4s;
}
.author-page .post-card:nth-child(5) {
  animation-delay: 0.5s;
}
.author-page .post-card:nth-child(6) {
  animation-delay: 0.6s;
}
.author-page .post-card:nth-child(7) {
  animation-delay: 0.7s;
}
.author-page .post-card:nth-child(8) {
  animation-delay: 0.8s;
}
.author-page .post-card:nth-child(9) {
  animation-delay: 0.9s;
}
.author-page .post-card:nth-child(10) {
  animation-delay: 1s;
}
.author-page .post-card:nth-child(11) {
  animation-delay: 1.1s;
}
.author-page .post-card:nth-child(12) {
  animation-delay: 1.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
