/* RESET I PODSTAWY */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background-color: #f4f7f6; color: #333; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* MENU NAWIGACYJNE */
nav {
    background: #1a252f;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 100%;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}
nav ul li {
    position: relative; /* Wymagane dla rozwijanego menu */
}
nav ul li > a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: 0.3s;
    padding: 20px 20px;
    display: block;
    border-bottom: 3px solid transparent; /* Zapobiega skakaniu tekstu */
}
nav ul li > a:hover { color: #388e3c; }
nav ul li > a.active { color: #388e3c; border-bottom: 3px solid #388e3c; }

/* ROZWIJANE MENU (DROPDOWN) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a252f;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    border-radius: 0 0 8px 8px;
    z-index: 2000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}
.dropdown-content a {
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #2c3e50;
    transition: 0.3s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover, .dropdown-content a.active {
    background-color: #2c3e50;
    color: #388e3c;
}
.dropdown:hover .dropdown-content { display: block; }
.dropbtn i { font-size: 14px; margin-left: 6px; }

/* KONTENER TREŚCI */
.container {
    max-width: 1100px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1; /* Wypycha stopkę w dół */
    width: 95%;
}
h1 { color: #1a252f; margin-bottom: 20px; text-align: center; }
.glowny-tytul { font-size: 32px; font-weight: 700; padding-bottom: 15px; border-bottom: 3px solid #388e3c; }
.glowny-tytul i { color: #388e3c; margin-right: 12px; }
p { margin-bottom: 15px; font-size: 17px; }

/* PRZYCISK */
.btn { display: inline-block; padding: 12px 30px; background: #388e3c; color: white !important; text-decoration: none; border-radius: 5px; font-weight: bold; margin-top: 10px; transition: 0.3s; }
.btn:hover { background: #2e7031; transform: translateY(-2px); }

/* KAFELKI OSIĄGNIĘĆ */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: #f9f9f9; padding: 30px; border-radius: 10px; text-align: center; border: 1px solid #eee; transition: 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card i { font-size: 40px; color: #388e3c; margin-bottom: 15px; display: block; }

/* STOPKA */
footer { background: #1a252f; color: white; padding: 40px 0; margin-top: auto; text-align: center; width: 100%; }
.social-links { margin-bottom: 20px; }
.social-links a { color: white !important; font-size: 28px; margin: 0 15px; text-decoration: none; transition: 0.3s; display: inline-block; }
.social-links a:hover { color: #388e3c !important; transform: translateY(-3px); }
.contact-email { display: block; margin-bottom: 15px; color: #bdc3c7; text-decoration: none; font-size: 16px; transition: 0.3s; }
.contact-email:hover { color: white; }
.copyright { font-size: 13px; color: #7f8c8d; border-top: 1px solid #2c3e50; padding-top: 20px; margin-top: 20px; }
.fa-brands, .fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }

/* ------ STYLE SPECJALNE DLA MAPY ------ */
#mapa { height: 600px; width: 100%; border-radius: 8px; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); z-index: 1; }
.leaflet-popup-content-wrapper { box-shadow: 0 3px 14px rgba(0,0,0,0.25); border-radius: 8px; }
.leaflet-popup-content { margin: 18px; font-size: 14px; }
.leaflet-popup-content b { display: block; font-size: 16px; margin-bottom: 4px; }
.popup-adres { display: block; font-size: 12px; color: #7f8c8d; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid #f0f0f0; }
.przycisk-pdf { display: block; width: 100%; padding: 10px; margin-top: 15px; background: #2c3e50; color: white; text-align: center; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }
.ikona-szpital { display: flex; justify-content: center; align-items: center; border-radius: 50%; color: white; font-size: 16px; border: 2px solid white; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.edm-brak { background-color: #d32f2f; }
.edm-czesciowe { background-color: #fbc02d; color: #333; }
.edm-dziala { background-color: #388e3c; }
.informacje-dodatkowe { margin-top: 30px; padding: 25px; background: #fdfdfd; border-radius: 8px; border-left: 5px solid #2c3e50; }
.legenda-lista { list-style: none; padding: 0; margin-top: 15px; }
.legenda-lista li { margin-bottom: 12px; display: flex; align-items: center; font-size: 15px; }
.kropka { width: 18px; height: 18px; border-radius: 50%; display: inline-block; margin-right: 12px; border: 1px solid #ccc; }
.statystyki-sekcja { margin-top: 20px; padding: 25px; background: #fff; border-radius: 8px; border: 1px solid #eee; }
.tabela-statystyk { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; }
.tabela-statystyk th, .tabela-statystyk td { border: 1px solid #e0e0e0; padding: 12px; text-align: center; }
.tabela-statystyk th { background: #f4f7f6; color: #2c3e50; }
.tabela-statystyk td:first-child { text-align: left; font-weight: 500; } 
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; justify-content: center; align-items: center; }
.modal-content { width: 90%; height: 90%; background: #fff; border-radius: 8px; position: relative; }
.modal-close { position: absolute; top: -15px; right: -15px; background: #d32f2f; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; cursor: pointer; }
.modal-content iframe { width: 100%; height: 100%; border: none; border-radius: 8px; }

/* RWD - WERSJA NA TELEFONY */
@media (max-width: 768px) {
    nav ul { flex-direction: column; width: 100%; }
    nav ul li { width: 100%; text-align: center; }
    nav ul li > a { padding: 15px; border-bottom: 1px solid #2c3e50; }
    .dropdown-content { position: static; transform: none; width: 100%; border-radius: 0; box-shadow: none; background-color: #121920; }
    .container { padding: 20px; margin: 20px auto; }
    #mapa { height: 450px; }
    .glowny-tytul { font-size: 22px; }
}
/* SEKCJA O MNIE (TEKST + ZDJĘCIE) */
.about-wrapper { 
    display: flex; 
    align-items: flex-start; 
    gap: 40px; 
    margin-top: 20px; 
}
.about-text { 
    flex: 1; 
}
.about-text ul { 
    margin-left: 20px; 
    margin-bottom: 20px; 
}
.about-text li { 
    margin-bottom: 10px; 
}
.about-image { 
    flex: 0 0 350px; /* Stała szerokość kolumny ze zdjęciem */
    text-align: center; 
}
.about-image img { 
    width: 100%; 
    border-radius: 12px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    border: 3px solid #388e3c; /* Zielona ramka nawiązująca do stylu */
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-wrapper { 
        flex-direction: column-reverse; /* Na telefonie tekst będzie pod zdjęciem */
    }
    .about-image { 
        flex: 1; 
        width: 100%; 
        margin-bottom: 20px; 
    }
}