:root {
    --ranking-list-uniranks-color: #003366;
    --ranking-list-uniranks-dark-color: #707070;
    --ranking-list-uniranks-link-color: #00AEEF;
    --ranking-list-uniranks-border-color: #CBCBCB;
    --ranking-list-uniranks-card-bg: #F8FAFA;
    --ranking-list-uniranks-card-seo-dna-item: #FCFCF4;
    --ranking-list-uniranks-card-seo-dna-item-active: #F8F9FA;



}

.uniranks-seo-ranking-row {
    margin: 18px 0;
    color: var(--ranking-list-uniranks-color);
    font-family: inherit;
}

.seo-row-table-header {
    display: grid;
    grid-template-columns: 465px 1fr 200px;
    border: 1px solid var(--ranking-list-uniranks-border-color);
    border-radius: 0 0 0 0;
    background: var(--ranking-list-uniranks-card-bg);
    color: var(--ranking-list-uniranks-color);
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    overflow: hidden;
}

.seo-row-table-header > div {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1;
}

.seo-head-dna,
.seo-head-highlights {
    text-align: start;
}

.seo-head-highlights{
    padding: 12px 26px !important;
}

.seo-row-card {
    display: grid;
    grid-template-columns: 125px 340px 1fr;
    grid-template-areas:
                    "rank uni dna highlights"
                    "description description description description";
    border: 1px solid var(--ranking-list-uniranks-border-color);
    border-radius: 8px 8px 8px 8px;
    background: var(--ranking-list-uniranks-card-bg);
    overflow: hidden;
}

.seo-rank-area {
    grid-area: rank;
    padding: 18px 14px;
    text-align: center;
    padding-bottom: 1px !important;
    background: var(--ranking-list-uniranks-card-bg);
}

.seo-rank-number {
    font-size: 26px;
    font-weight: 700;
}

.seo-score-number {
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
}

.seo-score-label {
    font-size: 15px;
    margin-top: 0;
    font-weight: 600;
}

