/*
 * Responsibility: miasto-kierunek listing cards, result tables, pagination,
 * and listing-adjacent card shells reused by the legacy listing fork.
 * Does not cover: shared header/footer/breadcrumb shells or map vendor styles.
 */

.pagination {
    clear: both;
}

.kierunki-table-wrap[data-kierunki-collapse] tr.is-hidden {
    display: none !important;
}

#resultList .resultList__presentationStudy {
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
    cursor: pointer;
}

#resultList .resultList__presentationStudy:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #0070ab33;
}

.resultList__presentationStudy.basic-vesion {
    border: 1px solid #d9e0e8;
    box-shadow: none;
    background-color: #fff;
    transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out;
}

.resultList__presentationStudy.basic-vesion:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-color: #c9d6e5;
    background-color: #fcfdff;
}

.resultList__presentationStudy.basic-vesion *,
.resultList__presentationStudy.basic-vesion *:hover {
    transition: none !important;
}

#resultList .resultList__presentationStudy.basic-vesion {
    transform: none !important;
    border: 1px solid #d9e0e8 !important;
    box-shadow: none !important;
    border-color: #d9e0e8 !important;
    background-color: #fff !important;
    transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out !important;
}

#resultList .resultList__presentationStudy.basic-vesion:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border-color: #c9d6e5 !important;
    background-color: #fcfdff !important;
}

