/*--------------------------------------------------------------
# Archive Pages
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Author Archive Header
--------------------------------------------------------------*/
.author-archive-header {
  margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Search Results Header
--------------------------------------------------------------*/
.search-results-header {
  margin-bottom: 2rem;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.search-results-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--main-gray-950);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.search-query {
  color: var(--color-gold);
  font-weight: 700;
}

.search-results-count {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-gray-950);
  margin: 0;
}

/* Responsive Styles for Search Results */
@media screen and (max-width: 991px) {
  .search-results-header {
    padding: 24px;
    border-radius: 12px;
  }

  .search-results-title {
    font-size: 28px;
  }
}

@media screen and (max-width: 767px) {
  .search-results-header {
    padding: 20px;
    text-align: center;
  }

  .search-results-title {
    font-size: 24px;
  }

  .search-results-count {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .search-results-header {
    padding: 16px;
  }

  .search-results-title {
    font-size: 20px;
  }

  .search-results-count {
    font-size: 13px;
  }
}

.author-archive-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--main-gray-100);
}

.author-archive-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
}

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

.author-archive-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.author-archive-top-wrapper {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 16px;
}

.author-archive-name {
  color: var(--main-blue-950);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.author-archive-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.author-archive-bio {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--main-gray-950);
  margin: 0;
}

.author-archive-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.author-archive-social a:hover {
  transform: translateY(-2px);
}

.author-archive-social a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(14%) sepia(80%) saturate(747%)
    hue-rotate(176deg) brightness(97%) contrast(104%);
}

/* Responsive Styles for Author Archive */
@media screen and (max-width: 991px) {
  .author-archive-info {
    padding: 24px;
    border-radius: 12px;
  }

  .author-archive-avatar {
    width: 100px;
    height: 100px;
  }

  .author-archive-name {
    font-size: 28px;
  }

  .author-archive-top-wrapper {
    gap: 20px;
  }

  .author-archive-social {
    gap: 14px;
  }
}

.content-articles {
  margin-bottom: 40px
}

@media screen and (max-width: 767px) {
  .author-archive-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }

  .author-archive-avatar {
    width: 80px;
    height: 80px;
  }

  .author-archive-details {
    align-items: center;
    text-align: center;
  }

  .author-archive-top-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .author-archive-name {
    font-size: 22px;
  }

  .author-archive-bio {
    font-size: 14px;
    line-height: 1.5;
  }

  .author-archive-social {
    justify-content: center;
    gap: 12px;
  }
}

@media screen and (max-width: 575.98px) {
  .author-archive-info {
    padding: 16px;
    gap: 12px;
  }

  .author-archive-avatar {
    width: 70px;
    height: 70px;
  }

  .author-archive-name {
    font-size: 20px;
  }

  .author-archive-bio {
    font-size: 13px;
    line-height: 1.5;
  }

  .author-archive-social {
    gap: 10px;
  }

  .author-archive-social a {
    width: 20px;
    height: 20px;
  }

  .author-archive-social a img {
    width: 20px;
    height: 20px;
  }
}

/* Featured Sidebar */
.blog-homepage-featured-side {
  background-color: var(--main-blue-1000);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.blog-homepage-side-post {
  padding: 1rem 0;
  border-bottom: 1px solid #fff;
}

.blog-homepage-side-post:first-child {
  padding-top: 0;
}

.blog-homepage-side-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-homepage-side-post .post-thumbnail {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  position: relative;
}

.blog-homepage-side-post .post-thumbnail::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 90%,
    transparent 100%
  );
  border-radius: 8px;
  pointer-events: none;
}

.blog-homepage-side-post .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.blog-homepage-side-post .entry-header {
  flex: 1;
}

.blog-homepage-side-post .post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--main-yellow-400);
  text-decoration: none;
  text-transform: capitalize;
  margin-bottom: 0.4em;
}

.blog-homepage-side-post .entry-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}

.blog-homepage-side-post .entry-title a {
  color: #ffffff;
  text-decoration: none;
  display: block;
}

.blog-homepage-post-thumbnail-featured-list img {
  position: relative;
  width: 150px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}


@media screen and (max-width: 399.98px) {
  .author-archive-info {
    padding: 14px;
    gap: 10px;
  }

  .author-archive-avatar {
    width: 60px;
    height: 60px;
  }

  .author-archive-name {
    font-size: 18px;
  }

  .author-archive-bio {
    font-size: 12px;
    line-height: 1.4;
  }

  .author-archive-social {
    gap: 8px;
  }

  .author-archive-social a {
    width: 18px;
    height: 18px;
  }

  .author-archive-social a img {
    width: 18px;
    height: 18px;
  }
}
.archive-header {
  padding: 2em 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2em;
}

.page-title {
  font-size: 2.5rem;
  color: var(--color-navy);
}

.secondary-navigation {
  margin-bottom: 2em;
}

.secondary-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2em;
  border-bottom: 1px solid #eee;
  padding-bottom: 1em;
}

.secondary-navigation a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
}

/* Featured Post */

.featured-post .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.featured-post .entry-header {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  border-radius: 0 0 8px 8px;
}

.featured-post .post-category {
  background-color: var(--color-gold);
  color: var(--color-navy);
  padding: 0.3em 0.8em;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5em;
}

.featured-post .entry-title {
  font-size: 2.5rem;
  margin: 0;
}

.featured-post .entry-title a {
  color: var(--color-white);
  text-decoration: none;
}

