.container {
    font-family: Tahoma, Verdana, Geneva, sans-serif;
    max-width: 1300px;
    margin: 0 auto; 
 /*   padding: 20px; */
}

.site-header {
   /* display:flex;*/
    position: relative;
	min-height: 400px;
    background-image: url("../img/header.jpg");
    background-size: cover; 
    background-position: center; 
    color: gray;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
  /*  background: rgba(0,0,0,0.45); */
}

.site-header .container {
    position: relative;
    padding-left: 0;
    z-index: 2;
}

.site-header h1 {
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.main-nav a {
    color: white;/*#474444;*/
    text-shadow: 2px 2px black;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    margin:0;
    text-align: center;
    padding: 3px 10px;
    color:blue;
}
.hero h2{
   
    margin:0;
   
}
.header-hero-text {
position: absolute;
font-family:  Tahoma, Verdana, Geneva, sans-serif;
  bottom: 0;
  width:100%;
    color:#eaeaea;
    text-shadow: 2px 2px blue;
    padding: 20px 0;
    text-align: center;
}

.header-hero-text h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.header-hero-text p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}
.news-item {
    background-color: #e4e1e1;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #005baa;
}
.news-item h3{
    margin:0;
}
.news-categories {
    margin-bottom: 8px;
}

.news-category {
    display: inline-block;
    background: #eef3f7;
    color: #003b7a;
    font-size: 13px;
    padding: 3px 8px;
    margin-right: 6px;
    border-radius: 4px;
    font-weight: bold;
}
.news-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}
.news-back {
    margin-top: 40px;
}

.back-to-news {
    display: inline-block;
    padding: 10px 16px;
    background: #f0f0f0;
    color: #005baa;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.back-to-news:hover,
.back-to-news:focus {
    background: #e0e0e0;
    text-decoration: underline;
}
.news-date {
    font-size: 14px;
    color: #666;
}

.news-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    vertical-align: middle;
}

.new-news {
    background: #d32f2f;
    color: #fff;
}

.site-footer {
    background: #7e7c7c;
    font-family: tahoma;
    color: #ccc;
    padding: 0 10px 5px 10px;
    font-size: 14px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Nagłówki kolumn */
.footer-col {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 10px;
}
.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 10px;
}
/* MENU STOPKI */
.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 6px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
    text-decoration: underline;
}
/* KONTAKT I DANE */
.footer-contact a,
.footer-info a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus {
    text-decoration: underline;
}

.site-footer p {
   margin:0;
}
/* DOLNA BELKA */
.footer-bottom {
    margin-top: 5px;
    border-top: 1px solid #444;
    padding-top: 10px;
    text-align: center;
    color: #aaa;
}
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;

    background-color: #005baa;
    color: #ffffff;

    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* Hover i focus – WCAG */
.read-more-btn:hover,
.read-more-btn:focus {
    background-color: #003b7a;
    text-decoration: underline;
}

.read-more-btn::after {
    content: " →";
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
.news-thumb img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}
.header-inner {
   margin:auto;
    gap: 20px; 
}
.site-branding{
    margin-left: 0;
    padding: 10px; 
   align-self: auto; 
}

.site-branding img {
    max-height: 80px;
    width: auto;
}
/*
.header-right {
   flex: 1;
}
*/
.site-title {
    margin: 0;
}
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .site-branding img {
        max-height: 60px;
    }
}

.header-inner {
    display: flex;
    align-items: flex-start;
}

.main-nav {
    align-self: flex-start;
    border-bottom: 1px solid #474444;
    margin-left: auto;
    margin-top: 0;
    padding-top: 0;

}