.resultList__presentationStudy.address {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.resultList__presentationStudy.address,
.resultList__presentationStudy.telephone,
.resultList__presentationStudy.emails,
.resultList__presentationStudy.address *,
.resultList__presentationStudy.telephone *,
.resultList__presentationStudy.emails * {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
}

.resultList__presentationStudy-reveal {
    position: relative;
    height: 44px;
    max-width: 100%;
}

.resultList__presentationStudy-revealBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid #0070ab;
    border-radius: 999px;
    background-color: #fff;
    color: #0070ab;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

.resultList__presentationStudy-revealBtn:hover,
.resultList__presentationStudy-revealBtn:focus {
    background-color: #f2f8fc;
}

.resultList__presentationStudy-revealValue {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.resultList__presentationStudy-revealValue p,
.resultList__presentationStudy-revealValue a {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resultList__presentationStudy-reveal[data-kind="phone"],
.resultList__presentationStudy-reveal[data-kind="email"] {
    height: 64px;
}

.resultList__presentationStudy-reveal[data-kind="phone"] .resultList__presentationStudy-revealValue,
.resultList__presentationStudy-reveal[data-kind="email"] .resultList__presentationStudy-revealValue {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.resultList__presentationStudy-reveal[data-kind="phone"] .resultList__presentationStudy-revealValue {
    padding-top: 0;
}

.resultList__presentationStudy-reveal[data-kind="phone"] .resultList__presentationStudy-revealValue p,
.resultList__presentationStudy-reveal[data-kind="email"] .resultList__presentationStudy-revealValue p,
.resultList__presentationStudy-reveal[data-kind="email"] .resultList__presentationStudy-revealValue a {
    display: block !important;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    margin: 0;
}

.resultList__presentationStudy-reveal[data-kind="email"] .resultList__presentationStudy-revealValue a {
    overflow-wrap: anywhere;
}

.resultList__presentationStudy-reveal.is-revealed .resultList__presentationStudy-revealBtn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.resultList__presentationStudy-reveal.is-revealed .resultList__presentationStudy-revealValue {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Legacy basic-list layout used by page 2 cards and similar university lists. */
.kafelek-kierunek {
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #0070ab;
    color: white;
    margin-bottom: 10px;
}

.kafelek-kierunek--disabled {
    cursor: default;
    pointer-events: none;
}

.prezentacja_podstawowa_lista {
    margin-top: 10px;
    display: block !important;
}

.prezentacja_podstawowa_lista .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.prezentacja_podstawowa_lista .row > [class^="col"],
.prezentacja_podstawowa_lista .row > [class*=" col"] {
    display: flex;
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

@media (max-width: 575.98px) {
    .prezentacja_podstawowa_lista .row > [class^="col"],
    .prezentacja_podstawowa_lista .row > [class*=" col"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.prezentacja_podstawowa_lista .kafelek-kierunek {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
}

.kafelek-nowy {
    height: auto;
    min-height: 0;
    background-color: rgba(0, 112, 171, 0.15);
    font-weight: 500;
    font-size: 0.875rem;
    color: #10486a;
    padding: 4px 8px;
}

/* Legacy presentation-card header block shared by listing and modal/table views. */
.presentation-table-modal .resultList__presentationStudy-title a bold,
.presentation-table-modal .resultList__presentationStudy-title bold,
#presentation .resultList__presentationStudy-title a bold,
#presentation .resultList__presentationStudy-title bold,
#resultList .resultList__presentationStudy-title a bold,
#resultList .resultList__presentationStudy-title bold {
    font-family: "BebasNeue";
}

.presentation-table-modal .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title,
.presentation-table-modal .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title a,
#presentation .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title,
#presentation .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title a,
#resultList .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title,
#resultList .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title a {
    line-height: 40px !important;
    font-size: 1.8rem !important;
    font-family: "BebasNeue" !important;
    color: #0070ab !important;
    background-color: inherit;
}

.presentation-table-modal .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title > span,
#presentation .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title > span,
#resultList .resultList__presentationStudy.basic-vesion .resultList__presentationStudy-title > span {
    display: inline-block;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    color: inherit;
    vertical-align: top;
}

@media (max-width: 37.5em) {
    .presentation-table-modal .resultList__presentationStudy-contact,
    #presentation .resultList__presentationStudy-contact,
    #resultList .resultList__presentationStudy-contact {
        margin-top: 15px;
    }
}

.presentation-table-modal .resultList__presentationStudy-title,
#presentation .resultList__presentationStudy-title,
#resultList .resultList__presentationStudy-title {
    padding: 16px;
}

.presentation-table-modal .resultList__presentationStudy-title,
.presentation-table-modal .resultList__presentationStudy-title a,
#presentation .resultList__presentationStudy-title,
#presentation .resultList__presentationStudy-title a,
#resultList .resultList__presentationStudy-title,
#resultList .resultList__presentationStudy-title a {
    font-size: 1em;
    margin-bottom: 0.2rem;
    clear: both;
}

@media (max-width: 37.5em) {
    .presentation-table-modal .resultList__presentationStudy-title,
    .presentation-table-modal .resultList__presentationStudy-title a,
    #presentation .resultList__presentationStudy-title,
    #presentation .resultList__presentationStudy-title a,
    #resultList .resultList__presentationStudy-title,
    #resultList .resultList__presentationStudy-title a {
        font-size: 1.3rem;
        line-height: 20px;
    }

    #resultList .resultList__presentationStudy-title {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

.presentation-table-modal .resultList__presentationStudy-title a,
#presentation .resultList__presentationStudy-title a,
#resultList .resultList__presentationStudy-title a {
    padding: 0;
}

.presentation-table-modal .resultList__presentationStudy-redLine,
#presentation .resultList__presentationStudy-redLine,
#resultList .resultList__presentationStudy-redLine {
    height: 12px;
    width: 100%;
    background-color: #b7364a;
}

.presentation-table-modal .presentation__body-information ul.list-presentation,
.presentation-table-modal .resultList__presentationStudy-table.legend p,
.presentation-table-modal .resultList__presentationStudy.address p,
.presentation-table-modal .resultList__presentationStudy.emails p,
.presentation-table-modal .resultList__presentationStudy.telephone p,
#presentation .presentation__body-information ul.list-presentation,
#presentation .resultList__presentationStudy-table.legend p,
#presentation .resultList__presentationStudy.address p,
#presentation .resultList__presentationStudy.emails p,
#presentation .resultList__presentationStudy.telephone p,
#resultList .presentation__body-information ul.list-presentation,
#resultList .resultList__presentationStudy-table.legend p,
#resultList .resultList__presentationStudy.address p,
#resultList .resultList__presentationStudy.emails p,
#resultList .resultList__presentationStudy.telephone p {
    margin: 0;
    padding: 0;
}