.featured-post .entry-summary {
  color: #eee;
  margin-top: 0.5em;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.grid-post {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.grid-post .post-thumbnail {
  flex-shrink: 0;
}

.grid-post .post-thumbnail img {
  border-radius: 8px;
  width: 350px;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
}

.grid-post .entry-header {
  flex: 1;
}

.grid-post .entry-title {
  font-size: 24px;
  margin: 0;
  line-height: 1.4;
}

.grid-post .entry-title a {
  color: var(--main-gray-950);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.grid-post .entry-title a:hover {
  color: var(--main-blue-900);
}

/* Responsive Posts Grid */
@media (max-width: 991.98px) {
  .posts-grid {
    gap: 24px;
  }

  .grid-post .post-thumbnail img {
    width: 280px;
    height: 158px;
  }

  .grid-post .entry-title {
    font-size: 20px;
  }
}

@media (max-width: 767.98px) {
  .posts-grid {
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .grid-post {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 335px;
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
  }

  .grid-post .post-thumbnail {
    width: 100%;
    margin: 0;
  }

  .grid-post .post-thumbnail img {
    width: 100%;
    height: 190px;
    max-width: 335px;
    border-radius: 12px;
    object-fit: cover;
  }

  .grid-post .entry-header {
    padding: 16px;
    width: 100%;
  }

  .grid-post .entry-title {
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    margin: 0;
  }

  .grid-post .entry-title a {
    color: var(--main-gray-950);
    text-decoration: none;
    font-weight: 600;
  }

  .grid-post:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
  }

  .grid-post .entry-title a:hover {
    color: var(--main-blue-900);
  }
}

@media (max-width: 575.98px) {
  .posts-grid {
    gap: 16px;
    align-items: center;
  }

  .grid-post {
    max-width: inherit;
    overflow: hidden;
    margin: 12px 0;
  }

  .grid-post .post-thumbnail img {
    height: inherit;
    max-width: inherit;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .grid-post .entry-header {
    padding: 0;
  }

  .grid-post .entry-title {
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
  }
}

@media (max-width: 399.98px) {
  .posts-grid {
    gap: 14px;
    align-items: center;
  }

  .grid-post {
    max-width: inherit;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
  }

  .grid-post .post-thumbnail img {
    height: inherit;
    max-width: inherit;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
  }

  .grid-post .entry-header {
    padding: 0;
  }

  .grid-post .entry-title {
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
  }
}

.archive-sidebar-item {
  margin-bottom: 2rem;
}

/* Featured Posts */

/* Featured Main Post */
.featured-main {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
}

.featured-main article {
  max-height: 387px;
}

.featured-post .post-thumbnail {
  max-height: 387px;
  width: 100%;
}

.featured-post .post-thumbnail img {
  width: 100%;
  height: 100%;
}

.featured-post .post-thumbnail::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
}

.featured-post .entry-header {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5em;
  z-index: 2;
}

.featured-post .post-category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: capitalize;
  margin-bottom: 0.75em;
}

.featured-post .entry-title {
  font-size: 30px;
  margin: 0 0 0.5em 0;
  font-weight: 700;
}

.featured-post .entry-title a {
  color: #ffffff;
  text-decoration: none;
}

.featured-post .entry-summary {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Featured Sidebar */
.blog-archive-featured-side {
  background-color: var(--main-blue-1000);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.blog-archive-side-post {
  padding: 1rem 0;
  border-bottom: 1px solid #fff;
}

.blog-archive-side-post:first-child {
  padding-top: 0;
}

.blog-archive-side-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-archive-side-post .post-thumbnail {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  position: relative;
}

.blog-archive-side-post .post-thumbnail::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 90%,
    transparent 100%
  );
  border-radius: 8px;
  pointer-events: none;
}

.blog-archive-side-post .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.blog-archive-side-post .entry-header {
  flex: 1;
}

.blog-archive-side-post .post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--main-yellow-400);
  text-decoration: none;
  text-transform: capitalize;
  margin-bottom: 0.4em;
}

.blog-archive-side-post .entry-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}

.blog-archive-side-post .entry-title a {
  color: #ffffff;
  text-decoration: none;
  display: block;
}

.blog-archive-post-thumbnail-featured-list img {
  position: relative;
  width: 150px;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .featured-main {
    height: 400px;
  }

  .blog-archive-featured-side {
    height: auto;
    margin-top: 1.5rem;
  }

  .featured-post .entry-header {
    padding: 1.5rem;
  }

  .featured-post .entry-title {
    font-size: 1.5rem;
  }

  /* Main content layout adjustments */
  .site-main {
    margin-bottom: 2rem;
  }

  .archive-sidebar-item-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .featured-main {
    height: 350px;
  }

  .featured-post .entry-header {
    padding: 1.25rem;
  }

  .featured-post .entry-title {
    font-size: 1.25rem;
  }

  .featured-post .entry-summary {
    font-size: 0.875rem;
  }

  .archive-sidebar-item-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
  }

  /* Hide sidebar on mobile and stack content */
  .col-4 {
    display: none;
  }

  .site-main {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .featured-main {
    max-height: 225px;
  }

  .featured-post .entry-header {
    padding: 1rem;
  }

  .featured-post .entry-title {
    font-size: 1.125rem;
  }

  .archive-sidebar-item-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 399.98px) {
  .featured-main {
    height: 280px;
  }

  .featured-post .entry-header {
    padding: 0.875rem;
  }

  .featured-post .entry-title {
    font-size: 1rem;
  }

  .archive-sidebar-item-title {
    font-size: 1rem;
  }
}
