.single-post-content h2,
.single-post-content h3 {
  scroll-margin-top: 100px;
}

.blog-grid {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.blog-card {
  background-color: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.blog-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.blog-card__content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card__date {
  color: #cc6600;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.blog-card__title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card__lead {
  color: #4b4b4b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-card__link {

  align-self: flex-end;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: #cc6600;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;

  white-space: nowrap;
  width: fit-content;

  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-card__link:hover {
  background-color: #b35600;
  color: white;
}

@media (max-width: 480px) {
  .blog-card img {
    height: 180px;
  }
}

.single-post {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #333;
  line-height: 1.6;
}

.single-post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post-title {
  margin-bottom: 0.5rem;
}

.single-post-date {
  color: #cc6600;
  font-weight: 600;
}

.single-post-image img {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.single-post-content {
  margin-top: 2rem;
}
.single-post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #cc6600;
  font-weight: 600;
}

.single-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #cc6600;
  font-weight: 600;
}

.single-post-footer {
  margin-top: 3rem;
  text-align: center;
}

.single-post-back {
  text-decoration: none;
  color: #cc6600;
  font-weight: 600;
  transition: color 0.3s ease;
}

.single-post-back:hover {
  color: #b35600;
}

/* Box spisu treści z h3 w środku */
.toc-box {
  background-color: #fff7f0; /* jednolite ciepłe tło */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.toc-title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #cc6600;
}

.toc {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.toc-2 {
  list-style: none;
  border-left: 2px solid #cc6600;
  padding-left: 0.5rem;
  margin: 0;
}
.toc-2 li {
  list-style: none;
  padding-left: 0.5rem;
}

.toc li {
  margin: 0.8rem 0;
}

.toc li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  display: inline-block;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.toc li a:hover {
  background-color: #ffebd8; /* delikatny efekt hover */
  color: #cc6600;
  transform: translateX(5px);
}

.post-cta {
  background-color: #cc6600; /* jednolite ciepłe tło */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.post-cta h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 700;
}
.post-cta img {
width: 100px;
height: auto;
}

.post-cta h4 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #cc6600;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.cta-button:hover {
  background-color: #ffd8b4;
  color: #cc6600;
}
.post-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2.5rem 0;
  flex-wrap: wrap; /* dla mobilnych ekranów */
}

.post-section .post-image {
  flex: 0 0 400px; /* szerokość obrazka */
}

.post-section .post-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

.post-section .post-text {
  flex: 1;
}

.post-section .post-text h2 {
  color: #cc6600;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-section .post-text p {
  line-height: 1.6;
}

/* Responsywność */
@media (max-width: 768px) {
  .post-section {
    flex-direction: column; /* zdjęcie nad tekstem na mobilkach */
  }

  .post-section .post-image,
  .post-section .post-text {
    flex: 1 1 100%;
  }
}

