.site-branding img,
.custom-logo {
  max-height: 56px;
  width: auto;
}

.site-title {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-menu,
.footer-menu,
.language-switcher ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-menu a,
.footer-menu a,
.language-switcher a {
  color: #111827;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--nl-border);
  background: #fff;
  color: #111827;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  width: 240px;
  height: 44px;
  border: 1px solid var(--nl-border);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  padding: 0 14px;
  outline: none;
}

.search-submit,
.button-primary,
.comment-form .submit {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.section-title,
.archive-title,
.widget-title {
  margin: 0 0 18px;
  font-size: 1.6rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.entry-title {
  margin: 0 0 10px;
  font-size: 2.2rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.post-meta {
  color: var(--nl-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--nl-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.post-list {
  display: grid;
  gap: 18px;
}

/* Post card */
.post-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--nl-border);
  border-radius: 14px;
  background: #fff;
  align-items: stretch;
}

.post-card-thumb {
  display: block;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 14px 0 0 14px;
}

.post-card-thumb img,
.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-card-content {
  padding: 18px 18px 18px 0;
  min-width: 0;
}

.post-card-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* Featured card */
.featured-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 18px;
}

.featured-card {
  overflow: hidden;
  border: 1px solid var(--nl-border);
  border-radius: 14px;
  background: #fff;
}

.featured-card-link {
  display: block;
  height: 100%;
}

.featured-card-thumb {
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--nl-border);
  background: #f8fafc;
}

.featured-card-thumb img,
.featured-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.featured-card-content {
  padding: 14px;
}

.featured-card-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.35;
  color: #111827;
}

.featured-card-content p {
  margin: 0;
  color: var(--nl-muted);
  font-size: 0.96rem;
}

/* Chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--nl-chip);
  color: #fff;
  font-weight: 600;
}

/* Single image */
.single-thumb-left {
  float: left;
  width: min(360px, 42%);
  margin: 0 24px 20px 0;
  border: 1px solid var(--nl-border);
  border-radius: 14px;
  overflow: hidden;
}

.single-thumb-left img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content::after {
  content: "";
  display: block;
  clear: both;
}

/* Widgets */
.widget ul {
  margin: 0;
  padding-left: 18px;
}

.widget li {
  margin-bottom: 10px;
}

/* Ads */
.ad-slot {
  margin: 22px 0;
  padding: 16px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 14px;
}

/* Pagination */
.pagination-wrap {
  margin-top: 24px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--nl-border);
  border-radius: 10px;
  background: #fff;
}

.pagination .current {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* Reading progress */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: transparent;
}

.reading-progress-bar {
  width: 0;
  height: 100%;
  background: #111827;
}

/* Header categories */
.header-categories {
  background: #fff;
  border-top: 1px solid var(--nl-border);
  border-bottom: 1px solid var(--nl-border);
}

.header-categories-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
}

.header-category-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
}

.header-category-link:hover {
  background: #e5e7eb;
}

/* Fallback */
.netlopedi-fallback-logo {
  object-fit: contain !important;
  background: #ffffff;
  padding: 24px;
  border: 1px solid var(--nl-border);
}

.post-card-thumb .netlopedi-fallback-logo,
.featured-card-thumb .netlopedi-fallback-logo {
  height: 220px;
  min-height: 220px;
}

.single-thumb-left .netlopedi-fallback-logo {
  min-height: 240px;
}

.thumb-placeholder {
  display: none;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-slogan {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--nl-muted);
  font-weight: 500;
}