.presentation-table-modal .resultList__presentationStudy.address a,
.presentation-table-modal .resultList__presentationStudy.emails a,
.presentation-table-modal .resultList__presentationStudy.telephone a,
#presentation .resultList__presentationStudy.address a,
#presentation .resultList__presentationStudy.emails a,
#presentation .resultList__presentationStudy.telephone a,
#resultList .resultList__presentationStudy.address a,
#resultList .resultList__presentationStudy.emails a,
#resultList .resultList__presentationStudy.telephone a {
    color: #10486a;
    font-weight: 500;
}

.resultList__presentationStudy-reveal,
.resultList__presentationStudy.telephone.no-margin,
.resultList__presentationStudy.emails.no-margin {
    display: flow;
}

.resultList__presentationStudy-revealBtn,
.resultList__presentationStudy-revealValue {
    line-height: 1.2;
}

#resultList .resultList__presentationStudy .fix-map {
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    background-color: #f7f9fc;
    overflow: hidden;
    min-height: 200px;
}

#resultList .resultList__presentationStudy .fix-map iframe {
    display: block;
    width: 100%;
    min-height: 200px;
    background-color: #f7f9fc;
}

@media (max-width: 575.98px) {
    .resultList__presentationStudy-reveal {
        height: 40px;
    }
}

.presentation-table-modal .resultList__presentationStudy-body,
#presentation .resultList__presentationStudy-body,
#resultList .resultList__presentationStudy-body {
    margin-top: 0.5rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .presentation-table-modal .resultList__presentationStudy-body,
    #presentation .resultList__presentationStudy-body,
    #resultList .resultList__presentationStudy-body {
        padding-right: 0;
    }
}

#resultList .resultList__presentationStudy > .row {
    margin-left: 0;
    margin-right: 0;
    padding: 0 16px;
}

.prezentacja {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* Restores the legacy gallery sizing used by presentation cards with image sliders. */
#resultList .resultList__presentationStudy-body .swiper-resultList__presentation,
.swiper-resultList__presentation {
    border-radius: 5px;
    overflow: hidden;
    min-height: 300px;
    max-height: 300px;
    height: 300px;
}

#resultList .resultList__presentationStudy-body .swiper-resultList__presentation .swiper-wrapper,
#resultList .resultList__presentationStudy-body .swiper-resultList__presentation .swiper-slide,
.swiper-resultList__presentation .swiper-wrapper,
.swiper-resultList__presentation .swiper-slide {
    height: 100%;
}

#resultList .resultList__presentationStudy-body .swiper-resultList__presentation img,
.swiper-resultList__presentation img,
.swiper-slide img {
    width: 100%;
    max-width: 100% !important;
}

#resultList .resultList__presentationStudy-body .swiper-resultList__presentation picture,
#resultList .resultList__presentationStudy-body .swiper-resultList__presentation picture > img {
    display: block;
    width: 100%;
    height: 100%;
}

#resultList .resultList__presentationStudy-body .client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

#resultList .resultList__presentationStudy-body .client-logo img {
    max-width: 170px;
}

.image-city,
.image-index-interview {
    opacity: 0;
    width: 100%;
    height: 100%;
}

img.image-city,
img.image-index-interview {
    max-width: 100%;
    max-height: 100%;
    width: 200px;
    height: 120px;
}

img.image-index-interview {
    height: 320px;
}

#resultList .resultList__presentationStudy h2 {
    line-height: 60px !important;
}

#resultList .resultList__presentationStudy + .row {
    padding-left: 16px;
}

.resultList__presentationStudy-body > .row:last-child > [class*="col-"],
.resultList__presentationStudy-contact > .row:last-child > [class*="col-"] {
    display: flex;
    align-items: stretch;
}

.resultList__presentationStudy-body > .row:last-child .kafelek-inactive,
.resultList__presentationStudy-body > .row:last-child .kafelek-active,
.resultList__presentationStudy-contact > .row:last-child .kafelek-inactive,
.resultList__presentationStudy-contact > .row:last-child .kafelek-active {
    width: 100%;
    min-height: 36px;
    height: 100%;
}

.resultList__presentationStudy-body > .row:last-child .kafelek-inactive,
.resultList__presentationStudy-body > .row:last-child .resultList__ctaButton,
.resultList__presentationStudy-contact > .row:last-child .kafelek-inactive,
.resultList__presentationStudy-contact > .row:last-child .resultList__ctaButton {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0070ab;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    overflow: hidden;
}

