:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --border: #dde1ee;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #e0edff;
  --danger-soft: #ffe4e6;
  --success-soft: #e5f9e7;
  --radius: 10px;
}

* { box-sizing: border-box; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.ep-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.ep-site-header {
  background: #ffffff;
  color: #111827;
  padding: 12px 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid #e5e7eb;
}

.ep-site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ep-site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ep-site-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.ep-site-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.ep-site-tagline {
  font-size: 0.8rem;
  color: #6b7280;
}

.ep-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.ep-site-nav a {
  color: #111827;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ep-site-nav a:hover {
  background: #e5edff;
  color: #1d4ed8;
}

@media (max-width: 720px) {
  .ep-site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* MAIN */
.ep-main {
  padding: 24px 16px 32px;
  flex: 1;
}

.ep-main-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.3fr);
  align-items: flex-start;
  min-width: 0;
}

.ep-container,
.ep-sidebar {
  min-width: 0;
}

@media (max-width: 1024px) {
  .ep-main-inner {
    grid-template-columns: 1fr;
  }

  .ep-sidebar {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .ep-main {
    padding: 20px 12px 28px;
  }
}

/* CONTAINER PRINCIPAL */
.ep-container {
  width: 100%;
  max-width: 100%;
  padding: 24px 20px 20px;
  background: var(--bg-soft);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (min-width: 900px) {
  .ep-container {
    padding: 32px 32px 26px;
  }
}

@media (max-width: 640px) {
  .ep-container {
    padding: 20px 16px 16px;
  }
}

/* SIDEBAR */
.ep-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ep-sidebar-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.ep-sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ep-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-sidebar-list li + li {
  margin-top: 8px;
}

.ep-sidebar-list a {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.9rem;
}

.ep-sidebar-list a:hover {
  text-decoration: underline;
}

.ep-sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ep-sidebar-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.78rem;
  color: #4338ca;
}

.ep-sidebar-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

/* FOOTER */
.ep-site-footer {
  margin-top: auto;
  background: #f3f4f6;
  color: #4b5563;
  padding: 16px 16px 20px;
  font-size: 0.85rem;
  border-top: 1px solid #e5e7eb;
}

.ep-site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-site-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.ep-site-footer a {
  color: #111827;
  text-decoration: none;
}

.ep-site-footer a:hover {
  text-decoration: underline;
}

.ep-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* BREADCRUMB */
.ep-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.ep-breadcrumb span + span::before {
  content: "›";
  margin: 0 4px;
  color: #9ca3af;
}

/* Links breadcrumb */
.ep-breadcrumb a {
  text-decoration: none;
  color: inherit;
}

.ep-breadcrumb a:hover {
  text-decoration: underline;
}

/* HERO (mesmo estilo do blog) */
.ep-blog-hero {
  margin-bottom: 20px;
}

.ep-blog-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1d4ed8;
  margin-bottom: 8px;
}

.ep-blog-title {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.ep-blog-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 620px;
}

/* LISTA DE POSTS (GRID 2 COLUNAS EM TELAS MAIORES) */
.ep-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}

/* Em telas menores, volta para 1 por linha */
@media (max-width: 768px) {
  .ep-post-list {
    grid-template-columns: 1fr;
  }
}


.ep-post-card {
  position: relative;                      /* necessário pro overlay */
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  height: 100%;              /* ocupa toda a altura da célula do grid */
  justify-content: flex-start;
  cursor: pointer;           /* indica que o card é clicável */
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.ep-post-card:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  border-color: #c7d2fe;
  background: #f9fafb;
}

/* melhora visual quando focar via teclado */
.ep-post-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Link invisível que cobre todo o card para SEO/acessibilidade */
.ep-post-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;  /* esconde o texto sem remover acessibilidade */
  overflow: hidden;
  white-space: nowrap;
}

/* Quando focar no link via teclado, mantemos feedback visual */
.ep-post-link-overlay:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* No contexto de card, muda a cor do título ao passar o mouse */
.ep-post-card:hover .ep-post-title {
  color: var(--accent);
}


.ep-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.ep-post-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.ep-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.ep-post-title a {
  color: var(--text);
  text-decoration: none;
}

.ep-post-title a:hover {
  color: var(--accent);
}

.ep-post-excerpt {
  font-size: 0.93rem;
  color: #4b5563;
}

.ep-post-link {
  margin-top: auto;
  font-size: 0.85rem;
}


.ep-post-link a {
  color: var(--accent);
  text-decoration: none;
}

.ep-post-link a:hover {
  text-decoration: underline;
}

.ep-post-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ep-post-tag-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 0.75rem;
  color: #1d4ed8;
}

/* BOTÃO VER MAIS */
.ep-load-more {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.ep-load-more-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background:#2563eb;
  cursor: pointer;
  font-size: 0.9rem;
  color: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.ep-load-more-btn:hover {
  background: #e5edff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.ep-load-more-btn:active {
  transform: translateY(0);
}

/* FILTROS DA CATEGORIA */
.ep-category-filters {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.ep-filter-label {
  display: block;
  margin-bottom: 6px;
}

.ep-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-filter-chip {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ep-filter-chip.is-active {
  border-color: #2563eb;
  background: #e0edff;
  color: #1d4ed8;
}

/* AJUSTES MOBILE */
@media (max-width: 768px) {
  .ep-main {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ep-container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.ep-sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ep-sidebar-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.78rem;
  color: #4338ca;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.ep-sidebar-tag:hover {
  background: #e0e7ff;
  color: #312e81;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.ep-sidebar-tag--current {
  background: #e5e7eb;
  color: #374151;
  cursor: default;
  box-shadow: none;
}
.ep-sidebar-tag--current:hover {
  background: #e5e7eb !important;
  color: #374151 !important;
  box-shadow: none !important;
  cursor: default !important;
  transform: none !important;
}

