/* 1. TOTALNY RESET LIST I KROPEK */
* { box-sizing: border-box !important; }
html, body { margin: 0 !important; padding: 0 !important; width: 100% !important; overflow-x: hidden !important; font-family: sans-serif; }
ul, li { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; border: none !important; }
li::before, li::after { content: none !important; }

/* Ukrywanie standardowych elementów Grav */
#header, .navbar, .navbar-section, .header-navigation, .desktop-nav { display: none !important; }

/* Elastyczne zdjęcia */
img { max-width: 100% !important; height: auto !important; display: block; margin: 10px auto; }

/* 2. NAGŁÓWEK */
.top-contact-bar { background: #0025cc; padding: 6px 0; text-align: center; color: #fff; width: 100%; }
.top-contact-bar a { color: #fff; font-weight: bold; margin: 0 10px; text-decoration: none; font-size: 0.85rem; display: inline-block; }
.header-white-area { background: #fff; padding: 10px 0; text-align: center; border-bottom: 1px solid #ccc; width: 100%; }
.menu-bar-area { background: #eeeeee; padding: 10px 0; display: flex; justify-content: center; border-bottom: 1px dashed #ccc; width: 100%; }

/* 3. HAMBURGER */
.mobile-menu-box { background: #fff; border: 1.5px solid #000; padding: 8px 15px; cursor: pointer; border-radius: 4px; display: block !important; line-height: 0; }
.button_container { width: 28px; height: 18px; position: relative; display: block; }
.button_container span { background: #0025cc !important; height: 3.5px; width: 100%; position: absolute; left: 0; border-radius: 2px; }
.button_container span:nth-of-type(1) { top: 0; }
.button_container span:nth-of-type(2) { top: 7px; }
.button_container span:nth-of-type(3) { top: 14px; }

/* 4. NAKŁADKA (OVERLAY) */
.overlay { position: fixed !important; background: #fff !important; top: 0; left: 0; width: 100vw !important; height: 100vh !important; display: none; z-index: 999999; overflow-x: hidden; margin: 0 !important; }
.overlay.open { display: block !important; overflow-y: auto; }
.close-btn { display: block; margin: 20px auto 10px; width: 55px; height: 50px; font-size: 30px; color: #ff0000; cursor: pointer; border: 2px solid #ff0000; text-align: center; line-height: 46px; font-weight: bold; }

.overlay-menu { width: 100%; text-align: center; padding-bottom: 40px; }
.overlay-menu ul li a { color: #0025cc !important; text-decoration: none !important; display: block !important; padding: 15px 0; font-size: 1.1rem; font-weight: 600; width: 100%; border-bottom: 1px solid #f2f2f2; }

/* ROZWIĄZANIE DLA PODMENU W WERSJI MOBILNEJ - BIAŁE TŁO, NIEBIESKIE NAPISY I WCIĘCIE */
.overlay-menu ul li ul { 
    display: block !important; 
    background: #ffffff !important; 
    padding-left: 35px !important; 
}
.overlay-menu ul li ul li a { 
    color: #0025cc !important; 
    font-size: 1rem !important; 
    padding: 12px 0 !important; 
    text-align: left !important;
    font-weight: 400 !important;
    border-bottom: 1px dashed #eee !important; 
}

/* 5. KOMPUTER - ROZWIJANIE PO NAJECHANIU */
@media (min-width: 961px) {
    .menu-bar-area { display: none !important; }
    .desktop-nav { display: block !important; background: #eeeeee; padding: 0; border-bottom: 1px dashed #ccc; width: 100%; text-align: center; }
    .desktop-nav > ul { display: flex !important; justify-content: center; align-items: center; min-height: 45px; }
    .desktop-nav > ul > li { position: relative; }
    .desktop-nav > ul > li > a { color: #0025cc !important; font-weight: 700; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; padding: 12px 18px; display: block; }
    .desktop-nav ul li ul { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #ccc; min-width: 220px; display: none !important; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .desktop-nav ul li:hover > ul { display: block !important; }
    .desktop-nav ul li ul li a { text-align: left; padding: 10px 15px; color: #333 !important; text-transform: none; font-weight: 400; font-size: 0.8rem; border-bottom: 1px solid #eee !important; }
}

/* 6. STOPKA */
.footer-fundacja { background: #0025cc !important; color: #fff !important; padding: 40px 20px; width: 100%; }
.footer-fundacja h3 { color: #ff0000 !important; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; border: none !important; }
.footer-fundacja a, .footer-fundacja p { color: #fff !important; text-decoration: none; }

/* STYLIZACJA LOGO DLA FUNDACJI AON */
.logo-area {
    display: block !important;
    margin: 0 auto !important;
    padding: 10px 0 !important;
    text-align: center !important;
}

.logo-area img, .logo-area svg {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    display: inline-block !important;
    margin: 0 !important;
}

@media (max-width: 960px) {
    .logo-area img, .logo-area svg {
        max-width: 180px !important;
        padding: 5px 0 !important;
    }
}

/* KOLOR I ODSUNIĘCIE NAGŁÓWKÓW Z PLIKÓW MARKDOWN */
main h1, main h2, main h3, main h4 {
    color: #0025cc !important;
    margin-top: 15px !important;
}

/* CZERWONY PRZYCISK Z KRWAWIĄCYM CIENIEM (ODWZOROWANIE LOGO) */
.btn.btn-primary {
    display: block !important;
    width: max-content !important;
    background: linear-gradient(90deg, #ff1a1a 0%, #cc0000 100%) !important;
    color: #ffffff !important;
    padding: 8px 25px !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 0 15px 4px rgba(255, 0, 0, 0.6) !important;
    text-align: center !important;
    margin: 15px auto !important;
}

/* WYMUSZONA CZERWIEŃ I POŚWIATA SŁUCHAWEK */
.top-contact-bar a span.phone-icon-red {
    color: #cc0000 !important;
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.7) !important;
}

/* UKŁAD KOLUMN STOPKI (ZAMIAST STYLÓW INLINE) */
.footer-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.footer-col {
    flex: 1 !important;
}
.footer-col-info {
    min-width: 250px !important;
}
.footer-col-links {
    min-width: 150px !important;
}
.footer-col-legal, .footer-col-donate {
    min-width: 200px !important;
}