.resultList__presentationStudy-body > .row:last-child .kafelek-inactive .link,
.resultList__presentationStudy-body > .row:last-child .resultList__ctaButtonLink,
.resultList__presentationStudy-contact > .row:last-child .kafelek-inactive .link,
.resultList__presentationStudy-contact > .row:last-child .resultList__ctaButtonLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 6px 12px;
    color: #0070ab;
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.resultList__presentationStudy-body > .row:last-child .kafelek-inactive:hover,
.resultList__presentationStudy-body > .row:last-child .resultList__ctaButton:hover,
.resultList__presentationStudy-contact > .row:last-child .kafelek-inactive:hover,
.resultList__presentationStudy-contact > .row:last-child .resultList__ctaButton:hover {
    background-color: #fff;
    border-color: #0070ab;
}

.resultList__presentationStudy .row .kafelek-inactive,
.resultList__presentationStudy .row .resultList__ctaButton {
    transition: background-color 0.18s ease-out, transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.resultList__presentationStudy .row .kafelek-inactive:hover,
.resultList__presentationStudy .row .resultList__ctaButton:hover {
    background-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.resultList__presentationStudy .row .kafelek-inactive .link,
.resultList__presentationStudy .row .resultList__ctaButtonLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 18px;
    transition: color 0.18s ease-out;
}

@media (max-width: 768px) {
    #resultList .resultList__presentationStudy-body .text-justify.test,
    .resultList__presentationStudy-body > .col-xl-10.col-lg-12.col-sm-12.float-right,
    .resultList__presentationStudy-body .opinion-btn-wrapper {
        margin-left: 16px;
        margin-right: 16px;
    }

    .resultList__presentationStudy-body > .row:last-child > [class*="col-"],
    .resultList__presentationStudy-contact > .row:last-child > [class*="col-"] {
        display: block;
    }

    #resultList .resultList__presentationStudy-body .row.pt-4.pt-sm-0.pb-4.pb-sm-0 p {
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .resultList__presentationStudy-body > .row:last-child,
    .resultList__presentationStudy-contact > .row:last-child {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .resultList__presentationStudy-body > .row:last-child > [class*="col-"],
    .resultList__presentationStudy-contact > .row:last-child > [class*="col-"] {
        flex: 1 1 0;
        width: 50%;
        max-width: 50%;
        min-width: 0;
        margin-top: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }

    .resultList__presentationStudy-body .opinion-btn-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .resultList__presentationStudy-body > .row:last-child .kafelek-inactive,
    .resultList__presentationStudy-body > .row:last-child .resultList__ctaButton,
    .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive,
    .resultList__presentationStudy-contact > .row:last-child .resultList__ctaButton {
        min-height: 36px;
        border-radius: 10px;
        padding: 0.1rem !important;
    }

    .resultList__presentationStudy-body > .row:last-child .kafelek-inactive .link,
    .resultList__presentationStudy-body > .row:last-child .resultList__ctaButtonLink,
    .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive .link,
    .resultList__presentationStudy-contact > .row:last-child .resultList__ctaButtonLink,
    .resultList__presentationStudy .row .kafelek-inactive .link,
    .resultList__presentationStudy .row .resultList__ctaButtonLink {
        min-height: 32px;
        padding: 5px 8px;
        font-size: 0.75rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #resultList-recommended .resultList__presentationStudy-body > .row:last-child .kafelek-inactive,
    #resultList-recommended .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive,
    #resultList-recommended-other .resultList__presentationStudy-body > .row:last-child .kafelek-inactive,
    #resultList-recommended-other .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive {
        min-height: 34px;
    }

    #resultList-recommended .resultList__presentationStudy-body > .row:last-child .kafelek-inactive .link,
    #resultList-recommended .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive .link,
    #resultList-recommended-other .resultList__presentationStudy-body > .row:last-child .kafelek-inactive .link,
    #resultList-recommended-other .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive .link {
        min-height: 30px;
        padding: 5px 8px;
        font-size: 0.73rem;
    }
}

@media (min-width: 992px) {
    .resultList__presentationStudy-body > .row:last-child > .col-lg-4,
    .resultList__presentationStudy-contact > .row:last-child > .col-lg-4 {
        flex: 0 0 33.33333333333333%;
        max-width: 33.33333333333333%;
    }
}

@media (min-width: 1200px) {
    .resultList__presentationStudy-body > .row:last-child > .col-xl-3,
    .resultList__presentationStudy-contact > .row:last-child > .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}


#resultList .resultList__presentationStudy-table tbody {
    display: table;
    width: 100%;
    border-bottom: 8px solid #0070ab;
}

