/* Blog — Twoja Platforma GPS */

.blog-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h-expanded) + 2rem);
}

.blog-page main {
  flex: 1 0 auto;
}

.blog-page .footer {
  flex-shrink: 0;
  margin-top: auto;
}

.blog-hero {
  padding: 3rem 0 2.5rem;
  background: var(--bg);
}

.blog-hero--list {
  text-align: center;
}

.blog-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.blog-hero__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  border-color: var(--accent-border-strong);
  box-shadow: 0 8px 28px var(--shadow-lg);
}

.blog-card__image {
  display: block;
  overflow: hidden;
  background: var(--bg-elevated);
}

.blog-card__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 2rem;
}

.blog-card__meta {
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--accent);
}

.blog-card__excerpt {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.blog-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-card__link:hover {
  text-decoration: underline;
}

/* Article */
.article {
  padding-bottom: 4rem;
}

.article-hero {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.article-header {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-content {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.article-content h2 {
  margin: 2.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-content p {
  margin: 0 0 1.15rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.article-content li {
  margin-bottom: 0.45rem;
}

.article-content strong {
  font-weight: 600;
  color: var(--text);
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
}

.article-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.article-cta p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.article-back:hover {
  text-decoration: underline;
}

.nav__active {
  color: var(--text) !important;
}

@media (max-width: 768px) {
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__image {
    min-height: 200px;
  }
}
