/*--------------------------------------------------------------
# Blog – Ajustado según feedback
# Bürger für Bürger e.G. – Mirko Lazarte
--------------------------------------------------------------*/

:root {
  --primary: #2596be;
  --text: #222222;
  --text-muted: #555555;
  --border: #eaeaea;
  --bg: #ffffff;
}

body {
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* Hero más bajo */
.page-title {
  padding: 80px 0 50px; /* reducido */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.page-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.page-title .container {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}
.page-title h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  margin: 0;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.page-title .post-excerpt {
  font-size: 1.05rem;
  max-width: 650px;
  margin: 14px auto 0;
  opacity: 0.92;
}
.breadcrumbs ol {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  font-size: 0.95rem;
}
.breadcrumbs ol li:not(:last-child)::after {
  content: "›";
  padding: 0 8px;
  color: rgba(255,255,255,0.7);
}
.breadcrumbs ol a {
  color: #aadffd;
  text-decoration: none;
}
.breadcrumbs ol .current {
  color: white;
  font-weight: 600;
}

/* Main Content */
.blog-content {
  padding: 3rem 0;
}

.blog-main-text {
  padding-right: 2.5rem;
}

/* Título y fecha */
.blog-post .post-title {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  margin-bottom: 0.4rem;
}
.blog-post .post-date {
  font-family: "Raleway", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.post-body {
  font-size: 1.08rem;
  line-height: 1.85;
}
.post-body p {
  margin-bottom: 1.5rem;
}
.post-body a {
  color: var(--primary);
  text-decoration: underline;
}
.post-body a:hover {
  color: #1d7a96;
}

/* Sidebar */
.blog-sidebar-wrapper {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.blog-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.sidebar-section {
  margin-bottom: 2.4rem;
  padding: 1.2rem;
  border-radius: 10px;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.sidebar-section:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* → Todos usan el mismo color azul */
.sidebar-section {
  border-top: 4px solid var(--primary);
}
.sidebar-section h3 {
  color: var(--primary);
  font-family: "Raleway", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-section h3 i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Imágenes: un poco más grandes */
.sidebar-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.sidebar-images img {
  width: 100%;
  height: 90px; /* aumentado */
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.sidebar-images img:hover {
  opacity: 0.85;
}

/* Nuevos mini-cards para documentos y enlaces */
.sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sidebar-item-card {
  background: white;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}
.sidebar-item-card:hover {
  border-color: var(--primary);
  background: rgba(37, 150, 190, 0.03);
}
.sidebar-item-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-item-card a:hover {
  text-decoration: underline;
}
.sidebar-item-card i {
  font-size: 0.9rem;
}

/* Botón de retorno */
.post-navigation .btn-back {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.post-navigation .btn-back:hover {
  background: rgba(37, 150, 190, 0.08);
  text-decoration: none;
}

/* Footer */
.blog-footer {
  background: #f8f9fa;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-sidebar-wrapper {
    border-left: none;
    padding-left: 0;
    margin-top: 2.5rem;
  }
  .blog-main-text {
    padding-right: 0;
  }
}

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 10px;
  font-size: 1.1rem;
  max-width: 80vw;
}