@font-face {
    font-family: ClarendonBTW05-Black;
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Black.eot?#iefix);
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Black.eot?#iefix) format("eot"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Black.woff2) format("woff2"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Black.woff) format("woff"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Black.ttf) format("truetype")
}

@font-face {
    font-family: ClarendonBTW05-BoldCond;
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-BoldCond.eot?#iefix);
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-BoldCond.eot?#iefix) format("eot"), url(../../fonts/clarendonbtw05/ClarendonBTW05-BoldCond.woff2) format("woff2"), url(../../fonts/clarendonbtw05/ClarendonBTW05-BoldCond.woff) format("woff"), url(../../fonts/clarendonbtw05/ClarendonBTW05-BoldCond.ttf) format("truetype")
}

@font-face {
    font-family: ClarendonBTW05-Condensed;
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Condensed.eot?#iefix);
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Condensed.eot?#iefix) format("eot"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Condensed.woff2) format("woff2"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Condensed.woff) format("woff"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Condensed.ttf) format("truetype")
}

@font-face {
    font-family: ClarendonBTW05-Heavy;
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Heavy.eot?#iefix);
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Heavy.eot?#iefix) format("eot"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Heavy.woff2) format("woff2"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Heavy.woff) format("woff"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Heavy.ttf) format("truetype")
}

@font-face {
    font-family: ClarendonBT-Bold;
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Bold.eot?#iefix);
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Bold.eot?#iefix) format("eot"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Bold.woff2) format("woff2"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Bold.woff) format("woff"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Bold.ttf) format("truetype")
}

@font-face {
    font-family: ClarendonBTW05-Light;
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Light.eot?#iefix);
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Light.eot?#iefix) format("eot"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Light.woff2) format("woff2"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Light.woff) format("woff"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Light.ttf) format("truetype")
}

@font-face {
    font-family: ClarendonBTW05-Roman;
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Roman.eot?#iefix);
    src: url(../../fonts/clarendonbtw05/ClarendonBTW05-Roman.eot?#iefix) format("eot"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Roman.woff2) format("woff2"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Roman.woff) format("woff"), url(../../fonts/clarendonbtw05/ClarendonBTW05-Roman.ttf) format("truetype")
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 300;
    src: url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300.eot);
    src: local("Montserrat Light"), local("Montserrat-Light"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300.eot?#iefix) format("embedded-opentype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300.woff2) format("woff2"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300.woff) format("woff"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300.ttf) format("truetype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300.svg#Montserrat) format("svg")
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    src: url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-regular.eot);
    src: local("Montserrat Regular"), local("Montserrat-Regular"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-regular.eot?#iefix) format("embedded-opentype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-regular.woff2) format("woff2"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-regular.woff) format("woff"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-regular.ttf) format("truetype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-regular.svg#Montserrat) format("svg")
}

@font-face {
    font-family: Montserrat;
    font-style: italic;
    font-weight: 300;
    src: url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300italic.eot);
    src: local("Montserrat Light Italic"), local("Montserrat-LightItalic"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300italic.eot?#iefix) format("embedded-opentype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300italic.woff2) format("woff2"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300italic.woff) format("woff"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300italic.ttf) format("truetype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-300italic.svg#Montserrat) format("svg")
}

@font-face {
    font-family: Montserrat;
    font-style: italic;
    font-weight: 400;
    src: url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-italic.eot);
    src: local("Montserrat Italic"), local("Montserrat-Italic"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-italic.eot?#iefix) format("embedded-opentype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-italic.woff2) format("woff2"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-italic.woff) format("woff"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-italic.ttf) format("truetype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-italic.svg#Montserrat) format("svg")
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 700;
    src: url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700.eot);
    src: local("Montserrat Bold"), local("Montserrat-Bold"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700.eot?#iefix) format("embedded-opentype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700.woff2) format("woff2"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700.woff) format("woff"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700.ttf) format("truetype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700.svg#Montserrat) format("svg")
}

@font-face {
    font-family: Montserrat;
    font-style: italic;
    font-weight: 700;
    src: url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700italic.eot);
    src: local("Montserrat Bold Italic"), local("Montserrat-BoldItalic"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700italic.eot?#iefix) format("embedded-opentype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700italic.woff2) format("woff2"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700italic.woff) format("woff"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700italic.ttf) format("truetype"), url(../../fonts/montserrat/montserrat-v13-vietnamese_latin_cyrillic_latin-ext_cyrillic-ext-700italic.svg#Montserrat) format("svg")
}

:root {
    --primary-color: #000;
    --accent-color: #008da6; /* Teal color */
    --bg-color: #fff;
    --footer-bg-top: #333333;
    --footer-bg-bottom: #000000;
    --text-gray: #666;
    --border-color: #eee;
    --font-serif: ClarendonBT-Bold;
    --font-sans: Montserrat;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
}
.logo img {
    height: 40px;
}

body {
    font-family: var(--font-sans);
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; }

/* --- HEADER --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 32px;
    line-height: 1;
    padding-right: 15px;
    border-right: 1px solid var(--primary-color);
}

.logo span {
    display: block;
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: normal;
    margin-top: -2px;
    text-align: center;
}

.site-title {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}
.nav-item.active {
    color: var(--accent-color);
}

.nav-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* --- MAIN CONTENT --- */
main {
    flex: 1; /* Pushes footer to bottom */
    padding-bottom: 60px;
}

h1, h2 {
    font-family: var(--font-serif);
    font-weight: 800;
    margin: 25px 0 15px 0;
}
h1 { font-size: 36px; }
h2 { font-size: 24px; }

/* Search Section */
.search-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 20px;
}