.seo-elite-badge {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.seo-elite-badge img {
    display: block;
    width: 112px;
    max-width: 100%;
    height: auto;
}

.seo-university-area {
    grid-area: uni;
    padding: 18px 10px;
    background: #fff;
    padding-bottom: 1px !important;
}

.seo-uni-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.seo-uni-logo {
    min-width: 80px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
}

.seo-uni-name {
    display: inline-block;
    color: var(--ranking-list-uniranks-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    margin-top: 12px;
}

.seo-uni-name:hover {
    /*text-decoration: underline;*/
}

.seo-country {
    margin-top: 7px;
    display: flex;
    gap: 8px;
    color: var(--ranking-list-uniranks-dark-color);
    font-size: 14px;
    font-weight: 600;
}

.seo-status-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 85px;
    font-size: 16px;
    font-weight: 600;
}
.seo-status-line .seo-status-line-sub-status { font-size: 14px; color: var(--ranking-list-uniranks-dark-color);}

.seo-recognized {
    color: #2d7f33;
    font-size: 15px;
}

.seo-dna-area {
    grid-area: dna;
    position: relative;
    padding: 0;
    background: #fbfbf7;
    overflow: hidden;
}

.seo-dna-slider {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.seo-dna-slider.is-dragging {
    cursor: grabbing;
}

.seo-dna-slider.is-dragging .seo-dna-track {
    transition: none;
}

.seo-dna-track {
    display: flex;
    transition: transform .28s ease;
    will-change: transform;
}

[dir="rtl"] .seo-dna-track,
.uniranks-seo-ranking-row[data-page-direction="rtl"] .seo-dna-track {
    direction: rtl;
}

.seo-dna-item {
    flex: 0 0 40%;
    max-width: 40%;
    border: 0;
    background: var(--ranking-list-uniranks-card-seo-dna-item);
    padding: 0 14px 10px;
    color: var(--ranking-list-uniranks-color);
    text-align: center;
    cursor: pointer;
    min-height: 150px;
}

button.seo-dna-item.is-active {
    background: var(--ranking-list-uniranks-card-seo-dna-item-active);
}

.seo-dna-rank-text {
    display: block;
    margin-top: 16px;
    color: var(--ranking-list-uniranks-dark-color);
    font-size: 15px;
    font-weight: 700;
    min-height: 24px;
}

.seo-dna-title {
    display: block;
    min-height: 56px;
    font-size: 18px;
    line-height: 1.25;
}

.seo-dna-score {
    display: block;
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
}

.seo-score-bar,
.seo-mini-bar {
    display: block;
    width: 100%;
    height: 4px;
    background: #b9c4cc;
    border-radius: 20px;
    overflow: hidden;
}

.seo-score-bar span,
.seo-mini-bar span {
    display: block;
    height: 100%;
    background: #003366;
    border-radius: 20px;
}

.seo-dna-arrow {
    position: absolute;
    top: 0;
    z-index: 2;
    width: 56px;
    height: 100%;
    border: 0;
    background: rgb(177 172 172 / 0.11);
    color: var(--ranking-list-uniranks-color);
    font-size: 56px;
    line-height: 1;
    cursor: pointer;
}

/* Slider arrows:
 * At slider start: hide previous arrow.
 * At slider end: hide next arrow.
 * Items stay in the DOM for SEO; only the arrow is visually disabled.
 */
.seo-dna-arrow.is-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.seo-dna-prev {
    inset-inline-start: 0;
}

.seo-dna-next {
    inset-inline-end: 0;
}

.seo-dna-subitems-wrapper {
    position: relative;
    min-height: 66px;
    margin-top: 6px;
    background-color: var(--ranking-list-uniranks-card-seo-dna-item-active);
}

.seo-dna-subitems {
    display: flex;
    gap: 0;
    width: 100%;
}

/*
 * Important for SEO:
 * Inactive sub-items are NOT display:none and NOT removed.
 * They remain in DOM and Inspect.
 */
.seo-dna-subitems:not(.is-active) {
    position: absolute;
    inset-inline-start: -99999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.seo-dna-subitem {
    flex: 1;
    padding: 0 18px;
    border-inline-end: 2px solid var(--ranking-list-uniranks-border-color);
    font-size: 17px;
    color: var(--ranking-list-uniranks-color);
}

.seo-dna-subitem:last-child {
    border-inline-end: 0;
}

.seo-dna-subitem strong {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
}

.seo-mini-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.seo-mini-bar {
    width: 120px;
}

.seo-highlights-area {
    grid-area: highlights;
    padding: 18px 24px;
    background: var(--ranking-list-uniranks-card-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 1px !important;
}

.seo-highlight-item {
    /*margin-bottom: 24px;*/
}

.seo-highlight-item:last-child {
    margin-bottom: 0;
}

.seo-highlight-item strong {
    display: block;
    font-size: 16px;
    color: var(--ranking-list-uniranks-color);
    margin-bottom: 4px;
}

.seo-highlight-item span {
    color: var(--ranking-list-uniranks-dark-color);
    font-size: 18px;
    font-weight: 700;
}

.seo-description-area {
    grid-area: description;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 24px 18px;
    color: var(--ranking-list-uniranks-color);
    background: var(--ranking-list-uniranks-card-bg);
    font-size: 14px;
    font-weight: normal;
    line-height: 1.55;
}

.seo-description {
    margin: 0;
    max-height: 42px;
    overflow: hidden;
}

.seo-description-area.is-open .seo-description {
    max-height: none;
    overflow: visible;
}

.seo-read-toggle {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--ranking-list-uniranks-link-color);
    text-decoration: underline;
    font-weight: 600;
    padding: 0;
    margin-top: auto;
}

.seo-read-less {
    display: none;
}

.seo-description-area.is-open .seo-read-more {
    display: none;
}

.seo-description-area.is-open .seo-read-less {
    display: inline;
}

.seo-elite-status-svg {
    display: block;
    min-width: 97px;
    height: 38px;
    margin: 20px auto 0;
    background-image: url('../img/website-elite-status-blue.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@media (max-width: 1199.98px) {
    .seo-row-table-header {
        grid-template-columns: 360px 1fr 140px;
    }

    .seo-row-card {
        grid-template-columns: 100px 260px 1fr;
    }

    .seo-row-table-header > div {
        padding: 12px 10px !important;
        font-size: 13px;
    }

    .seo-highlights-area {
        padding: 18px 12px;
    }

    .seo-highlight-item strong {
        font-size: 14px;
    }

    .seo-status-line {margin-top: 95px;}
    .seo-highlight-item span {font-size: 16px;}
    .seo-rank-area {padding: 18px 10px;}
    .seo-rank-number {font-size: 20px;}
    .seo-score-number {font-size: 28px;font-weight: 600;}
    .seo-score-label {font-size: 12px;font-weight: 600;}
    .seo-uni-logo {min-width: 50px;width: 60px;height: 60px;}
    .seo-dna-rank-text {margin-top: 12px;font-size: 12px;min-height: 24px;}
    .seo-uni-name {font-size: 16px;}
    .seo-country {margin-top: 6px;gap: 6px;font-size: 12px;}
    .seo-recognized {font-size: 14px;}
    .seo-view-profile {font-weight: 600;font-size: 14px;}
    .seo-dna-item {padding-inline: 8px;}
    .seo-dna-title {font-size: 14px;}
    .seo-dna-subitem { min-height: 68px; }
    .seo-dna-subitem strong {font-size: 13px;}
    .seo-dna-score {font-size: 20px;font-weight: 600;}
    .seo-mini-score {font-size: 16px;font-weight: 600;}
    .seo-dna-arrow {width: 46px;font-size: 38px;}
    .seo-dna-subitems-wrapper {min-height: 56px;margin-top: 0;}
    .seo-dna-subitem strong {font-size: 14px;}
    .seo-description {max-height: 44px;}
    .seo-elite-status-svg {min-width: 80px;}
}

@media (max-width: 991.98px) {
    .seo-row-table-header,
    .uniranks-seo-ranking-row {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .seo-row-table-header {display: none;}
}

.dark-theme .seo-elite-status-svg,
.dark .seo-elite-status-svg,
[data-bs-theme="dark"] .seo-elite-status-svg,
.dark-mode .seo-elite-status-svg {
    background-image: url('../img/website-elite-status-white.svg');
}