#resultList .resultList__presentationStudy-table .type-studies th {
    vertical-align: middle;
    padding: 0;
}

#resultList .resultList__presentationStudy-table .table-legend-direction-row th:nth-child(2),
#resultList .resultList__presentationStudy-table .type-studies th:nth-child(n+1) {
    border-left: 2px solid #0070ab;
}

#resultList .resultList__presentationStudy-table .table-head-color {
    background-color: rgba(0, 112, 171, 0.1);
    color: #10486a;
    padding: 5px 0;
}

@media (max-width: 37.5em) {
    #resultList .resultList__presentationStudy-table .table-head-color {
        padding: 7px;
    }
}

#resultList .resultList__presentationStudy-table .table-subhead-color,
#resultList .resultList__presentationStudy-table.legend span {
    color: #10486a;
    font-weight: 400;
}

#resultList .resultList__presentationStudy-table .table-direction-title {
    background-color: rgba(0, 112, 171, 0.2);
    font-weight: 700;
    color: #10486a;
    padding: 5px;
}

#resultList .resultList__presentationStudy-table .table-direction-title a {
    color: #10486a;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-title,
#presentation .resultList__presentationStudy-table .table-direction-title,
#resultList .resultList__presentationStudy-table .table-direction-title {
    vertical-align: middle;
    padding-top: 8px;
    padding-bottom: 8px;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-title p,
#presentation .resultList__presentationStudy-table .table-direction-title p,
#resultList .resultList__presentationStudy-table .table-direction-title p {
    margin: 0;
    line-height: 1.25;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-title .btn,
#presentation .resultList__presentationStudy-table .table-direction-title .btn,
#resultList .resultList__presentationStudy-table .table-direction-title .btn {
    line-height: 1.2;
}

#resultList .resultList__presentationStudy-table .table-legend-direction-row th {
    width: 40px;
    text-align: center;
    vertical-align: middle;
    margin: 0;
    padding: 2px 0;
    font-weight: 500;
    color: rgba(16, 72, 106, 0.8);
}

#resultList .resultList__presentationStudy-table .table-legend-direction-row th:nth-child(1),
#resultList .resultList__presentationStudy-table .table-direction-row td:nth-child(1) {
    background-color: #fff;
}

#resultList .resultList__presentationStudy-table .table-legend-direction-row th:nth-child(3n+1),
#resultList .resultList__presentationStudy-table .table-direction-row td:nth-child(3n+1) {
    background-color: rgba(0, 112, 171, 0.05);
    border-left: 1px solid #fff;
}

#resultList .resultList__presentationStudy-table .table-legend-direction-row th:nth-child(3n+2),
#resultList .resultList__presentationStudy-table .table-direction-row td:nth-child(3n+2) {
    background-color: rgba(0, 112, 171, 0.25);
    border-left: 2px solid #0070ab;
}

#resultList .resultList__presentationStudy-table .table-legend-direction-row th:nth-child(3n+3),
#resultList .resultList__presentationStudy-table .table-direction-row td:nth-child(3n+3) {
    background-color: rgba(0, 112, 171, 0.15);
    border-left: 1px solid #fff;
}

#resultList .resultList__presentationStudy-table .table-direction-row td {
    text-align: center;
    vertical-align: middle;
    width: 40px;
    margin: 0;
    padding: 0;
    border: 0;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td,
#presentation .resultList__presentationStudy-table .table-direction-row td,
#resultList .resultList__presentationStudy-table .table-direction-row td {
    height: 52px;
}

