/*
Theme Name:   Cennik24 Blog
Theme URI:    https://cennik24.xyz
Description:  Samodzielny motyw bloga Cennik24 — spójny wizualnie ze sklepem cennik24.xyz
Author:       Cennik24
Version:      2.0.0
Text Domain:  cennik24-blog
*/

/* ========================================
   FONTY LOKALNE — Open Sans Variable
   ======================================== */
@font-face {
  font-family: 'Open Sans';
  src: url('assets/fonts/OpenSans-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('assets/fonts/OpenSans-Italic-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ========================================
   ZMIENNE
   ======================================== */
:root {
  --c24-yellow:       #f7cb02;
  --c24-yellow-light: #fde74c;
  --c24-yellow-dark:  #d4ad00;
  --c24-black:        #111111;
  --c24-dark:         #1c1c1c;
  --c24-gray-bg:      #f3f4f6;
  --c24-gray-border:  #e5e7eb;
  --c24-gray-mid:     #9ca3af;
  --c24-text:         #1f2937;
  --c24-text-muted:   #6b7280;
  --c24-white:        #ffffff;
  --font-main:        'Open Sans', Arial, sans-serif;
  --header-height:    60px;
  --container-width:  1280px;
}

/* ========================================
   RESET
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--c24-gray-bg);
  color: var(--c24-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c24-yellow-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========================================
   LAYOUT
   ======================================== */
.c24-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.c24-main-wrap {
  display: flex;
  gap: 24px;
  padding: 28px 0 48px;
  align-items: flex-start;
  width: 100%;
}

.c24-content-area {
  flex: 1;
  min-width: 0;
}

.c24-sidebar {
  width: 300px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .c24-sidebar { display: none; }
}

/* ========================================
   TOPBAR
   ======================================== */
.c24-topbar {
  background: var(--c24-white);
  border-bottom: 2px solid var(--c24-gray-border);
  padding: 7px 0;
  font-size: 12px;
}
.c24-topbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.c24-topbar__label {
  color: var(--c24-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.c24-topbar__logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.c24-topbar__logo {
  font-size: 13px;
  font-weight: 700;
  color: var(--c24-text);
  letter-spacing: .06em;
  opacity: .65;
  transition: opacity .2s;
}
.c24-topbar__logo:hover { opacity: 1; color: var(--c24-text); }

@media (max-width: 768px) { .c24-topbar { display: none; } }

/* ========================================
   HEADER
   ======================================== */
.c24-header {
  background: var(--c24-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.c24-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Logo */
.c24-logo { display: flex; align-items: center; flex-shrink: 0; }
.c24-logo__text {
  font-size: 22px;
  font-weight: 800;
  color: var(--c24-white);
  letter-spacing: -.02em;
  line-height: 1;
}
.c24-logo__text .badge {
  display: inline-block;
  background: var(--c24-yellow);
  color: var(--c24-black);
  padding: 1px 5px;
  font-size: 22px;
  font-weight: 900;
  border-radius: 2px;
  margin-left: 1px;
}
.c24-logo:hover .c24-logo__text { color: var(--c24-yellow-light); }

/* Nav */
.c24-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin-left: 12px;
}
.c24-nav__item {
  position: relative;
  flex-shrink: 0;
}
.c24-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--c24-white);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.c24-nav__link:hover,
.c24-nav__link.active {
  background: rgba(247,203,2,.15);
  color: var(--c24-yellow);
}

/* Dropdown */
.c24-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c24-dark);
  min-width: 210px;
  z-index: 200;
  border-top: 2px solid var(--c24-yellow);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  padding: 6px 0;
  flex-direction: column;
}
.c24-nav__item.has-dropdown:hover .c24-dropdown {
  display: flex;
}
.c24-dropdown__link {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.c24-dropdown__link:hover,
.c24-dropdown__link.active {
  background: rgba(247,203,2,.15);
  color: var(--c24-yellow);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.c24-breadcrumb {
  background: var(--c24-white);
  border-bottom: 1px solid var(--c24-gray-border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--c24-text-muted);
}
.c24-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.c24-breadcrumb__list li + li::before { content: '›'; color: var(--c24-gray-mid); }
.c24-breadcrumb__list a { color: var(--c24-text-muted); }
.c24-breadcrumb__list a:hover { color: var(--c24-yellow-dark); }
.c24-breadcrumb__list .current { color: var(--c24-text); font-weight: 600; }

/* ========================================
   SEKCJA TYTUŁOWA
   ======================================== */
.c24-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c24-text-muted);
  border-left: 3px solid var(--c24-yellow);
  padding-left: 10px;
  margin-bottom: 18px;
}

/* ========================================
   KARTA WPISU
   ======================================== */
.c24-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  width: 100%;
}
@media (max-width: 640px) {
  .c24-post-grid { grid-template-columns: 1fr; }
}

.c24-post-card {
  background: var(--c24-white);
  border: 1px solid var(--c24-gray-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .25s, transform .2s;
}
.c24-post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.c24-post-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--c24-gray-bg);
}
.c24-post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.c24-post-card:hover .c24-post-card__thumb img { transform: scale(1.04); }

