@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


/*  font-optical-sizing: auto; */


@font-face {
    font-family: 'Bootstrap Icons';
    src: url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


:root {
    --primary-color: #c00000;
    --secondary-color: #044ac0;
    --font-primary: "Figtree", sans-serif
}

html {
    font-size: 16px;
    scroll-behavior: smooth !important;
    box-sizing: border-box;
}

body {
    background: #fff;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    font-family: var(--font-primary) !important;
    font-optical-sizing: auto;
}

img {
    max-width: 100%;
}

.text-formatted h2 {
    margin: 30px 0;
    font-weight: 700;
}

a,
a:link {
    text-decoration: none;
    color: var(--secondary-color);
}

.ui-dialog--narrow {
    max-width: 1000px;
}

.region-sidebar-first .block {    
    padding: 5px;
}

main {
    margin-bottom: 50px;
}

footer {
    padding: 0;
}

.btn.btn-primary {
    color: #fff;
    border-radius: 0;
    background: var(--primary-color);
}

.view-header h2 {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 1.3rem;
    font-weight: 500;
}

thead th {
    font-size: 0.8rem;
}
thead th:nth-child(2) {
    width: 150px;
}


span.archiwum {
    font-size: 1rem;
    color: #aaa;
    font-weight: 100;
}

@media screen and (max-width: 650px) {

}

/* ------------------------------------------------------------ */
/* HEADER  */
/* ------------------------------------------------------------ */
header {
    padding: 20px 0;
    border-bottom: 1px solid #bbb;
    box-shadow: 4px 8px 16px #33333336;
    margin-bottom: 50px;    

    > div > div {

    }
    img {
        height: 100%;
    }
    .loga  {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 70px;

        .godlo-lewe {
            display: none;
        }
    }
    .godlo-logo {
        display: flex;
        justify-content: end;
        align-items: center;
        height: 85px;
    }
    .branding {
        display: flex;
        justify-content: center;
        align-items: center;
    }



    .site-name {
        color: #222;
        text-align: center;
        text-transform: uppercase;
        text-wrap: auto;
        font-size: 2rem;
        font-family: serif;
    }

    .site-name2 {
        text-align: center;
        color: #044ac0;
        font-size: 1.9rem;
        font-weight: 700;
        margin-top: 10px;
        font-family: serif;
        text-wrap: auto;
        line-height: 2rem;
    }

    .site-name-slogan {
        text-align: center;
        color: #044ac0;
        font-size: 1.4rem;
        font-weight: 700;
        margin-top: 10px;
        font-family: serif;
        text-wrap: auto;
        line-height: 2rem;
    }
        

    @media screen and (max-width: 650px) {        
        .loga { 
            width: 100%;
            height: 50px;
            display:flex;
            justify-content: space-between;
            align-items: center;     
        }
        .godlo-logo { display: none;}
        .godlo-lewe { 
            display: block !important;
            height: 100%;
        }
        .site-name {
            font-size: 1.2rem;
        }
        .site-name span {
            font-size: 1.2rem;
            display: block;
        }
    } 


}


/* -------------------------------------------------------------------------- */
/* nav-additional  */
/* -------------------------------------------------------------------------- */
.nav-additional {
    display: flex;
    justify-content: end;
}
.region.region-nav-additional {
    display: flex;
}

.accessibility--controls {
    display: flex;
    align-items: center;
}

button.accessibility--control {
    padding: 0;
    padding-inline: 8px;
}


.navbar-toggler.collapsed {
    display: none;
}
.navbar-toggler-icon {
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22currentColor%22%20class%3D%22bi%20bi-list%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2.5%2012a.5.5%200%200%201%20.5-.5h10a.5.5%200%200%201%200%201H3a.5.5%200%200%201-.5-.5m0-4a.5.5%200%200%201%20.5-.5h10a.5.5%200%200%201%200%201H3a.5.5%200%200%201-.5-.5m0-4a.5.5%200%200%201%20.5-.5h10a.5.5%200%200%201%200%201H3a.5.5%200%200%201-.5-.5%22%2F%3E%3C%2Fsvg%3E');
    background-size: 40px 40px;
    background-repeat: no-repeat;
}

#block-bip-theme-main-navigation {
    display: block;
}

@media screen and (max-width:768px) {
    #block-bip-theme-search-form {
        display: none;
    }
    .navbar-toggler.collapsed {
        display: block !important;
    }
    .nav-additional {
        justify-content: space-between;
        margin-bottom: 40px;
    }
    .sidebar-button {
        margin: auto;
    }

    .aside {
        display: none;
    }
    .aside #block-bip-theme-main-navigation {
        display: none;
    }

    .aside #block-bip-theme-advancedlanguageselectorblock {
        display: none;    
    }
    .region-sidebar-first {
        margin-top: 0px;
    }
}
@media screen and (min-width:769px) {
    #navbarSupportedContent {
        display: none;
    }

}