/* Legacy direction cells render the green check icon above the link text. */
.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td p,
#presentation .resultList__presentationStudy-table .table-direction-row td p,
#resultList .resultList__presentationStudy-table .table-direction-row td p {
    margin: 0;
    line-height: 1.15;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td .table-checkmark,
#presentation .resultList__presentationStudy-table .table-direction-row td .table-checkmark,
#resultList .resultList__presentationStudy-table .table-direction-row td .table-checkmark {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1;
    margin: 0 auto 3px;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td .table-checkmark.text-borgundy,
#presentation .resultList__presentationStudy-table .table-direction-row td .table-checkmark.text-borgundy,
#resultList .resultList__presentationStudy-table .table-direction-row td .table-checkmark.text-borgundy {
    color: #008000;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td .table-checkmark.text-transparent,
#presentation .resultList__presentationStudy-table .table-direction-row td .table-checkmark.text-transparent,
#resultList .resultList__presentationStudy-table .table-direction-row td .table-checkmark.text-transparent {
    color: transparent !important;
}

.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td a.text-borgundy,
.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td a.text-borgundy:hover,
.presentation-table-modal .resultList__presentationStudy-table .table-direction-row td a.text-borgundy:focus,
#presentation .resultList__presentationStudy-table .table-direction-row td a.text-borgundy,
#presentation .resultList__presentationStudy-table .table-direction-row td a.text-borgundy:hover,
#presentation .resultList__presentationStudy-table .table-direction-row td a.text-borgundy:focus,
#resultList .resultList__presentationStudy-table .table-direction-row td a.text-borgundy,
#resultList .resultList__presentationStudy-table .table-direction-row td a.text-borgundy:hover,
#resultList .resultList__presentationStudy-table .table-direction-row td a.text-borgundy:focus {
    color: #008000 !important;
    text-decoration: none;
}

.resultList__presentationStudy .row .kafelek-inactive .link,
.resultList__presentationStudy .row .kafelek-inactive .link:hover,
.resultList__presentationStudy .row .kafelek-inactive .link:focus,
.resultList__presentationStudy .row .resultList__ctaButtonLink,
.resultList__presentationStudy .row .resultList__ctaButtonLink:hover,
.resultList__presentationStudy .row .resultList__ctaButtonLink:focus {
    text-decoration: none;
}

/* Recommended-university blocks still arrive through legacy includes, but the
   CTA buttons now also reuse the shared .resultList__ctaButton* contract. Keep
   the compact size here so routes do not drift on the same DOM pattern. */
#resultList-recommended .resultList__presentationStudy-body > .row:last-child .kafelek-inactive,
#resultList-recommended .resultList__presentationStudy-body > .row:last-child .resultList__ctaButton,
#resultList-recommended .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive,
#resultList-recommended .resultList__presentationStudy-contact > .row:last-child .resultList__ctaButton,
#resultList-recommended-other .resultList__presentationStudy-body > .row:last-child .kafelek-inactive,
#resultList-recommended-other .resultList__presentationStudy-body > .row:last-child .resultList__ctaButton,
#resultList-recommended-other .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive,
#resultList-recommended-other .resultList__presentationStudy-contact > .row:last-child .resultList__ctaButton {
    min-height: 32px;
}

#resultList-recommended .resultList__presentationStudy-body > .row:last-child .kafelek-inactive .link,
#resultList-recommended .resultList__presentationStudy-body > .row:last-child .resultList__ctaButtonLink,
#resultList-recommended .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive .link,
#resultList-recommended .resultList__presentationStudy-contact > .row:last-child .resultList__ctaButtonLink,
#resultList-recommended-other .resultList__presentationStudy-body > .row:last-child .kafelek-inactive .link,
#resultList-recommended-other .resultList__presentationStudy-body > .row:last-child .resultList__ctaButtonLink,
#resultList-recommended-other .resultList__presentationStudy-contact > .row:last-child .kafelek-inactive .link,
#resultList-recommended-other .resultList__presentationStudy-contact > .row:last-child .resultList__ctaButtonLink {
    min-height: 32px;
    padding: 4px 12px;
    font-size: 0.82rem;
    line-height: 1.15;
}

