/* ============================= */
/* Header Box */
/* ============================= */

.ta-headerbox{
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 30%),
        radial-gradient(circle at left center, rgba(173, 220, 255, 0.35), transparent 28%),
        linear-gradient(135deg, #eef7ff 0%, #deefff 52%, #d4ebff 100%);
    border-radius: 18px;
    width: min(100% - 32px, 1088px);
    margin: 24px auto 30px;
    padding: 30px 24px 30px;
    box-shadow: 0 18px 40px rgba(30, 82, 133, 0.08);
}

.ta-headerbox__content{
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.ta-headerbox__text{
    min-width: 0;
    text-align: center;
}

.ta-title{
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(26px, 2.4vw, 34px);
    color: #0B3A67;
}

.ta-subtitle{
    margin: 18px auto 0;
    color: #0B3A67;
    opacity: .82;
    line-height: 1.5;
    max-width: none;
    white-space: nowrap;
}


/* ============================= */
/* Quick Filters */
/* ============================= */

.ta-quickfilters-wrap{
    width: min(100%, 1040px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.ta-quickfilters{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ta-quickfilters .custom-filter-placeholder{
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(17, 90, 166, 0.12) !important;
    border-radius: 14px;
    padding: 8px 12px;
    min-height: 44px;
    box-shadow: 0 8px 22px rgba(17, 90, 166, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ta-quickfilters .custom-filter-placeholder:hover{
    background: rgba(255,255,255,1);
    border-color: rgba(17, 90, 166, 0.2) !important;
    box-shadow: 0 10px 24px rgba(17, 90, 166, 0.1);
    transform: translateY(-1px);
}


/* ============================= */
/* Search Area */
/* ============================= */

.ta-headerbox__search{
    width: min(100%, 1040px);
    min-width: 0;
}

#thesis_advisor_list_page .ta-headerbox__content {
    align-items: center;
}

#thesis_advisor_list_page .ta-headerbox__text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#thesis_advisor_list_page .ta-title-row {
    justify-content: center;
    width: 100%;
}

#thesis_advisor_list_page .ta-subtitle {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.ta-searchbar{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.ta-searchbar__input{
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.ta-searchbar__actions{
    justify-self: end;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

#thesis_advisor_search_bar{
    min-height: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

#thesis_advisor_search_bar.custom-nonacf-input-wrapper {
    padding: 0 16px !important;
    border-radius: 14px;
    box-sizing: border-box;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(17, 90, 166, 0.14) !important;
    box-shadow: 0 12px 28px rgba(17, 90, 166, 0.08) !important;
}

#thesis_advisor_search_bar img.search-icon {
    width: 16px !important;
    height: 16px !important;
    margin-right: 10px !important;
    flex: 0 0 auto;
}

/* Remove ALL borders, boxes, underlines */
#thesis_advisor_search_bar input,
#thesis_advisor_search_bar .form-control,
#thesis_advisor_search_bar textarea,
#thesis_advisor_search_bar select{
    width: 100%;
    height: 100%;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 15px;
    line-height: 1.2;
    box-sizing: border-box;
}

/* Remove focus effects */
#thesis_advisor_search_bar input:focus,
#thesis_advisor_search_bar .form-control:focus{
    outline: none !important;
    box-shadow: none !important;
}


/* ============================= */
/* More Filters Button */
/* ============================= */

.ta-morefilters-btn{
    background: rgba(255,255,255,.98) !important;
    color: #115AA6 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(17, 90, 166, 0.14) !important;
    box-shadow: 0 12px 28px rgba(17, 90, 166, 0.08) !important;
    height: 48px;
    padding: 0 16px !important;
    white-space: nowrap;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ta-morefilters-btn:hover,
.ta-morefilters-btn:focus,
.ta-morefilters-btn:active{
    background: rgba(255, 255, 255, 1) !important;
    color: #115AA6 !important;
    border: 1px solid rgba(17, 90, 166, 0.24) !important;
    box-shadow: 0 14px 30px rgba(17, 90, 166, 0.1) !important;
}

#thesis_advisor_list_page .ta-morefilters-text{
    font-size: 13px;
    letter-spacing: .01em;
}

#thesis_advisor_list_page {
    position: relative;
    padding-top: 28px;
    padding-bottom: 5rem;
    background:
        radial-gradient(820px 420px at 10% 2%, rgba(145, 222, 188, 0.26), transparent 64%),
        radial-gradient(660px 340px at 92% 8%, rgba(145, 205, 247, 0.28), transparent 66%),
        radial-gradient(620px 320px at 84% 84%, rgba(255, 218, 160, 0.24), transparent 68%),
        linear-gradient(180deg, #fdfefe 0%, #f3fafc 100%);
}

#thesis_advisor_list_page > .container {
    position: relative;
    z-index: 1;
}

#thesis_advisor_list_page .ta-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#thesis_advisor_list_page .ta-searchbar__input,
#thesis_advisor_list_page .ta-searchbar__actions {
    min-height: 48px;
}

#thesis_advisor_list_page #thesis_advisor_search_bar.custom-nonacf-input-wrapper {
    min-height: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
}

#thesis_advisor_list_page #thesis_advisor_search_bar input,
#thesis_advisor_list_page #thesis_advisor_search_bar .form-control {
    min-height: 46px !important;
    height: 46px !important;
    line-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
}

#thesis_advisor_list_page .ta-morefilters-btn {
    min-height: 48px !important;
    height: 48px !important;
}

#thesis_advisor_list_page .custom-dropdown,
#thesis_advisor_list_page .custom-filter-placeholder,
#thesis_advisor_list_page .custom-dropdown.opened input {
    border: none !important;
    box-shadow: none !important;
}


/* ============================= */
/* Refinement Bar (Below Header) */
/* ============================= */

