
html {
    scroll-behavior: smooth;
}

:root {
    --blue: #203C86;
    --success-cream:#F7F5CB;
    --success-bg: #F5F4EE;
    --green: #25D366;
    --orange: #fc9542;
    --blue-28:#203b863a;
    --blue-50:#203b867a;
    --red:#d9534f;
}

span {
    color: var(--success-cream);
}
.search-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 1000;
    margin: 20px auto !important;
    background: var(--blue-50);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 25px;
    max-width: 800px;
    border: 1px solid var(--blue);
    box-shadow: 0 2px 10px var(--blue) !important;
}

.results-container {
    position: relative;
    margin-top: 40px !important;
    z-index: 1;
}

.search-wrapper:hover {
    box-shadow: 0 10px 25px var(--blue) !important;
}

#searchNav {
    background: var(--success-cream);
    border: 1px solid var(--blue);
    display: flex;
    align-items: center;
    border-radius: 30px;
    padding: 5px 15px;
    margin: 15px;
}

#matchIndex {
    font-weight: bold;
    color: var(--blue);
    font-size: 0.9rem;
    margin: 0 10px;
}

.nav-btn {
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#prevMatch,
#nextMatch {
    background: var(--blue);
    color: var(--success-cream);
    padding: 2px 6px;
    transition: color 0.2s;
}

#prevMatch:hover,
#nextMatch:hover {
    color: var(--blue) ;
    background: transparent;
}

.sticky-search {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: var(--success-bg);
    border-radius: 50px;
    box-shadow: 0 10px 30px var(--blue);
    border: 1px solid var(--blue);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 5px !important;
}

.sticky-search:focus-within {
    box-shadow: 0 10px 30px var(--blue);
    transform: scale(1.02);
}

.input-group {
    display: flex;
    align-items: center;
    direction: rtl;
}

.sticky-search .input-group {
    align-items: center;
    width: 100%;
}

#uniSearch {
    border: none !important;
    background: transparent;
    font-size: 1rem;
    border-radius: 20px;
    margin: 10px;
    padding: 10px;
    color: var(--success-cream) !important;
}

#uniSearch::placeholder {
    color: #f5eeee77 !important;
}

.fa-search,
.fa-times-circle {
    font-size: 1rem;
    color: var(--success-cream) !important;
}

.sticky-search .input-group-append {
    display: flex;
    align-items: center;
}


.sticky-search .btn {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    border-right: 6px solid var(--green) !important;
    background: var(--blue) !important;
    border-radius: 12px;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.university-card:target {
    border-right-color: var(--blue) !important;
    box-shadow: 0 0 20px var(--blue);
    animation: highlight-pulse 2s ease-in-out;
    border-right-width: 12px;
}

.target-highlight {
    border-right: 10px solid var(--blue) !important;
    background-color: var(--green)!important;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px var(--blue-50) !important; 
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 5;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 50px;
}

.badge-success-light {
    background: var(--success-bg); 
    color: var(--green); 
}

.badge-warning-light {
    background: var(--success-bg); 
    color: var(--orange); 
}

.btn-visit {
    border-radius: 8px;
    padding: 10px 25px;
    transition: 0.3s;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background-color: var(--green) !important;
    color: var(--success-cream);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    transform: translateY(-5px);
    background-color: var(--green) !important;
    box-shadow: 0 5px 15px var(--blue);
}