.toggle-group {
    display: flex;
    border: 1px solid #000;
}

.toggle-btn {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    background: #fff;
    color: #000;
}

.toggle-btn.active { background: #000; color: #fff; }

.search-info {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.3;
}

.search-bar {
    flex-grow: 1;
    max-width: 300px;
    position: relative;
    margin-left: auto;
}

.search-input {
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: 1px solid var(--primary-color);
    font-size: 14px;
    outline: none;
}

.search-input:focus, button:focus, a:focus, .select2-container--focus {
  outline: none !important;
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px #0089a6dd !important;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.search-icon-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/* Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-tag {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag span { font-weight: 800; color: #005f70; }
.close-tag { cursor: pointer; font-size: 16px; line-height: 1; }

.remove-all {
    margin-left: auto;
    color: #d9534f;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.dropdown {
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    min-width: 150px;
    font-size: 13px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    cursor: pointer;
}

.dropdown.active-dd { color: var(--accent-color); border-color: var(--accent-color); font-weight: bold; }
.hide-filters { margin-left: auto; color: var(--accent-color); font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Results Table */
.results-count { font-family: var(--font-sans); font-size: 13px; color: #999; font-weight: normal; }

.results-table { width: 100%; border-collapse: collapse; margin-top: 10px; }

.table-header {
    display: grid;
    grid-template-columns: 100px 2fr 1.5fr 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
}

.result-row {
    display: grid;
    grid-template-columns: 100px 2fr 1.5fr 1fr;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.row-actions { display: flex; gap: 15px; padding-left: 10px; }
.action-icon { width: 20px; height: 20px; stroke: var(--accent-color); fill: none; cursor: pointer; }

.stars { display: flex; align-items: center; gap: 5px; }
.star-icon { width: 14px; height: 14px; fill: #000; }
.star-icon.empty { fill: none; stroke: #000; stroke-width: 1; }
.score { margin-left: 8px; font-weight: bold; }

/* --- FOOTER --- */
footer {
    margin-top: auto;
    width: 100%;
}

.footer-top {
    background-color: var(--footer-bg-top);
    color: #fff;
    padding: 40px 0 0 0;
}

.footer-content.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 35px;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-left a {
    text-decoration: underline;
    color: #fff;
}

.wu-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-right {
    text-align: right;
}

.accredited-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ccc;
    font-weight: 600;
}

.accreditation-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
}

.logo-svg {
    height: 40px;
    fill: #fff;
}

.footer-bottom {
    background-color: var(--footer-bg-bottom);
    color: #fff;
    padding: 20px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-transform: uppercase;
}

/* --- TOAST --- */
.toast {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers over the border line */
    background-color: #eee;
    padding: 15px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;

    /* Animation Properties */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    /*transform: translateY(0);*/
}
/* Hides the toast by sliding it down and fading out */
.toast.hidden {
    opacity: 0;
    
    pointer-events: none; /* Prevent clicks while hidden */
}
.toast-eye { width: 20px; height: 20px; }

/* Left side: Icon + Text */
.toast-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-icon-eye {
    stroke: #000;
    height: 20px;
    width: 20px;
    flex-shrink: 0;
    min-width: 20px;
}

/* Right side: Buttons */
.toast-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Space between Remove All and Compare */
}

/* Remove All Button */
.btn-remove-all {
    background: none;
    border: none;
    color: #d32f2f; /* Red color */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0;
}

.btn-remove-all:hover {
    color: #b71c1c;
}

/* Compare Button */
.btn-compare-action {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.btn-compare-action:hover {
    background-color: #333333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content { flex-direction: column; align-items: flex-start; gap: 15px; }
    .nav-links { width: 100%; justify-content: space-between; }
    
    .search-container { flex-direction: column; align-items: flex-start; }
    .search-bar { width: 100%; max-width: 100%; margin-left: 0; }
    
    .table-header, .result-row { grid-template-columns: 80px 1fr 1fr; }
    .table-header > div:last-child, .result-row > div:last-child { display: none; }
    
    /* Footer Stack */
    .footer-content { flex-direction: column; gap: 30px; }
    .footer-right { text-align: left; }
    .accreditation-logos { justify-content: flex-start; }
    
    .footer-bottom-content { flex-direction: column; gap: 10px; align-items: flex-start; }
    
    /* Move toast up slightly on mobile so it doesn't cover content */
    .toast { width: 90%; text-align: center; justify-content: center; bottom: 10px; transform: translate(-50%, 0); }
}


* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Added padding for side arrows */
    position: relative;
}

/* --- REPORT VIEW STYLES --- */

/* Breadcrumb */
.breadcrumb {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.breadcrumb svg { width: 10px; height: 10px; stroke-width: 3; }

/* Title & Header Actions */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.report-header h1 {
    font-size: 42px;
    margin: 0;
    line-height: 1.1;
}

.header-actions {
    display: flex;
    gap: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
}

.icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-color);
}

.icon-circle.filled { background-color: var(--accent-color); color: #fff; }
.icon-circle svg { width: 16px; height: 16px; }

/* Hero Image */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
    /* Simulate the image look */
    background-color: #ddd;
    min-height: 400px;
    object-fit: cover;
}

/* Side Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--accent-color);
}
.nav-arrow.left { left: 0; }
.nav-arrow.right { right: 0; }
.nav-arrow svg { width: 100%; height: 100%; stroke-width: 3; }

/* Content Layout */
.report-section {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 text, 1/3 score sidebar */
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}
.report-section.single-university {
    grid-template-columns: 1fr; 
    gap: 0px;
    margin-bottom: 20px;
}
.report-section.single-university .section-score {
    text-align: left;
    width: fit-content;
}
.report-section.single-university .big-score {
    align-self: center;
}

.section-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content p, .section-content ul {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.section-content ul {
    list-style: none;
    padding-left: 0;
}

.section-content ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.section-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

/* Scores */
.section-score {
    text-align: center;
    padding-top: 10px;
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 5px;
    color: var(--accent-color);
}
.stars svg {
    width: 20px;
    height: 20px; 
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2; 
}
.stars svg.empty { 
    fill: none; 
    stroke: currentColor; 
    stroke-width: 2; 
}

.big-score {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 28px;
}

/* Time Spent Widget */
.time-spent-container {
    text-align: center;
    margin: 40px 0;
    font-family: var(--font-sans);
}

.compare-grid .time-spent-container {
    margin: 0px;
}

.time-label {
    font-size: 16px;
    color: #333;
    line-height: 1.2;
}

.time-value {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
    margin-top: 5px;
}

/* Cost of Living Widget */
.cost-widget {
    background-color: #f7f7f7;
    padding: 30px;
    margin: 30px 0;
    display: flex;
    gap: 40px;
}

.cost-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cost-header {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.main-price {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.sub-costs {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.sub-cost-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cost-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #fff;
}
.cost-icon.outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.cost-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }

.sub-label { font-size: 11px; color: #666; margin-bottom: 2px; }
.sub-price { font-weight: 800; font-size: 13px; }

/* Testimonial */
.testimonial-text {
    font-style: italic;
    color: #555;
}

/* Footer (Simplified from previous) */
footer { 
    background-color: var(--footer-bg-top); 
    color: #fff;
    margin-top: 60px; 
}

.wu-btn { background: #000; color: #fff; padding: 10px 20px; font-weight: 800; font-size: 12px; }
.accreditation-logos { display: flex; gap: 15px; margin-top: 10px; }
.logo-svg { height: 30px; fill: #fff; }
.footer-bottom { background-color: var(--footer-bg-bottom); padding: 15px 0; font-size: 11px; }



/* --- COMPARISON VIEW SPECIFIC STYLES --- */

/* Main Grid Layout */
.compare-grid {
    display: grid;
    /* 4 Columns: 3 Universities + 1 Add Button */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 80px;
}

/* General Cell Styling */
.grid-cell {
    position: relative;
    min-width: 0; /* Prevents overflow issues in grid */
}

/* 1. Remove Links Row */
.remove-link {
    color: #d9534f;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.remove-link svg { stroke-width: 2; width: 12px; height: 12px; }


/* 1. Container Styles */
.img-wrapper {
    position: relative;
    width: 100%;
    /* Matches your ResizeToFill(250, 188) setting */
    height: 188px; 
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 4px; /* Optional: adds nice rounded corners */
}

/* 2. Image Styles (Default / Single Image) */
.compare-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    opacity: 1;
}

/* 3. Slider Mode (Activated by JS) */
/* When JS adds 'active-slider' to the wrapper, images stack absolutely */
.img-wrapper.active-slider .compare-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.img-wrapper.active-slider .compare-img.active {
    opacity: 1;
    z-index: 2;
}

/* 4. Navigation Arrows */
.cmp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.2s;
    user-select: none;
}

.cmp-nav:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cmp-prev { left: 10px; }
.cmp-next { right: 10px; }

/* 5. Optional Badge (1/4) */
.cmp-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    z-index: 10;
    pointer-events: none;
}

/* 3. Add Item Column (Spans Rows) */
.add-item-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px; /* Align roughly with images */
    text-align: center;
    height: 100%;
}

.add-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 10px;
    cursor: pointer;
}
.add-text {
    font-size: 12px;
    text-decoration: underline;
    line-height: 1.3;
    color: #333;
}

/* 4. Header Info Row */
.uni-header {
    margin-bottom: 0px;
    padding-right: 10px;
}

.uni-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0px;
}

.uni-name {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}
.uni-name a {
    font-family: var(--font-serif);
    text-decoration: underline;
}
.heart-icon {
    width: 20px;
    height: 20px;
    stroke: var(--accent-color);
    fill: none;
    cursor: pointer;
    flex-shrink: 0;
}

.uni-details {
    list-style: none;
    padding: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}
.uni-details li { position: relative; padding-left: 10px; }
.uni-details li::before { content: "•"; position: absolute; left: 0; color: #999; }

/* 5. Score Row */
.avg-score-block { margin-bottom: 30px; }
.score-label-small { 
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
    text-align: center;
}
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center; 
    /* Or left align depending on preference, centered looks like image */
}
.score-num-large {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 24px;
    margin-top: 5px;
}

/* 6. Section Headers (Accordion style) */
.comp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 0;
    border-top: 1px solid transparent; /* Keeps spacing consistent */
    cursor: pointer;
    margin-top: 10px;
}
.comp-section-header:hover { opacity: 0.8; }
.header-left { display: flex; align-items: center; gap: 5px; }

.chevron-down { 
    width: 16px; 
    height: 16px;
    stroke: #333; 
}
.point-up {
    transform: rotate(180deg);
}

/* Hide the content */
.comp-section-content.preview {
    max-height:120px;
    overflow: hidden;
    
    /* The Magic: */
    -webkit-mask-image: linear-gradient(to bottom, black 60px, transparent 120px);
    mask-image: linear-gradient(to bottom, black 60px, transparent 120px);
}

/* 7. Section Content */
.comp-section-content {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 30px;
}
.comp-section-content p { margin-bottom: 10px; }

/* Stars in content */
.center-stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}
.center-stars .big-score { font-size: 20px; }

/* Time Spent Graphic */
.time-spent-small {
    text-align: center;
    margin: 20px 0;
}
.time-text { font-size: 12px; line-height: 1.2; color: #555; }
.time-number {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
}

/* Cost Widget Small (Grid Version) */
.cost-grid-view {
    background: #f4f4f4;
    padding: 15px;
    text-align: center;
}
.cost-title { font-size: 10px; font-weight: 700; margin-bottom: 5px; }
.cost-main {
    font-family: var(--font-serif);
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cost-circles {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}
.cost-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%;
}
.circle-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 5px;
}
.circle-icon svg { width: 16px; height: 16px; }
.bg-teal { background-color: var(--accent-color); }
.bg-white-border { background-color: #fff; border: 1px solid #ccc; color: var(--accent-color); }

.cost-sub-label { font-size: 9px; color: #666; margin-bottom: 2px; }
.cost-sub-price { font-size: 11px; font-weight: 800; }

.other-costs { margin-top: 20px; }

@media (min-width:1200px) {
    .table-wrapper {
        width: 1200px;
    }
    .compare-grid {
        width: 1200px;
    }
}
/* Responsive Grid */
@media (max-width: 992px) {
    .compare-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    }
    /* Hide the "Add Item" on smaller screens or make it a full row */
    .add-item-col { grid-column: span 2; padding-top: 20px; }
}

@media (max-width: 600px) {
    .compare-grid {
        display: flex;
        flex-direction: column; /* Stack vertically on mobile */
        gap: 20px;
    }
    .grid-cell { margin-bottom: 0; }
    
    /* On mobile, we lose the "Row alignment" benefit, 
       so grouping by University would be better, but 
       this CSS handles the visual stacking okay. */
}


body { font-family: var(--font-sans); color: #000; }
a { text-decoration: none; color: inherit; }

/* --- GRID LAYOUT --- */
.compare-grid {
    display: grid;
    /* 3 Columns: Uni 1, Uni 2, Add Button */
    grid-template-columns: repeat(var(--col-count,4), 250px); 
    row-gap: 10px;
    column-gap: 20px;
    margin-top: 30px;
    margin-bottom: 80px;
}

.grid-cell { position: relative; min-width: 0; }

/* --- REUSABLE COMPONENTS --- */

/* Headers */
.uni-name-row { display: flex; justify-content: space-between; align-items: flex-start; }
.uni-name { font-family: var(--font-serif); font-weight: 800; font-size: 20px; line-height: 1.1; margin-bottom: 5px; }
.uni-loc { font-size: 13px; color: #777; margin-bottom: 15px; }
.heart-btn { color: var(--accent-color); cursor: pointer; }

/* Report Count Text */
.report-count-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}
.report-count-highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* Scores & Stars */
.score-block { text-align: center; margin-bottom: 30px; }
.score-label { font-size: 12px; font-weight: 700; margin-bottom: 5px; }

.big-score { 
    font-family: var(--font-serif); 
    font-size: 26px; 
    font-weight: 800;
    margin-top: -3px;
}

/* Accordion Headers */
.comp-header {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid transparent; 
    padding: 10px 0; margin-top: 10px;
    font-weight: 800; font-size: 13px; cursor: pointer;
}
.chevron { width: 16px; height: 16px; stroke: var(--accent-color); stroke-width: 2; }

/* --- COST WIDGET (Grey Box) --- */
.cost-widget {
    background-color: #f4f4f4;
    padding: 20px 10px;
    text-align: center;
}
.cost-header-sm { font-size: 10px; font-weight: 700; margin-bottom: 5px; }
.cost-main { font-family: var(--font-serif); font-size: 22px; color: var(--accent-color); font-weight: 800; margin-bottom: 15px; }
.cost-circles { display: flex; justify-content: center; gap: 15px; }
.cost-circle-item { width: 80px; display: flex; flex-direction: column; align-items: center; }
.circle-icon {
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 5px;
}
.bg-teal { background-color: var(--accent-color); color: #fff; }
.circle-label { font-size: 9px; color: #555; margin-bottom: 2px; }
.circle-val { font-size: 11px; font-weight: 800; }

/* --- BAR CHART --- */
.chart-container {
    padding-top: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #000; /* Baseline */
    position: relative;
}
.chart-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px; /* Max height of bars */
    padding: 0 10px;
}
.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 40px;
    height: 100%;
    position: relative;
}
.bar {
    width: 100%;
    background-color: var(--accent-color);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding-bottom: 5px;
}
.bar-value-top {
    position: absolute;
    top: -20px; /* Floats above bar */
    font-size: 11px;
    font-weight: 700;
    color: #000;
}
/* Specific logic for positioning values based on bar height */
.chart-col .bar-value-top { top: auto; bottom: 100%; margin-bottom: 5px; }

.bar-label {
    position: absolute;
    bottom: -40px; /* Below the border line */
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background-color: var(--accent-color);
    width: 100%;
    text-align: center;
    padding: 5px 0;
}
.no-data {
    font-size: 11px;
    color: #000;
    text-align: center;
    line-height: 1.2;
    padding-bottom: 20px; /* Align with bars roughly */
}
.chart-caption {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-top: 45px; /* Clear the bottom labels */
}

/* --- OTHER COSTS (Icons) --- */
.other-costs-header { text-align: center; margin-bottom: 15px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;}
.other-icons-row { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.icon-item { text-align: center; }
.icon-bg-light { 
    width: 40px; height: 40px; background: #f0f0f0; border-radius: 50%; 
    margin: 0 auto 5px auto; display: flex; align-items: center; justify-content: center; color: var(--accent-color);
}
.icon-bg-light svg { width: 20px; height: 20px; }
.icon-label { font-size: 10px; color: #555; }
.icon-val { font-size: 12px; font-weight: 800; }

/* --- RECENT REPORTS --- */
.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li { margin-bottom: 10px; }
.report-link { font-size: 12px; color: var(--accent-color); text-decoration: underline; }

/* --- ADD BUTTON COLUMN --- */
.add-col {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: 100px; text-align: center;
}
.add-btn-circle {
    width: 40px; height: 40px; border: 2px solid var(--accent-color); border-radius: 50%;
    color: var(--accent-color); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.add-col a {
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 768px) {
    .compare-grid { 
        /*grid-template-columns: 1fr; */
        overflow-y: scroll;
        gap: 20px; 
    }
    .add-col { 
        padding-top: 20px;
        gap: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Vertical: Top */
        align-items: center;        /* Horizontal: Center */
        text-align: center;
    }
 
    .toast-right {
        flex-wrap:wrap;
        gap: 10px;
    }
    .toast {
        padding-left:10px;
        padding-right:10px;
    }
    .toast-left {
        gap: 10px;
    }
    .toast-right .btn-remove-all,
    .toast-right .btn-compare-action {
        font-size: 0 !important;
        padding: 10px !important;
        min-width: auto !important;
        gap: 0px;
    }

    .toast-right {
        flex-wrap: nowrap !important;
    }

    .toast-right button {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .toast {
        flex-wrap: nowrap !important;
    }
}


 /* Scoped Variables */
.uni-sticky-header {
    --sh-text: #111111;
    --sh-bg: #ffffff;
    --sh-height: 70px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--sh-height);
    background-color: var(--sh-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000; /* Ensure it stays on top */
    
    /* Animation: Start hidden above the viewport */
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    
    /* Layout */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The class javascript will add to show it */
.uni-sticky-header.is-visible {
    transform: translateY(0);
}

.uni-sticky-header .uni-header-content {
    width: 100%;
    max-width: 1200px; /* Adjust to your site's container width */
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Title Styling */
.uni-sticky-header .uni-title {
    font-weight: 700;
    color: var(--sh-text);
    margin: 0;
}

/* Actions Styling */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-actions .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.header-actions .btn-text {
    
    font-size: 13px;
    font-weight: 600;
    color: var(--sh-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Icon Circles */
.header-actions .icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-actions .icon-circle svg {
    width: 20px;
    height: 20px;
}

/* Circle Variant: Filled (Compare) */
.header-actions .icon-circle.filled {
    background-color: var(--accent-color);
    color: #fff;
}
.header-actions .icon-circle.filled svg {
    fill: currentColor;
}

/* Circle Variant: Outlined (Favorite) */
.header-actions .icon-circle.outlined {
    border: 2px solid var(--accent-color);
    color: var(--sh-teal);
    background-color: transparent;
}
.header-actions .icon-circle.outlined svg {
    fill: currentColor; /* Uses the SVG path for fill */
}

/* Responsive adjustment for small mobile */
@media (max-width: 600px) {
    .uni-sticky-header .uni-title {
        font-size: 18px;
        line-height: 23px;
    }
    .uni-sticky-header .btn-text {
        display: none; /* Hide text, show only icons on mobile */
    }
}

.field_wrapper:has(input[name="sortorder"]) {
    display: none;
}
.filter-form {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between buttons */
    flex-wrap: wrap;
}

/* --- The Field Wrapper --- */
/* This replaces the behavior of col-xs-6 to be auto-width */
.field_wrapper {
    position: relative; /* Anchor for the absolute dropdown */
    width: 15%; /* Override Bootstrap col-xs-6 */
    padding: 0 !important;
    margin: 0;
}


:root {
    --la-primary: #0089a6; /* Teal color */
    --la-primary-hover: #006f85;
    --la-separator: black; /* Separator line color */
    --la-logo-height: 50px; /* Adjust based on your actual logo size */
}

/* Container Link */
.la-logo-area {
    display: inline-flex;
    align-items: center;
    text-decoration: none; /* Removes default underline */
    cursor: pointer;
    /* Optional: Disable text selection */
    user-select: none; 
}

/* Hover Effect */
.la-logo-area:hover .la-site-title {
    color: var(--la-primary-hover);
}

/* Logo Wrapper & Image */
.la-logo-wrapper {
    display: flex;
    align-items: center;
    height: var(--la-logo-height);
    padding-right: 20px; /* Space between logo and line */
    
    /* The Vertical Separator Line */
    border-right: 2px solid var(--la-separator);
}

.la-logo-wrapper img {
    height: 100%; /* Scale image to container height */
    width: auto;  /* Maintain aspect ratio */
    display: block;
}

/* Title Text */
.la-site-title {
    padding-left: 20px; /* Space between line and text */
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--la-primary);
    line-height: 1;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

/* Mobile Responsiveness (Optional) */
@media (max-width: 576px) {
    header {
        padding-top:10px;
    }
    h1 {
        margin-top: 0px;
    }
}

:root {
    --text-grey: #999999;
    --rf-primary: #0089a6;
    --rf-primary-hover: #006f85;
}

.pagination {
    width: 100%;
    margin: 30px 0;
    font-family: sans-serif;
}

.step-links {
    position: relative;
    display: block;
    /* This width determines how far apart the buttons are. 
       Adjust max-width to pull buttons closer or push them to edges. */
    max-width: 600px; 
    margin: 0 auto; /* Centers the container itself */
    height: 40px;   /* Fixed height to contain floating buttons */
}

/* 1. The Text: Absolutely Centered */
.step-links .current {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-grey);
    font-size: 0.95rem;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none; /* Ensures clicks pass through if buttons overlap on tiny screens */
}

/* 2. The Buttons: Default to Float Left (Previous buttons) */
.step-links button {
    float: left;
    margin-right: 5px;
    
    /* rf-btn styling */
    background-color: transparent;
    border: 1px solid var(--rf-primary);
    color: var(--rf-primary);
    padding: 6px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.2;
    pointer-events: auto;
}

/* 3. The Magic: Float buttons AFTER the text to the Right (Next buttons) */
/* The '~' selector targets all buttons that are siblings after .current */
.step-links .current ~ button {
    float: right;
    margin-right: 0;
    margin-left: 5px; /* Add spacing between Next and Last */
    /* Reverse visual order for float:right so 'Next' is inner and 'Last' is outer? 
       Actually, DOM order usually renders correctly for float right (First in DOM goes rightmost).
       If needed, you can adjust order here, but usually standard behavior is fine. */
}

/* Hover States */
.step-links button:hover {
    background-color: var(--rf-primary);
    color: #ffffff;
    text-decoration: none;
}

/* Active/Focus States */
.step-links button:active,
.step-links button:focus {
    background-color: var(--rf-primary-hover);
    border-color: var(--rf-primary-hover);
    color: #ffffff;
    outline: none;
    transform: translateY(1px);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .step-links {
        max-width: 100%; /* Use full width on mobile */
        padding: 0 10px; /* Add guards so buttons don't touch screen edge */
        box-sizing: border-box;
    }
    
    .current {
        font-size: 0.8rem;
    }
    
    .step-links button {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

.pagination-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination-container .pagination-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-container .pagination-flex button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-container .page-arrow {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--rf-primary) !important; /* Indigo color */
    color: var(--rf-primary);
    border-radius: 10px;
    transition: background 0.2s;
}

.pagination-container .page-arrow:hover {
    background-color: #f5f5ff;
}

.pagination-container .arrow-wrapper {
    width: 44px;
}

.pagination-container .page-numbers {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #444;
}

.pagination-container .page-link {
    min-width: 20px;
    color: #666;
}

.pagination-container .page-link:hover {
    color: #000;
}

.pagination-container .page-link.active {
    color: var(--accent-color);
    cursor: default;
}

.pagination-container .page-ellipsis {
    color: #999;
    letter-spacing: 2px;
}

/* Container for the OK button at the bottom of the dropdown */
.rf-select2-footer {
    padding: 8px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    background: #f9f9f9;
}

/* Style for the OK button */
.rf-ok-btn {
    background-color: var(--primary-color); /* Replace with your primary brand color */
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.rf-ok-btn:hover {
    background-color: var(--la-primary-hover);
}

/* Ensure the results list doesn't get hidden behind the footer */
.select2-results {
    display: block;
}

.tp-wrapper {
    display: inline-block;
}
/* The icon trigger */
.tp-trigger {
  color: #2e97a9;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
}

/* The actual tooltip box (appended to body via JS) */
.tp-portal-tooltip {
  position: absolute;
  width: 340px;
  background-color: #def2f4;
  color: #000;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 999999; /* Highest possible */
  font-family: Arial, sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
}

.tp-portal-tooltip.tp-active {
  opacity: 1;
}

/* The arrow pointing to the icon */
.tp-portal-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: var(--tp-arrow-offset, 20px);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #def2f4 transparent;
}

.tp-portal-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}

.tp-portal-body {
  font-size: 14px;
  line-height: 1.4;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .tp-portal-tooltip {
        width: calc(100% - 20px) !important;
        left: 10px !important;
    }
    .container { 
        padding: 0 15px; 
        width: 100%;
    }
    .nav-arrow { display: none; } /* Hide fixed arrows on mobile */
    .report-section { 
        grid-template-columns: 1fr;
        gap: 20px; 
        margin-bottom: 0px;
    }
    .section-score { 
        text-align: center; 
        margin-bottom: 5px;    
    }
    .section-score .score-label {
        margin-bottom: 10px; 
    }
    .cost-widget { flex-direction: column; gap: 30px; }
    .sub-costs { justify-content: space-around; }
    .report-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .report-header h1 { font-size: 32px; }
    .la-site-title {
        font-size: 1rem;
    }
    .la-logo-wrapper {
        height: 40px !important;
    }
}