.com_content, .item-page, .blog, .category-list, .category-blog, #navbar,#sidebar,#footer {
  --jml-font-base: 'Plus Jakarta Sans', sans-serif;
  --jml-radius: 0.75rem;

  /* Kolory mapowane z globals.css */
  --jml-bg:           hsl(210 30% 98%);
  --jml-fg:           hsl(215 25% 15%);
  --jml-primary:      hsl(356 82% 50%);
  --jml-accent:       hsl(211 85% 45%);
  --jml-muted-bg:     hsl(210 20% 94%);
  --jml-muted-fg:     hsl(215 15% 40%);
  --jml-border:       hsl(214 20% 90%);
  --jml-card-bg:      hsl(0 0% 100%);

  --jml-gradient-text: linear-gradient(135deg, hsl(356 82% 50%) 0%, hsl(356 82% 50%) 100%);
  --jml-gradient-hero: linear-gradient(135deg, hsl(356 82% 50%) 0%, hsl(211 85% 45%) 100%);
}

/* Tryb Ciemny (.dark) */
.dark .com_content,
.dark .item-page,
.dark .blog,
.dark .category-list,
.dark .category-blog
.dark #navbar 
.dark #sidebar 
.dark #footer 
{
  --jml-bg:       hsl(215 25% 8%);
  --jml-fg:       hsl(210 30% 98%);
  --jml-primary:  hsl(211 85% 55%);
  --jml-accent:   hsl(356 82% 55%);
  --jml-muted-bg: hsl(215 20% 18%);
  --jml-muted-fg: hsl(215 15% 65%);
  --jml-border:   hsl(215 20% 20%);
  --jml-card-bg:  hsl(215 25% 12%);

  --jml-gradient-text: linear-gradient(135deg, hsl(211 85% 55%) 0%, hsl(356 82% 55%) 100%);
}

/* Reszta stylów strukturalnych (skrócona wersja dla przykładu) */
.item-page .page-header h1, .blog .article-title {
  font-family: var(--jml-font-base);
  background: var(--jml-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.com_content a {
  color: var(--jml-primary);
  text-decoration: underline;
}
 
/* ─────────────────────────────────────────────
   1. ZMIENNE LOKALNE (dziedziczone z :root)
   ───────────────────────────────────────────── */

/* Klasa .dark dodawana ręcznie przez szablon */
.dark .com_content,
.dark .item-page,
.dark .blog,
.dark .category-list,
.dark .category-blog {
  --jml-bg:       hsl(100 22% 9%);
  --jml-fg:       hsl(80 30% 95%);
  --jml-primary:  hsl(95 65% 48%);
  --jml-accent:   hsl(55 80% 58%);
  --jml-muted-bg: hsl(100 18% 20%);
  --jml-muted-fg: hsl(80 25% 68%);
  --jml-border:   hsl(100 18% 24%);
  --jml-card-bg:  hsl(100 20% 13%);

  --jml-gradient-text: linear-gradient(135deg, hsl(95 65% 55%) 0%, hsl(55 80% 65%) 100%);
}

/* ─────────────────────────────────────────────
   2. PODSTAWY ARTYKUŁU
   ───────────────────────────────────────────── */
.com_content,
.item-page,
.blog,
.category-list,
.category-blog {
  font-family: var(--jml-font-base);
  color: var(--jml-fg);
  background-color: var(--jml-bg);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────
   3. TYTUŁY ARTYKUŁÓW (h1–h6)
   ───────────────────────────────────────────── */

/* Główny tytuł artykułu – Joomla generuje .page-header > h1 lub .article-header h2 */
.item-page .page-header h1,
.item-page .article-header h2.article-title,
.blog .page-header h1,
.blog .article-title {
  font-family: var(--jml-font-base);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;

  /* Gradient text – jak w globals.css .text-gradient */
  background: var(--jml-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tytuły sekcji wewnątrz treści */
.com_content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 2.5rem 0 1rem;
  color: var(--jml-primary);
}

.com_content h2, #main-content h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.875rem;
  color: var(--jml-primary);
}

.page-header h2, .page-header h2 a{
  font-size: clamp(1.25rem, 2.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.875rem;
}

/*.com_content */
h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 1.75rem 0 0.75rem;
  color: var(--jml-primary);
}

/*.com_content*/
 h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.5rem 0 0.625rem;
  color: var(--jml-primary);
}

.com_content h5,
.com_content h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 1.25rem 0 0.5rem;
  color: var(--jml-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────
   4. AKAPITY I TEKST
   ───────────────────────────────────────────── */
.com_content p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.com_content strong,
.com_content b {
  font-weight: 700;
  color: var(--jml-fg);
}

.com_content em,
.com_content i {
  font-style: italic;
}

.com_content small {
  font-size: 0.875rem;
  color: var(--jml-muted-fg);
}

/* ─────────────────────────────────────────────
   5. LINKI
   ───────────────────────────────────────────── */
.com_content a {
  color: var(--jml-primary);
  text-decoration: underline;
  text-decoration-color: hsl(95 60% 30% / 0.35);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.com_content a:hover {
  color: var(--jml-accent);
  text-decoration-color: var(--jml-accent);
}

.com_content a:focus-visible {
  outline: 2px solid var(--jml-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────
   6. LISTY
   ───────────────────────────────────────────── */
.com_content ul,
.com_content ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.com_content ul {
  list-style: none;
}

.com_content ul > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.com_content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--jml-primary);
}

.com_content ol {
  list-style: decimal;
}

.com_content ol > li {
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.com_content ol > li::marker {
  color: var(--jml-primary);
  font-weight: 700;
}

/* Zagnieżdżone listy */
.com_content ul ul,
.com_content ol ol,
.com_content ul ol,
.com_content ol ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
}

.com_content ul ul > li::before {
  background: var(--jml-accent);
  width: 0.375rem;
  height: 0.375rem;
}

/* ─────────────────────────────────────────────
   7. CYTATY (blockquote)
   ───────────────────────────────────────────── */
.com_content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  background: var(--jml-muted-bg);
  border-left: 4px solid var(--jml-primary);
  border-radius: 0 var(--jml-radius) var(--jml-radius) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--jml-muted-fg);
}

.com_content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 0.75rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--jml-primary);
  font-style: normal;
  font-weight: 800;
  opacity: 0.35;
}