.c24-post-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#e5e7eb,#d1d5db);
}
.c24-post-card__thumb-placeholder svg { width: 40px; height: 40px; stroke: #9ca3af; fill: none; }

.c24-post-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.c24-post-card__cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.c24-post-card__cat {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--c24-yellow); color: var(--c24-black); padding: 2px 8px; border-radius: 2px;
}
.c24-post-card__title {
  font-size: 16px; font-weight: 700; line-height: 1.4;
  color: var(--c24-text); margin-bottom: 10px; flex: 1;
}
.c24-post-card__title a { color: inherit; }
.c24-post-card__title a:hover { color: var(--c24-yellow-dark); }
.c24-post-card__excerpt {
  font-size: 13px; color: var(--c24-text-muted); line-height: 1.55; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.c24-post-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--c24-text-muted);
  padding-top: 14px; border-top: 1px solid var(--c24-gray-border); margin-top: auto;
}
.c24-post-card__meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; flex-shrink: 0; }
.c24-post-card__meta-item { display: flex; align-items: center; gap: 4px; }
.c24-post-card__read-more {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--c24-black);
  background: var(--c24-yellow); padding: 6px 14px; border-radius: 2px;
  transition: background .2s; align-self: flex-start;
}
.c24-post-card__read-more:hover { background: var(--c24-yellow-light); color: var(--c24-black); }

/* ========================================
   WYRÓŻNIONY WPIS
   ======================================== */
.c24-post-featured {
  background: var(--c24-white);
  border: 1px solid var(--c24-gray-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 24px;
  width: 100%;
  transition: box-shadow .25s;
}
.c24-post-featured:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.c24-post-featured__thumb { overflow: hidden; min-height: 260px; background: var(--c24-gray-bg); }
.c24-post-featured__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.c24-post-featured:hover .c24-post-featured__thumb img { transform: scale(1.04); }
.c24-post-featured__body { padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; }
.c24-post-featured__label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c24-text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.c24-post-featured__label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--c24-yellow); }
.c24-post-featured__title { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.c24-post-featured__title a { color: var(--c24-text); }
.c24-post-featured__title a:hover { color: var(--c24-yellow-dark); }
.c24-post-featured__excerpt { font-size: 14px; color: var(--c24-text-muted); line-height: 1.6; margin-bottom: 20px; }

@media (max-width: 768px) {
  .c24-post-featured { grid-template-columns: 1fr; }
  .c24-post-featured__thumb { min-height: 200px; }
  .c24-post-featured__body { padding: 20px; }
}

/* ========================================
   PAGINACJA
   ======================================== */
.c24-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 24px 0;
}
.c24-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--c24-gray-border);
  background: var(--c24-white); font-size: 14px; font-weight: 600;
  color: var(--c24-text); border-radius: 2px; transition: all .2s;
}
.c24-pagination .page-numbers:hover,
.c24-pagination .page-numbers.current { background: var(--c24-yellow); border-color: var(--c24-yellow); color: var(--c24-black); }
.c24-pagination .page-numbers.dots { border-color: transparent; background: transparent; cursor: default; }

