/* MLGSTUDIO Blog – styles */

.blog-post {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  color: #353535;
}

/* Ograniczamy szerokość tekstu (lepsza czytelność),
   ale obraz hero i nagłówek pozostają w pełnej szerokości karty. */
.blog-post-body {
  max-width: 880px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 40px;
}

.blog-post-header h1.arrow {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.3;
}

.blog-subtitle {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 14px;
  color: rgb(78, 78, 78);
}

.blog-meta {
  font-size: 13px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.blog-meta-sep {
  margin: 0 8px;
  color: #ccc;
}

.blog-hero-image {
  margin: 30px 0 0;
}

.blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 3px 0 0 #f0f2f4;
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.75;
  color: #353535;
}

.blog-post-body p {
  margin: 0 0 1.4em;
}

.blog-post-body h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 2.2em 0 0.8em;
  color: #353535;
}

.blog-post-body h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 1.8em 0 0.6em;
  color: #353535;
}

.blog-post-body strong, .blog-post-body b {
  font-weight: bold;
  color: #242830;
}

.blog-post-body a {
  color: #5a6463;
  text-decoration: underline;
}

.blog-post-body a:hover {
  color: #242830;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6em auto;
  box-shadow: 0 3px 0 0 #f0f2f4;
}

.blog-post-body ul, .blog-post-body ol {
  margin: 0 0 1.4em 1.5em;
  padding: 0;
}

.blog-post-body li {
  margin-bottom: 0.5em;
}

.blog-post-body blockquote {
  border-left: 4px solid #5a6463;
  margin: 1.6em 0;
  padding: 0.4em 1.2em;
  color: rgb(78, 78, 78);
  font-style: italic;
  background: #f7f8fa;
}

.blog-post-body code {
  background: #f0f2f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: Menlo, Consolas, monospace;
}

.blog-post-body pre {
  background: #242830;
  color: #f0f2f4;
  padding: 16px 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.6em 0;
}

.blog-post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.blog-post-nav {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #f0f2f4;
  text-align: center;
}

.blog-back-link {
  display: inline-block;
  padding: 10px 22px;
  color: #5a6463;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #f0f2f4;
  transition: all 0.2s ease;
}

.blog-back-link:hover {
  color: #fff;
  background: #5a6463;
  border-color: #5a6463;
  text-decoration: none;
}

/* Pasek z powrotem do strony głównej (nad listą wpisów) */

.blog-back-bar {
  padding: 40px 0;
  background-color: #c2c2c2;
  text-align: center;
}

.blog-back-bar .blog-back-link {
  display: inline-block;
}

/* Lista wpisów */

.blog-list {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.blog-card {
  margin: 0;
  float: none;
  display: flex;
  flex: 0 1 540px;
  max-width: 100%;
  min-width: 0;
}

.blog-card:only-child {
  flex-basis: 1100px;
}

.blog-card-inner {
  width: 100%;
}

@media (max-width: 600px) {
  .blog-card,
  .blog-card:only-child {
    flex-basis: 100%;
  }
}

.blog-card-inner {
  background: #fff;
  box-shadow: 0 3px 0 0 #f0f2f4;
  transition: box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card-inner:hover, .blog-card-inner:focus {
  box-shadow: 0 3px 0 0 #5a6463;
}

.blog-card-image {
  display: block;
  overflow: hidden;
  background: #f0f2f4;
}

.blog-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card-inner:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 24px 22px 28px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px;
  line-height: 1.35;
}

.blog-card-title a {
  color: #353535;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #242830;
}

.blog-card-subtitle {
  color: rgb(78, 78, 78);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.blog-card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5a6463;
  text-decoration: none;
}

.blog-card-more:hover {
  color: #242830;
  text-decoration: none;
}

.blog-empty {
  padding: 60px 0;
  color: rgb(78, 78, 78);
}

@media (max-width: 768px) {
  .blog-post-header h1.arrow {
    font-size: 19px;
  }
  .blog-post-body {
    font-size: 15px;
  }
  .blog-card-image img {
    height: 180px;
  }
}
