/* TIU adaptations on top of the Universo theme — kept minimal so the theme stays exact */

/* Language switcher: dropdown in the utility bar */
/* The theme clips the 40px bar (overflow: hidden) which cuts the dropdown off — open it up */
.navigation-wrapper .secondary-navigation-wrapper { overflow: visible; }
.secondary-navigation li.lang-dropdown {
    position: relative;
    margin-left: 14px;
}
.secondary-navigation li.lang-dropdown .lang-toggle .fa-angle-down { margin-left: 3px; opacity: 0.7; }
/* self-contained dropdown menu (the theme forces inline-block/float on bar uls, so out-specify it) */
.navigation-wrapper .secondary-navigation-wrapper ul.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    float: none;
    background: #fff;
    min-width: 150px;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    border-top: 2px solid #ea6645;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 4px 14px rgba(1, 28, 56, 0.25);
    z-index: 1200;
}
.navigation-wrapper .secondary-navigation-wrapper li.lang-dropdown.open ul.lang-menu,
.navigation-wrapper .secondary-navigation-wrapper li.lang-dropdown:hover ul.lang-menu { display: block; }
.secondary-navigation .lang-menu li {
    display: block;
    float: none;
    margin: 0;
    padding: 0;
    line-height: normal;
}
.lang-option {
    background: none;
    border: none;
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 16px;
    font-size: 13px;
    color: #252525;
    transition: 0.15s;
}
.lang-option:hover { background: #f0f0f0; color: #012951; }
.lang-option.lang-option-active { color: #ea6645; font-weight: 700; }
.lang-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
    transition: 0.2s;
}
.lang-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lang-btn.lang-active { background: #ea6645; color: #fff; font-weight: 700; }
.lang-btn.lang-active:hover { background: #d4522f; }

/* Django form error highlight, theme accent color */
.has-error input, .has-error textarea, .has-error select { border-color: #ea6645 !important; }
.form-errors { color: #ea6645; margin-bottom: 10px; }

/* Empty-state text */
.empty-note { opacity: .6; }

/* Keep the absolutely-positioned Read More clear of the text in the homepage About column */
#page-content #about .section-content { padding-bottom: 45px; }

/* Bigger TIU logo in the navbar (theme default is 50px) */
.navigation-wrapper .primary-navigation-wrapper header .navbar-brand img { max-height: 70px; }

/* Space between the tag chips and the previous/next pager */
#post-pager { margin-top: 30px; }

/* Uploaded gallery images fill the theme's fixed 100x100 tiles */
.gallery-list li img { width: 100%; height: 100%; object-fit: cover; }

/* Professor thumbnails: keep the theme's 80x80 photo size for any upload */
.professor-thumbnail .professor-image img { width: 80px; height: 80px; object-fit: cover; }

/* Homepage gallery: 115px tiles, 6 per row x 2 rows — column height matches the two leadership cards */
#gallery .gallery-list li { width: 115px; height: 115px; }


/* Side-by-side language buttons in the footer bottom */
#page-footer #footer-bottom .footer-lang {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
}
#page-footer #footer-bottom .footer-lang .lang-btn { margin-left: 4px; }
