/* Faklutetlar and Kafedraar */
.toggle-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.toggle-btn {
    width: 182px;
    height: 43px;
    padding: 15px 0;
    border: none;
    background: none;
    color: #959595;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.toggle-btn:hover {
    color: #2B2B2B;
    border-bottom-color: #2B2B2B;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    color: #2B2B2B;
    border-bottom-color: #2B2B2B;
}

.pages-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.content-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.content-page.show-page {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.content-page.slide-out {
    opacity: 0;
    transform: translateX(-100%);
}

.faculties-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 30px;
    margin-bottom: 50px;
}

/* Faculty Link Styles */
.faculty-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.faculty-link:hover {
    text-decoration: none;
    color: inherit;
}

.faculty-card {
    width: 533px;
    height: 288px;
    background: #f5f7fa;
    padding: 40px;
    border-radius: 5px;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.08);*/
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.faculty-card:hover {
    background: #285BAD;
    color: #fff;
    /*transform: translateY(-2px);*/
    /*box-shadow: 0 8px 16px rgba(40, 91, 173, 0.2);*/
}

.faculty-title {
    width: 453px;
    height: 68px;
    margin-bottom: 10px;
    font-size: 20px;
    color: inherit;
}

.faculty-desc {
    width: 453px;
    height: 120px;
    font-size: 15px;
    line-height: 1.5;
    color: inherit;
}

.faculty-icon {
    position: absolute;
    top: 31%;
    right: -50px;
    transform: translateY(-50%);
    font-size: 48px;
    color: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    opacity: 10%;
}

.faculty-icon img {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    object-fit: cover;
}

.faculty-card:hover .faculty-icon {
    right: 20px;
    opacity: 0.3;
}

.filter-section {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box,
.filter-box {
    flex: 1;
    min-width: 250px;
}
.search-box{
    display: flex;
    position: relative;
}
.search-box .fac-search-input{
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #959595;
    font-size: 16px;
    color: #1a1d20;
}
.search-box svg{
    position: absolute;
    right: 10px;
    margin-top: 10px;

}


.filter-box select{
    width: 100%;
    padding: 10px 20px;
    overflow: hidden;
    color:  #4C4C4C;
    font-kerning: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.kafedra-grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 20px;
}

.kafedra-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.kafedra-card {
    width: 390px;
    background: #F5F7FB;
    padding: 40px;
    border-radius: 5px;
}

.kafedra-card:hover {
    background: #285BAD;
    color: #fff;
    transition: all 0.3s ease;

    /*box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);*/
}


.faculty-name {
    width: 310px;
    height: 48px;
    color: #94ADD6;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
}

.kafedra-card:hover .faculty-name {
    color: rgba(255,255,255,0.8);
}

.kafedra-title {
    height: 170px;
    font-size: 26px;
    font-style: normal;
    font-weight: 550;
    line-height: 130%; /* 33.8px */
    letter-spacing: -0.26px;
    color: #2B2B2B;
}

.kafedra-position {
    height: 24px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    color: #94ADD6;
}

.kafedra-card:hover .kafedra-position{
    color: #fff;
}
.kafedra-card:hover .kafedra-title{
    color: #fff;
}

.kafedra-manager {
    height: 24px;
    font-size: 18px;
    font-style: normal;
    font-weight: 550;
    line-height: 130%;
    color: #2B2B2B;
}

.kafedra-card:hover .kafedra-manager {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .toggle-btn {
        font-size: 16px;
    }

    .filter-section {
        flex-direction: column;
    }

    .search-box,
    .filter-box {
        min-width: 100%;
    }

    .faculties-grid,
    .kafedra-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none !important;
}

@media (max-width: 576px){
    .faculty-card{
        width: 100%;
    }
    .faculty-title{
        width: auto;
    }

}