.ta-refinebar{
    margin: 22px 16px 14px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ta-refinebar__left{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ta-refinebar__right{
    display: flex;
    gap: 10px;
    align-items: center;
}

.custom-refinement-tag {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: min(46vw, 360px);
    border-radius: 999px;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    color: #1f3b57;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    overflow: hidden;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.custom-refinement-tag:hover {
    background: #f2f7fc;
    border-color: #cbd9e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 57, 92, 0.08);
}

.custom-refinement-tag-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.custom-refinement-tag-label {
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #5b738e;
    white-space: nowrap;
    flex: 0 0 auto;
}

.custom-refinement-tag-value {
    color: #1f3b57;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .custom-refinement-tag {
        max-width: min(88vw, 420px);
    }
}

.custom-refinement-tag[data-filter-key="full_faculty_list"] {
    background: #f5f8ff;
    border-color: #d8e2ff;
}

.custom-refinement-tag[data-filter-key="full_department_list"] {
    background: #f5faf8;
    border-color: #d8e8df;
}

.custom-refinement-tag[data-filter-key="research_keywords"] {
    background: #f7f6fc;
    border-color: #dfdbf0;
}

.custom-refinement-tag[data-filter-key="associated_scholarships"] {
    background: #fbf7f3;
    border-color: #eadfce;
}

.custom-refinement-tag[data-filter-key="mentoring_style"] {
    background: #f3f8fb;
    border-color: #d3e4eb;
}

.custom-refinement-tag[data-filter-key="taking_students"] {
    background: #f3f9f9;
    border-color: #d2e6e3;
}


/* ============================= */
/* Full Width Layout */
/* ============================= */

.ta-layout--full{
    padding: 0 16px 20px;
}

.ta-results--full{
    padding-left: 0;
}

/* Scholarship List */

.sc-headerbox{
    background: linear-gradient(180deg, #115AA6 0%, #0d4f93 100%);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: 0 16px 32px rgba(17, 90, 166, 0.14);
}

.sc-headerbox__content{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.sc-title{
    color: #fff;
    font-size: clamp(2rem, 2.8vw, 2.4rem);
    line-height: 1.1;
    margin: 0 0 8px;
    font-weight: 700;
}

.sc-subtitle{
    color: rgba(255,255,255,0.86);
    margin: 0;
    max-width: 60ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-quickfilters{
    display: flex;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    max-width: 520px;
}

.sc-quickfilters > *{
    width: 100%;
    max-width: none;
}

.sc-headerbox__search{
    min-width: 0;
}

.sc-searchbar{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.sc-searchbar__input,
.sc-searchbar__actions{
    min-height: 42px;
}

.sc-searchbar__input{
    min-width: 0;
}

#scholarship_list_page #scholarship_search_bar.custom-nonacf-input-wrapper{
    min-height: 42px !important;
    height: 42px !important;
    max-height: 42px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
    background: rgba(255,255,255,0.98) !important;
}

#scholarship_list_page #scholarship_search_bar .search-icon{
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    flex: 0 0 17px;
}

#scholarship_list_page #scholarship_search_bar input,
#scholarship_list_page #scholarship_search_bar .form-control{
    min-height: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sc-morefilters-btn{
    background: #ffffff !important;
    color: #115AA6 !important;
    border-radius: 999px !important;
    border: none !important;
    box-shadow: none !important;
    height: 42px;
    padding: 0 12px !important;
    white-space: nowrap;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sc-morefilters-btn:hover,
.sc-morefilters-btn:focus,
.sc-morefilters-btn:active{
    background: #ffffff !important;
    color: #115AA6 !important;
    border: none !important;
    box-shadow: none !important;
}

#scholarship_list_page .custom-dropdown,
#scholarship_list_page .custom-filter-placeholder,
#scholarship_list_page .custom-dropdown.opened input{
    border: none !important;
    box-shadow: none !important;
}

.sc-refinebar{
    margin: 0 16px 14px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sc-refinebar__left{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sc-refinebar__right{
    display: flex;
    gap: 10px;
    align-items: center;
}

.sc-layout--full{
    padding: 0 16px 20px;
}

#scholarship_list_states{
    min-height: 460px;
    overflow: visible;
    padding-top: 8px;
    padding-bottom: 28px;
}

#scholarship_list_states:empty{
    display: none;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#scholarship_list_states .overflow-y-auto {
    overflow: visible !important;
}

#scholarship_list_states img[alt="No Results"],
#scholarship_list_states img[alt="Error Occurred"],
#scholarship_list_states img[alt="Maintenance"] {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    max-height: none !important;
    height: auto !important;
    margin-top: 0 !important;
}

#scholarship_list_states #loading-image {
    margin-top: -10% !important;
    max-width: 420px !important;
}

#scholarship_list_states #loading-text {
    text-align: center;
}

.sc-grid{
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

.sc-card-skeleton{
    overflow: hidden !important;
}

.sc-card-skeleton #custom-card-image-wrapper{
    height: 190px;
    overflow: hidden;
}

#scholarship_hits .custom-card{
    overflow: visible !important;
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 90, 166, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

#scholarship_hits .custom-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(17, 90, 166, 0.11);
}

#scholarship_hits #custom-card-image-wrapper{
    height: 220px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

#scholarship_hits #custom-card-image-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scholarship_hits .custom-card-body{
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
}

#scholarship_hits #custom-card-body-bottom{
    display: none !important;
}

#scholarship_hits .custom-card-title,
#scholarship_hits .custom-card-title a{
    color: #153654;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}

#scholarship_hits .custom-card-title a:hover{
    color: #115AA6;
}

.sc-card-tags .custom-tag{
    background: #F3F8FE;
    color: #115AA6;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.sc-card-text{
    color: #5E6B78;
    font-size: 0.92rem;
    line-height: 1.45;
}

#scholarship_hits .custom-card .faculty-label{
    z-index: 3;
}

.sc-card-stipend{
    color: #115AA6;
    font-size: 0.9rem;
    font-weight: 700;
}

.sc-paginationwrap{
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

#scholarship_pagination{
    width: fit-content;
    margin: 0 auto;
}

.sc-modal-filterstack{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#scholarshipMoreFiltersModal .modal-content{
    border-radius: 18px;
}

#scholarshipMoreFiltersModal .modal-body{
    padding: 26px 26px 28px;
}

#scholarshipMoreFiltersModal .modal-header{
    padding: 20px 26px 14px;
}

@media (min-width: 769px) {
    #scholarshipMoreFiltersModal .modal-dialog{
        width: min(100% - 32px, 720px);
        max-width: 720px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }

    #scholarshipMoreFiltersModal .modal-content{
        width: 100%;
        min-height: 0;
    }
}

@media (min-width: 768px){
    .sc-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px){
    .sc-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px){
    .sc-headerbox__content{
        grid-template-columns: 1fr;
    }

    .sc-searchbar{
        grid-template-columns: 1fr auto;
    }

    #scholarship_primary_filter_origin{
        display: none;
    }
}

@media (max-width: 767px){
    .sc-headerbox{
        padding: 18px 16px 16px;
        border-radius: 20px;
    }

    .sc-quickfilters{
        grid-template-columns: 1fr;
    }

    .sc-subtitle{
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .sc-searchbar{
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sc-searchbar__actions{
        justify-self: end;
    }

    .sc-morefilters-btn{
        min-width: 42px;
        width: 42px;
        padding: 0 !important;
        justify-content: center;
    }

    .sc-morefilters-btn i{
        margin: 0;
    }
}

/* Scholarship Single */

.scholarship-single-page .details-page-wrapper{
    padding-top: 34px;
}

.scholarship-single-page__browseall{
    margin-bottom: 10px;
}

.scholarship-single-page__browseall-link{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #115AA6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.scholarship-single-page__browseall-link:hover{
    color: #0d4f93;
}

.scholarship-single-page .scholarship-apply-wrap{
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    padding: 10px 6px 12px 6px;
}

.scholarship-single-page .scholarship-apply-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: auto;
    min-height: 52px;
    max-width: 100%;
    padding: 13px 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7a03b 0%, #f28c1b 100%);
    border: none;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: none;
}

.scholarship-single-page .scholarship-apply-btn::before{
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background: #003d7c;
    transition: width 0.45s ease;
    z-index: 0;
}

.scholarship-single-page .scholarship-apply-btn span{
    position: relative;
    z-index: 1;
}

.scholarship-single-page .scholarship-apply-btn:hover{
    color: #ffffff;
    box-shadow: none;
}

.scholarship-single-page .scholarship-apply-btn:hover::before{
    width: 100%;
}

.scholarship-single-page .scholarship-apply-btn--animated:hover{
    animation: scholarship-apply-shake 0.6s ease-in-out;
    transform-origin: center;
}

.scholarship-single-page #scholarship-details-page{
    color: #28445f;
}

