.universities-topContainer{
    margin-top: 70px;
    display: grid;
    grid-template-columns: 6fr 3fr;
}

.u-tc-left{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.u-tc-left h1{
    font-size: 72px;
    font-weight: 500;
    letter-spacing: -2%;
    color: #0D0D12;
    font-family: 'ClashGrotesk-medium';
}

.u-tc-left p{
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #666D80;
}

.ud-mainSection{
    margin-bottom: 160px;
}

.u-tc-right img{
    width: 100%;
}

.u-alphabeticList-container{
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 134px;
}

.u-al-item{
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid #ECEFF3;
    padding-bottom: 26px;
}

.u-al-item:last-child{
    border-bottom: none;
}

.u-al-item > span{
    font-size: 48px;
    line-height: 58px;
    font-weight: 600;
    color: #00B7FD;
}

.u-al-item > div{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 10px;
}

.u-al-item > div > a{
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #0D0D12;
}

.u-al-item > div > a:hover{
    color: #00B7FD;
}

.u-guide-container h2{
    font-family: 'ClashGrotesk-medium';
    font-weight: 500;
    font-size: 48px;
    line-height: 56px;
    color: #0D0D12;
    margin-bottom: 26px;
}

.u-guide-container p{
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #36394A;
    margin-bottom: 26px;
}

.u-guide-container > span{
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #36394A;

}

.u-guide-container  span:last-child{
    margin-top:24px ;
}

.u-guide-container ul{
    list-style-type: none;
    padding-left: 0;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 11px;
}

.u-universityList-container{
    margin-top: 160px;
}

.u-universityList-container h1{
    font-weight: 500;
    font-family: 'ClashGrotesk-medium';
    font-size: 48px;
    line-height: 58px;
    color: #0D0D12;
}

.u-universityList{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 26px;
}

.u-ul-universityItem{
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #ECEFF3;
    padding: 20px;
    border-radius: 20px;
}

.u-ul-universityItem > div{
    display: flex;
    gap: 16px;
    align-items: center;
}

.u-ul-universityItem > div img{
    width: 40px;
    height: 40px;
}

.u-ul-universityItem > div h3{
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #0D0D12;
}

.u-ul-universityItem > img{
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 100%;
    border: 1px solid #ECEFF3;
}

.universities-table{
    border-radius: 12px;
    border: 1px solid #ECEFF3;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    margin-bottom: 40px;
    margin-top: 48px;
    width: 100%;
}

.universities-table th{
    padding: 10px 20px;
    background-color: #F6F8FA;
    white-space: nowrap;
    color: #666d80;
    font-weight: 500;

}

.universities-table .active-ordered{
    color: #0D0D12;
    font-weight: 600;
}

/*
 * SEO-Optimized Table Sorting Styles
 *
 * These styles support sorting functionality that uses semantic button elements
 * instead of anchor tags to prevent search engines from crawling table interactions
 * as navigation links. The JavaScript in tableSorting.js handles the sorting logic.
 */
.sort-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    text-align: left;
    font-weight: inherit;
}

.sort-btn:hover {
    color: #00B7FD;
}

.sort-btn:focus {
    outline: 2px solid #00B7FD;
    outline-offset: 2px;
    border-radius: 4px;
}

.sort-btn:active {
    color: #0099d6;
}

/* Maintain the original cursor pointer behavior for regular table */
.universities-table th:nth-child(1) .sort-btn,
.universities-table th:nth-child(4) .sort-btn,
.universities-table th:nth-child(5) .sort-btn,
.universities-table th:nth-child(6) .sort-btn{
    cursor: pointer;
}

/* Sort button styles for highlighted university table */
.universities-table-highlighted th:nth-child(4) .sort-btn,
.universities-table-highlighted th:nth-child(5) .sort-btn,
.universities-table-highlighted th:nth-child(6) .sort-btn{
    cursor: pointer;
}

.universities-table .active-ordered.--reverse i{
    transform: rotate(180deg);
    display: inline-block;
}

.universities-table td{
    padding: 20px;
    border-bottom: 1px solid #ECEFF3;
}

