/* ==========================================================================
   STYLIZACJA DLA JOOMLA 2.5 (I LO JAWOR)
   ========================================================================== */

/* Podstawowy Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f4f6f9;
  font-family: Arial, Helvetica, sans-serif;
  color: #222222;
}

#wrap {
  max-width: 1140px;
  margin: 20px auto;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

/* --- NAGŁÓWEK --- */
#header img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- MENU POZIOME (POZYCJA: menu_poziome) --- */
#menubar {
  background-color: #1a1a1a;
  border-top: 3px solid #a80000;
  width: 100%;
}

#menubar .moduletable,
#menubar .moduletable_menu {
  margin: 0;
  padding: 0;
}

/* Wyciąganie listy Joomla 2.5 do poziomu */
#menubar ul.menu,
#menubar ul {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#menubar ul.menu li,
#menubar ul li {
  margin: 0 !important;
  padding: 0 !important;
}

#menubar ul.menu li a,
#menubar ul li a,
#menubar ul.menu li span,
#menubar ul li span {
  display: block !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 14px 18px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  transition: background 0.2s;
}

#menubar ul.menu li a:hover,
#menubar ul.menu li.active a {
  background-color: #a80000 !important;
}

/* --- SIATKA: SIDEBAR + TREŚĆ --- */
#layout {
  display: flex;
  gap: 30px;
  padding: 30px 20px;
}

/* --- MENU BOCZNE (POZYCJA: menu_bok) --- */
#sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-left: 4px solid #1a1a1a;
  padding: 10px;
}

#sidebar .moduletable h3,
#sidebar .moduletable_menu h3 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #1a1a1a;
  color: #1a1a1a;
}

#sidebar ul.menu,
#sidebar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#sidebar ul.menu li,
#sidebar ul li {
  margin-bottom: 3px !important;
}

#sidebar ul.menu li a,
#sidebar ul li a {
  display: block !important;
  padding: 9px 12px !important;
  background-color: #ffffff !important;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#sidebar ul.menu li a:hover,
#sidebar ul.menu li.active a {
  background-color: #f1f5f9 !important;
  color: #a80000 !important;
}

/* Wyróżnienie pierwszej pozycji (np. BIP) */
#sidebar ul.menu li:first-child a {
  color: #4c1d95 !important;
  font-weight: bold !important;
}

/* --- TREŚĆ GŁÓWNA --- */
#text {
  flex-grow: 1;
}

/* --- STOPKA --- */
#stopka {
  background: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 800px) {
  #layout {
    flex-direction: column;
  }
  #sidebar {
    width: 100%;
  }
}
/* ==========================================================================
   POPRAWKA DLA UKŁADU BIP ORAZ KOMUNIKATÓW SYSTEMOWYCH
   ========================================================================== */

/* --- 1. POPRAWKA DLA BLOKU BIP W SIDEBARZE --- */
#sidebar {
  word-break: break-word; /* Zapobiega wychodzeniu długich słów poza sidebar */
}

#sidebar img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

#sidebar a {
  display: inline-block;
  color: #4c1d95;
  font-weight: bold;
  text-decoration: none;
}

#sidebar a:hover {
  text-decoration: underline;
}

/* --- 2. ESTETYCZNE KOMUNIKATY BŁĘDÓW / OSTRZEŻEŃ JOOMLA --- */
#system-message-container,
#text .alert,
#text .message {
  margin-bottom: 25px;
}

/* Styl dla ostrzeżeń / uwag (Warning/Notice) */
#system-message-container > div,
.alert-warning,
.alert-notice {
  background-color: #fffbebfb;
  border: 1px solid #fcd34d;
  border-left: 5px solid #f59e0b;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}

#system-message-container h0,
#system-message-container h4,
.alert-heading {
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: #78350f;
}

#system-message-container ul {
  margin: 0;
  padding-left: 20px;
}

#system-message-container .close,
.alert .close {
  float: right;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #92400e;
  opacity: 0.6;
}

#system-message-container .close:hover {
  opacity: 1;
}

/* --- 3. NAGŁÓWEK ARTYKUŁU (np. "Zmiana godzin pracy...") --- */
#text h2, 
#text .contentheading {
  color: #005fcc;
  font-size: 1.4rem;
  margin-top: 10px;
}

#text h2 a, 
#text .contentheading a {
  color: #005fcc;
  text-decoration: none;
}

#text h2 a:hover {
  text-decoration: underline;
}
/* Ukrycie kontenera komunikatów systemowych */
#system-message-container,
#system-message {
  display: none !important;
}
/* --- SEKCJA TOP1-1 (SLIDER + KOMUNIKAT) --- */
#slider-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 15px auto;
  padding: 0;
  overflow: hidden;
}

#slider-container .moduletable {
  margin-bottom: 10px;
}

#slider-container .n2-ss-slider {
  margin: 0 auto !important;
}
html {
  scroll-behavior: smooth;
}