
/* Zarmad Blog, Archive, Search & Single styles – all comments in English */

.zr-blog-page {
  padding-block: 2rem 2.5rem;
}

/* Hero */
.zr-blog-hero {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.5rem;
}

.zr-blog-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .15rem .7rem;
  border-radius: 999px;
  background: #facc15;
  font-size: .8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .5rem;
}

.zr-blog-title {
  margin: 0 0 .25rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.zr-blog-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: .9rem;
}

/* Layout: main + sidebar */
.zr-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.zr-blog-main {
  min-width: 0;
}

/* Cards grid */
.zr-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Post card */
.zr-post-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  height: 100%;
}

/* Thumbnail */
.zr-post-thumb {
  display: block;
  margin: -.6rem -.7rem .4rem;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.zr-post-thumb-img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.zr-post-meta {
  font-size: .75rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.zr-post-meta span::before {
  content: "•";
  margin: 0 .25rem;
  color: #d1d5db;
}

.zr-post-meta span:first-child::before {
  content: "";
  margin: 0;
}

.zr-post-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.zr-post-title a {
  color: #111827;
  text-decoration: none;
}

.zr-post-title a:hover {
  color: #b45309;
}

.zr-post-excerpt {
  margin: 0;
  font-size: .85rem;
  color: #4b5563;
}

.zr-post-footer {
  margin-top: .4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.zr-post-readmore {
  font-size: .8rem;
  font-weight: 700;
  color: #b45309;
  text-decoration: none;
}

.zr-post-readmore::before {
  content: "←";
  margin-left: .25rem;
}

/* Sidebar */
.zr-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zr-blog-widget {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.zr-blog-widget-title {
  margin: 0 0 .6rem;
  font-size: .9rem;
  font-weight: 800;
}

/* Sidebar search trigger (fake field) */
.zr-blog-widget-search .zr-blog-search-trigger {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: .5rem .7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.zr-blog-search-placeholder {
  font-size: .8rem;
  color: #9ca3af;
}

.zr-blog-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #facc15;
}

.zr-blog-search-icon svg {
  width: 14px;
  height: 14px;
}

/* Search overlay */
.zr-blog-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-out;
  z-index: 9999;
}

.zr-blog-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zr-blog-search-overlay-inner {
  background: #0b1120;
  border-radius: 20px;
  padding: 1.4rem 1.6rem 1.6rem;
  width: min(520px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.65);
  color: #e5e7eb;
}

.zr-blog-search-overlay-title {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 800;
}

.zr-blog-search-form {
  margin: 0;
}

.zr-blog-search-input-wrap {
  position: relative;
}

.zr-blog-search-input-wrap input[type="search"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #4b5563;
  padding: .6rem 3rem .6rem .9rem;
  background: #020617;
  color: #e5e7eb;
  font-size: .9rem;
}

.zr-blog-search-input-wrap input[type="search"]:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35);
}

.zr-blog-search-submit {
  position: absolute;
  inset-inline-end: .4rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: none;
  background: #facc15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.zr-blog-search-submit svg {
  width: 16px;
  height: 16px;
}

.zr-blog-search-close {
  margin-top: .75rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: .8rem;
  cursor: pointer;
}

body.zr-search-open {
  overflow: hidden;
}

/* Widgets default lists */
.zr-blog-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zr-blog-widget ul li {
  margin-bottom: .35rem;
  font-size: .8rem;
}

.zr-blog-widget ul li a {
  color: #4b5563;
  text-decoration: none;
}

.zr-blog-widget ul li a:hover {
  color: #b45309;
}

/* Pagination */
.zr-blog-pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.zr-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  margin: 0 2px;
  font-size: .8rem;
  color: #4b5563;
  text-decoration: none;
}

.zr-blog-pagination .page-numbers.current {
  background: #facc15;
  color: #111827;
  border-color: #facc15;
}

/* Archive title override */
.zr-archive-label {
  font-size: .8rem;
  color: #9ca3af;
  margin-bottom: .25rem;
}

/* Single post */
.zr-single-article {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.4rem 1.6rem 1.8rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15,23,42,0.04);
}

.zr-breadcrumb {
  font-size: .78rem;
  color: #9ca3af;
  margin-bottom: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.zr-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.zr-breadcrumb a:hover {
  color: #b45309;
}

.zr-breadcrumb-sep {
  color: #d1d5db;
}

.zr-single-title {
  margin: 0 0 .35rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.zr-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.zr-single-meta span::before {
  content: "•";
  margin: 0 .25rem;
  color: #d1d5db;
}

.zr-single-meta span:first-child::before {
  content: "";
  margin: 0;
}

.zr-single-thumb {
  margin: 0 0 1.2rem;
}

.zr-single-thumb-img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* Single layout: content + sidebar */
.zr-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.zr-single-content {
  font-size: .95rem;
  line-height: 1.9;
  color: #111827;
}

.zr-single-content h2,
.zr-single-content h3 {
  margin-top: 1.4rem;
  margin-bottom: .6rem;
  font-weight: 800;
}

.zr-single-content p {
  margin-bottom: .8rem;
}

.zr-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Sidebar banners */
.zr-banner {
  background: radial-gradient(circle at 0% 0%, #fef3c7 0%, #facc15 40%, #eab308 100%);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  color: #111827;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.zr-banner-title {
  margin: 0 0 .3rem;
  font-size: .95rem;
  font-weight: 800;
}

.zr-banner-text {
  margin: 0 0 .6rem;
  font-size: .82rem;
}

.zr-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: #111827;
  color: #fefce8;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

/* Popular posts list */
.zr-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zr-popular-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .55rem;
}

.zr-popular-thumb {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.zr-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zr-popular-text {
  flex: 1;
  min-width: 0;
}

.zr-popular-title {
  margin: 0 0 .15rem;
  font-size: .82rem;
  font-weight: 700;
}

.zr-popular-title a {
  color: #111827;
  text-decoration: none;
}

.zr-popular-title a:hover {
  color: #b45309;
}

.zr-popular-meta {
  font-size: .72rem;
  color: #9ca3af;
}

/* Categories with counts in sidebar */
.zr-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zr-cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
  font-size: .8rem;
}

.zr-cat-list a {
  color: #4b5563;
  text-decoration: none;
}

.zr-cat-list a:hover {
  color: #b45309;
}

.zr-cat-count {
  color: #9ca3af;
  font-size: .72rem;
}

/* Search results filter */
.zr-search-filter {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .8rem;
}

.zr-search-filter label {
  color: #6b7280;
}

.zr-search-filter select {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: .25rem .7rem;
  font-size: .8rem;
  background: #f9fafb;
}

/* Responsive */
@media (max-width: 960px) {
  .zr-blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .zr-single-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .zr-post-thumb-img {
    height: 150px;
  }
  .zr-blog-hero {
    padding-inline: 1.1rem;
  }
  .zr-single-article {
    padding-inline: 1.1rem;
  }
}