#resultList .resultList__presentationStudy-table .table-direction-row td:nth-child(2) {
    border-left: 2px solid #0070ab;
}

#resultList .resultList__presentationStudy-table .table-price-direction-row {
    font-size: 14px;
}

#resultList .resultList__presentationStudy-table .table-price-direction-row th {
    padding: 5px;
    font-weight: 400;
    color: #10486a;
    text-align: right;
}

#resultList .resultList__presentationStudy-table .table-price-direction-row th:nth-child(n+2) {
    border-left: 2px solid #0070ab;
    text-align: center;
}

.resultList__presentationStudy-table tbody tr.table-direction-row + tr.table-direction-row > th,
.resultList__presentationStudy-table tbody tr.table-direction-row + tr.table-direction-row > td {
    border-top: 18px solid #fff !important;
}

.resultList__presentationStudy-table .table-separator-spacer {
    height: 18px !important;
    line-height: 18px !important;
    font-size: 12px;
    color: #10486a;
}

#resultList .resultList__presentationStudy-table.legend {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

#resultList .resultList__presentationStudy-table.legend bold {
    font-weight: 500;
    color: #10486a;
}

#resultList .resultList__presentationStudy-table.ranking .ranking-item,
#resultList .resultList__presentationStudy-table.ranking .ranking-item a {
    background-color: #56aad8;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.75rem;
    font-family: "BebasNeue_Book";
}

#resultList .resultList__presentationStudy-table.ranking .ranking-item a bold,
#resultList .resultList__presentationStudy-table.ranking .ranking-item bold {
    font-family: "BebasNeue";
    padding-right: 10px;
}

#resultList .resultList__presentationStudy-table.ranking .ranking-item a:nth-child(n+2),
#resultList .resultList__presentationStudy-table.ranking .ranking-item:nth-child(n+2) {
    font-family: "BebasNeue_Book";
}

@media (max-width: 37.5em) {
    #resultList .resultList__presentationStudy-table.ranking .ranking-item a:nth-child(n+2),
    #resultList .resultList__presentationStudy-table.ranking .ranking-item:nth-child(n+2) {
        margin-left: 15px;
    }
}

#resultList .resultList__presentationStudy-table.link {
    width: 100%;
    text-align: right;
    margin-top: 1rem;
}

#resultList .resultList__presentationStudy-table.link a {
    font-family: "BebasNeue";
    color: #b63549;
    font-size: 1.7rem;
}

@media (max-width: 37.5em) {
    #resultList .resultList__presentationStudy-table.link a {
        font-size: 1.5rem;
    }
}