.main-nav a {
    font-family: 'Open Sans', Arial, sans-serif;
	padding: 3px 3px; 
    line-height: 0.8; 
    font-size: 25px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus{
    background-color: rgba(100, 100, 100, 0.1); /* tylko tło */
    border-radius: 4px;
    color: blue;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

@media (min-width: 992px) {
    .main-nav {
        display: block !important;
    }
}

@media (max-width: 991px) {

   
   .menu-toggle {
        display: block;
        margin-left: auto;
        color: white;
        font-size: 30px;
        background: rgba(0,0,0,0.2);
        padding: 6px 10px;
        border-radius: 6px;

    }

    .main-nav {
        display: none;
        width: 100%;
       /* margin-top: 5px; */
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
        background-color: rgba(128, 128, 128, 0.1);
       /* opacity:0.8;*/
    }

    .main-nav li a {
        padding: 5px;
        display: block;
    }

    
}

.event-category {
    display: inline-block;
    background: #e6eef7;
    color: #003b7a;
    padding: 4px 8px;
    margin-bottom: 6px;
    margin-right: 6px;
    font-size: 14px;
    border-radius: 4px;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 6px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover,
.footer-nav a:focus {
    text-decoration: underline;
}

/* Elementy menu */
.main-nav li {
    position: relative;
}

/* Podmenu – ukryte */


/* Pozycje w podmenu */
.main-nav ul ul li a {
    padding: 10px 10px; 
    color:#e4ebf4;
    display: block;
}

/* POKAZANIE PODMENU – hover + focus */
.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
    display: block;
}
.main-nav li.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 12px;
}
.zarzad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.zarzad-card {
    text-align: left;
}

.zarzad-card img {
  /*  border-radius: 50%; */
    max-width: 160px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* LEWA STRONA */
.contact-info p {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px 20px;
    background: #005baa;
    color: #fff;
    border: none;
    cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus {
    background: #003b7a;
}

/* PRAWA STRONA */
.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.map-link {
    margin-top: 10px;
    text-align: right;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.event-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}
/* galeria */
.gallery-intro {
    font-size: 18px;
    max-width: 70ch;
    margin: 20px 0 30px;
    line-height: 1.6;
}

.gallery-content {
    margin-top: 20px;
}
.gallery-back {
    margin-top: 40px;
}

.back-to-gallery {
    display: inline-block;
    padding: 10px 16px;
    background: #f0f0f0;
    color: #005baa;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.back-to-gallery:hover,
.back-to-gallery:focus {
    background: #e0e0e0;
    text-decoration: underline;
}
.gallery-count {
    font-size: 16px;
    color: #555;
    margin: 15px 0 25px;
    font-weight: bold;
}

.gallery-count-list {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    font-weight: bold;
}
.gallery-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    margin: 8px 0;
}

.new-gallery {
    background: #d32f2f;
    color: #fff;
}

.glightbox-clean .gslide-media {
    background: rgba(200,200,200,0.9);
}


/* Wymuś strzałki GLightbox na małych ekranach */
@media (max-width: 768px) {
    .gprev,
    .gnext {
        display: block !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .gprev,
    .gnext {
        width: 48px;
        height: 48px;
    }
}
/* GLightbox – podpis zdjęcia */
.gslide-title{
    text-align:center;
}
.gcontainer{
    background-color:white;
}
/* ==================================================
   MENU GŁÓWNE – PODMENU "O NAS"
   ================================================== */

/* DESKTOP */
@media (min-width: 992px) {

  .main-nav li {
    position: relative;
  }

  .main-nav li > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 180px;
    background: rgba(192, 192, 192, 0.60);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 1000;
  }

  /* hover NA LI, NIE NA A */
  .main-nav li:hover > ul.sub-menu,
  .main-nav li:focus-within > ul.sub-menu {
    display: block;
  }

  .main-nav ul.sub-menu a {
    color: white;/*#003b7a;*/
   /* padding: 10px 5px;*/
    display: block;
    font-size: 20px;
    text-decoration: none;  
  }
 .main-nav ul.sub-menu a:hover,
 .main-nav ul.sub-menu a:focus {
    background: rgba(0, 59, 122, 0.08);
    color:blue;
  }       
}

/* MOBILE – HAMBURGER */
@media (max-width: 991px) {

  .main-nav ul {
    flex-direction: column;
    background: rgb(192, 192, 192); /*#f2f2f2;*/
    border-radius: 10px;  
  }

  .main-nav li > ul.sub-menu {
    display: block;                 /* ✅ zawsze widoczne */
    position: static;
    background: #e9e9e9;
    box-shadow: none;
    padding-left: 10px;
  }

  .main-nav ul.sub-menu a {
    font-size: 20px;
    color:white;
    padding: 8px 10px;
  }
}
