/* Institute List Modern Styles */
.institutes-container {
    padding-top: 20px;
    padding-bottom: 40px;
    background-color: #f9f9f9;
}

.institutes-header {
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #3c8dbc;
}

.institutes-title {
    font-size: var(--oe-h2-size);
    font-weight: 700;
    color: var(--oe-base-color);
    margin-bottom: 10px;
    margin-top: 0;
}

.institutes-header .lead {
    color: var(--oe-muted-color);
    margin-bottom: 15px;
    font-size: var(--oe-lead-size);
    font-weight: 500;
}

.institutes-header p {
    color: var(--oe-muted-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.institutes-header strong {
    color: #3c8dbc;
}

.institutes-controls {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.institute-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #3c8dbc;
    position: relative;
    overflow: hidden;
}

.institute-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.institute-card.inactive {
    border-left-color: #dd4b39;
    opacity: 0.8;
}

.institute-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.institute-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.institute-name-link {
    font-size: var(--oe-h4-size);
    font-weight: 700;
    color: #3c8dbc;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
    display: block;
    margin-bottom: 5px;
}

.institute-name-link:hover {
    color: #286090;
    text-decoration: underline;
}

.institute-id-badge {
    font-size: 11px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    color: #555;
    font-weight: 600;
}

.institute-eng-name {
    font-size: var(--oe-base-font-size);
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.institute-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 5px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.meta-item i {
    color: #3c8dbc;
    width: 16px;
    text-align: center;
}

.institute-parent {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f4f4f4;
    font-size: 13px;
}

.parent-link {
    color: #777;
    text-decoration: none;
    font-weight: 500;
}

.parent-link:hover {
    color: #3c8dbc;
}

.btn-add-inst {
    background-color: #00a65a;
    color: white !important;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-inst:hover {
    background-color: #008d4c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex-grow: 1;
    min-width: 250px;
}

.filter-field {
    width: 200px;
}

.limit-field {
    width: 100px;
}

.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .institutes-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .institute-meta {
        flex-direction: column;
        gap: 8px;
    }
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    .limit-field {
        width: 100%;
    }
}
.edit {
    float: right;
}

.inst-logo {
    margin: 25px;
    text-align: center;
}

hr.details {
    margin: 20px 0;
}

.tipso {
    cursor: pointer;
}
.tblhdrs{

    text-align: right;
}
.selectContainer{
    display: inline-block;
    margin: 0 10px;
    vertical-align: top;
}
.maxresults{
    width: 50px;
    height:30px;
    background-color: #fafafa;
}
.inst-image{
    max-height: 150px;
    max-width: 200px;
}

/* Single Institute View Modern Styles */
.institute-view-container {
    padding: 20px 0;
}

.institute-sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: none;
}

.institute-sidebar-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    font-weight: 700;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.institute-sidebar-body {
    padding: 20px;
}

.institute-profile-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.institute-profile-logo {
    margin-bottom: 20px;
}

.institute-profile-logo img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 8px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.institute-profile-logo i {
    color: #cbd5e0;
}

.institute-profile-name {
    font-size: var(--oe-h3-size);
    font-weight: 800;
    color: var(--oe-base-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.institute-profile-acronym {
    font-size: var(--oe-lead-size);
    font-weight: 600;
    color: #3c8dbc;
    display: block;
    margin-bottom: 5px;
}

.institute-profile-eng-name {
    font-size: 0.95rem;
    color: #718096;
    font-style: italic;
}

.institute-id-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.institute-id-text {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 600;
}

.institute-id-value {
    color: #4a5568;
}

.institute-actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.info-item {
    margin-bottom: 18px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.info-label i {
    color: #3c8dbc;
    width: 16px;
    text-align: center;
}

.info-value {
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-value a {
    color: #3c8dbc;
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.main-content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: none;
}

.institutes-section-header {
    padding: 20px 25px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: var(--oe-h4-size);
    font-weight: 700;
    color: var(--oe-base-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #3c8dbc;
}

.section-body {
    padding: 25px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid-item {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.grid-item:hover {
    border-color: #3c8dbc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.grid-item-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.grid-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.grid-item-info {
    flex-grow: 1;
    min-width: 0;
}

.grid-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-decoration: none;
}

.grid-item-name:hover {
    color: #3c8dbc;
}

.grid-item-sub {
    font-size: 0.85rem;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-item-badges {
    margin-top: 5px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    flex-wrap: wrap;
    gap: 15px;
}

.results-summary {
    font-size: 0.9rem;
    color: #718096;
}

.limit-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #718096;
}

.limit-selector select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    cursor: pointer;
}

.metadata-footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #edf2f7;
    text-align: right;
    font-size: 0.85rem;
    color: #a0aec0;
    font-style: italic;
}

@media (max-width: 992px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