.prezentacja_top {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.prezentacja_top:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.prezentacja_top > .zajawka_tytul_belka_nazwa_2,
.prezentacja_top > .zajawka_tytul_belka_nazwa_2_pods {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.prezentacja_top > .zajawka_tytul_belka_nazwa_2::after,
.prezentacja_top > .zajawka_tytul_belka_nazwa_2_pods::after {
    content: "";
    display: table;
    clear: both;
}

.zajawka_tytul_belka_nazwa_2,
.zajawka_tytul_belka_nazwa_2_pods {
    background: linear-gradient(135deg, #0d537e 0%, #0970a1 100%);
    padding: 8px 14px;
    margin: 0;
    border-radius: 10px 10px 0 0;
    font-family: "BebasNeue_Book";
    background-color: #0070ab;
    color: #fff;
    font-size: 2rem;
    clear: both;
}

.zajawka_tytul_belka_nazwa_2 p,
.zajawka_tytul_belka_nazwa_2_pods p {
    margin: 0;
}

.prezentacja_top_belka_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prezentacja_top_belka_nazwa {
    flex: 1 1 200px;
    min-width: 0;
}

.prezentacja_top_belka_nazwa a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prezentacja_top_belka_more {
    flex-shrink: 0;
}

.prezentacja_top_belka_more img {
    display: block;
    vertical-align: middle;
}

.zajawka_tytul_belka_nazwa_2 a,
.zajawka_tytul_belka_nazwa_2_pods a {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
}

.zajawka_tytul_belka_nazwa_2 a:hover,
.zajawka_tytul_belka_nazwa_2_pods a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.prezentacja_top_left {
    flex: 0 0 28%;
    width: 28%;
    max-width: 28%;
    padding: 10px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #f5f6f8;
    min-height: 0;
}

.prezentacja_top_left img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.prezentacja_top_left_link {
    display: block;
    width: 100%;
    align-self: stretch;
    min-height: 130px;
    text-decoration: none;
    color: inherit;
}

.prezentacja_top_left_img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    max-height: 180px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.prezentacja_top_left_img .image-city {
    width: 100%;
    height: 100%;
    min-height: 130px;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
}

.prezentacja_top_left_img .logo-index-page.prezentacja_top_left_logo,
.prezentacja_top_left_img .logo-index-page.prezentacja_top_left_logo img {
    width: 56px;
    height: 56px;
}

.prezentacja_top_left_img .logo-index-page.prezentacja_top_left_logo {
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.logo-index-page {
    position: absolute;
    width: 125px;
    height: 125px;
    border-radius: 100% 100% 100% 0;
    bottom: 0;
    left: 0;
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    overflow: hidden;
}

.logo-index-page img {
    width: 125px;
    height: 125px;
}

.prezentacja_top_right {
    flex: 1 1 72%;
    min-width: 0;
    width: 72%;
    max-width: 72%;
    padding: 10px 14px 12px 16px;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}

.prezentacja_top > table {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.prezentacja_top_right1,
.prezentacja_top_right2,
.prezentacja_top_right3 {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.prezentacja_top_right3:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prezentacja_icon {
    float: left;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: #f0f4f8;
    border-radius: 50%;
    flex-shrink: 0;
}

.prezentacja_icon img {
    max-width: 18px;
}

.prezentacja_top_info {
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

.prezentacja_top_info p {
    margin: 2px 0;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prezentacja_top_info a {
    color: #0d537e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.prezentacja_top_info a:hover {
    color: #0970a1;
    text-decoration: underline;
}

.prezentacja_top_right_np {
    width: 100%;
    padding: 15px 25px;
    box-sizing: border-box;
    border-bottom: 1px solid #e9ecef;
}

.prezentacja_top_right_np:last-child {
    border-bottom: none;
}

.prezentacja_top_right1_np,
.prezentacja_top_right2_np {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.prezentacja_icon_np {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 50%;
    flex-shrink: 0;
}

.prezentacja_icon_np img {
    max-width: 20px;
    max-height: 20px;
}

.prezentacja_top_info_np {
    flex: 1;
}

.prezentacja_top_info_np p {
    margin: 3px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 991px) {
    .prezentacja_top {
        margin-bottom: 20px;
    }

    .prezentacja_top_left {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 10px 12px;
    }

    .prezentacja_top_right {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 10px 14px 12px;
    }

    .zajawka_tytul_belka_nazwa_2,
    .zajawka_tytul_belka_nazwa_2_pods {
        padding: 10px 15px;
    }

    .zajawka_tytul_belka_nazwa_2 a,
    .zajawka_tytul_belka_nazwa_2_pods a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .prezentacja_top_left,
    .prezentacja_top_right {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
    }

    .prezentacja_top_left_link,
    .prezentacja_top_left_img {
        min-height: 120px;
        max-height: 160px;
    }

    .prezentacja_icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .prezentacja_top_info p {
        font-size: 13px;
    }
}

.desktop-city-content .subtitle.resultList_title {
    margin-bottom: 0;
}

.desktop-city-content #resultList.pt-3 {
    padding-top: 0;
}

.desktop-city-content #resultList .container-level-three.mt-3,
.desktop-city-content #resultList article.row.mt-3 {
    margin-top: 0;
}

.desktop-city-content #resultList .col-sm-12.p-4.f-size-one-5,
.desktop-city-content #resultList article .p-2.text-justify {
    padding-top: 0;
}

@media (min-width: 992px) {
    .desktop-city-content .row.pb-5 > .col-sm-12 {
        display: flex;
        justify-content: center;
    }

    .desktop-city-content .row.pb-5 > .col-sm-12 > .row.city-toc-row {
        max-width: 1100px;
        width: 100%;
    }
}

.desktop-city-content .container.container-level-three .border-kreska-bottom {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