.com_content blockquote p:last-child {
  margin-bottom: 0;
}

.com_content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--jml-primary);
}

/* ─────────────────────────────────────────────
   8. KOD
   ───────────────────────────────────────────── */
.com_content code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--jml-muted-bg);
  color: var(--jml-primary);
  padding: 0.15em 0.45em;
  border-radius: 0.3rem;
  border: 1px solid var(--jml-border);
}

.com_content pre {
  background: var(--jml-card-bg);
  border: 1px solid var(--jml-border);
  border-radius: var(--jml-radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: var(--jml-shadow-glow);
}

.com_content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--jml-fg);
}

/* ─────────────────────────────────────────────
   9. TABELE
   ───────────────────────────────────────────── */
.com_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: var(--jml-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px hsl(0 0% 0% / 0.07);
}

.com_content thead {
  background: var(--jml-gradient-hero);
  color: hsl(0 0% 100%);
}

.com_content thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.com_content tbody tr {
  border-bottom: 1px solid var(--jml-border);
  transition: background 0.15s ease;
}

.com_content tbody tr:nth-child(even) {
  background: var(--jml-muted-bg);
}

.com_content tbody tr:hover {
  background: hsl(95 60% 30% / 0.07);
}

.com_content td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}

/* ─────────────────────────────────────────────
   10. OBRAZY
   ───────────────────────────────────────────── */
.com_content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--jml-radius);
  display: block;
}

.com_content figure {
  margin: 2rem 0;
}

.com_content figure img {
  box-shadow: var(--jml-shadow-glow);
}

.com_content figcaption {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--jml-muted-fg);
  text-align: center;
  font-style: italic;
}

/* Obraz wyśrodkowany (klasa Joomla) */
.com_content .img-intro-full,
.com_content img[class*="float-none"] {
  margin: 1.5rem auto;
}

.com_content .img-intro-left,
.com_content img.float-left {
  float: left;
  margin: 0.25rem 1.5rem 1rem 0;
}

.com_content .img-intro-right,
.com_content img.float-right {
  float: right;
  margin: 0.25rem 0 1rem 1.5rem;
}

/* ─────────────────────────────────────────────
   11. SEPARATOR
   ───────────────────────────────────────────── */
.com_content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--jml-primary), var(--jml-accent), transparent);
  margin: 2.5rem 0;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────
   12. METADANE ARTYKUŁU (data, autor, kategoria)
   ───────────────────────────────────────────── */
