/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #f8f9fa;
  color: #222;
}

/* Linki */
a {
  color: #005bbb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Nagłówki */
h1, h2, h3, h4 {
  font-weight: bold;
  margin-bottom: 10px;
  color: #111;
}

/* Pasek Breaking News */
#breaking-news {
  background: #d60000;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Topbar */
#topbar {
  background: #333;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 5px 20px;
  font-size: 14px;
}
#topbar a { color: #fff; }

/* Header */
#site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
#site-header .logo img {
  max-height: 60px;
}
#site-header .search {
  max-width: 250px;
}

/* Menu */
#main-nav, #regions-nav {
  background: #005bbb;
  color: #fff;
}
#main-nav ul, #regions-nav ul {
  display: flex;
  list-style: none;
}
#main-nav li, #regions-nav li {
  margin: 0 15px;
  padding: 10px 0;
}
#main-nav a, #regions-nav a {
  color: #fff;
  font-weight: bold;
}
#main-nav a:hover, #regions-nav a:hover {
  text-decoration: underline;
}

/* Reklamy */
#ad-top, #ad-middle, #ad-bottom {
  text-align: center;
  margin: 20px auto;
  padding: 10px;
  background: #eaeaea;
  border: 1px dashed #ccc;
}

/* Slider */
#highlight-slider {
  margin: 20px auto;
  max-width: 1200px;
  background: #000;
  color: #fff;
}

/* Layout */
.content-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 20px auto;
  max-width: 1500px;
}

/* Lewa kolumna */
.left-col section {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Sidebar */
.sidebar .widget {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.sidebar h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Sekcje tematyczne */
#sections {
  max-width: 1500px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
#sections .section {
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Multimedia */
#media {
  max-width: 1500px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
#media > div {
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Stopka */
#site-footer {
  background: #222;
  color: #fff;
  padding: 20px;
  margin-top: 40px;
}
#site-footer .footer-links,
#site-footer .partners,
#site-footer .copyright {
  margin-bottom: 15px;
}
#site-footer a {
  color: #fff;
}


/* === TOP NEWS GRID === */
#k2-news-grid {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background: #ffffff;
    border-top: 3px solid #d71920; /* czerwony akcent */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#k2-news-grid h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    text-transform: uppercase;
    color: #222;
}

/* układ kafelków */
#k2-news-grid .k2-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* pojedynczy kafelek */
#k2-news-grid .k2-item {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

#k2-news-grid .k2-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* obrazek */
#k2-news-grid .k2-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* tytuł */
#k2-news-grid .k2-item h4 {
    font-size: 18px;
    margin: 12px;
    color: #333;
    line-height: 1.3em;
}

#k2-news-grid .k2-item h4 a {
    text-decoration: none;
    color: #d71920;
}

#k2-news-grid .k2-item h4 a:hover {
    text-decoration: underline;
}

/* introtext */
#k2-news-grid .k2-item .introtext {
    font-size: 14px;
    color: #555;
    margin: 0 12px 12px;
    line-height: 1.4em;
    flex-grow: 1;
}

/* data publikacji */
#k2-news-grid .k2-item .date {
    font-size: 12px;
    color: #999;
    margin: 0 12px 12px;
}

/* === RESPONSYWNY SIDEBAR === */

/* Gdy ekran ma mniej niż 992px szerokości */
@media (max-width: 992px) {
  .content-columns {
    display: grid;
    grid-template-columns: 1fr; /* tylko jedna kolumna */
  }

  .left-col {
    grid-row: 1; /* najpierw treść */
  }

  .sidebar {
    grid-row: 2; /* sidebar pod treścią */
    margin-top: 20px;
  }
}







/* ==========================
   HEADER
========================== */
#site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  max-height: 70px;
}

.header-search {
  max-width: 320px;
}

/* ==========================
   MENU STICKY
========================== */
#main-nav {
  position: sticky;
  top: 0;
  background: #0b4fa3;
  z-index: 9999;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* NAV INNER – ZERO MARGINESÓW */
#main-nav .nav-inner {
  max-width: 1280px; /* lub 100% jeśli pełna szerokość */
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Logo w menu po scrollu */
.logo-sticky {
  display: none;
  margin-right: 20px;
}

#main-nav.sticky .logo-sticky {
  display: block;
}

.logo-sticky img {
  height: 40px;
}

/* MENU LIST */
#main-nav .portal-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-nav .portal-menu > li {
  position: relative;
}

#main-nav .portal-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease;
}

#main-nav .portal-menu > li:hover > a,
#main-nav .portal-menu > li.active > a {
  background: #083d7d;
}

/* DROPDOWN */
#main-nav .portal-menu li ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

#main-nav .portal-menu li:hover > ul.submenu {
  display: block;
}

#main-nav .portal-menu ul.submenu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #0b4fa3;
  text-decoration: none;
}

#main-nav .portal-menu ul.submenu li a:hover {
  background: #eef4ff;
}

/* HAMBURGER MOBILE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
}

/* MOBILE – OFF CANVAS LEFT */
@media (max-width: 992px) {
  .menu-toggle { display: block; }

  #main-nav .portal-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #0b4fa3;
    flex-direction: column;
    padding-top: 60px;
    transition: left .3s ease;
    z-index: 9999;
  }

  #main-nav.open .portal-menu {
    left: 0;
  }

  #main-nav .portal-menu > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  #main-nav .portal-menu li ul.submenu {
    position: static;
    box-shadow: none;
    background: #083d7d;
  }

  #main-nav .portal-menu li.open > ul.submenu {
    display: block;
  }

  #main-nav .portal-menu ul.submenu li a {
    color: #fff;
    padding-left: 32px;
    font-size: 13px;
  }
}

/* PEŁNA SZEROKOŚĆ NAV INNER DLA DUŻYCH EKRANÓW */
@media (min-width: 1200px) {
  #main-nav .nav-inner {
    max-width: 100%;
  }
}