main > .container, main > .container-fluid
{
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}

/* Project fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Keep homepage hero stable on mobile */
@media (max-width: 991px) {
    header + .slider-area {
        margin-top: 273.484px !important;
    }

    .slider-area {
        min-height: 320px;
    }

    .slider-area .single-slide {
        position: relative;
        min-height: 320px;
        overflow: hidden;
    }

    .slider-area .hero-fallback-bg,
    .slider-area .video-bg {
        position: absolute !important;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .slider-area .video-bg {
        display: block;
    }
}

@media (min-width: 992px) {
    .slider-area .hero-fallback-bg {
        display: none;
    }

    .slider-area .video-bg {
        min-height: 520px;
        width: 100%;
        object-fit: cover;
    }
}

/* Gallery: 1-2 rows feeling with adaptive cards */
.popup-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.popup-gallery .glry-img {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    width: auto;
    height: 340px !important;
    min-height: 340px !important;
    margin-bottom: 0 !important;
}

.popup-gallery .glry-img img,
.popup-gallery .glry-img picture,
.popup-gallery .glry-img picture img {
    width: 100%;
    height: 100% !important;
    min-height: 340px !important;
    object-fit: cover;
    display: block;
}

@media (min-width: 1600px) {
    .popup-gallery .glry-img {
        flex-basis: 25%;
        max-width: 25%;
        height: 380px !important;
        min-height: 380px !important;
    }

    .popup-gallery .glry-img img,
    .popup-gallery .glry-img picture,
    .popup-gallery .glry-img picture img {
        min-height: 380px !important;
    }
}

@media (max-width: 991px) {
    .popup-gallery .glry-img {
        flex: 0 0 50%;
        max-width: 50%;
        height: 300px !important;
        min-height: 300px !important;
    }

    .popup-gallery .glry-img img,
    .popup-gallery .glry-img picture,
    .popup-gallery .glry-img picture img {
        min-height: 300px !important;
    }
}

@media (max-width: 576px) {
    .popup-gallery .glry-img {
        flex: 0 0 100%;
        max-width: 100%;
        height: 260px !important;
        min-height: 260px !important;
    }

    .popup-gallery .glry-img img,
    .popup-gallery .glry-img picture,
    .popup-gallery .glry-img picture img {
        min-height: 260px !important;
    }
}

/* Footer is too tall: compact spacing */
.prefooter {
    padding: 28px 0 !important;
}

footer {
    padding: 28px 0 !important;
}

footer .footer-text .address li {
    margin-bottom: 10px;
}

#map {
    height: 220px;
}

/* Footer design (match reference) */
.prefooter,
footer {
    background-color: #1e2742 !important;
    background-image: none !important;
}

.prefooter {
    padding: 56px 0 18px !important;
}

footer {
    padding: 44px 0 42px !important;
}

.prefooter .footer-text.second > a {
    color: #fff !important;
}

.prefooter .footer-text.second h3 {
    color: #fff;
    margin-bottom: 12px;
}

.prefooter .quick-links > li + li {
    margin-top: 8px;
}

.prefooter .quick-links > li > a {
    color: #dbe5ff;
    font-size: 13px;
    line-height: 1.45;
}

.prefooter .quick-links > li > a:hover {
    color: #5cc29d;
}

.prefooter .quick-links.quick-links-two-col {
    column-count: 2;
    column-gap: 26px;
}

.prefooter .quick-links.quick-links-two-col > li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

footer .footer-text.one p {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .prefooter {
        padding: 36px 0 8px !important;
    }

    footer {
        padding: 28px 0 26px !important;
    }

    .prefooter .quick-links.quick-links-two-col {
        column-count: 1;
    }
}

/* Mobile header polish */
@media (max-width: 991px) {
    .mobile-brand-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-right: 58px; /* keep clear area for burger button */
    }

    .mobile-university-name {
        display: inline-block;
        font-size: 15px;
        line-height: 1.2;
        font-weight: 700;
        color: #1f2e4a;
        white-space: normal;
    }

    .mean-container a.meanmenu-reveal {
        width: 36px;
        height: 30px;
        padding: 4px 6px;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        border: 1px solid #313131;
        background: #fff;
    }

    .mean-container a.meanmenu-reveal span {
        display: block !important;
        width: 22px;
        height: 2px;
        margin: 0 auto !important;
        background: #222 !important;
    }

    .mean-container a.meanmenu-reveal.meanclose {
        font-size: 24px !important;
        line-height: 1 !important;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .mean-container a.meanmenu-reveal.meanclose span {
        display: none !important;
    }
}

/* Directions cards: keep poster ratio but remove huge center gap */
.directions-modern-wrapper [class*="col-"] {
    display: flex;
}

.directions-modern-wrapper .direction-card {
    width: 100%;
}

.directions-modern-wrapper .direction-card__cover {
    height: auto !important;
    min-height: 260px;
    aspect-ratio: 3 / 4;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #f2f5f7;
}

@media (max-width: 991px) {
    .directions-modern-wrapper .direction-card__cover {
        min-height: 240px;
    }
}

@media (max-width: 575px) {
    .directions-modern-wrapper .direction-card__cover {
        min-height: 220px;
    }
}