.article-info,
.com_content .article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--jml-muted-fg);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--jml-border);
}

.article-info .article-info-term {
  display: none; /* "Napisane przez:" itp. – schowane, wystarczy ikona */
}

.article-info dd,
.article-info .createdby,
.article-info .category-name,
.article-info time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.article-info a {
  color: var(--jml-muted-fg) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.article-info a:hover {
  color: var(--jml-primary) !important;
}

/* Tagi */
.tags-list,
.com_content .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jml-border);
}

.tags-list a,
.com_content .tags-list a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--jml-muted-bg);
  color: var(--jml-primary) !important;
  border: 1px solid var(--jml-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tags-list a:hover,
.com_content .tags-list a:hover {
  background: var(--jml-primary);
  color: hsl(0 0% 100%) !important;
  border-color: var(--jml-primary);
}

/* ─────────────────────────────────────────────
   13. STRONICOWANIE / PAGINACJA
   ───────────────────────────────────────────── */
.pagination,
.com_content .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  list-style: none!important;
}

.pagination .page-link,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--jml-border);
  border-radius: var(--jml-radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jml-fg) !important;
  text-decoration: none !important;
  background: var(--jml-card-bg);
  transition: all 0.2s ease;
}

.pagination .page-link:hover,
.pagination a:hover {
  background: var(--jml-primary);
  color: hsl(0 0% 100%) !important;
  border-color: var(--jml-primary);
}

.pagination .active .page-link,
.pagination .active a {
  background: var(--jml-gradient-hero);
  color: hsl(0 0% 100%) !important;
  border-color: transparent;
  box-shadow:
 var(--jml-shadow-glow);
}

/* ─────────────────────────────────────────────
   14. WIDOK BLOG / LISTA ARTYKUŁÓW
   ───────────────────────────────────────────── */
.blog .items-row,
.category-blog .items-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Karta pojedynczego artykułu na liście */
.blog .item,
.category-blog .item {
  background: var(--jml-card-bg);
  border: 1px solid var(--jml-border);
  border-radius: var(--jml-radius);
  padding: 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.blog .item:hover,
.category-blog .item:hover {
  box-shadow: var(--jml-shadow-glow);
  transform: translateY(-2px);
}

.blog .item h2.page-header,
.blog .item .page-header,
.category-blog .item h2,
.category-blog .item .page-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.blog .item .page-header a,
.category-blog .item .page-header a,
.blog .article-title a,
.category-blog .article-title a {
  color: var(--jml-fg) !important;
  text-decoration: none !important;
  background: var(--jml-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  transition: opacity 0.2s;
}

.blog .item .page-header a:hover,
.category-blog .item .page-header a:hover,
.blog .article-title a:hover,
.category-blog .article-title a:hover {
  opacity: 0.8;
}

/* Przycisk "Czytaj więcej" */
.readmore a,
.com_content .readmore a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  padding: 0.5rem 1.125rem;
  background: var(--jml-gradient-hero);
  color: hsl(0 0% 100%) !important;
  border-radius: var(--jml-radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: var(--jml-shadow-glow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.readmore a:hover,
.com_content .readmore a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.readmore a::after {
  content: '→';
}

/* ─────────────────────────────────────────────
   15. FORMULARZ WYSZUKIWANIA JOOMLA
   ───────────────────────────────────────────── */
.com_search .inputbox,
.search-query {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--jml-border);
  border-radius: var(--jml-radius);
  background: var(--jml-card-bg);
  color: var(--jml-fg);
  font-family: var(--jml-font-base);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.com_search .inputbox:focus,
.search-query:focus {
  outline: none;
  border-color: var(--jml-primary);
  box-shadow: 0 0 0 3px hsl(95 60% 30% / 0.15);
}

/* ─────────────────────────────────────────────
   16. NAWIGACJA ARTYKUŁÓW (prev/next)
   ───────────────────────────────────────────── */
.pager-nav,
.com_content .pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jml-border);
}

.pager-nav a,
.com_content .pager a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--jml-border);
  border-radius: var(--jml-radius);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--jml-fg) !important;
  text-decoration: none !important;
  background: var(--jml-card-bg);
  transition: all 0.2s ease;
  max-width: 48%;
}

.pager-nav a:hover,
.com_content .pager a:hover {
  background: var(--jml-primary);
  color: hsl(0 0% 100%) !important;
  border-color: var(--jml-primary);
}