.scholarship-single-page #scholarship-details-page .details-page-title{
    color: #0f4d89;
}

.scholarship-single-page #scholarship-details-page .details-page-section{
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(17, 90, 166, 0.06);
    background: #ffffff;
}

.scholarship-single-page #scholarship-details-page .details-page-section:nth-child(even){
    background: linear-gradient(180deg, #f7fbff 0%, #edf6fe 100%);
}

.scholarship-single-page #scholarship-details-page .details-page-section-head{
    color: #0f4d89;
}

.scholarship-single-page #scholarship-details-page .details-page-section-body .bold{
    color: #163b5c;
}

.scholarship-single-page #scholarship-details-page .table-wrapper{
    border: 1px solid #c7d4e2;
    border-radius: 14px;
    background: #fafcfe;
}

.scholarship-single-page #scholarship-details-page .table-wrapper table{
    margin-bottom: 0;
    background: transparent;
}

.scholarship-single-page #scholarship-details-page .custom-table-head{
    border-color: #c7d4e2;
    color: #ffffff;
}

.scholarship-single-page #scholarship-details-page .custom-table-head-blue{
    background: #24527f !important;
    color: #ffffff !important;
}

.scholarship-single-page #scholarship-details-page .custom-table-head-gray{
    background: #eaf1f7 !important;
    color: #23496d !important;
}

.scholarship-single-page #scholarship-details-page .custom-table-row td{
    border-color: #c7d4e2;
    color: #334b63;
    background: #ffffff;
}

.scholarship-single-page #scholarship-details-page .custom-table-row:nth-child(even) td{
    background: #f6f9fc;
}

.scholarship-single-page #scholarship-details-page .custom-table-gray-cell{
    background: #e2ebf4 !important;
    color: #0d355c !important;
}

@keyframes scholarship-apply-shake {
    0%,100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.05) rotate(-2deg); }
    50% { transform: scale(1.08) rotate(2deg); }
    75% { transform: scale(1.05) rotate(-1deg); }
}

@media (max-width: 800px){
    .scholarship-single-page .details-page-wrapper{
        padding-top: 24px;
    }
}

#thesis_advisor_list_states {
    min-height: 360px;
    overflow: visible;
    padding-top: 4px;
    padding-bottom: 28px;
}

#thesis_advisor_list_states:empty {
    display: none;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#thesis_advisor_list_states .overflow-y-auto {
    overflow: visible !important;
}

#thesis_advisor_list_states img[alt="No Results"],
#thesis_advisor_list_states img[alt="Error Occurred"],
#thesis_advisor_list_states img[alt="Maintenance"] {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    max-height: none !important;
    height: auto !important;
    margin-top: 0 !important;
}


/* ============================= */
/* Results Grid */
/* ============================= */

.ta-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    #student_list_page .student-search-actions {
        flex-wrap: wrap;
    }
    #student_list_page #student_search_bar {
        flex: 1 1 100%;
    }
    #student_list_page .student-more-filter-btn {
        width: auto;
    }
    .ta-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ta-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 359px) {
    .ta-grid{
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 10px;
    }
}

#thesis_advisor_hits > *{
    border-radius: 16px;
    overflow: hidden;
}

#thesis_advisor_hits .custom-card {
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 24px rgba(15, 34, 58, 0.08);
    transition: transform .22s ease, box-shadow .22s ease;
    will-change: transform;
}

#thesis_advisor_hits .custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 34, 58, 0.14);
}

#thesis_advisor_hits .custom-card-body {
    padding: 20px;
    gap: 10px;
}

#thesis_advisor_hits #custom-card-body-bottom {
    display: none !important;
}

#thesis_advisor_hits .custom-card-title {
    color: #0f2e4d;
}

#thesis_advisor_hits .ta-department-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f7386;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

#thesis_advisor_hits .ta-department-label svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

#thesis_advisor_hits .ta-department-label svg path {
    fill: #7c92a6;
}

#thesis_advisor_hits .custom-btn.btn-dark-blue {
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f4f93 0%, #136dcd 100%);
    box-shadow: 0 8px 18px rgba(15, 79, 147, 0.24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}

#thesis_advisor_hits .custom-btn.btn-dark-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 79, 147, 0.3);
    filter: brightness(1.04);
}

#thesis_advisor_hits .custom-btn.btn-dark-blue:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(15, 79, 147, 0.22);
}

#thesis_advisor_hits .ta-accepting-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: min(100%, 230px);
    padding: 7px 12px;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(0, 158, 63, 0.78) 60.28%, rgba(0, 158, 63, 0) 100%);
    color: #fff;
    border: none;
    box-shadow: none;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(10px, 1.3vw, 12px);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: uppercase;
    text-align: left;
}


/* ============================= */
/* Pagination */
/* ============================= */

.ta-paginationwrap{
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.custom-search-pagination,
#thesis_advisor_pagination .pagination {
    display: inline-flex;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 6px;
    border-radius: 14px;
    background: #f7fafc;
    border: 1px solid #e2eaf2;
}

.custom-search-pagination .page-item,
#thesis_advisor_pagination .page-item {
    margin: 0;
}

.custom-search-pagination .page-item + .page-item .page-link,
.custom-search-pagination .page-item + .page-item .custom-custom-pagination-btn.page-link,
#thesis_advisor_pagination .page-item + .page-item .page-link,
#thesis_advisor_pagination .page-item + .page-item .custom-custom-pagination-btn.page-link {
    margin-left: -1px;
}

.custom-search-pagination .page-link,
.custom-search-pagination .custom-custom-pagination-btn.page-link,
#thesis_advisor_pagination .page-link,
#thesis_advisor_pagination .custom-custom-pagination-btn.page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 1px solid #d7e2ec;
    background: #fff;
    color: #21466f;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(13, 34, 55, 0.06);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.custom-search-pagination .page-item:first-child .page-link,
.custom-search-pagination .page-item:first-child .custom-custom-pagination-btn.page-link,
#thesis_advisor_pagination .page-item:first-child .page-link,
#thesis_advisor_pagination .page-item:first-child .custom-custom-pagination-btn.page-link {
    border-top-left-radius: 9px;
    border-bottom-left-radius: 9px;
}

.custom-search-pagination .page-item:last-child .page-link,
.custom-search-pagination .page-item:last-child .custom-custom-pagination-btn.page-link,
#thesis_advisor_pagination .page-item:last-child .page-link,
#thesis_advisor_pagination .page-item:last-child .custom-custom-pagination-btn.page-link {
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
}

.custom-search-pagination .page-link:hover,
.custom-search-pagination .custom-custom-pagination-btn.page-link:hover,
#thesis_advisor_pagination .page-link:hover,
#thesis_advisor_pagination .custom-custom-pagination-btn.page-link:hover {
    background: #edf4fb;
    border-color: #c7d8e9;
    color: #173a60;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 34, 55, 0.1);
}

.custom-search-pagination .page-item.active .page-link,
.custom-search-pagination .page-item.active .custom-custom-pagination-btn.page-link,
#thesis_advisor_pagination .page-item.active .page-link,
#thesis_advisor_pagination .page-item.active .custom-custom-pagination-btn.page-link {
    background: linear-gradient(135deg, #0f4f93 0%, #136dcd 100%);
    border-color: #0f4f93;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 79, 147, 0.28);
}

