/* PB */

/* Responsywny footer dla biblioteka-pomiechowek.pl */

/* Tablet - 768px i mniej */
@media (max-width: 768px) {
    .page_footer .cz_middle_footer .row .col.s4 {
        width: 100% !important;
        margin-bottom: 30px;
        float: none !important;
    }
    
    .page_footer .cz_middle_footer {
        padding: 20px 15px;
    }
    
    .footer_widget h4 {
        font-size: 18px !important;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .footer_widget ul li {
        font-size: 14px;
        line-height: 1.5;
        padding: 3px 0;
    }
    
    /* Logo w środkowej kolumnie */
    .codevz-widget-about-logo {
        max-width: 150px !important;
        height: auto !important;
        margin: 0 auto 20px auto !important;
    }
    
    /* Przyciski social media */
    .cz_social_icons {
        text-align: center !important;
        justify-content: center !important;
    }
    
    .cz_social_icons a {
        margin: 5px !important;
    }
}

/* Smartphone - 480px i mniej */
@media (max-width: 480px) {
    .page_footer {
        padding: 15px 10px !important;
    }
    
    .page_footer .cz_middle_footer {
        padding: 15px 10px;
    }
    
    .footer_widget h4 {
        font-size: 16px !important;
        margin-bottom: 10px;
    }
    
    .footer_widget ul li {
        font-size: 13px;
        padding: 2px 0;
    }
    
    /* Kontakt - zmniejszenie czcionki */
    .codevz-widget-about-content {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    .codevz-widget-about-logo {
        max-width: 120px !important;
        margin-bottom: 15px !important;
    }
    
    /* Przycisk kontaktowy */
    .cz_btn {
        font-size: 13px !important;
        padding: 8px 15px !important;
        margin: 10px 0 !important;
    }
    
    /* Dolny footer */
    .footer_2 .row {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .footer_2 .elms_left,
    .footer_2 .elms_right {
        width: 100% !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }
    
    .footer_2 .it_text {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* Ukryj separatory w dolnym footerze na mobile */
    .footer_2 .header_line_4 {
        display: none !important;
    }
    
    /* Linki w dolnym footerze w pionie */
    .footer_2_right > div {
        display: block !important;
        margin: 5px 0 !important;
    }
}

/* Bardzo małe ekrany - 360px i mniej */
@media (max-width: 360px) {
    .page_footer {
        padding: 10px 5px !important;
    }
    
    .footer_widget h4 {
        font-size: 15px !important;
    }
    
    .footer_widget ul li {
        font-size: 12px;
    }
    
    .codevz-widget-about-content {
        font-size: 12px !important;
    }
    
    .codevz-widget-about-logo {
        max-width: 100px !important;
    }
    
    .cz_social_icons a {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
        margin: 3px !important;
    }
}

/* Dodatkowe poprawki dla lepszego wyświetlania */
@media (max-width: 768px) {
    /* Wyśrodkowanie treści w footerze */
    .center_on_mobile {
        text-align: center !important;
    }
    
    /* Responsywne odstępy */
    .footer_widget {
        margin-bottom: 25px !important;
    }
    
    /* Poprawka dla długich linków */
    .footer_widget a {
        word-break: break-word;
        line-height: 1.4;
    }
    
    /* Poprawka dla listy godzin */
    .textwidget ul {
        padding-left: 0 !important;
        text-align: left !important;
        max-width: 300px;
        margin: 0 auto !important;
    }
    
    .textwidget ul li {
        list-style-position: inside !important;
    }
}

.section_title {
    font-size: 24px !important;
	color: white !important;
    padding-top: 24px;
    font-weight: 900;
}


/* ************** */

/* Desktop - zachowaj normalny wygląd */
@media (min-width: 769px) {
    .header_1 {
        display: block !important; /* Pokaż szary pasek na desktop */
    }
    
    .page_header {
        position: relative !important;
        padding: 0 !important; /* Usuń padding z mobile */
        background: transparent !important; /* Przywróć oryginalne tło */
    }
    
    .page_cover {
        padding-top: 0 !important; /* Bez dodatkowego paddingu */
        margin-top: 0 !important;
    }
}

/* Mobile - 768px i mniej */
@media (max-width: 768px) {
    /* Ukryj szary pasek tylko na mobile */
    .header_1 {
        display: none !important;
    }
    
    /* Header z logo na mobile */
    .page_header {
        position: relative !important;
        padding: 10px 15px !important;
        background: rgba(255,255,255,0.95) !important;
    }
    
    /* Logo na mobile */
    .logo img,
    .logo_header_2_left_2 img,
    .logo_header_4_left_4 img {
        width: 80px !important;
        height: auto !important;
        max-width: 80px !important;
        margin-top: 25px !important;
	padding-top: 20px !important;
    }
    
    .page_cover {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .page_title {
        padding-top: 20px !important;
    }
}

/* Bardzo małe ekrany */
@media (max-width: 480px) {
    .page_header {
        padding: 8px 10px !important;
    }
    
    .logo img,
    .logo_header_2_left_2 img,
    .logo_header_4_left_4 img {
        width: 70px !important;
        height: auto !important;
        max-width: 70px !important;
        margin-top: 23px !important;
	padding-top: 20px !important;
    }
}


/* **** */

/* Desktop - zmniejsz page_title */
@media (min-width: 769px) {
    .page_title {
        padding-top: 50px !important; /* Zamiast 220px */
        padding-bottom: 20px !important; /* Zamiast 40px */
    }
    
    .page_title .section_title {
        font-size: 36px !important; /* Opcjonalnie zmniejsz czcionkę */
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    .page_title .breadcrumbs {
        font-size: 14px !important;
    }
}

/* Mobile - zachowaj małe odstępy */
@media (max-width: 768px) {
    .page_title {
        padding-top: 20px !important;
        padding-bottom: 15px !important;
    }
    
    .page_title .section_title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .page_title .breadcrumbs {
        font-size: 12px !important;
    }
}