/* ========================================
   BANER REKLAMOWY
   ======================================== */
.c24-ad-banner {
  background: var(--c24-gray-bg);
  border: 1px dashed var(--c24-gray-border);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; font-size: 12px;
  color: var(--c24-gray-mid); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  flex-direction: column; gap: 8px;
}
.c24-ad-banner--leaderboard { min-height: 90px; margin-bottom: 24px; }
.c24-ad-banner--rectangle { min-height: 250px; margin-bottom: 20px; }
.c24-ad-banner svg { width: 32px; height: 32px; stroke: var(--c24-gray-border); fill: none; }
.c24-inline-ad { margin: 8px 0 24px; }

/* ========================================
   SIDEBAR
   ======================================== */
.c24-widget {
  background: var(--c24-white);
  border: 1px solid var(--c24-gray-border);
  margin-bottom: 20px;
  overflow: hidden;
}
.c24-widget__header {
  background: var(--c24-dark); color: var(--c24-white);
  padding: 10px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.c24-widget__body { padding: 16px; }

.c24-popular-list { display: flex; flex-direction: column; gap: 14px; }
.c24-popular-item { display: flex; gap: 12px; align-items: flex-start; }
.c24-popular-item__num { font-size: 20px; font-weight: 800; color: var(--c24-gray-border); line-height: 1; flex-shrink: 0; width: 24px; }
.c24-popular-item__title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--c24-text); }
.c24-popular-item__title:hover { color: var(--c24-yellow-dark); }
.c24-popular-item__date { font-size: 11px; color: var(--c24-text-muted); margin-top: 3px; }

.c24-cat-list { display: flex; flex-direction: column; }
.c24-cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--c24-gray-border);
  font-size: 13px; color: var(--c24-text); font-weight: 500;
}
.c24-cat-list a:last-child { border-bottom: none; }
.c24-cat-list a:hover { color: var(--c24-yellow-dark); }
.c24-cat-list a span { font-size: 11px; color: var(--c24-text-muted); background: var(--c24-gray-bg); padding: 1px 7px; border-radius: 10px; }

/* ========================================
   SINGLE — HERO
   ======================================== */