.custom-search-pagination .page-link:focus,
.custom-search-pagination .custom-custom-pagination-btn.page-link:focus,
#thesis_advisor_pagination .page-link:focus,
#thesis_advisor_pagination .custom-custom-pagination-btn.page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 109, 205, 0.22);
}


/* ============================= */
/* Back To Top */
/* ============================= */

.ta-backtotop{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f3b57;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    border: 1px solid #d7e2ec;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.ta-backtotop:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #173a60;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.2)
}


/* ============================= */
/* Modal Filters */
/* ============================= */

.ta-modal-filterstack{
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 992px){
    .ta-quickfilters-wrap{
        display: none;
    }

    .ta-quickfilters{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-searchbar{
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ta-morefilters-btn{
        width: auto;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px){
    .ta-headerbox{
        padding: 22px 16px 18px;
    }

    .ta-headerbox__content{
        align-items: stretch;
        gap: 14px;
    }

    .ta-headerbox__text{
        text-align: left;
    }

    .ta-subtitle{
        margin-left: 0;
        margin-right: 0;
        white-space: normal;
    }

    .ta-headerbox__search,
    .ta-quickfilters-wrap{
        width: 100%;
    }

    .ta-searchbar{
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ta-quickfilters{
        grid-template-columns: 1fr;
    }
}


#phd-student-single .card-body {
    padding: 16px 24px;
    @media screen and (max-width: 1000px) {
        padding: 16px 12px;
    }
}

#phd-student-single .left-sticky {
    margin-top: 0px;
    overflow: visible;
}

#phd-student-single .ta-profile-photo {
    width: 200px; /* pick a size */
    aspect-ratio: 1 / 1; /* keep it square */
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    flex: 0 0 auto; /* IMPORTANT: don't let flexbox stretch it */
}

/* Responsive tweak: only set width; aspect-ratio will compute height */
@media (max-width: 550px) {
    #phd-student-single .ta-profile-photo {
        width: 160px;
        margin-top: -110px; /* if you need this offset */
    }
}

/* Image: fill the circle without distortion */
#phd-student-single .ta-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crops to fill while preserving aspect */
    display: block; /* removes inline-img baseline gap */
}

#phd-student-single .phd-student-profile-btn {
    border-radius: 6px;
    border: 1px solid #003D7C;
    padding: 9px 9px;
    display: flex;
    color: #003D7C;
    justify-content: center !important;
    align-items: center !important;
}

#phd-student-single .nav-style {
    border-radius: 30px;
    margin-right: 10px;
}

#phd-student-single .like-resume {
    @media screen and (max-width: 1400px) {
        flex-direction: unset !important;
        flex-wrap: wrap;
    }
    @media screen and (max-width: 1700px) {
        flex-direction: column;
        width: 100%;
    }
}

#phd-student-single .profile-like-btn {
    min-width: 85px;
    background-color: white;
}

#phd-student-single .remove-border-sm {
    @media screen and (max-width: 992px) {
        border: none !important;
        border-radius: 0px;
    }
}

#phd-student-single .student-top-banner {
    position: absolute;
    top: 0;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0; /* fallback color */
    overflow: hidden;
}

/* Tablet */
@media screen and (max-width: 767px) {
    #phd-student-single .student-top-banner {
        height: 200px;
        max-height: 200px;
        margin: 0 auto; /* centers it */
    }
}

/* Mobile */
@media screen and (max-width: 399px) {
    #phd-student-single .student-top-banner {
        height: 150px;
        max-height: 150px;
    }
}

#phd-student-single .nav-pills .nav-link {
    padding: 12px 24px;
    background-color: #FFFFFF;
    color: #3c3c3c;
    border: 2px solid #E4E4E4; /* Default border for unselected tabs */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

#phd-student-single .nav-pills .nav-link.active {
    background-color: #003D7C;
    border-color: transparent; /* Removes border for the active tab */
    color: #FFFFFF;
}

#phd-student-single .tab-content > .active {
    display: flex !important;
}

#phd-student-single .phd-student-single-container {
    position: relative;
    padding-top: 150px !important;
}

/* Still meant only for student profile */
.student-tooltip .tooltip-inner {
    background-color: #EAF4FF;
    color: #003D7C;
    border-left: 4px solid #007DFF;
}
.student-tooltip .tooltip-arrow {
    visibility: hidden;
}

/*
************************ Student List Page ********************
 */

.student-portal-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1 / 1; /* Ensures square shape */
    background-color: #fff;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .student-portal-showcase-card:hover > .overlay {
        transform: translateY(0);
    }
}

.student-portal-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.student-portal-showcase-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #F0F0F0;
    color: #003D7C;
    padding: 16px;
    font-weight: 500;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    @media only screen and (max-width: 500px) {
        font-size: 12px;
    }
}

.student-portal-showcase-card .quote-mark {
    font-size: 3.5rem;
    line-height: 0.5;
    color: #F57C00;
    @media only screen and (max-width: 500px) {
        font-size: 2rem;
    }
}

.student-portal-showcase-card .quote-text {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 12px;
    @media only screen and (max-width: 500px) {
        font-size: 1rem;
        line-height: 1;
    }
}

.student-portal-showcase-card .quote-name {
    margin-top: auto;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6C757D;
    @media only screen and (max-width: 500px) {
        font-size: 12px;
    }
}
#student-portal-showcase-cover {
    max-width: 100%;
    overflow: hidden;
    --showcase-row: clamp(200px, 20vw, 260px);
    --showcase-gap: 8px;
    height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

#student-portal-showcase-cover.showcase-ready {
    height: calc((var(--showcase-row) * 2) + var(--showcase-gap));
    padding: 10px 0 14px 0;
    opacity: 1;
    visibility: visible;
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.6rem;
}

#student-portal-showcase-cover.showcase-ready.showcase-single {
    --showcase-row: clamp(200px, 24vw, 260px);
    --showcase-gap: 0px;
    height: var(--showcase-row);
    padding: 10px 0 12px 0;
}

#student-portal-showcase-cover.showcase-empty {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}
#student-portal-showcase-cover .swiper {
    max-width: 100%;
    height: var(--showcase-row);

    @media screen and (max-width: 768px) {
        max-width: 1000px;
        width: 100%;
    }
}

#student-portal-showcase-cover .swiper-top {
    @media only screen and (max-width: 1300px) {
        padding-left: 50px; /* Adjust as needed */
    }
}

#student-portal-showcase-cover .swiper-bottom {
    @media only screen and (max-width: 1300px) {
        padding-right: 50px; /* Adjust as needed */
    }
}

#student_list_page #student-profiles-potential {
    width: 40%;
    @media screen and (max-width: 767px) {
        width: 100%;
        text-align: center;
    }
}

#student_list_page #student-profiles-potential-image {
    max-width: 50%;
    margin-left: auto;
    @media screen and (max-width: 767px) {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

#student_list_page .quote-image-wrapper {
    width: 30%;
    @media screen and (max-width: 767px) {
        width: 100%;
    }
}

