.text-primary {
    color: #1F2E56 !important;
}

.bg-primary, .menu-link:hover, .btn-dark:hover {
    background-color: #e7eced !important;
}

.bg-body {
    background-color: #fff !important;
}

.menu-link {
    text-decoration: none;
}

.text-light {
    color: #e2e7e8 !important;
}

.text-highlight, .menu-link:hover, .btn-dark:hover {
    color: #003b74 !important;
}

.border-highlight {
    border-color: #003b74 !important;
}

.bg-light {
    background-color: #e2e7e8 !important;
}

.bg-dark {
    background-color: #003b74 !important;
}

.bg-darker {
    background-color: #454545 !important;
}

.border-dark {
    border: solid #003b74 2px !important;
}

.border-light {
    border-color: #ddd !important;
}

a {
    text-decoration: none;
    color: #003b74;
}

a:hover {
    color: #1567b4;
}

.btn {
    border-radius: 0;
    border-width: 0;
}

.btn-white {
    background-color: white;
}

.btn-white:hover {
    background-color: lightgray;
}

.btn-light {
    border-color: #1e2e55;
    color: #1d416f;
}

.btn-dark {
    background-color: #003b74 !important;
    padding-top: 7px;
    padding-bottom: 8px;
}

small {
    font-size: 0.85em;
}

.hover {
    cursor: pointer;
}

.row {
    padding: 0 !important;
}

.w-33 {
    width: 33.3333%;
}

.img-hover:hover {
    opacity: 0.85;
}

h2.h4, .h5 {
    color: #1F2E56;
}

.segment .display-4 {
    font-size: 2.75em;
}

p a {
    color: #003b74 !important;
}

.highlight:hover, .segment li a:hover {
    background-color: #ecf1f2;
}

p.ms--5 {
    margin-left: -5px;
}

.rounded-0 {
    border-radius: 0;
}   

.dropdown:hover>.dropdown-menu {
    display: block;
}
  
/* .dropdown>.dropdown-toggle:active {
    pointer-events: none;
} */

.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-indicators {
    top: 410px;
}

.gallery-img {
    width: 22%;
    margin: 10px 1%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

.gallery-img-single {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    max-width: 100%;
    border-radius: 0;
    cursor: pointer;
}

figcaption {
    margin: 2px 5px;
    font-size: 0.8em;
    font-weight: bold;
    color: #555;
}

#mobile-menu {
    overflow-y: scroll;
}

/* Ustawienie trzeciego poziomu menu */
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    display: none;
    margin-top: -0.25rem;
}

/* Pokazanie submenu po najechaniu na element rodzica */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Ustawienie dropend dla pozycji względnej */
.dropdown-submenu {
    position: relative;
}

/* Styl dla trybu wysokiego kontrastu */
.high-contrast, .high-contrast .text-white, .high-contrast .bg-dark, .high-contrast .bg-primary {
    background-color: #000 !important;
    color: #FFD700 !important;
    background-image: none !important;
}

.high-contrast .display-4, .high-contrast h2, .high-contrast .h5, .high-contrast .text-dark, .high-contrast footer .text-primary, .high-contrast breadcrumbs svg {
    color: #FFD700 !important;
}

.high-contrast a, .high-contrast a.text-white {
    color: #00FFFF !important;
}

.high-contrast a:hover, .high-contrast a.text-white:hover {
    color: #FFA500 !important;
    background-color: #000 !important;
}

.high-contrast button, .high-contrast .btn {
    background-color: #FFD700 !important;
    color: #000 !important;
    border-color: #FFD700 !important;
}

.high-contrast a, .high-contrast nav .btn, .high-contrast .toggle, .high-contrast a.text-white {
    color: #00FFFF !important;
    background-color: #000 !important;
}

.high-contrast .bg-body, .high-contrast nav, .high-contrast .navbar, .high-contrast .dropdown-menu, .high-contrast .bg-white {
    background-color: #000 !important;
}

.high-contrast img {
    filter: grayscale(100%) contrast(150%);
}

.high-contrast .logo-img, .high-contrast nav img {
    filter: grayscale(100%) brightness(600%);
}

.high-contrast .border-bottom, .high-contrast .border-top, .high-contrast .border-start, .high-contrast .border-end, .high-contrast .border {
    border-color: #FFFFFF !important;
}

table p, table strong, table ol, table ul {
    margin: 0 0.5em;
}

table p strong {
    margin: 0;
}

table ol, table ul {
    margin-bottom: 0.5em;
}

table, table th, table td {
    border-width: 1px !important;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-indicators {
    top: 480px;
}

.carousel-control-prev, .carousel-control-next {
    width: 5% !important;
    height: 90%;
}

/* ======================== subserwis students ======================== */

#segment-130 h4, #segment-131 h4, #segment-134 h4, #segment-133 h4 {
    margin-top: -20px !important;
}

#segment-130 table, #segment-131 table, #segment-134 table, #segment-133 table {
    border: none;
}

#segment-130 table td, #segment-131 table td, #segment-134 table td, #segment-133 table td {
    padding: 5px;
    text-align: center;
    border: none;
}

#segment-130 table td strong, #segment-131 table td strong, #segment-134 table td strong, #segment-133 table td strong {
    font-weight: normal;
    font-size: 1.5em;
}

#segment-130 table ul, #segment-131 table ul, #segment-134 table ul, #segment-133 table ul {
    padding: 0;
}

#segment-130 table li, #segment-131 table li, #segment-134 table li, #segment-133 table li {
    list-style: none;
    background-color: white;
    width: 100%;
    margin: 20px 5px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#segment-130 table li a, #segment-131 table li a, #segment-134 table li a, #segment-133 table li a {
    display: block;
    padding: 20px;
    color: #1F2E56;
    font-weight: bold;
}

@media (max-width: 992px) {

#segment-130 table, #segment-130 tbody, #segment-130 tr, #segment-131 table, #segment-131 tbody, #segment-131 tr, #segment-133 table, #segment-133 tbody, #segment-133 tr, #segment-134 table, #segment-134 tbody, #segment-134 tr {
    display: block;
    width: 100%;
}

#segment-130 tr, #segment-131 tr, #segment-133 tr, #segment-134 tr {
    display: flex;
    flex-direction: column;
}

#segment-130 td, #segment-131 td, #segment-133 td, #segment-134 td {
    width: 100% !important;
    box-sizing: border-box;
    padding: 10px;
}

#segment-130 colgroup, #segment-130 col, #segment-131 colgroup, #segment-131 col, #segment-133 colgroup, #segment-133 col, #segment-134 colgroup, #segment-134 col {
    display: none;
}

#segment-130 table li a, #segment-131 table li a, #segment-134 table li a, #segment-133 table li a {
    padding: 10px;
}
}