.universities-table td span > span{
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #D6F4FF;
    font-size: 14px;
    color: #116B97;
    white-space: nowrap;

}

.universities-table tr td:nth-child(2){
    line-height: 30px;
}

.u-faq-container{
    margin-top: 90px;
    margin-bottom: 160px;
}

.u-resources-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.u-resource-item{
    display: flex;
    gap: 24px;
    border: 1px solid #ECEFF3;
    border-radius: 24px;
    padding: 24px;
    transition: 300ms;
}


.u-resource-item:hover{
    border: 1px solid #00B7FD;
}

.universities-highlightedPositioner{
    margin-top: 160px;
}

.universities-highlightedPositioner > *{
    margin-top: 0 !important;
}

.university-list-blog-icon {
    color: #36394A;
}

.u-ri-iconWrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    height: 50px;
    border: 1px solid #ECEFF3;
    border-radius: 50%;
    color: #00B7FD;
}

.u-ri-content{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.u-ri-content > div{
    display: flex;
    justify-content: space-between;
}

.u-ri-content > div span{
    font-weight: 500;
    font-size: 18px;
    color: #0D0D12;
}

.u-ri-content > div i{
    color: #818898;
}

.u-ri-content p{
    font-size: 16px;
    color: #36394A;
}

.u-detailPage-title{
    font-family: 'ClashGrotesk-medium';
    font-size: 40px;
    color: #0D0D12;
    letter-spacing: -1%;
    font-weight: 500;
}

.u-ri-iconWrapper i{
    font-size: 1.5rem;
}

/* Category Filter Wrapper */
.category-filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Filters Container */
.score-type-filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-top: 36px;
}

/* Department Search Styles */
.department-search-container {
    position: relative;
}

.department-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.department-search-input {
    padding: 12px 40px 12px 16px;
    border: 1px solid #ECEFF3;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    width: 200px;
    transition: all 0.2s ease;
    outline: none;
    color: #0D0D12;
}

.department-search-input:focus {
    border-color: #00B7FD;
    box-shadow: 0 0 0 3px rgba(0, 183, 253, 0.1);
}

.department-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.department-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #666D80;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.department-search-btn:hover {
    color: #00B7FD;
    background-color: rgba(0, 183, 253, 0.1);
}

.department-search-btn i {
    font-size: 16px;
}

.score-type-dropdown {
    position: relative;
    display: inline-block;
}

.score-type-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #ECEFF3;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0D0D12;
    min-width: 180px;
    transition: all 0.2s ease;
}

.score-type-btn:hover {
    border-color: #00B7FD;
    box-shadow: 0 0 0 3px rgba(0, 183, 253, 0.1);
}

.score-type-btn i {
    transition: transform 0.2s ease;
    color: #666D80;
}

.score-type-btn.active i {
    transform: rotate(180deg);
}

.score-type-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ECEFF3;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.score-type-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.score-type-option {
    display: block;
    padding: 12px 16px;
    color: #0D0D12;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F6F8FA;
}

.score-type-option:last-child {
    border-bottom: none;
}

.score-type-option:hover {
    background-color: #F6F8FA;
    color: #0D0D12;
}

.score-type-option.active {
    background-color: #00B7FD;
    color: white;
    font-weight: 500;
}

.score-type-option.active:hover {
    background-color: #0099d6;
}

/* Filter button styles for SEO-optimized filtering */
.filter-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: #0D0D12;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F6F8FA;
    background: none;
    border: none;
    border-bottom: 1px solid #F6F8FA;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.filter-btn:last-child {
    border-bottom: none;
}

.filter-btn:hover {
    background-color: #F6F8FA;
    color: #0D0D12;
}

.filter-btn.active {
    background-color: #00B7FD;
    color: white;
    font-weight: 500;
}

.filter-btn.active:hover {
    background-color: #0099d6;
}

.filter-btn:focus {
    outline: 2px solid #00B7FD;
    outline-offset: -2px;
}