#student_list_page .quote-content {
    width: 60%;
    @media screen and (max-width: 767px) {
        width: 100%;
    }
}

#student-custom-pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    margin-top: 30px;
}

#student-custom-pagination .student-list-pagination-button {
    padding: 10px;
    border-width: 1px 0px 1px 1px;
    border-style: solid;
    border-color: #E4E4E4;
    background-color: #f7f7f7;
    font-weight: 600;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

/* Student List Search Page Refresh */
#student_list_page {
    background:
        radial-gradient(900px 520px at 10% 10%, rgba(80, 170, 255, 0.2), transparent 60%),
        radial-gradient(720px 380px at 92% 16%, rgba(20, 120, 255, 0.18), transparent 62%),
        radial-gradient(520px 320px at 18% 78%, rgba(70, 220, 210, 0.2), transparent 60%),
        radial-gradient(420px 260px at 88% 70%, rgba(120, 210, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
    padding-bottom: 5.5rem;
    position: relative;
}

#student_list_page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 420px at 70% 0%, rgba(90, 160, 255, 0.2), transparent 60%),
        radial-gradient(520px 320px at 5% 90%, rgba(80, 220, 230, 0.18), transparent 62%),
        radial-gradient(1px 1px at 1px 1px, rgba(17, 90, 166, 0.12) 1px, transparent 0);
    background-size: 100% 100%, 100% 100%, 110px 110px;
    opacity: 0.6;
    animation: studentBgDrift 16s ease-in-out infinite;
    z-index: 0;
}

#student_list_page > *:not(.modal) {
    position: relative;
    z-index: 1;
}

#student_list_page .modal {
    position: fixed;
    z-index: 2000;
}

#modalStudentSearch.modal {
    z-index: 2000;
}

@keyframes studentBgDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

#student-portal-landing.student-landing {
    padding-top: 2.5rem;
}

#student_list_page .student-landing-intro {
    padding: 5.8rem 0 2.4rem;
    max-width: 980px;
    margin: 0 auto;
}

#student_list_page .quote-hero-title {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.08;
    margin: 0;
    color: #115aa6;
    letter-spacing: -0.02em;
}

#student_list_page .quote-hero-subtitle {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(28, 39, 55, 0.8);
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    line-height: 1.6;
}

#student_list_page .student-profile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.85rem;
    min-width: 0;
    width: fit-content;
    align-self: flex-start;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(35, 120, 210, 0.45);
    background: transparent;
    color: #115aa6;
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    text-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, color 0.18s ease, background 0.18s ease;
    font-size: 0.9rem;
}

#student_list_page .student-profile-cta-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0b3a7b, #1977ff 55%, #20c5ff);
    color: #fff;
    box-shadow: 0 12px 28px rgba(19, 109, 255, 0.35), 0 0 14px rgba(32, 197, 255, 0.25);
    filter: brightness(1.04);
}

#student_list_page .student-list-panel {
    margin-top: 0.8rem;
    position: relative;
    z-index: 10;
}

#student_list_page .student-search-shell {
    position: relative;
    border-radius: 20px;
    padding: 1.6rem;
    background: linear-gradient(140deg, #115aa6, #0f4f93);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.18);
    overflow: visible;
    margin-bottom: 1.4rem;
    z-index: 10;
}

#student_list_page .student-list-panel,
#student_list_page .student-cta-cards-shell,
#student_search_list .student-search-inner,
#student_portal_browse_cover_wrapper .container {
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
}

#student_search_list {
    display: none;
}

#student_search_list.is-visible {
    display: block;
}

#student_search_list .student-search-inner {
    padding-left: clamp(1.2rem, 2vw, 1.8rem);
    padding-right: clamp(1.2rem, 2vw, 1.8rem);
}

#student_list_page #student_page_states {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

#student_list_page .student-search-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#student_list_page .student-search-shell > * {
    position: relative;
    z-index: 1;
}

#student_list_page .student-search-tabs-row {
    gap: 0.75rem;
    flex-wrap: wrap;
}

#student_list_page .student-search-by-label {
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    font-weight: 600;
}

#student_list_page .student-portal-tabs {
    border-radius: 999px;
    padding: 0.58rem 0.9rem;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    transition: all 0.16s ease;
}

#student_list_page .student-portal-tabs:hover {
    background: rgba(255, 255, 255, 0.2);
}

#student_list_page .student-portal-tabs.active {
    background: #fff;
    color: #115aa6;
}

#student_list_page .student-search-actions {
    display: flex;
    align-items: center;
}


#student_list_page .student-search-visible {
    display: flex;
}

#student_list_page .student-search-hidden {
    display: none;
}

#student_list_page #student_search_bar {
    border-radius: 999px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

#student_list_page .student-more-filter-btn {
    border-radius: 20px !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    text-wrap: nowrap;
}

#student_list_page .student-more-filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

#student_list_page .student-search-mode,
#student_list_page .student-profile-tab,
#student_list_page .custom-dropdown {
    position: relative;
    z-index: 5;
}

#student_list_page #student-portal-search-panel {
    position: relative;
    z-index: 5;
}

#student_list_page .student-search-actions {
    position: relative;
    z-index: 4;
}

#student_portal_showcase_cover_wrapper {
    position: relative;
    z-index: 2;
}

#student_list_page .custom-dropdown-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
}

#student_list_page .custom-dropdown-options.portalized {
    position: absolute;
}

#student-dropdown-portal {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

#student-dropdown-portal .custom-dropdown-options {
    pointer-events: auto;
}

#student-dropdown-portal .custom-dropdown-options.portalized-open {
    display: flex;
    opacity: 1;
    transform: translateY(10px);
}

@media (max-width: 768px) {
    #student_list_page .student-more-filter-btn {
        padding: 0.6rem 0.75rem;
    }
    #student_list_page .student-more-filter-btn i {
        margin-right: 0 !important;
        font-size: 1rem;
    }
    #student_list_page .student-more-filter-text {
        display: none !important;
    }

    #thesis_advisor_list_page .ta-morefilters-btn {
        padding: 0.6rem 0.75rem;
    }
    #thesis_advisor_list_page .ta-morefilters-btn i {
        margin-right: 0 !important;
        font-size: 1rem;
    }
    #thesis_advisor_list_page .ta-morefilters-text {
        display: none !important;
    }

    #thesis_advisor_list_page .ta-searchbar {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
}

#student_list_page .dropdown-search-options {
    outline: none;
    border: 1px solid rgba(17, 90, 166, 0.2);
    border-radius: 6px;
    box-shadow: none;
}

#student_list_page .dropdown-search-options:focus {
    outline: none;
    box-shadow: none;
    border-color: rgba(17, 90, 166, 0.35);
}

#modalStudentSearch .modal-dialog-scrollable {
    height: auto;
}

#modalStudentSearch .modal-body {
    overflow: visible;
    max-height: none;
}

#modalStudentSearch .custom-dropdown-options {
    z-index: 1200;
}

