/* Author Archive Specific Styles */
.author-archive-info {
  position: relative;
  left: 50%;
  right: 0 !important;
  width: 100vw;
  margin-left: -50vw;
  z-index: auto;
  margin-bottom: 24px;
  background-image: url('../assets/WEEKLY.jpg');
  background-size: auto;
  background-position: center;
  border-bottom-right-radius: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #fff;
  min-height: 180px;
  max-height: 500px;
  padding: 20px 15px;
  overflow: hidden;
}

.author-archive-avatar {
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #30af9e;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  margin-top: 30px;
}

.author-archive-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-archive-details {
  margin-top: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.author-archive-details h2,
.author-archive-details p {
  color: #ffffff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Custom scrollbar for author details */
.author-archive-details::-webkit-scrollbar {
  width: 6px;
}

.author-archive-details::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.author-archive-details::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.author-archive-details::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.author-archive-social {
  margin-top: 10px;
  color: #ffffff;
}

.author-archive-social a {
  margin-right: 10px;
}

.author-filter-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.author-filter-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Base Button Styles */
.author-filter-button,
.reset-button {
  height: 40px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 6px;
  border: 1.5px solid #3147cc;
  background-color: #ffffff;
  color: #3174cc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.author-filter-button:hover,
.reset-button:hover {
  background-color: #3174cc;
  color: #ffffff;
  border-color: #3174cc;
}

/* Sort Dropdown Wrapper */
.select-wrapper {
  position: relative;
  display: inline-block;
}

#sort-posts {
  height: 40px;
  padding: 8px 16px;
  padding-right: 34px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid #3147cc;
  background-color: #ffffff;
  color: #3147cc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%233275cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

#sort-posts:hover {
  background-color: #3147cc;
  color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#sort-posts:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(50, 117, 204, 0.25);
}

.select-wrapper select option {
  color: #000;
  background-color: #ffffff;
  border: none;
}

.select-wrapper select option:hover,
.select-wrapper select option:checked:hover {
  background-color: rgba(50, 117, 204, 0.1);
}

.author-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}

.author-post-card {
  flex: 0 1 calc(33.333% - 20px);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  border-radius: 15px !important;
  max-width: calc(33.333% - 20px);
  padding-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.author-post-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
.author-post-meta {
  padding: 15px;
}

.author-post-category {
  display: inline-block;
  background-color: #3147cc;
  color: #ffffff !important;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.author-post-category a {
  color: #ffffff !important;
  text-decoration: none;
}

.author-post-title {
  margin: 10px 0;
  font-size: 1.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.6em;
}

.author-post-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
  pointer-events: auto;
}
.author-post-title a:hover {
  color: #3147cc !important;
  text-decoration: underline !important;
}
.author-post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

.author-post-author-date {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  color: #777;
  margin-top: 10px;
}

.author-post-author-avatar {
  margin-right: 8px;
}

.author-post-author {
  margin-right: 8px;
}

.author-post-date {
  margin-left: 8px;
}

@media (max-width: 1024px) {
  .author-post-card {
    flex: 0 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

@media (min-width: 481px) and (max-width: 905px) {
  .author-post-card {
    flex: 0 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 768px) {
  .author-archive-info {
    border-bottom-right-radius: 70px;
    padding: 20px 30px;
    max-height: 450px;
    align-items: center;
    flex-direction: row;
  }
  .author-archive-details {
    max-height: 350px;
  }
  .author-archive-avatar {
    height: 80px;
    width: 80px;
    min-width: 80px;
    min-height: 80px;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
    margin-top: 30px;
  }
  .author-archive-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .author-post-card {
    flex: 0 1 100% !important;
    max-width: 100% !important;
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .author-archive-info {
    padding: 20px 25px;
    max-height: 400px;
    align-items: center;
    flex-direction: row;
  }
  
  .author-archive-details {
    max-height: 300px;
  }
  
  .author-archive-avatar,
  .author-avatar {
    height: 70px;
    width: 70px;
    min-width: 70px;
    min-height: 70px;
    align-self: flex-start;
    margin-top: 30px;
  }
}

@media (max-width: 360px) {
  .author-archive-info {
    padding: 20px 20px;
    max-height: 350px;
    align-items: center;
    flex-direction: row;
  }
  
  .author-archive-details {
    max-height: 250px;
  }
  
  .author-archive-avatar,
  .author-avatar {
    height: 60px;
    width: 60px;
    min-width: 60px;
    min-height: 60px;
    align-self: flex-start;
    margin-top: 30px;
  }
}

.author-info {
  position: relative;
  left: 50%;
  right: 0 !important;
  width: 100vw;
  margin-left: -50vw;
  z-index: auto;
  margin-bottom: 24px;
  background-image: url('./assets/WEEKLY.jpg');
  background-size: auto;
  background-position: center;
  border-bottom-right-radius: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #fff;
  min-height: 180px;
  max-height: 500px;
  padding: 20px 15px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .author-info {
    border-bottom-right-radius: 70px;
    flex-direction: row;
    padding: 20px 30px;
    max-height: 450px;
    align-items: center;
  }
  .author-details {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
  }
  .author-avatar {
    height: 80px;
    width: 80px;
    min-width: 80px;
    min-height: 80px;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
    margin-top: 30px;
  }
  .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .author-info {
    padding: 20px 25px;
    max-height: 400px;
    align-items: center;
    flex-direction: row;
  }
  .author-details {
    max-height: 300px;
  }
  .author-avatar {
    align-self: flex-start;
    margin-top: 30px;
  }
}

@media (max-width: 360px) {
  .author-info {
    padding: 20px 20px;
    max-height: 350px;
    align-items: center;
    flex-direction: row;
  }
  .author-details {
    max-height: 250px;
  }
  .author-avatar {
    align-self: flex-start;
    margin-top: 30px;
  }
}

.author-avatar {
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #30af9e;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  margin-top: 30px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-details {
  margin-top: 20px;
  max-width: 600px;
  width: 100%;
}

.author-details h2,
.author-details p {
  color: #ffffff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Custom scrollbar for author details */
.author-details::-webkit-scrollbar {
  width: 6px;
}

.author-details::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.author-details::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.author-details::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
 .popup-content {
      max-height: 600px;
      overflow-y: auto;
      padding-right: 10px;
      padding-top: 20px;
      margin: 15px 0;
      width: 100% !important;
  }

  .archive .post-thumbnail{
    height: 180px;
  }

  .popup-overlay{
    bottom: 60px !important;
  }