/* This page's own top padding, scoped by ID so it doesn't touch the shared
   sitewide .default-padding rule (80px) used across many other pages. */
#itto-faculty.default-padding {
    padding-top: 50px;
}

/* Detail page's own top padding, scoped by ID so it doesn't touch the shared
   sitewide .default-padding rule (80px) used across many other pages. */
#detailContent.default-padding {
    padding-top: 30px;
}

/* Faculty detail page (Faculties_Data_details.html) breadcrumb hero */
.breadcrumb-area .breadcrumb {
    padding: 0.6rem 0.8rem;
}

#detailTitle {
    font-size: 3.5rem;
    margin-bottom: 4px;
}

#detailBreadcrumbDesignation {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0;
    margin-bottom: 15px;
}

/* Search bar above #keyTechWrapper (College combo + employee name typeahead).
   Self-contained styling, same rationale as the grid rules below. */
.key-tech-search-bar {
    margin-bottom: 25px;
}

.key-tech-search-bar form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.key-tech-search-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    min-width: 180px;
}

.key-tech-search-field label {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1b4b8f;
}

.key-tech-search-field select,
.key-tech-search-field input[type="text"] {
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    font-size: 1.4rem;
    color: #444;
    height: 56px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.key-tech-search-field select:focus,
.key-tech-search-field input[type="text"]:focus {
    border-color: #7ab0ff;
    box-shadow: 0 0 0 3px rgba(122, 176, 255, 0.25);
}

.key-tech-search-autocomplete {
    position: relative;
}

.key-tech-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin: 2px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0.35rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.key-tech-suggestions li {
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.key-tech-suggestions li:hover,
.key-tech-suggestions li.active {
    background: #fff3d6;
}

.key-tech-search-actions {
    display: flex;
    gap: 10px;
}

.key-tech-search-actions button {
    height: 56px;
    padding: 0 2rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.key-tech-search-actions #empDirSearchBtn {
    background: #ffb606;
    border-color: #ffb606;
    color: #000;
}

.key-tech-search-actions #empDirSearchBtn:hover {
    background: #f0a900;
    border-color: #f0a900;
}

.key-tech-search-actions #empDirResetBtn {
    background: #fff;
    border-color: #d0d5dd;
    color: #444;
    text-transform: none;
    font-weight: 600;
}

.key-tech-search-error {
    margin-top: 10px;
    color: #b00020;
    font-size: 0.9rem;
}

/* Robust 1/2/4-column grid for #keyTechWrapper, independent of whichever
   Bootstrap version the surrounding theme ships (the shared jssaher theme
   predates the row-cols-* utility used on the wrapper's own classes). */
#keyTechWrapper {
    display: flex;
    flex-wrap: wrap;
}

#keyTechWrapper > .key-tech-item {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    #keyTechWrapper > .key-tech-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    #keyTechWrapper > .key-tech-item {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Pagination, appended as the last child inside #keyTechWrapper */
#keyTechWrapper .key-tech-pagination {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: transparent;
    padding: 15px 20px;
    margin: 10px 15px 0;
}

#keyTechWrapper .key-tech-pagination-info {
    color: #555;
    font-size: 0.95rem;
}

#keyTechWrapper .key-tech-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

#keyTechWrapper .key-tech-page-link {
    display: inline-block;
    min-width: 2.2rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 0.35rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

#keyTechWrapper .key-tech-page-link:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    text-decoration: none;
}

#keyTechWrapper .key-tech-page-link.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

#keyTechWrapper .key-tech-page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

#keyTechWrapper .key-tech-page-ellipsis {
    padding: 0.35rem 0.4rem;
    color: #777;
}

#keyTechWrapper .key-tech-loading {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 40px 15px;
    text-align: center;
    color: #555;
}

#keyTechWrapper .employee-card {
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#keyTechWrapper .employee-image {
    display: inline-block;
    border: 0.2rem solid #ffb606;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1rem rgba(255, 182, 6, 0.45);
    overflow: hidden;
    background: #fff;
    width: 190px;
    height: 245px;
}

#keyTechWrapper .employee-image a {
    display: block;
    width: 100%;
    height: 100%;
}

#keyTechWrapper .employee-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#keyTechWrapper .employee-info {
    margin-top: 1rem;
}

#keyTechWrapper .employee-name {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#keyTechWrapper .employee-name a {
    color: #000;
    text-decoration: none;
}

#keyTechWrapper .employee-designation {
    margin: 0.4rem 0 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

#keyTechWrapper .employee-designation a {
    color: inherit;
    text-decoration: none;
}

#keyTechWrapper .employee-name a:hover,
#keyTechWrapper .employee-designation a:hover {
    text-decoration: none;
}

/* Faculty detail page (Faculties_Data_details.html) */
.emp-detail-photo {
    display: inline-block;
    border: 0.25rem solid #ffb606;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1.2rem rgba(255, 182, 6, 0.45);
    overflow: hidden;
    background: #fff;
    width: 230px;
    height: 296px;
    max-width: 100%;
}

.emp-detail-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.emp-detail-meta {
    margin: 20px 0 10px;
}

.emp-detail-meta span {
    display: inline-block;
    margin: 0 15px;
    font-weight: 600;
}

.emp-detail-meta i {
    color: #ffb606;
    margin-right: 6px;
}

#detailContent .img-new-style h3 {
    color: #002147;
    font-weight: 700;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

#detailContent .img-new-style h3.emp-detail-first-heading {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

#detailAbout,
#detailFeatures,
#detailApplications,
.emp-detail-empty,
.emp-detail-tbl td,
.emp-detail-list-title,
.emp-detail-list-meta {
    font-size: 1.4rem;
}

.emp-detail-empty {
    color: #777;
    padding: 8px 0 16px;
}

.emp-detail-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 0.5rem;
}

.emp-detail-tbl {
    width: 100%;
    border-collapse: collapse;
}

.emp-detail-tbl th {
    background: #f0f4fa;
    color: #1b4b8f;
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    white-space: nowrap;
}

.emp-detail-tbl td {
    padding: 10px 14px;
    border-top: 1px solid #eee;
    vertical-align: top;
}

.emp-detail-tbl tr:nth-child(even) {
    background: #fafafa;
}

.emp-detail-section {
    margin-bottom: 10px;
}

.emp-detail-list {
    margin-bottom: 10px;
}

.emp-detail-list-item {
    border: 1px solid #eee;
    border-left: 0.3rem solid #ffb606;
    border-radius: 0.4rem;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fafafa;
}

.emp-detail-list-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1b4b8f;
}

.emp-detail-list-meta {
    color: #555;
    font-size: 0.9rem;
}