@media (max-width: 768px) {
    #modalStudentSearch .modal-dialog {
        margin: 0;
        height: 100%;
        max-width: 100%;
    }
    #modalStudentSearch .modal-content {
        border-radius: 18px 18px 0 0;
        position: absolute;
        bottom: 0;
        width: 100%;
        max-height: 80vh;
        transform: translateY(100%);
        transition: transform 0.25s ease;
        display: flex;
        flex-direction: column;
    }
    #modalStudentSearch.show .modal-content {
        transform: translateY(0);
    }
    #modalStudentSearch .modal-body {
        padding-bottom: 100px;
        overflow: auto;
    }


    .modal-sheet-mobile .modal-dialog {
        margin: 0;
        height: 100%;
        max-width: 100%;
    }
    .modal-sheet-mobile .modal-content {
        border-radius: 18px 18px 0 0;
        position: absolute;
        bottom: 0;
        width: 100%;
        max-height: var(--sheet-max-height, 92vh);
        min-height: var(--sheet-min-height, 72vh);
        transform: translateY(100%);
        transition: transform 0.25s ease;
        display: flex;
        flex-direction: column;
    }
    .modal-sheet-mobile.show .modal-content {
        transform: translateY(0);
    }
    .modal-sheet-mobile .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 100px;
        overflow: auto;
    }
}

@media (min-width: 769px) {
    .modal-sheet-mobile .modal-dialog {
        height: auto;
        margin-right: auto;
        margin-left: auto;
    }

    .modal-sheet-mobile .modal-content {
        position: relative;
        bottom: auto;
        width: auto;
        min-height: 0;
        transform: none;
    }

    .modal-sheet-mobile.show .modal-content {
        transform: none;
    }
}

#thesisAdvisorMoreFiltersModal .modal-header,
#thesisAdvisorMoreFiltersModal .modal-body,
#thesisAdvisorMoreFiltersModal .modal-footer{
    padding-left: 22px;
    padding-right: 22px;
}

#thesisAdvisorMoreFiltersModal .modal-header{
    padding-top: 20px;
    padding-bottom: 14px;
}

#thesisAdvisorMoreFiltersModal .modal-body{
    padding-top: 12px;
    padding-bottom: 20px;
}

#thesisAdvisorMoreFiltersModal .modal-footer{
    padding-top: 14px;
    padding-bottom: 20px;
}

#thesisAdvisorMoreFiltersModal .ta-modal-filterstack{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#thesisAdvisorWorldMapSection {
    margin: 72px 16px 60px;
    padding: 34px 0 14px;
    position: relative;
    isolation: isolate;
}

#thesisAdvisorWorldMapSection::before,
#thesisAdvisorWorldMapSection::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(4px);
}

#thesisAdvisorWorldMapSection::before {
    width: 220px;
    height: 220px;
    top: 18px;
    left: 6%;
    background: radial-gradient(circle, rgba(255, 211, 156, 0.3) 0%, rgba(255, 211, 156, 0) 72%);
}

#thesisAdvisorWorldMapSection::after {
    width: 280px;
    height: 280px;
    right: 4%;
    bottom: 24px;
    background: radial-gradient(circle, rgba(150, 219, 196, 0.26) 0%, rgba(150, 219, 196, 0) 72%);
}

#thesisAdvisorWorldMapSection .ta-worldmap-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-order, 0) * 110ms);
}

#thesisAdvisorWorldMapSection.is-visible .ta-worldmap-reveal {
    opacity: 1;
    transform: translateY(0);
}

#thesis_advisor_list_page .ta-footer-band {
    margin: 124px 16px 0;
    display: grid;
    grid-template-columns: 3fr 2fr;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    --footer-trace-x: 50%;
    --footer-trace-y: 50%;
    box-shadow:
        0 18px 44px rgba(18, 61, 111, 0.12),
        0 4px 14px rgba(18, 61, 111, 0.08);
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

#thesis_advisor_list_page .ta-footer-band::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, rgba(74, 122, 171, 0) 0%, rgba(74, 122, 171, 0.2) 18%, rgba(74, 122, 171, 0.28) 50%, rgba(74, 122, 171, 0.2) 82%, rgba(74, 122, 171, 0) 100%);
    pointer-events: none;
}

#thesis_advisor_list_page .ta-footer-band:hover {
    transform: translateY(-3px);
    box-shadow:
        0 24px 52px rgba(18, 61, 111, 0.16),
        0 8px 20px rgba(18, 61, 111, 0.1);
    filter: saturate(1.03);
}

#thesis_advisor_list_page .ta-footer-band > * {
    position: relative;
    z-index: 1;
}

#thesis_advisor_list_page .ta-footer-band .ta-footer-trace {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    transition: opacity .18s ease;
    background: radial-gradient(260px circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.16) 24%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0) 72%);
    mix-blend-mode: screen;
}

#thesis_advisor_list_page .ta-footer-band:hover .ta-footer-trace {
    opacity: 1;
}

#thesisAdvisorWorldMapSection .ta-worldmap-section__intro {
    margin: 0 0 14px;
    text-align: left;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#thesisAdvisorWorldMapSection .ta-worldmap-section__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#thesisAdvisorWorldMapSection .ta-worldmap-section__title {
    color: #08203f;
    font-weight: 600;
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
    max-width: none;
    white-space: normal;
}

#thesisAdvisorWorldMapSection .ta-worldmap-country-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    color: #0f4d86;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#thesisAdvisorWorldMapSection .ta-worldmap-section__subtitle {
    color: #4a7aab;
    font-size: 13px;
    line-height: 1.55;
    max-width: none;
    margin: 0;
}

#thesisAdvisorWorldMapSection {
    margin: 0;
    background: linear-gradient(180deg, #b9dcf5 0%, #8ec5ee 100%);
    padding: 34px;
    min-width: 0;
    isolation: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#thesisAdvisorWorldMapSection::before,
#thesisAdvisorWorldMapSection::after {
    content: none;
}

#thesisAdvisorWorldMapSection .ta-worldmap-stage {
    position: relative;
    padding: 0;
}

#thesisAdvisorWorldMapSection .ta-worldmap-panel {
    position: relative;
    min-width: 0;
    background: transparent;
    border-radius: 8px;
    height: clamp(240px, 30vw, 360px);
    overflow: hidden;
    box-shadow: none;
}

#thesisAdvisorWorldMapSection .ta-worldmap-canvas {
    min-height: clamp(240px, 30vw, 360px);
    height: clamp(240px, 30vw, 360px);
    overflow: hidden;
    touch-action: none;
    background: transparent;
}

#thesisAdvisorWorldMapSection .ta-worldmap-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    color: #0c2d5a;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#thesisAdvisorWorldMapSection .ta-worldmap-loading.d-none {
    display: none !important;
}

#thesisAdvisorWorldMapSection .ta-worldmap-loading__spinner {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 4px solid rgba(74, 122, 171, 0.14);
    border-top-color: #5a9e6f;
    border-right-color: #7aa8d6;
    animation: taWorldMapSpin 0.9s linear infinite;
}

@keyframes taWorldMapSpin {
    to {
        transform: rotate(360deg);
    }
}

#thesisAdvisorWorldMapSection .ta-worldmap-empty {
    min-height: clamp(240px, 30vw, 360px);
    height: clamp(240px, 30vw, 360px);
    background: transparent;
    color: #0c2d5a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: 500;
}

