.title-description {
    text-align: justify;
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-rounded {
    border-radius: 1rem;
}

.custom-btn {
    background-color: #111d5e;
    color: #fff;
    transition: background-color 0.5s ease-out;
}

.custom-btn:hover {
    background-color: #e32845;
    color: #fff;
    /* transition: background-color all ease 0.5s; */
}

.full_width {
    width: 100% !important;
}

.card_title {
    height: 50px;
    overflow: hidden;
}

.card_content {
    height: 80px !important;
}

.ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

img {
    max-width: 100% !important;
}

.owl-thumbs {
    text-align: right;
    position: relative;
    margin-top: -60px;
    z-index: 1;
}

.owl-thumbs .owl-thumb-item {
    width: 80px;
    height: 60px;
}

@media (max-width: 767px) {
    .owl-thumbs {
        display: none !important;
    }
}

.ads_section {
    position: relative;
    /* border: 1px solid #eee; */
    cursor: pointer;
    max-width: 100%;
    margin: 5px 0px 2px 0px;
    z-index: 1;
}

.ads_close {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #ffffff;
    background: red;
    cursor: pointer;
    padding: 0px 5px;
    z-index: 1;
}

.footer_overlay {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 999;
}

.popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.desktop-nav .navbar .navbar-nav .nav-item a {
    margin-left: 5px;
    margin-right: 5px;
}

.mobile-responsive-nav .mobile-responsive-menu .logo {
    margin-right: 10px;
}

.institute_name {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #1e3a8a;
    /* Deep academic blue */
    position: relative;
    padding-bottom: 6px;
    transition: all 0.3s ease;
}

.institute_name:hover::after {
    width: 100%;
}

.mobile-responsive-nav .mobile-responsive-menu.mean-container .mean-nav ul {
    position: absolute !important;
}

/* Mobile friendly */
@media (max-width: 768px) {
    .institute_name {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

/* EPIC 47y (generalises EPIC 47i, which fixed only the admission pages).
   The template's .default-btn hover slides in a navy layer with 30px round
   ends over a square red button, so red corners showed through on hover --
   on every public page: contact form, home slider, 404, the empty search
   pages. The layer now takes the button's own corners (square here, a pill
   if a button is ever made one) and is clipped to it.
   Buttons that also carry Bootstrap's .btn lost their red fill on hover
   (.btn:hover sets an undefined --bs-btn-hover-bg, i.e. transparent), so the
   button shrank to a navy pill on the page background. The fill is kept. */
.default-btn {
    display: inline-block;
    overflow: hidden;
}

.default-btn::before {
    border-radius: inherit;
}

.default-btn:hover,
.default-btn:focus,
.default-btn:active {
    background-color: #e32845;
    border-color: #111d5e;
    color: #ffffff;
}

/* The date-of-birth picker (bootstrap-datepicker, shared with the admin
   panel) sits above the template's sticky header and uses its red. */
body > .datepicker.dropdown-menu {
    z-index: 1060 !important;
    padding: 6px;
}

body > .datepicker table tr td.active,
body > .datepicker table tr td span.active {
    background: #e32845 !important;
    color: #ffffff !important;
}
