/* Featured posts section styles */
.featured-posts {
  margin-top: 24px;
  margin-bottom: 24px;
}
.featured-posts h2 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  color: var(--header-text);
  margin-bottom: 16px;
  font-weight: 600;
}
.featured-posts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.featured-post-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.featured-post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.featured-post-content {
  min-width: 0;
}
.featured-post-card .post-breadcrumb {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 2px;
}
.featured-post-card h3 {
  font-family: var(--font-header);
  font-size: 1.1rem;
  color: var(--header-text);
  margin-bottom: 8px;
  font-weight: 600;
}
.featured-post-card:hover h3 {
  color: var(--nav-hover-text);
}
.featured-post-icon-wrap {
  flex: 0 0 96px;
}
.featured-post-icon {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.featured-post-card .excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.5;
}
.featured-post-card .post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.featured-post-card .post-date {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}
.featured-post-card .read-more {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--nav-hover-text);
  text-decoration: underline;
}
.posts-pagination {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.posts-pagination-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
}
.posts-pagination-form label {
  color: #0f172a;
}
.posts-pagination-form select {
  border: 1px solid #b8c6d8;
  border-radius: 10px;
  padding: 6px 30px 6px 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.posts-pagination-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.posts-pagination-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  font-size: 0.92rem;
  white-space: nowrap;
  flex: 0 0 auto;
}
.posts-page-meta {
  background: #eef4ff;
  color: #1e3a8a;
  border: 1px solid #d5e4ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.posts-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #bfd3f8;
  background: #ffffff;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.posts-page-btn:hover {
  background: #eff6ff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}
.posts-page-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

@media (max-width: 900px) {
  .posts-pagination {
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .featured-post-card {
    gap: 10px;
  }
  .featured-post-icon-wrap {
    flex: 0 0 72px;
  }
  .featured-post-icon {
    width: 72px;
    height: 72px;
  }
  .posts-pagination {
    flex-direction: row;
    align-items: center;
    padding: 10px;
    gap: 8px;
  }
  .posts-pagination-form {
    display: inline-flex;
    gap: 8px;
    font-size: 0.86rem;
  }
  .posts-pagination-form select {
    width: auto;
    min-height: 38px;
    font-size: 0.9rem;
  }
  .posts-pagination-links {
    display: inline-flex;
    gap: 8px;
  }
  .posts-page-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.88rem;
  }
  .posts-page-meta {
    padding: 5px 10px;
    font-size: 0.82rem;
  }
}