/* ─────────────────────────────────────────────
   17. ALERTY / KOMUNIKATY JOOMLA
   ───────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--jml-radius);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}

.alert-info    { background: hsl(200 80% 95%); border-color: hsl(200 80% 50%); color: hsl(200 60% 20%); }
.alert-success { background: hsl(95 60% 94%);  border-color: var(--jml-primary); color: hsl(100 45% 15%); }
.alert-warning { background: hsl(55 75% 93%);  border-color: var(--jml-accent); color: hsl(50 60% 20%); }
.alert-danger,
.alert-error   { background: hsl(0 84% 95%);   border-color: hsl(0 84% 60%);   color: hsl(0 60% 25%); }

/* ─────────────────────────────────────────────
   18. CLEARFIX
   ───────────────────────────────────────────── */
.com_content::after,
.blog .item::after,
.item-page .article-fulltext::after {
  content: '';
  display: table;
  clear: both;
}

/* ─────────────────────────────────────────────
   19. RESPONSYWNOŚĆ
   ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .com_content img.float-left,
  .com_content img.float-right {
    float: none;
    margin: 1rem auto;
  }

  .pager-nav,
  .com_content .pager {
    flex-direction: column;
  }

  .pager-nav a,
  .com_content .pager a {
    max-width: 100%;
  }

  .com_content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─────────────────────────────────────────────
   20. ARTYKUŁY – RAMKA I SIDEBAR (z menu.css)
   ───────────────────────────────────────────── */

/* Zastąpiono niebieski (#3b82f6) kolorem primary z palety szablonu */
.article-border {
  border-color: hsl(211 85% 55%);
  transition: all 0.3s ease;
}

.article-border:hover {
  border-color:hsl(211 85% 55%);
  box-shadow: 0 4px 6px -1px hsl(95 60% 30% / 0.18),
              0 2px 4px -1px hsl(95 60% 30% / 0.10);
}

.sidebar-sticky {
  position: sticky;
  top: 1rem;
}

/* ─────────────────────────────────────────────
   21. NAWIGACJA POZIOMA – #navbar
   ───────────────────────────────────────────── */

/*
 * WAŻNE: Tailwind/React mogą nadpisywać display flex na flex-col.
 * Selektory mają wysoką specyficzność + !important na flex-direction,
 * żeby wymusić poziomy układ niezależnie od klas utility.
 */

#navbar .mod-menu ul,
#navbar .mod-list,
#navbar .nav,
#navbar nav > ul {
  display: flex !important;
  flex-direction: row !important;   /* ← kluczowe: poziomo, nie pionowo */
  align-items: center !important;
  flex-wrap: nowrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

#navbar .mod-menu li,
#navbar .mod-menu .item,
#navbar .nav > li {
  margin: 0;
  position: relative;   /* potrzebne dla submenu */
}

/**** przeniesione z template.css ****/
/* Aktywna pozycja menu z wystarczającym kontrastem WCAG */
#navbar .mod-menu .active > a,
#navbar .mod-menu .current > a,
#navbar .nav .active > a,
#navbar .current > a,
#navbar .active > a {
  background-color: hsl(211, 92%, 33%) !important; 
  color: #ffffff !important;
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
}

/* Linki menu – minimalny rozmiar czcionki WCAG */
#navbar a {
  font-size: 1rem !important;
  padding: 0.5rem 0.75rem;
}
/* --------------------- */
/* Linki w menu */
/******** przylrycie przez powyższe
#navbar .mod-menu a,
#navbar .nav a {
  display: inline-flex;
  align-items: center;
  color: hsl(0 0% 100%);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
**********/
/* Aktywna pozycja menu */
/******** przylrycie przez powyższe
#navbar .mod-menu .active > a,
#navbar .mod-menu .current > a,
#navbar .nav .active > a {
  background: rgb(9, 60, 126);
  color: hsl(55 80% 75%);
}
**********/

#navbar .mod-menu a:hover,
#navbar .nav a:hover {
  background: hsl(0 0% 100% / 0.12);
  color: hsl(55 75% 80%);  /* złotawy akcent – spójny z --accent */
}


/* Podmenu (dropdown) */
#navbar .mod-menu ul ul,
#navbar .nav .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  flex-direction: column !important;
  min-width: 13rem;
  background: hsl(100 20% 13%);
  border: 1px solid hsl(100 18% 24%);
  border-radius: 0.75rem;
  padding: 0.375rem;
  box-shadow: 0 12px 32px -8px hsl(0 0% 0% / 0.35);
  z-index: 200;
  gap: 0;
}