.c24-single-hero {
  background: var(--c24-dark); padding: 36px 0 32px;
  color: var(--c24-white); margin-bottom: 4px;
}
.c24-single-hero__cats { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.c24-single-hero__cat {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--c24-yellow); color: var(--c24-black); padding: 3px 10px; border-radius: 2px;
}
.c24-single-hero__title { font-size: 32px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; max-width: 780px; }
.c24-single-hero__meta { display: flex; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.c24-single-hero__meta-item { display: flex; align-items: center; gap: 5px; }
.c24-single-hero__meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

@media (max-width: 768px) { .c24-single-hero__title { font-size: 22px; } }

/* ========================================
   TREŚĆ WPISU
   ======================================== */
.c24-post-thumbnail {
  margin-bottom: 28px; overflow: hidden;
  border: 1px solid var(--c24-gray-border);
}
.c24-post-thumbnail img { width: 100%; max-height: 480px; object-fit: cover; }

.c24-post-content {
  background: var(--c24-white);
  padding: 32px 36px;
  border: 1px solid var(--c24-gray-border);
  font-size: 15px; line-height: 1.75;
  color: var(--c24-text); margin-bottom: 24px;
}
.c24-post-content h2,
.c24-post-content h3,
.c24-post-content h4 { font-weight: 800; line-height: 1.3; margin: 1.8em 0 .7em; }
.c24-post-content h2 { font-size: 22px; border-left: 4px solid var(--c24-yellow); padding-left: 12px; }
.c24-post-content h3 { font-size: 18px; }
.c24-post-content h4 { font-size: 16px; }
.c24-post-content p { margin-bottom: 1.2em; }
.c24-post-content a { color: var(--c24-yellow-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.c24-post-content ul, .c24-post-content ol { padding-left: 1.5em; margin-bottom: 1.2em; list-style: disc; }
.c24-post-content ol { list-style: decimal; }
.c24-post-content li { margin-bottom: .4em; }
.c24-post-content blockquote {
  border-left: 4px solid var(--c24-yellow); padding: 14px 20px;
  background: #fefce8; margin: 1.5em 0; font-style: italic; color: #78716c;
}
.c24-post-content img { max-width: 100%; height: auto; border-radius: 3px; margin: 1em 0; }
.c24-post-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; }
.c24-post-content table th { background: var(--c24-dark); color: var(--c24-white); padding: 10px 14px; text-align: left; font-weight: 700; }
.c24-post-content table td { padding: 9px 14px; border-bottom: 1px solid var(--c24-gray-border); }
.c24-post-content table tr:nth-child(even) td { background: var(--c24-gray-bg); }

@media (max-width: 640px) { .c24-post-content { padding: 20px 18px; } }

/* Tagi */
.c24-post-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--c24-gray-border); margin-top: 8px; }
.c24-post-tags__label { font-size: 12px; font-weight: 700; color: var(--c24-text-muted); text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.c24-tag { font-size: 12px; padding: 3px 10px; border: 1px solid var(--c24-gray-border); color: var(--c24-text-muted); background: var(--c24-white); transition: all .2s; border-radius: 2px; }
.c24-tag:hover { border-color: var(--c24-yellow); color: var(--c24-black); background: var(--c24-yellow); }

/* Nawigacja prev/next */
.c24-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.c24-post-nav__item {
  background: var(--c24-white); border: 1px solid var(--c24-gray-border);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .2s, box-shadow .2s;
}
.c24-post-nav__item:hover { border-color: var(--c24-yellow); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.c24-post-nav__dir { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c24-text-muted); }
.c24-post-nav__title { font-size: 14px; font-weight: 600; color: var(--c24-text); line-height: 1.4; }
@media (max-width: 640px) { .c24-post-nav { grid-template-columns: 1fr; } }

/* Komentarze */
.c24-comments { background: var(--c24-white); border: 1px solid var(--c24-gray-border); padding: 28px; margin-bottom: 24px; }
.c24-comments .comments-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--c24-gray-border); }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea { width: 100%; border: 1px solid var(--c24-gray-border); padding: 9px 12px; font-family: var(--font-main); font-size: 14px; outline: none; transition: border-color .2s; border-radius: 2px; background: var(--c24-white); }
.comment-respond input:focus, .comment-respond textarea:focus { border-color: var(--c24-yellow); }
.comment-respond .submit { background: var(--c24-yellow); color: var(--c24-black); border: none; padding: 10px 24px; font-family: var(--font-main); font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 2px; }
.comment-respond .submit:hover { background: var(--c24-yellow-light); }

/* ========================================
   FOOTER
   ======================================== */
.c24-footer { background: var(--c24-dark); color: rgba(255,255,255,.75); padding-top: 44px; margin-top: 48px; }
.c24-footer__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 1024px) { .c24-footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .c24-footer__grid { grid-template-columns: 1fr; gap: 20px; } }
.c24-footer__col-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c24-white); margin-bottom: 14px; }
.c24-footer__links { display: flex; flex-direction: column; gap: 8px; }
.c24-footer__links a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .2s; }
.c24-footer__links a:hover { color: var(--c24-yellow); }
.c24-footer__social { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
.c24-footer__social-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c24-white); }
.c24-footer__social-icons { display: flex; align-items: center; gap: 12px; }
.c24-footer__social-link { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); padding: 7px 14px; border-radius: 3px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); transition: background .2s, color .2s; }
.c24-footer__social-link:hover { background: var(--c24-yellow); color: var(--c24-black); }
.c24-footer__social-link svg { width: 18px; height: 18px; fill: currentColor; }
.c24-footer__bottom { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,.35); }
.c24-footer__bottom a { color: rgba(255,255,255,.5); }
.c24-footer__bottom a:hover { color: var(--c24-yellow); }

/* ========================================
   UTILS
   ======================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ================================================
   LAYOUT FIX — nadpisuje wszelkie style WP
   ================================================ */