#thesisAdvisorWorldMapSection .ta-worldmap-inline-tooltip {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    z-index: 5;
    max-width: min(320px, calc(100% - 24px));
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(12, 45, 90, 0.92);
    color: #ffffff;
    border: 1px solid rgba(100, 160, 220, 0.18);
    box-shadow: 0 10px 24px rgba(12, 45, 90, 0.18);
    backdrop-filter: blur(10px);
    pointer-events: none;
    text-align: center;
}

#thesisAdvisorWorldMapSection .ta-worldmap-inline-tooltip strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.ta-profile-update-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--profile-reveal-order, 0) * 120ms);
}

.ta-profile-update-section.is-visible .ta-profile-update-reveal {
    opacity: 1;
    transform: translateY(0);
}

.ta-profile-update-section {
    background: linear-gradient(135deg, #24558f 0%, #3f79b7 100%);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 18px 0 32px rgba(255, 255, 255, 0.03);
    transition: background-position .35s ease;
}

.ta-profile-update-card {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 0;
    position: relative;
}

.ta-profile-update-card__content {
    max-width: 400px;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ta-profile-update-card__content > * {
    position: relative;
    z-index: 1;
}

.ta-profile-update-card__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #7bb8f0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ta-profile-update-card__title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.32;
    max-width: none;
}

.ta-profile-update-card__text {
    color: #a8d0f5;
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 18px !important;
    max-width: none;
}

.ta-profile-update-card__steps {
    margin: 0 0 20px;
    display: grid;
    gap: 9px;
}

.ta-profile-update-card__step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ta-profile-update-card__step-number {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 9px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 1px;
}

.ta-profile-update-card__step-text {
    color: #a8d0f5;
    font-size: 12px;
    line-height: 1.5;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0;
}

.ta-profile-update-card__actions {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.ta-profile-update-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    height: 34px;
    padding: 0 18px;
    border-radius: 20px;
    background: #ffffff;
    color: #0a3d7a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
    position: relative;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        0 10px 24px rgba(8, 35, 72, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.ta-profile-update-card__button:hover,
.ta-profile-update-card__button:focus {
    background: #f2a24b;
    color: #08203f;
    transform: translateY(-1px);
    filter: none;
    box-shadow:
        0 16px 30px rgba(153, 88, 18, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#thesis_advisor_list_page .ta-profile-update-section .ta-cta-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: transform .38s ease, opacity .32s ease;
}

#thesis_advisor_list_page .ta-profile-update-section .circle-1 {
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
}

#thesis_advisor_list_page .ta-profile-update-section .circle-2 {
    bottom: -40px;
    left: -30px;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.05);
}

#thesis_advisor_list_page .ta-profile-update-section .circle-3 {
    top: 50%;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
}

#thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-section .circle-1 {
    transform: translate3d(-8px, 8px, 0) scale(1.04);
}

#thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-section .circle-2 {
    transform: translate3d(10px, -6px, 0) scale(1.05);
}

#thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-section .circle-3 {
    transform: translate3d(-6px, -10px, 0) scale(1.08);
    opacity: 1;
}

#thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-card__button {
    transform: translateY(-2px);
    box-shadow:
        0 16px 30px rgba(8, 35, 72, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#thesisAdvisorWorldMapSection .ta-worldmap-inline-tooltip span {
    display: block;
    font-size: 13px;
    color: #c7dcf3;
}

@media (min-width: 769px) {
    #thesisAdvisorMoreFiltersModal .modal-dialog{
        width: min(100% - 32px, 760px);
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    #thesisAdvisorMoreFiltersModal .modal-content{
        width: 100%;
        border-radius: 18px !important;
    }
}

@media (max-width: 991.98px) {
    #thesisAdvisorWorldMapSection {
        padding: 28px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-canvas,
    #thesisAdvisorWorldMapSection .ta-worldmap-empty {
        min-height: clamp(220px, 36vw, 300px);
        height: clamp(220px, 36vw, 300px);
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-panel {
        height: clamp(220px, 36vw, 300px);
    }

    .ta-profile-update-section {
        padding: 28px;
    }
}

@media (max-width: 767.98px) {
    #thesis_advisor_list_page {
        padding-top: 20px;
    }

    #thesis_advisor_list_page .ta-title-row {
        gap: 10px;
    }

    #thesis_advisor_list_page .ta-footer-band {
        grid-template-columns: 1fr;
        margin: 68px 12px 0;
    }

    #thesis_advisor_list_page .ta-footer-band::before {
        top: -18px;
        left: 12px;
        right: 12px;
    }

    #thesisAdvisorWorldMapSection {
        padding: 24px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-canvas,
    #thesisAdvisorWorldMapSection .ta-worldmap-empty {
        min-height: 190px;
        height: 190px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-panel {
        height: 190px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-loading {
        inset: 0;
        gap: 10px;
        font-size: 13px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-loading__spinner {
        width: 42px;
        height: 42px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-inline-tooltip {
        left: 50%;
        top: 10px;
        max-width: calc(100% - 24px);
        padding: 9px 12px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-inline-tooltip strong {
        font-size: 13px;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-inline-tooltip span {
        font-size: 12px;
    }

    .ta-profile-update-section {
        padding: 24px;
    }

    .ta-profile-update-card__title {
        font-size: 17px;
    }

    .ta-profile-update-card__text {
        font-size: 12px;
    }

    .ta-profile-update-card__step-text {
        font-size: 11px;
    }

    .ta-profile-update-card__button {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    #thesis_advisor_list_page .ta-footer-band,
    #thesis_advisor_list_page .ta-footer-band::after,
    #thesis_advisor_list_page .ta-profile-update-section .ta-cta-circle {
        transition: none;
    }

    #thesis_advisor_list_page .ta-footer-band:hover {
        transform: none;
        filter: none;
    }

    #thesis_advisor_list_page .ta-footer-band:hover::after {
        opacity: 0;
        transform: none;
    }

    #thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-section .circle-1,
    #thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-section .circle-2,
    #thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-section .circle-3,
    #thesis_advisor_list_page .ta-footer-band:hover .ta-profile-update-card__button {
        transform: none;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ta-profile-update-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #thesisAdvisorWorldMapSection .ta-worldmap-loading__spinner {
        animation: none;
    }
}

@media (max-width: 479.98px) {
    #thesis_advisor_list_page .ta-footer-band {
        margin-left: 0;
        margin-right: 0;
    }
}

#student_list_page .student-page-states {
    min-height: 600px;
    display: flex;
}

#student_list_page .student-rank-options {
    display: none;
}

#student_list_page .student-rank-label {
    margin-right: 8px;
}

#student_list_page .student-showcase-refresh {
    margin-left: auto;
    margin-right: 0;
    display: none;
}

#student_list_page .student-swiper-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--showcase-gap);
}

#student_list_page .student-swiper-top {
    margin-bottom: var(--showcase-gap);
}

#student_list_page .student-cover-hidden {
    display: none;
}

#student_portal_showcase_cover_wrapper,
#student_portal_browse_cover_wrapper {
    min-height: 0;
}

#student-portal-showcase-cover,
#student-portal-showcase-cover .student-swiper-stack {
    min-height: 0;
}