#navbar .mod-menu li:hover > ul,
#navbar .nav li:hover > .dropdown-menu {
  display: flex;
}

#navbar .mod-menu ul ul a,
#navbar .nav .dropdown-menu a {
  color: hsl(80 30% 92%);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

#navbar .mod-menu ul ul a:hover,
#navbar .nav .dropdown-menu a:hover {
  background: hsl(95 65% 48% / 0.2);
  color: hsl(55 80% 70%);
}

/* ─────────────────────────────────────────────
   22. BREADCRUMBS
   ───────────────────────────────────────────── */

/* Naprawiono błąd składniowy z oryginalnego menu.css
   (była kropka przed blokiem komentarza psująca parsowanie) */

.mod-breadcrumbs ul,
.breadcrumb,
.mod-breadcrumbs__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 0;
  font-size: 0.8125rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mod-breadcrumbs__item,
.breadcrumb-item {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Separator – ukośnik w kolorze muted */
.mod-breadcrumbs__item:not(:last-child)::after,
.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem !important;
  color: hsl(207, 30%, 50%);
  font-weight: 400;
}

/* Ukryj natywny separator Joomla (żeby nie dublował) */
.mod-breadcrumbs__separator {
  display: none !important;
}

/* Linki breadcrumb */
.mod-breadcrumbs a,
.breadcrumb-item a {
  color: hsl(199, 60%, 30%);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.dark .mod-breadcrumbs a,
.dark .breadcrumb-item a {
  color: hsl(201, 54%, 44%);
}

.mod-breadcrumbs a:hover,
.breadcrumb-item a:hover {
  color: hsl(55, 73%, 34%);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ostatni element (bieżąca strona) – bez linku, stonowany */
.mod-breadcrumbs__item:last-child,
.breadcrumb-item.active,
.breadcrumb-item:last-child span {
  color: hsl(224, 30%, 38%);
  font-weight: 600;
}

.dark .mod-breadcrumbs__item:last-child,
.dark .breadcrumb-item.active {
  color: hsl(226, 19%, 55%);
}

/* ─────────────────────────────────────────────
   23. REDUKCJA RUCHU (spójność z globals.css)
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .blog .item,
  .category-blog .item,
  .readmore a,
  .com_content a,
  .pagination a,
  #navbar .mod-menu a,
  .article-border {
    transition: none !important;
    transform: none !important;
  }
}

/* ─────────────────────────────────────────────
   24. RESPONSYWNOŚĆ – MENU MOBILNE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Wymuszamy układ pionowy dla wszystkich list wewnątrz mobilnego kontenera */
  #navbar #mobile-menu ul,
  #navbar #mobile-menu .nav {
    flex-direction: column !important;
    width: 100%;
    gap: 0.125rem;
  }

  /* Chowanie zagnieżdżonych podmenu, żeby zachowywały się jak bloki */
  #navbar #mobile-menu ul ul,
  #navbar #mobile-menu .nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: flex; /* Zawsze widoczne lub sterowane osobnym skryptem na mobile */
  }

  .mod-breadcrumbs ul,
  .breadcrumb {
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  /* Menu mobilne: elementy pionowo jako bloki */
  #mobile-menu a {
      display: block;
      padding: 0.5rem 0.75rem;
  }
}


/*---------- Przywrócenie punktowania dla list nieuporządkowanych ------- */
#main-content ul {
    list-style-type: disc !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Przywrócenie numeracji dla list uporządkowanych */
#main-content ol {
    list-style-type: decimal !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Stylizacja elementów listy */
#main-content li {
    display: list-item;
    margin-bottom: 0.5rem;
}

/* Naprawa marginesów dla paragrafów wewnątrz li (częsty problem w Joomla) */
#main-content li > p {
    display: inline; /* Zapobiega łamaniu linii przez p wewnątrz li */
    margin: 0;
}

/* ─────────────────────────────────────────────
   PhocaGallery
   ───────────────────────────────────────────── */

.pg-category-box-title a, .pg-category-box-count,.pg-item-box-title {
  color:# hsl(55 80% 58%)!important;
}
/*
.pg-category-box-info {
  background-color: rgb(255,255,255,0.8);  
  border: 1px solid var(--jml-border);
  border-radius: var(--jml-radius);
}*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
