.main {
  padding: 15px 0 40px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(0, 1.1fr); /* lewa kolumna + slidebar szerokość */
  gap: 15px;
  align-items: flex-start;
}




/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
  background: #141516;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.post-body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}

.post-body h3 {
  font-size: 16px;
  margin: 0;
}

.post-body h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.post-body h3 a:hover {
  color: var(--accent-dark);
}

.post-body p {
  font-size: 14px;
  color: var(--text-muted);
}

.post-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Page content */
.page {
  background: #141516;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 22px 18px;
}

.page-toc {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 20px;
}

.page-toc h2 {
  font-size: 16px;
  margin: 0 0 6px;
  background: #141516;
}

.page-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

.page-section + .page-section {
  margin-top: 22px;
}

.page-section h2 {
  font-size: 20px;
  margin: 5px 0 15px;
}

/* fonty z lewej strony */
.page-section p {
  font-size: 18px;
  text-align: justify;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 8px;
}

/* Responsive */
@media (max-width: 960px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.update {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: grey;
  margin: 1px 0 20px 0;
  display: block;
  text-align: left;
}

.meta-date {
  font-size: 10px;  /* Tylko raz! */
  margin-top: 2px;
  margin-bottom: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-date .meta-label {
  opacity: 0.5;
}

.meta-date time {
  opacity: 0.7;
}

.meta-date .meta-separator {
  opacity: 0.4;
}



.content {
  background: transparent;
}


/* AKAPITY */
.content p {
    margin-bottom: 10px;
}

/* NAGŁÓWKI */
.content h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.content h3 {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}


.imgcenter {
  display: flex;
  justify-content: center; /* Środek w poziomie */
  align-items: center;     /* Środek w pionie (opcjonalnie) */
}

.imgcenter {
    text-align: center;
    margin: 10px 0;
}

.imgcenter img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.imgcenter img:hover {
    transform: scale(1.03);
    transition: 0.2s ease;
}


.ad-imgcenter {
    text-align: center;
    margin: 20px;
}

.ad-imgcenter img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.random-photo {
    width: 280px;
    max-height: 170px;
	padding-bottom: 10px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
}
.random-photo.active {
    opacity: 1;
}



