/**
 * Blog — Archive + Single Post
 */

/* ─── Archive header ─────────────────────────────────────── */
.et-blog-header {
  background: var(--et-surface);
  border-bottom: 1px solid var(--et-border);
  padding: 48px;
}
.et-blog-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.et-blog-header h1 { font-size: 2.5rem; }
.et-blog-header p { color: var(--et-text-muted); margin-top: 8px; font-size: 15px; }
.et-blog-hero-img { border-radius: var(--et-radius); overflow: hidden; }
.et-blog-hero-img img { width: 100%; height: 220px; object-fit: cover; }
@media(max-width:768px){
  .et-blog-header { padding: 32px 20px; }
  .et-blog-header-inner { grid-template-columns: 1fr; }
  .et-blog-hero-img { display: none; }
}

/* ─── Category filter ───────────────────────────────────── */
.et-blog-filters {
  background: var(--et-surface);
  border-bottom: 1px solid var(--et-border);
  padding: 0 48px;
  position: sticky;
  top: 70px;
  z-index: 80;
}
.et-blog-filters-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.et-blog-cats { display: flex; gap: 0; overflow-x: auto; }
.et-cat-btn {
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--et-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  text-decoration: none;
}
.et-cat-btn:hover { color: var(--et-text); }
.et-cat-btn.active {
  color: var(--et-emerald);
  border-bottom-color: var(--et-emerald);
}
.et-blog-sort { display: flex; align-items: center; gap: 8px; }
.et-blog-sort label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--et-text-muted);
}
@media(max-width:768px){ .et-blog-filters { padding: 0 20px; } }

/* ─── Archive grid ──────────────────────────────────────── */
.et-blog-body { padding: 48px; }
.et-blog-body-inner { max-width: var(--container); margin: 0 auto; }
.et-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media(max-width:1100px){ .et-blog-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:768px){ .et-blog-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .et-blog-grid { grid-template-columns: 1fr; } }
@media(max-width:768px){ .et-blog-body { padding: 24px 20px; } }

.et-blog-card {
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  border-radius: var(--et-radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.et-blog-card:hover { box-shadow: var(--et-shadow-lg); transform: translateY(-2px); }
.et-blog-card__image { overflow: hidden; background: var(--et-surface-2); aspect-ratio: 4/3; }
.et-blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.et-blog-card:hover .et-blog-card__image img { transform: scale(1.04); }
.et-blog-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.et-blog-card__cat {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--et-emerald);
}
.et-blog-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--et-text);
  line-height: 1.35;
}
.et-blog-card__title a { color: var(--et-text); text-decoration: none; }
.et-blog-card__title a:hover { color: var(--et-emerald); }
.et-blog-card__excerpt { font-size: 13px; color: var(--et-text-muted); line-height: 1.6; flex: 1; }
.et-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--et-text-light);
  padding-top: 10px;
  border-top: 1px solid var(--et-border-light);
}
.et-blog-card__meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--et-text-light); }
.et-blog-card__read-more {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--et-emerald);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  transition: gap .15s;
}
.et-blog-card__read-more:hover { gap: 8px; }

/* Pagination */
.et-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 48px;
}
.et-page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--et-border);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--et-text-muted);
  text-decoration: none;
  transition: all .15s;
}
.et-page-btn:hover, .et-page-btn.current {
  background: var(--et-emerald);
  border-color: var(--et-emerald);
  color: #fff;
}

/* Newsletter bar */
.et-newsletter-bar {
  background: var(--et-emerald);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.et-newsletter-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.et-newsletter-text { flex: 1; }
.et-newsletter-text strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: block;
}
.et-newsletter-text span { font-size: 14px; color: rgba(255,255,255,0.7); }
.et-newsletter-form { display: flex; gap: 8px; flex-shrink: 0; }
.et-newsletter-input {
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  width: 240px;
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.et-newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.et-newsletter-btn {
  padding: 12px 20px;
  background: #fff;
  color: var(--et-emerald);
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
@media(max-width:768px){
  .et-newsletter-bar { padding: 32px 20px; flex-direction: column; gap: 20px; }
  .et-newsletter-form { width: 100%; }
  .et-newsletter-input { flex: 1; width: auto; }
}

/* ─── Single post ───────────────────────────────────────── */
.et-single-post { padding: 48px; }
.et-single-post-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
@media(max-width:900px){ .et-single-post-inner { grid-template-columns: 1fr; } }
@media(max-width:768px){ .et-single-post { padding: 24px 20px; } }

.et-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--et-text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .15s;
}
.et-back-link:hover { color: var(--et-emerald); }

.et-post-cat {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--et-emerald);
  margin-bottom: 12px;
  display: block;
}
.et-post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--et-text);
  margin-bottom: 12px;
  line-height: 1.15;
}
.et-post-subtitle { font-size: 16px; color: var(--et-text-muted); margin-bottom: 20px; }
.et-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--et-text-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.et-post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--et-text-light); }
.et-post-featured-image { border-radius: var(--et-radius); overflow: hidden; margin-bottom: 32px; }
.et-post-featured-image img { width: 100%; max-height: 460px; object-fit: cover; }
.et-post-content h2 { font-size: 1.4rem; margin: 28px 0 12px; color: var(--et-text); }
.et-post-content h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.et-post-content p { font-size: 15px; line-height: 1.8; color: var(--et-text-mid); margin-bottom: 16px; }
.et-post-content img { border-radius: var(--et-radius); margin: 24px 0; }

.et-post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--et-border);
}
.et-post-share-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--et-text-muted);
}
.et-share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--et-border);
  color: var(--et-text-muted);
  text-decoration: none;
  transition: all .15s;
  font-size: 14px;
}
.et-share-btn:hover { background: var(--et-emerald); border-color: var(--et-emerald); color: #fff; }

/* Sidebar */
.et-post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.et-sidebar-widget {
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  border-radius: var(--et-radius);
  padding: 24px;
}
.et-sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--et-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--et-border-light);
}

/* Author widget */
.et-author-widget { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.et-author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--et-surface-2);
}
.et-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.et-author-name { font-weight: 700; font-size: 15px; color: var(--et-text); }
.et-author-role { font-size: 12px; color: var(--et-emerald); font-weight: 600; }
.et-author-bio { font-size: 13px; color: var(--et-text-muted); line-height: 1.6; }

/* Related articles */
.et-related-list { display: flex; flex-direction: column; gap: 16px; }
.et-related-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.et-related-thumb {
  width: 56px; height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--et-surface-2);
}
.et-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.et-related-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--et-text);
  line-height: 1.35;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.et-related-title:hover { color: var(--et-emerald); }
.et-related-meta { font-size: 11px; color: var(--et-text-light); }

/* Newsletter sidebar widget */
.et-sidebar-newsletter { text-align: center; }
.et-sidebar-newsletter p { font-size: 13px; color: var(--et-text-muted); margin: 8px 0 16px; }
.et-sidebar-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--et-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 8px;
}
.et-sidebar-newsletter button {
  width: 100%;
  padding: 11px;
  background: var(--et-emerald);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.et-sidebar-newsletter .et-privacy-note { font-size: 11px; color: var(--et-text-light); margin-top: 8px; display: flex; align-items: center; gap: 6px; justify-content: center; }