body { display: block !important; }

.c24-main-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  width: 100% !important;
  padding: 28px 0 48px !important;
  gap: 24px !important;
}
.c24-content-area {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  float: none !important;
}
.c24-sidebar {
  width: 300px !important;
  flex-shrink: 0 !important;
  float: none !important;
}
.c24-post-featured {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.c24-post-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.c24-post-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
}
/* Blokuje WP od ustawiania max-width na elementach treści */
.c24-post-content > * {
  max-width: 100% !important;
}
@media (max-width: 640px) {
  .c24-post-grid { grid-template-columns: 1fr !important; }
  .c24-post-featured { grid-template-columns: 1fr !important; }
}
@media (max-width: 1024px) {
  .c24-sidebar { display: none !important; }
}

/* ================================================
   FIX BREADCRUMB — usuń numerację <ol>
   ================================================ */
.c24-breadcrumb__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
}
.c24-breadcrumb__list li {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.c24-breadcrumb__list li::before {
  content: none;
}
.c24-breadcrumb__list li:not(:first-child)::before {
  content: '›' !important;
  color: var(--c24-gray-mid) !important;
  display: inline-block !important;
  margin-right: 2px;
}

/* Reset dla <ol> i <ul> w kontekście motywu */
.c24-theme ol, .c24-theme ul {
  list-style-position: outside;
}
.c24-breadcrumb ol,
.c24-breadcrumb ul {
  list-style: none !important;
}

/* ================================================
   BANERY — pełna szerokość, niezależnie od zawartości widgetu
   ================================================ */

.c24-inline-ad,
.c24-bottom-banner {
  display: block !important;
  width: 100% !important;
  margin: 24px 0 !important;
}

.c24-inline-ad .c24-widget,
.c24-bottom-banner .c24-widget {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

.c24-inline-ad .c24-widget__header,
.c24-bottom-banner .c24-widget__header {
  display: none !important;
}

.c24-inline-ad .c24-widget__body,
.c24-bottom-banner .c24-widget__body {
  padding: 0 !important;
}

/* Każdy obraz w banerze ma być pełnej szerokości */
.c24-inline-ad img,
.c24-bottom-banner img,
.c24-leaderboard img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Baner pod listą wpisów — wyróżnij wizualnie */
.c24-bottom-banner {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
}

/* ================================================
   BANERY — bezwzględna pełna szerokość obrazów
   (działa nawet gdy WP wstawia <figure class="wp-block-image">)
   ================================================ */

.c24-inline-ad,
.c24-bottom-banner,
.c24-leaderboard {
  display: block !important;
  width: 100% !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Wszystko wewnątrz banerów — pełna szerokość */
.c24-inline-ad > *,
.c24-bottom-banner > *,
.c24-inline-ad .c24-widget,
.c24-bottom-banner .c24-widget,
.c24-inline-ad .c24-widget__body,
.c24-bottom-banner .c24-widget__body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.c24-inline-ad .c24-widget__header,
.c24-bottom-banner .c24-widget__header {
  display: none !important;
}

/* Figure (WordPress Image block) */
.c24-inline-ad figure,
.c24-bottom-banner figure,
.c24-inline-ad .wp-block-image,
.c24-bottom-banner .wp-block-image,
.c24-inline-ad .wp-caption,
.c24-bottom-banner .wp-caption {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* Same obrazy */
.c24-inline-ad img,
.c24-bottom-banner img,
.c24-leaderboard img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* Linki w banerach (jeśli jest <a><img></a>) */
.c24-inline-ad a,
.c24-bottom-banner a {
  display: block !important;
  width: 100% !important;
}

.c24-bottom-banner {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
}

/* ================================================
   BANERY Z CUSTOMIZERA
   ================================================ */
.c24-customizer-banner {
  display: block !important;
  width: 100% !important;
  margin: 24px 0 !important;
}
.c24-customizer-banner img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
.c24-customizer-banner a {
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
}
.c24-customizer-banner--top { margin: 0 !important; }
.c24-customizer-banner--bottom { margin: 32px 0 !important; }
