/* CIENIOWANIE TEKSTU */
.shadowed {
    text-shadow: 0 0 7px black, 0 0 7px black;
}

/* OGÓLNE POPRAWKI */
.select2-results > .select2-results__options {
    max-height: 340px !important;
}

.fancybox-container {
    z-index: 99999 !important;
}

.p-0 {
    padding: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.wimage-container img, .wimage-container iframe {
    max-width: 100%;
}

main {
    min-height: 400px;
}

form label {
    margin-bottom: 0 !important;
}

.d-inline-block {
    display: inline-block !important
}

.background-blurred {
    background-color: rgba(255, 255, 255, 0.69);
}

.text-fixes a, .text-fixes a * {
    word-break: break-word !important;
}

.text-fixes p {
    overflow: hidden;
    margin-bottom: 1rem !important;
}

.d-flex {
    display: flex !important;
    flex-wrap: wrap;
}

/* JUSTIFY-CONTENT-{START|CENTER|END} */
.justify-content-start {
    -ms-flex-pack: start !important;
    justify-content: flex-start !important
}

.justify-content-center {
    -ms-flex-pack: center !important;
    justify-content: center !important
}

.justify-content-end {
    -ms-flex-pack: end !important;
    justify-content: flex-end !important
}

/* CENTER ALIGN */
.align-items-center {
    align-items: center;
}


/* NAVBAR */
@media screen and (min-width: 992px) {
    /* 1 poziom */
    .main-navbar {
        padding: 0 15px !important;
        border-radius: 5px;
    }

    .main-navbar > li {
        height: 48px;
        padding: 0;
        transition: all .2s;
    }

    .main-navbar > li > a {
        padding: 14px 15px;
        line-height: 20px !important;
    }

    .main-navbar a {
        color: white !important;
    }

    .main-navbar > li > a::after {
        content: none !important; /* to jest usuniecie strzaleczki */
    }

    .main-navbar .submenu-icon {
        display: inline-block !important;
        margin-left: 8px; /* strzałeczka gdy mamy drugi poziom */
    }

    .main-navbar:not(.multiline-navbar) > li:first-of-type {
        border-bottom-left-radius: 5px;
        border-top-left-radius: 5px;
    }

    .main-navbar:not(.multiline-navbar) > li.has-children:first-of-type:hover {
        border-bottom-left-radius: 0;
    }

    .main-navbar:not(.multiline-navbar) > li:last-of-type {
        border-bottom-right-radius: 5px;
        border-top-right-radius: 5px;
    }

    .main-navbar:not(.multiline-navbar) > li.has-children:last-of-type:hover {
        border-bottom-right-radius: 0;
    }

    .multiline-navbar li {
        margin: 1px;
        border-radius: 5px;
    }

    /* 2 poziom */
    .main-navbar > li > ul.rd-navbar-dropdown {
        margin: 0 !important;
    }

    .main-navbar > li > ul.rd-navbar-dropdown > li {
        padding: 0;
        transition: .3s;
    }

    .main-navbar > li > ul.rd-navbar-dropdown > li > a {
        padding: 20px;
    }

    .main-navbar > li > ul.rd-navbar-dropdown > li:hover .menu-item-icon {
        transform: scale(1.15);
    }
}

.main-navbar .menu-item-icon {
    margin-right: 8px;
    transition: .3s;
}

.main-navbar .submenu-icon {
    display: none;
}

.rd-navbar--is-stuck .rd-navbar-inner {
    background-color: #fff;
}

@media (min-width: 1800px) {
    .rd-navbar-menu-wrap {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .rd-navbar-menu-wrap > div {
        display: flex !important;
    }

    .rd-navbar-brand > a {
        display: flex !important;
        flex-direction: row !important;
    }

    .rd-navbar-brand > a > div {
        display: flex !important;
    }
}

/* NAVBAR - HEADER IMAGE */
.use-header-image .show-if-using-header-image {
    /* na mniejszej szerokosci niz 992 to ma byc ukryte */
    display: none;
    width: 100%;
    margin-bottom: 5px;
}

@media (min-width: 992px) {
    .use-header-image .hide-if-using-header-image {
        display: none !important;
    }

    .use-header-image .show-if-using-header-image {
        display: block !important;
    }

    .use-header-image.rd-navbar-menu-wrap {
        flex-direction: column !important;
    }

    .use-header-image .rd-navbar-nav-wrap .rd-navbar-mobile-scroll {
        margin: 0 auto;
    }

    .rd-navbar--is-stuck .use-header-image .show-if-using-header-image {
        display: none !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

.header-image {
    display: none;
    width: 100% !important;
    height: auto;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header-image-970 {
        display: block;
    }
}

@media (min-width: 1200px) {
    .header-image-1200 {
        display: block;
    }
}

.navbar-accounts-list .rd-navbar-dropdown li > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NAVBAR - LOGO  */
.navbar-logo {
    max-width: 200px !important;
    max-height: 80px !important;
    width: initial !important;
    height: initial !important;
    transition: all .3s;
}

.rd-navbar--is-stuck .navbar-logo {
    max-height: 47px !important;
}

.footer-logo {
    max-width: 180px !important;
    max-height: 110px !important;
    width: initial !important;
    height: initial !important;
}

/* PRZYCISKI */
@media (max-width: 767px) {
    .btn-sm-small {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* KOREKTA PAGINATORA W SLIDERZE */
@media screen and (max-width: 768px) {
    .swiper-slider .swiper-pagination-bullet {
        display: none;
    }
}

.swiper-slider .swiper-pagination-bullet {
    background-color: white !important;
}


/* KOREKTA ALERTU DANGER */
.alert-danger {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    padding: 10px !important;
    border-radius: 3px !important;
    width: 100% !important;
    display: inline-block !important;
}

/* STOPKA */
footer .school-name {
    font-size: 22px;
}

footer img {
    transition: all .3s;
}

footer img:hover {
    transform: scale(1.05);
}

footer .footer-icons {
    margin-right: 15px;
}

footer .footer-icons > li .icon {
    transition: all .3s;
    background-color: #e8e8e8;
    font-size: 23px;
}

footer .footer-icons > li:hover .icon {
    transform: scale(1.1);
}

footer .footer-icons .icon-fb {
    color: #3C5A99;
}

footer .footer-icons .icon-twitter {
    color: #1DA1F2;
}

footer .footer-icons .icon-yt {
    color: #FF0000;
}

footer .footer-icons .icon-instagram {
    color: rgb(130, 58, 238);
}

footer .footer-icons i::before {
    top: -1px;
}

footer .footer-contact {
    height: 15px;
    line-height: 15px;
    margin-right: 5px;
}

footer .footer-contact a {
    font-size: 13px;
}

footer .footer-contact .icon {
    font-size: 15px;
    line-height: 15px;
}

footer .footer-contact * {
    transition: all .3s;
}

footer .footer-contact:hover * {
    color: #000000;
}

footer .footer-middle-links {
    padding-top: 15px;
    padding-bottom: 10px;
}

footer .footer-middle-links a:not(:last-of-type) {
    margin-right: 15px;
}

footer .footer-middle-links img {
    width: auto;
    height: 45px;
}

/* GALERIA */
.image-caption {
    z-index: 1;
    position: absolute !important;
    color: white;
    font-weight: bold;
    width: 100%;
    padding: 5px;
    align-self: center;
    margin: 0;
}

.gallery-nested .image-cell {
    padding-left: 8px;
    padding-right: 8px;
}

.image-cell {
    margin-bottom: 30px;
}

@media (min-width: 480px) and (max-width: 767px) {
    .image-cell {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }
}

.gallery-cover {
    filter: brightness(70%);
}

/* ACCORDION (używany m.in. w stronie /pliki) */
@media (min-width: 992px) {
    div.resp-accordion {
        padding-right: 50px !important;
    }
}

@media (max-width: 991px) {
    div.resp-accordion {
        padding-right: 28px !important;
    }
}

/* NEWS */
.news-mini-item {
    position: relative;
    margin-bottom: 30px;
    /*height: 480px;*/
}

.news-mini-item .news-pinned {
    position: absolute;
    top: 12px;
    right: 15px;
    font-weight: bold;
    font-size: 22px;
    display: inline-block;
    cursor: help;
}

.news-mini-item .post-news-content {
    word-wrap: break-word;
}

.news-mini-item a, .news-mini-item img {
    transition: all .3s;
}

.news-mini-item .img-container {
    overflow: hidden;
}

.news-mini-item:hover img {
    transform: scale(1.1);
}

@media (min-width: 992px) and (max-width: 1199px) {
    .news-mini-item {
        max-width: 310px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .news-mini-item {
        max-width: 360px !important;
    }
}

@media (max-width: 369px) {
    .news-mini-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 709px) {
    /* wtedy newsy wskakują jeden pod drugi */
    .news-mini-item {
        height: auto !important;
    }
}

.news-item-details {
    margin: 10px 0;
}

.news-item-details a.category-link span, .news-mini-item a.category-link span {
    transition: all .3s;
}

/* SIDEBAR */
.main-sidebar .main-sidebar-module:not(:last-of-type) {
    margin-bottom: 35px;
}

.main-sidebar .main-sidebar-module .main-sidebar-module-title {
    font-size: 21px;
    font-weight: 400;
}

/* SIDEBAR - LATEST NEWS */
.main-sidebar .widget-post p {
    transition: all .3s;
}

.main-sidebar .widget-post .news-cover {
    padding-right: 0;
    text-align: center;
}

.main-sidebar .widget-post img {
    max-width: 100%;
    max-height: 70px;
    border-radius: 6px;
}

/* SIDEBAR  - CATEGORIES */
.main-sidebar .categories ul > a li {
    font-size: 16px;
    padding: 7px 0;
}

.main-sidebar .categories ul > a:first-of-type li {
    padding-top: 0 !important;
}

.main-sidebar .categories li i.fas {
    padding-right: 8px;
    transition: all .3s;
}

.main-sidebar .categories ul a:hover i.fas {
    padding-right: 16px;
}

/* SIDEBAR  - PINNED PAGES */
.main-sidebar .pinned-pages ul li {
    font-size: 16px;
    padding: 10px 0;
    margin: 0;
}

.main-sidebar .pinned-pages ul li:first-of-type {
    padding-top: 0 !important;
}

.main-sidebar .pinned-pages ul li a {
    display: block;
}

.main-sidebar .pinned-pages li i.fas {
    padding-right: 8px;
    transition: all .3s;
}

.main-sidebar .pinned-pages ul a:hover i.fas {
    padding-right: 16px;
}

/* SIDEBAR - LATEST GALLERIES */
.main-sidebar .latest-galleries .latest-galleries-0, .main-sidebar .latest-galleries .latest-galleries-2 {
    padding-right: 7.5px;
}

.main-sidebar .latest-galleries .latest-galleries-1, .main-sidebar .latest-galleries .latest-galleries-3 {
    padding-left: 7.5px;
}

.main-sidebar .latest-galleries .latest-galleries-0, .main-sidebar .latest-galleries .latest-galleries-1 {
    margin-bottom: 15px;
}

.main-sidebar .latest-galleries .cell {
    flex: 0 0 50%;
    max-width: 50%;
    display: inline-block;
}

/* PRZYCISKI STARSZY/NOWSZY */
.prev-next {
    overflow: hidden;
}

.prev-next .previous {
    float: right;
}

.prev-next .previous i {
    margin-left: 8px;
}

.prev-next .next {
    float: left;
}

.prev-next .next i {
    margin-right: 8px;
}

/* PLANY LEKCJI */
.schedulles .schedulles-level-title {
    margin-bottom: 4px;
}

.schedulles .schedulles-level:not(:last-child) {
    margin-bottom: 15px;
}

.schedulles .row .btn {
    margin-bottom: 8px;
    margin-right: 3px;
    margin-left: 3px;
}

#schedulle-container .bx {
    opacity: 1 !important;
}

/* ZASTĘPSTWA */
.replacements-container table tr:first-of-type > td:first-of-type {
    padding-top: 0 !important;
}

/* MODAL LOGOWANIA */
.login-modal {
    z-index: 999999 !important;
}

.login-modal .modal-content {
    background-color: white;
}

.login-modal .modal-body .login-modal-text {
    line-height: 165%;
    padding: 13px 30px 13px 20px;
}

.login-modal .modal-body .btn-login {
    padding: 17px 25px;
    color: #fff;
    transition: all 0.5s;
    font-size: 1.2rem;
    display: inline-block;
}

.login-modal .modal-body .btn-login:hover {
    color: white;
    text-decoration: none !important;
}

.login-modal .modal-body .modal-logo-mobidziennik {
    margin-top: 28px;
    max-height: 22px;
    margin-bottom: 15px;
}

/* HEADERS */
.solid-headers h1:first-child, .solid-headers h2:first-child, .solid-headers h3:first-child, .solid-headers h4:first-child, .solid-headers h5:first-child, .solid-headers h6:first-child {
    margin-top: 0 !important;
}

.solid-headers h1, .solid-headers h2, .solid-headers h3, .solid-headers h4, .solid-headers h5, .solid-headers h6 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.solid-headers h1 {
    font-size: 40px !important;
}

.solid-headers h2 {
    font-size: 32px !important;
}

.solid-headers h3 {
    font-size: 28px !important;
}

.solid-headers h4 {
    font-size: 24px !important;
}

.solid-headers h5 {
    font-size: 20px !important;
}

.solid-headers h6 {
    font-size: 16px !important;
}

/**************************************  ELEMENTY **************************************/

.element {
    padding: 40px 0;
}

.col-with-elements .container {
    /* bugfix: w tym szablonie .container posiada atrybut width a nie max-width ustawiony na konkretne px */
    width: 100% !important;
}

.use-element-styles .element-style-0 {
    background: #FFF;
    fill: #FFF;
}

.first-elem-sm-p .element-content:first-child, .first-elem-sm-p .element-banner:first-child, .first-elem-sm-p .element-gallery:first-child, .first-elem-sm-p .element-slogan-image:first-child, .first-elem-sm-p .element-latest-news:first-child {
    padding-top: 0;
}

@media (max-width: 767px) {
    .element {
        padding: 30px 0;
    }
}

@media (min-width: 768px) {
    .elements-should-have-padding .element-slider, .elements-should-have-padding .element-latest-news {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* LATEST NEWS */
.element-latest-news h2 {
    margin-bottom: 20px;
}

.element-latest-news .divider {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.element-latest-news .btn {
    margin-top: 10px;
}

@media (max-width: 767px) {
    .element-latest-news .btn {
        margin-top: 0;
    }
}

.use-element-styles .element-style-0.element-latest-news article {
    background: #F5F7FA;
    fill: #F5F7FA;
}

.use-element-styles .element-style-1.element-latest-news article {
    background: #FFF;
    fill: #FFF;
}

.element-latest-news h2 small {
    display: block;
    margin-top: 5px;
    font-size: 75%;
    color: #2d2e2e;
}

/* SLIDER */
.element-slider p {
    margin: 0;
}

.element-slider {
    padding: 0 !important;
}

.element-slider .h1 {
    margin-bottom: 15px;
}

.slide-content * {
    font-size: 18px !important;
}

/* QUICK FACTS */
.element-quick-facts .text-primary {
    margin: 15px 0 10px;
}

.element-quick-facts .h6 {
    line-height: 1.7 !important;
}

@media (min-width: 768px) and (max-width: 991px) {
    .element-quick-facts .quick-fact-0, .element-quick-facts .quick-fact-1 {
        margin-bottom: 25px;
    }
}

@media (max-width: 1199px) {
    .element-quick-facts .text-primary {
        font-size: 24px;
    }

    .element-quick-facts .h6 {
        font-size: 17px;
    }
}

/* GALLERY */
.element-gallery {
    padding-bottom: 10px;
}

.element-gallery h2 {
    margin-bottom: 20px;
}

.element-gallery .gallery-description:not(:first-child), .element-gallery .gallery-images:not(:first-child) {
    margin-top: 20px;
}

/* SLOGAN IMAGE */
.element-slogan-image {
    background-color: #fff !important;
}

.element-slogan-image .slogan-image-background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* PANEL PREVIEW */
.panel-preview {
    display: block;
    position: fixed;
    top: 90px;
    left: 30px;
    width: auto;
    height: auto;
    padding: 10px;
    background-color: #3c8dbc;
    border: 1px solid #367ea8;
    border-radius: 5px;
    color: #fff;
    font-size: 20px;
    z-index: 999999999;
}

/* DEKLARACJA DOSTEPNOSCI */
.deklaracja-dostepnosci-container div {
    margin-bottom: 15px;
}

/* TRYB WYSOKIEGO KONTRASTU */
.accessibility-btn {
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.accessibility-btn * {
    transition: all .2s;
}

.accessibility-btn:hover * {
    opacity: 0.85;
}

/* LINK DO TREŚCI */
.skip-to-content-link {
    color: white;
    font-weight: 600;
    height: auto;
    font-size: 20px;
    left: 0;
    top: 0;
    padding: 10px;
    position: absolute;
    transform: translateY(-100%);
    transition: transform 0.2s;
    border: 3px solid black;
    border-left-style: none;
    border-top-style: none;
    border-bottom-right-radius: 6px;
    z-index: 100000;
}

.skip-to-content-link:focus, .skip-to-content-link:hover {
    transform: translateY(0%);
    color: white;
    text-decoration: underline;
}

.gallery-images a:focus figure,
.gallery-nested a:focus figure,
.latest-galleries a:focus figure {
    border: 3px solid crimson;
}

.btn-subnav-link {
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.toast {
    opacity: 1 !important;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

#contact-form input::placeholder {
    color: #353535;
}

.ca-decision-btn:focus,
.ca-toggle-category-info:focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: 3px;
}

.logo-e-doreczenia-header {
    max-height: 30px;
}

@media screen and (max-width: 991px) {
    .logo-e-doreczenia-header {
        background: rgb(0, 0, 0, .6);
        padding: 4px;
        border-radius: 4px;
        max-height: 40px;
    }
}