@media (max-width: 820px) {
    #student_portal_showcase_cover_wrapper,
    #student_portal_browse_cover_wrapper {
        min-height: 0;
    }

    #student-portal-showcase-cover,
    #student-portal-showcase-cover .student-swiper-stack {
        min-height: 0;
    }
    #student-portal-showcase-cover {
        --showcase-row: clamp(190px, 42vw, 240px);
        --showcase-gap: 6px;
    }
    #student-portal-showcase-cover.showcase-ready {
        padding: 10px 0 14px 0;
    }
    #student-portal-showcase-cover.showcase-ready.showcase-single {
        --showcase-row: clamp(170px, 40vw, 220px);
        --showcase-gap: 0px;
    }
}

#student_search_list .student-search-inner,
#student_portal_browse_cover_wrapper .container {
    margin-top: 2.6rem;
    margin-bottom: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(17, 90, 166, 0.16);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
    padding-top: clamp(1.2rem, 2vw, 1.8rem);
    padding-bottom: clamp(1.2rem, 2vw, 1.8rem);
}

@media (max-width: 480px) {
    #student_search_list .student-search-inner,
    #student_portal_browse_cover_wrapper .container {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
    #student_search_list .student-search-inner.container {
        max-width: 100%;
    }
}

#student_list_page .student-cta-cards-shell {
    display: grid;
    gap: 1rem;
    width: min(100%, 1240px);
    box-sizing: border-box;

    /* Mobile (default) */
    padding: 100px 2rem 50px; /* more horizontal breathing room */
    grid-template-columns: 1fr;
    grid-template-areas:
    "main"
    "upcoming-left"
    "upcoming-right";
}

/* Tablet and up → 3 columns */
@media (min-width: 768px) {
    #student_list_page .student-cta-cards-shell {
        padding: 100px 1rem 50px;
        grid-template-columns: 1fr 1.2fr 1fr;
        grid-template-areas: "upcoming-left main upcoming-right";
    }
}

/* Desktop (optional fine-tuning) */
@media (min-width: 1024px) {
    #student_list_page .student-cta-cards-shell {
        padding: 100px 0 50px;
    }
}
#student_list_page .student-cta-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background:
        radial-gradient(120px 120px at var(--cta-x, 20%) var(--cta-y, 0%), rgba(255, 255, 255, 0.7), transparent 60%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.09);
    padding: 1rem 1.1rem 1.1rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    animation: studentCardRise 0.45s ease-out both;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    --cta-x: 50%;
    --cta-y: 20%;
    --cta-rot-x: 0deg;
    --cta-rot-y: 0deg;
}

#student_list_page .student-cta-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(17, 90, 166, 0.12), rgba(239, 124, 0, 0.18));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

#student_list_page .student-cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(110px 110px at var(--cta-x, 20%) var(--cta-y, 0%), rgba(255, 255, 255, 0.7), transparent 65%);
    opacity: 0.65;
    mix-blend-mode: screen;
    transition: opacity 0.25s ease, transform 0.35s ease;
    z-index: 0;
}

#student_list_page .student-cta-card > * {
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
    #student_list_page .student-cta-card:hover {
        transform: translateY(-6px) rotateX(var(--cta-rot-x, 0deg)) rotateY(var(--cta-rot-y, 0deg));
        box-shadow: 0 24px 50px rgba(17, 24, 39, 0.16);
        border-color: rgba(255, 255, 255, 0.9);
    }

    #student_list_page .student-cta-card:hover::before {
        opacity: 0.7;
    }

    #student_list_page .student-cta-card:hover::after {
        opacity: 1;
        transform: translateY(-6px);
    }
}

#student_list_page .student-cta-card:focus-within {
    transform: translateY(-4px) rotateX(var(--cta-rot-x, 2deg)) rotateY(var(--cta-rot-y, 0deg));
    box-shadow: 0 20px 44px rgba(17, 24, 39, 0.14);
}

#student_list_page .student-cta-card-student {
    grid-area: main;
    border-color: transparent;
    background:
        radial-gradient(140px 140px at var(--cta-x, 50%) var(--cta-y, 10%), rgba(185, 228, 255, 0.75), transparent 60%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.65), rgba(17, 90, 166, 0.12));
    box-shadow: 0 20px 46px rgba(17, 90, 166, 0.18);
}

#student_list_page .student-cta-card-student::before {
    content: none;
}

#student_list_page .student-cta-card-student:hover::before,
#student_list_page .student-cta-card-student:focus-within::before {
    opacity: 1;
}

#student_list_page .student-cta-card-student .student-profile-cta-btn {
    margin-top: auto;
}

#student_list_page .student-cta-card-upcoming {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.45);
    background:
        radial-gradient(120px 120px at var(--cta-x, 20%) var(--cta-y, 0%), rgba(255, 255, 255, 0.55), transparent 60%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.36), rgba(17, 90, 166, 0.08));
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
    filter: saturate(0.92);
}

@keyframes studentBandFlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#student_list_page .student-cta-card:nth-child(2) {
    animation-delay: 0.06s;
}

#student_list_page .student-cta-card:nth-child(3) {
    animation-delay: 0.12s;
}

#student_list_page .student-cta-card-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #013d7c;
    letter-spacing: -0.01em;
}

#student_list_page .student-cta-card-copy {
    margin: 0;
    color: rgba(28, 39, 55, 0.82);
    line-height: 1.55;
    font-size: 0.93rem;
}

#student_list_page .student-cta-soon {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(17, 90, 166, 0.12);
    border: 1px solid rgba(17, 90, 166, 0.2);
    color: #115aa6;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    #student_list_page .student-cta-card,
    #student_list_page .student-cta-card::before,
    #student_list_page .student-cta-card::after {
        transition: none;
        animation: none;
    }
}

@keyframes studentCardRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thesis advisor grid hard overrides (placed last to beat generic/mobile rules) */
@media (max-width: 480px) {
    #thesis_advisor_list_page #thesis_advisor_hits.ta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    #thesis_advisor_list_page #thesis_advisor_hits #custom-card-image-wrapper {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
    }

    #thesis_advisor_list_page #thesis_advisor_hits #custom-card-image-wrapper img,
    #thesis_advisor_list_page #thesis_advisor_hits #custom-card-image-wrapper .skeleton {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
    }

    #thesis_advisor_list_page #thesis_advisor_hits .custom-card-body {
        padding: 12px !important;
        gap: 6px !important;
    }

    #thesis_advisor_list_page #thesis_advisor_hits #custom-card-body-top .custom-card-title:first-child {
        font-size: 14px !important;
        line-height: 1.3;
    }

    #thesis_advisor_list_page #thesis_advisor_hits #custom-card-body-top .custom-card-title + .custom-card-title {
        font-size: 12px !important;
        line-height: 1.3;
    }

    #thesis_advisor_list_page #thesis_advisor_hits .custom-card-subtitle,
    #thesis_advisor_list_page #thesis_advisor_hits .custom-tag,
    #thesis_advisor_list_page #thesis_advisor_hits #custom-card-body-top span {
        font-size: 11px !important;
    }

    #thesis_advisor_list_page #thesis_advisor_hits .ta-accepting-badge {
        width: min(100%, 180px);
        padding: 6px 8px;
        font-size: clamp(8.5px, 2.5vw, 10px);
    }
}

@media (max-width: 359px) {
    #thesis_advisor_list_page #thesis_advisor_hits.ta-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}
