/* ==========================================================================
   Cassiopeia – user.css
   Lokalizacja: /media/templates/site/cassiopeia/css/user.css
   ========================================================================== */

/* --- Font Montserrat (Google Fonts) --------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- Zmienne szablonu ------------------------------------------------------ */
:root {
  --cassiopeia-font-family-body: 'Montserrat', sans-serif;
  --cassiopeia-font-family-headings: 'Montserrat', sans-serif;
  --cassiopeia-color-primary: #282e39;
  --cassiopeia-color-link: #00aeef;
  --cassiopeia-color-hover: #6c9900;
}

/* --- Tło całej strony ------------------------------------------------------ */
body.site {
  font-family: 'Montserrat', sans-serif;
  background-image: url('../../../../../images/tlostrony/1.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #dbdbdb;
}

/* --- Nagłówek / pasek menu: przezroczysty, żeby tło strony było widoczne ---- */
.container-header {
  background-image: none !important;
  background-color: transparent !important;
}

/* Pasek "banner" i ewentualne tło pod navbarem również przezroczyste */
.container-banner,
.container-topbar,
.container-header .navbar {
  background: transparent !important;
}

/* --- Menu główne ------------------------------------------------------------ */
.container-header .mod-menu a,
.container-header .mod-menu .nav-link,
.container-header .metismenu > li > a,
.container-header .metismenu > li > button {
  color: #ffffff;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

/* Hover */
.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus,
.container-header .metismenu > li > a:hover,
.container-header .metismenu > li > button:hover {
  color: #00aeef;
}

/* Pozycja aktywna */
.container-header .mod-menu li.active > a,
.container-header .mod-menu li.current > a,
.container-header .metismenu > li.active > a {
  color: #a5e900;
}

/* Rozwijane podmenu – ciemne tło, żeby białe fonty były czytelne */
.container-header .metismenu ul.mm-collapse,
.container-header .mod-menu ul {
  background-color: #282e39;
}

.container-header .metismenu ul.mm-collapse a {
  color: #ffffff;
  font-size: 14px;
}

.container-header .metismenu ul.mm-collapse a:hover {
  color: #00aeef;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Strzałki rozwijania podmenu na biało */
.container-header .metismenu .mm-toggler-link::after,
.container-header .metismenu button.mm-toggler::after {
  color: #ffffff;
}

/* Wyśrodkowanie menu w linii — TYLKO desktop/tablet (>=768px)!
   Poniżej tej szerokości widocznością menu steruje bootstrapowy collapse
   (hamburger) i nie wolno nadpisywać mu display. */
@media (min-width: 768px) {
  .container-header .mod-menu {
    flex-direction: row;
    flex: 1;
    display: flex;
    justify-content: center;
  }
}

/* --- Tło i fonty artykułów / treści ----------------------------------------- */
.site-grid .container-component {
  /* background-color: #282e39; */
  color: #dbdbdb;
  padding: 1.5rem;
  background-color: transparent;
}



/* Moduły w kolumnach bocznych – spójnie z artykułami */
.container-sidebar-left .card,
.container-sidebar-right .card {
  background-color: #282e39;
  color: #dbdbdb;
  border-color: rgba(255, 255, 255, 0.1);
  
}

.container-sidebar-left .card-header,
.container-sidebar-right .card-header {
  background-color: #6c9900;
  color: #ffffff;
}

/* Linki w treści */
.site-grid .container-component a:not(.btn),
.blog-item a:not(.btn) {
  color: #00aeef;
}

.site-grid .container-component a:not(.btn):hover {
  color: #6c9900;
}

/* Tekst pomocniczy (daty, autorzy, "Czytaj więcej") na jaśniejszo */
.site-grid .container-component .article-info,
.site-grid .container-component .text-muted {
  color: #a9b0bd !important;
}

/* --- Nagłówki stron i tytuły artykułów --------------------------------------- */
.page-header > h1,
.page-header > h2,
.article-header > h1,
.article-header > h2,
.blog-item .item-title,
.com-content-article__title {
  background-color: #6c9900;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
    margin: 0px 0px 10px 0px;
    line-height: 1;
    color: #ffffff;
    background: #6c9900;
    border-bottom: #88c000;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding-top: 15px;
    padding-bottom: 14px;
    text-transform: uppercase;
    text-align: center;
    font-size: 24px;
	font-weight: 800;
}

/* Tytuły-linki na listach bloga – biały font także w linku */
.blog-item .item-title a,
.page-header h2 a,
.article-header h2 a {
  color: #ffffff;
  text-decoration: none;
}

.blog-item .item-title a:hover,
.page-header h2 a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Pozostałe nagłówki wewnątrz treści – białe, bez tła */
.site-grid .container-component h3,
.site-grid .container-component h4,
.site-grid .container-component h5 {
  color: #ffffff;
}

/* --- Stopka (opcjonalnie, spójnie z resztą) ---------------------------------- */
.container-footer .footer {
  background-color: rgba(40, 46, 57, 0.9);
  color: #dbdbdb;
}

.container-footer .footer a {
  color: #00aeef;
}
div.mod-languages ul li.lang-active{background-color: #2229b775;}

/* ==========================================================================
   GÓRNY PASEK NAGŁÓWKA — v6: DWA OSOBNE BLOKI + PRZYCISK "MENU" NA MOBILE
   Blok 1 (.pw-block-left):  logo 100px + GPW 80px, wyrównane do lewej
   Blok 2 (.pw-block-right): ikony social 30px, wyrównane do prawej
   Oba moduły Custom HTML w pozycji "topbar"; całość w szerokości 1320 px
   ========================================================================== */

/* Pozycja topbar = kontener 1320 px; oba bloki w jednej linii */
.container-topbar {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- BLOK 1: logo + GPW do lewej --------------------------------------------- */
.pw-block-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  margin-right: auto;   /* dociska blok do lewej krawędzi */
}

.pw-topbar__logo img {
  height: 100px;
  width: auto;
  display: block;
}

.pw-topbar__gpw img {
  height: 80px;
  width: auto;
  display: block;
}

/* --- BLOK 2: ikony do prawej -------------------------------------------------- */
.pw-block-right {
  margin-left: auto;    /* dociska blok do prawej krawędzi */
}

ul.pw-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.pw-social a {
  color: #ffffff;
  display: block;
  transition: color 0.2s ease;
}

ul.pw-social a:hover {
  color: #00aeef;
}

ul.pw-social svg {
  height: 30px;
  width: auto;
  display: block;
}

/* Przełącznik języków, jeśli też trafi do pozycji topbar */
.container-topbar .mod-languages {
  flex-shrink: 0;
}

/* --- Przycisk "MENU + ikona" na urządzeniach mobilnych ----------------------- */
/* Działa dla obu wariantów przycisku Cassiopei: gdy sam button ma klasę
   navbar-toggler-icon (ikona jako background) oraz gdy ikona jest w spanie.
   Własną ikonę rysujemy w ::after, napis MENU w ::before. */
.container-header .navbar-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  color: #ffffff;
  background-color: rgba(40, 46, 57, 0.9);
  background-image: none !important;  /* wyłącza bootstrapową ikonę-tło */
  box-shadow: none;
  width: auto;
  height: auto;
}

.container-header .navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.5);
}

/* Ukrywamy wewnętrzną ikonę fontową (jeśli układ ją renderuje) */
.container-header .navbar-toggler [class*="icon-"],
.container-header .navbar-toggler .icon-menu {
  display: none;
}

/* Napis MENU */
.container-header .navbar-toggler::before {
  content: "MENU";
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1;
}

/* Ikona hamburgera */
.container-header .navbar-toggler::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Po rozwinięciu menu ikona zmienia się w X */
.container-header .navbar-toggler[aria-expanded="true"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M7 7l16 16M23 7L7 23'/%3E%3C/svg%3E");
}

/* --- Tablet (768–992 px): oba bloki nadal w jednej linii, mniejsze grafiki ---- */
@media (max-width: 991.98px) {
  .pw-block-left {
    gap: 1.25rem;
  }

  .pw-topbar__logo img {
    height: 100px;
  }

  .pw-topbar__gpw img {
    height: 70px;
  }

  ul.pw-social {
    gap: 1.1rem;
  }

  ul.pw-social svg {
    height: 26px;
  }
}

/* --- Mobile (< 768 px): bloki jeden pod drugim, hamburger steruje menu -------- */
@media (max-width: 767.98px) {
  .container-topbar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
  }

  .pw-block-left,
  .pw-block-right {
    margin: 0;
    width: 100%;
    justify-content: center;
  }

  .pw-block-left {
    gap: 1.5rem;
  }

  .pw-topbar__logo img {
    height: 60px;
  }

  .pw-topbar__gpw img {
    height: 46px;
  }

  ul.pw-social {
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  ul.pw-social svg {
    height: 26px;
  }

  /* Przycisk MENU na całą szerokość — panel rozwija się w dół pod nim */
  .container-header .navbar-toggler {
    display: flex;
    width: 100%;
    margin: 0.5rem 0;
  }

  /* Panel rozwiniętego menu — ciemne tło, pozycje pod sobą, pełna szerokość.
     UWAGA: nie ustawiamy tu display! Widocznością (collapse/show)
     steruje Bootstrap po kliknięciu przycisku MENU; klasa .collapsing
     zapewnia płynne rozwijanie w dół. */
  .container-header .mod-menu {
    width: 100%;
    background-color: #282e39;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    flex-direction: column;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button {
    padding: 0.7rem 1rem;
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* --- Bardzo wąskie ekrany (< 400 px): jeszcze mniejsze grafiki ----------------- */
@media (max-width: 399.98px) {
  .pw-topbar__logo img {
    height: 48px;
  }

  .pw-topbar__gpw img {
    height: 38px;
  }

  ul.pw-social svg {
    height: 22px;
  }

  ul.pw-social {
    gap: 1rem;
  }
}
/* Przycisk MENU widoczny tylko na mobile — desktop chowa go bezwzględnie */
@media (min-width: 768px) {
  .container-header .navbar-toggler {
    display: none !important;
  }
}
div.mod-languages li{    margin: 14px 5px 0px 5px;}
div.mod-languages img {border: none; display: inline-block; height: 14px;}


/* ============================================================
   Kolumny w tresci artykulu (CSS Grid, responsywne)
   Wstawiane przyciskiem edytora plg_editors-xtd_kolumny.
   Ten sam kod mozna wkleic do user.css / custom.css szablonu.
   ============================================================ */

.kolumny {
    display: grid;
    gap: 1.5rem;
    margin: 1rem 0;
    align-items: start;
}

.kolumny-2 { grid-template-columns: repeat(2, 1fr); }
.kolumny-3 { grid-template-columns: repeat(3, 1fr); }
.kolumny-4 { grid-template-columns: repeat(4, 1fr); }

/* Zeby obrazki nie rozpychaly kolumn */
.kolumny .kol img {
    max-width: 100%;
    height: auto;
}

/* Tablet: 4 i 3 kolumny -> 2 */
@media (max-width: 991.98px) {
    .kolumny-3,
    .kolumny-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Telefon: wszystko -> 1 kolumna */
@media (max-width: 575.98px) {
    .kolumny-2,
    .kolumny-3,
    .kolumny-4 { grid-template-columns: 1fr; }
}

/* --- Opcjonalnie: delikatne obramowanie widoczne tylko w edytorze ---
   Odkomentuj i dodaj do CSS edytora (editor.css), aby widziec granice
   kolumn podczas edycji, bez wplywu na front:

.kolumny { outline: 1px dashed #bbb; }
.kolumny .kol { outline: 1px dotted #ddd; min-height: 2rem; }*/
:root { --kafle-accent: #c6e52c; --ytgrid-accent: #c6e52c; }
.left.item-image {margin-right: 30px!important;}

.com-content-article,.blog-item,.blog-featured .item {
background-color: #282e39;
  color: #dbdbdb;
   padding: 30px;
  box-shadow: #01040e 0px 1px 17px 12px; }

.item-page.article-dark,.com-content-article.article-dark {background-color: transparent;color: #dbdbdb;padding: 0px!important;
  box-shadow: none!important; }
 
/* wariant ciemny */
.article-dark .com-content-article,.blog-item.article-dark,.blog-featured .item.article-dark {background-color: transparent;color: #dbdbdb; padding: 0px!important;
  box-shadow: none!important;}

/* domyślnie transparent - bez zmian */

.article-dark .page-header > h1,
.article-dark .page-header > h2 {
  background: transparent;
  border-bottom: 2px solid #c6e52c;
  color: #c6e52c;
}
.container-header .mod-menu a, .container-header .mod-menu button {
    color: currentColor;
    font-weight: bold;
    color: #ffffff;
}