/* Plain Button - Same style as filter dropdown */
.plain-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #ECEFF3;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0D0D12;
    min-width: 120px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.plain-filter-btn:hover {
    border-color: #00B7FD;
    box-shadow: 0 0 0 3px rgba(0, 183, 253, 0.1);
    background-color: #F8FCFF;
}

.plain-filter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 3px rgba(0, 183, 253, 0.2);
}

.plain-filter-btn:focus {
    outline: none;
    border-color: #00B7FD;
    box-shadow: 0 0 0 3px rgba(0, 183, 253, 0.1);
}

.plain-filter-btn.active {
    background-color: #00B7FD;
    color: white;
    border-color: #00B7FD;
}

.plain-filter-btn.active:hover {
    background-color: #0099d6;
    border-color: #0099d6;
}
@media only screen and (max-width: 991px) {

    .universities-highlightedPositioner{
        margin-top: 80px;
    }

    .u-detailPage-title{
        font-size: 32px;
    }

    .u-resources-container{
        grid-template-columns: 1fr;
    }

    .universities-table-highlighted{
        margin-top: 0 !important;
    }

    /* Category Filter Wrapper Mobile */
    .category-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 30px;
    }

    /* Score Type Filter Mobile Styles */
    .score-type-filter-container {
        flex-direction: column;
        gap: 12px;
        margin-top: 0;
    }

    .department-search-container {
        width: 100%;
    }

    .department-search-input {
        width: 100%;
        font-size: 13px;
        padding: 10px 36px 10px 14px;
    }

    .department-search-btn {
        right: 6px;
        padding: 7px;
    }

    .score-type-dropdown {
        width: 100%;
    }

    .score-type-btn {
        width: 100%;
        min-width: unset;
        font-size: 13px;
        padding: 10px 14px;
        justify-content: center;
        position: relative;
    }

    .score-type-btn i {
        position: absolute;
        right: 14px;
    }

    /* Plain Button Mobile Styles */
    .plain-filter-btn {
        width: 100%;
        min-width: unset;
        font-size: 13px;
        padding: 10px 14px;
    }

    .universities-topContainer{
        display: flex;
        flex-direction: column-reverse;
        gap: 32px;
        align-items: center;
    }
    .u-tc-left h1{
        font-size: 32px;
        line-height: 40px;
        margin: 0;
    }
    .u-tc-left{
        gap: 16px;
    }
    .u-al-item > div{
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .u-al-item > span{
        font-size: 36px;
    }
    .u-alphabeticList-container{
        margin-bottom: 72px;
    }
    .u-guide-container h2{
        font-size: 24px;
        line-height: 32px;
    }
    .u-universityList-container{
        margin-top: 72px;
    }
    .u-universityList-container h1{
        font-size: 24px;
        line-height: 32px;
    }
    .u-universityList{
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ud-mainSection{
        margin-bottom: 80px;
    }
}

.university-list-breadcrumb-container {
    padding-top: 120px;
}

@media (max-width:768px) {

    .universities-topContainer {
        margin-top: 0;
    }

    .universities-table-highlighted{
        margin-top: 0 !important;
    }

        /* Category Filter Wrapper Small Mobile */
    .category-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 24px;
    }

    /* Score Type Filter Small Mobile Styles */
    .score-type-filter-container {
        margin-bottom: 0;
        flex-direction: column;
        gap: 10px;
        margin-top: 0;
    }

    .department-search-container {
        width: 100%;
    }

    .department-search-input {
        width: 100%;
        font-size: 12px;
        padding: 10px 35px 10px 14px;
    }

    .department-search-btn {
        right: 6px;
        padding: 6px;
    }

    .score-type-dropdown {
        width: 100%;
    }

    .score-type-btn {
        width: 100%;
        min-width: unset;
        font-size: 12px;
        padding: 8px 12px;
        justify-content: center;
        position: relative;
    }

    .score-type-btn i {
        position: absolute;
        right: 12px;
    }

    .score-type-option {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Plain Button Small Mobile Styles */
    .plain-filter-btn {
        width: 100%;
        min-width: unset;
        font-size: 12px;
        padding: 8px 12px;
    }
}