/* -------------------------------------------------------------------------- */
/* SIDEBAR LEFT  */
/* -------------------------------------------------------------------------- */
.region-sidebar-first {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* -------------------------------------------------------------------------- */
/* SIDEBAR BUTTON  */
/* -------------------------------------------------------------------------- */
.sidebar-button {
    display: flex;
    border: 1px solid #88888894;
    border-bottom: 2px solid #bb0100;
    width: 250px;
    max-width: 100%;

    .sidebar-button .sidebar-button-image img {
        width: 55px;
    }

    .sidebar-button-content {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        width: 100%;
    }

    .sidebar-button-image img {
        height: 50px;
    }
}

@media screen and (max-width: 998px) {
    .sidebar-button-image img {
        width: 45px;
    }

    .sidebar-button-content {
        font-size: 0.9rem;
        padding-left: 10px;
    }
}


.block-node-syndicate-block h2 {
    padding-right: 20px;
    padding-left: 5px;
    font-size: 0.9rem;
    padding-top: 3px;
    border: 0;
}


.block-node-syndicate-block {
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px !important;
    display: flex;
}

.feed-icon {
    background: url("../assets/path3.svg") no-repeat;
    width: 25px;
    height: 25px;
    background-size: contain;
}

@media screen and (min-width: 651px) {
    .block-node-syndicate-block {
        margin-top: auto !important;
    }
}



/* ------------------------------------------------------------ */
/* PAGE title  */
/* ------------------------------------------------------------ */
#block-bip-theme-page-title {
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #888;
    h1 {
        font-size: 1.5rem;
        font-weight: 600;
        font-family: sans-serif;
    }
}



/* --------------------------------------------------------------------------------  */
/* PAGE - BIP  */
/* --------------------------------------------------------------------------------  */

.node--view-mode-full h2.title {
    display: none;
}

.zalaczniki {
    margin-block: 0 var(--sp2);
}

.zalaczniki h4 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.attachment a {
    color: var(--secondary-color);
    display: flex;
}

.attachment a span {
    display: contents;
}

.attachment a::before {
    font-family: "Bootstrap Icons";
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}



a[type="application/pdf"]::before {
    content: "\F63E";
    color: var(--primary-color);
}

a[type="application/msword"]::before,
a[type="application/vnd.openxmlformats-officedocument.wordprocessingml.document"]::before {
    content: "\F38D";
    color: rgb(0, 54, 169);
}

a[type="application/zip"]::before {
    content: "\F391";
    color: rgb(252, 194, 4);
}

.file--x-office-document a:before {
    content: "\F38D";
    color: var(--secondary-color);
}

.file--x-office-spreadsheet a:before {
    content: "\F368";
    color: rgb(6, 105, 6);
}

.author {
    font-weight: 600;
}

.field--type-entity-reference {
    margin: 0;
}

.table-oferty table {
    font-size: 1rem;
}

table .thead-light tr th {
    background: rgb(0 0 0 / 8%);
    border-bottom-style: none;
    color: #f50000;
    font-weight: bold;
}



table.info {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;

    thead {
        background-color: var(--primary-color);
        color: #eee;
    }

    thead th {
        padding: 7px 0;
    }

    tbody th {
        width: 250px;
        background-color: #eee !important;
        color: #222;
    }

    tbody td {
        background-color: #fff !important;
        color: #222;
    }

    tbody th,
    tbody td {
        border: 1px solid #ccc;
        padding: 5px;
        text-align: left;
    }
}


@media (min-width: 43.75rem) {

    .text-content p,
    .cke_editable p {
        margin-block-start: var(--sp1);
        margin-block-end: var(--sp0);
    }
}


/* --------------------------------------------------------------------------------  */
/* REWIZJE  */
/* --------------------------------------------------------------------------------  */

.view-id-rewizje table {
    thead th {
        line-height: 1rem;
        padding: 10px 5px;
        color: #222;
        background-color: #eee;
    }

    tbody td {
        padding: 8px 5px;
        color: #222;
        background-color: #eee;
    }
}

.accordion {
    /* border: 1px solid #ccc;
    border-radius: 5px; */
    margin-bottom: 5px;
    overflow: hidden;
}

.accordion-header {
    position: relative;
    background: #ddd;
    color: #222;
    border-bottom: 1px solid #777;
    padding: 10px;
    padding-left: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.accordion-header:hover {
    background: #aaa;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
}

.accordion.active .accordion-content {
    /* max-height: 300px;     */
    padding: 10px 0;
}

.accordion.history.active .accordion-content {
    max-height: 300px;
}

.accordion-header i {
    font-style: normal;
    color: #C8261E;
}

.accordion-header i::before {
    content: '\F126';
    font-family: 'Bootstrap Icons';
    font-size: 24px;
    font-weight: 100;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-header.open i::before {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-header.open {
    background-color: #aaa;
}

.accordion-content.open {
    display: block;
    padding: 10px 0;
    max-height: 500px;
}

/* -------------------------------------------------------------------------- */
/* OSOBA ODPOWIEDZIALNA  */
/* -------------------------------------------------------------------------- */
.view-taxonomy-term .view-content {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* PRINT PDF  */
/* -------------------------------------------------------------------------- */

.print__wrapper.print__wrapper--pdf {
    width: 100%;
    margin-bottom: 10px;
}

a.print__link.print__link--pdf {
    /* display: none; */
    width: 30px;
    padding-top: 5px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    margin-left: auto;

}

a.print__link.print__link--pdf::before {    
    content: "\F63E";
    font-family: "Bootstrap Icons";
    color: #333;
}

/* -------------------------------------------------------------------------- */
/* FOOTER  */
/* -------------------------------------------------------------------------- */
#site-footer {
    margin-top: 50px;
    padding: 20px 0;
    .site-footer__copyright {
        .abel {            
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: end;
    
            img {
                height: 30px;
            }
        }
    }
}