/*
 * Varsity Resource public theme.
 *
 * Loaded after Bootstrap and the legacy stylesheets (style.css, home-style.css,
 * filter-style.css) by include/master.blade.php. It does two jobs:
 *   1. Re-points the legacy :root variables at the teal brand palette so older
 *      pages pick up the theme without markup changes.
 *   2. Defines the `vr-` components used by the redesigned header, footer,
 *      home page and search/listing pages.
 * The admin panel uses its own layout and never loads this file.
 */

/* ======================= Tokens ======================= */
:root {
    /* Brand scale: teal palette (primary #0d9488). 500 and 800 are the exact logo teals. */
    --vr-brand-50: #f0fdfa;
    --vr-brand-100: #ccfbf1;
    --vr-brand-200: #99f6e4;
    --vr-brand-300: #5eead4;
    --vr-brand-400: #2dd4bf;
    --vr-brand-500: #05ada0;
    --vr-brand-600: #0d9488;
    --vr-brand-700: #0f766e;
    --vr-brand-800: #0d6662;
    --vr-brand-900: #134e4a;

    --vr-ink: #151e2c;
    --vr-slate-900: #0f172a;
    --vr-slate-800: #1e293b;
    --vr-slate-700: #334155;
    --vr-slate-600: #475569;
    --vr-slate-500: #64748b;
    --vr-slate-400: #94a3b8;
    --vr-slate-300: #cbd5e1;

    --vr-gray-50: #f9fafb;
    --vr-gray-100: #f3f4f6;
    --vr-gray-200: #e5e7eb;
    --vr-gray-300: #d1d5db;
    --vr-gray-400: #9ca3af;

    --vr-red-50: #fef2f2;
    --vr-red-100: #fee2e2;
    --vr-red-500: #ef4444;
    --vr-red-600: #dc2626;
    --vr-red-800: #991b1b;
    --vr-orange-50: #fff7ed;
    --vr-orange-100: #ffedd5;
    --vr-orange-400: #fb923c;
    --vr-orange-600: #ea580c;
    --vr-orange-800: #9a3412;
    --vr-amber-50: #fffbeb;
    --vr-amber-100: #fef3c7;
    --vr-amber-600: #d97706;
    --vr-amber-700: #b45309;
    --vr-green-50: #f0fdf4;
    --vr-green-100: #dcfce7;
    --vr-green-600: #16a34a;
    --vr-green-700: #15803d;
    --vr-blue-50: #eff6ff;
    --vr-blue-100: #dbeafe;
    --vr-blue-600: #2563eb;
    --vr-blue-700: #1d4ed8;
    --vr-purple-50: #faf5ff;
    --vr-purple-100: #f3e8ff;
    --vr-purple-600: #9333ea;
    --vr-purple-700: #7e22ce;

    --vr-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --vr-radius-sm: 8px;
    --vr-radius: 12px;
    --vr-radius-lg: 16px;
    --vr-radius-xl: 24px;
    --vr-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --vr-shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 4px 16px -4px rgba(0, 0, 0, 0.02);
    --vr-shadow-card-hover: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -4px rgba(0, 0, 0, 0.04);
    --vr-header-height: 72px;

    /* Legacy variables (style.css) mapped onto the new palette */
    --primary-color: var(--vr-brand-600);
    --primary-color-light: var(--vr-brand-500);
    --primary-color-dark: var(--vr-brand-900);
    --primary-color-hover: var(--vr-brand-700);
    --text-color: var(--vr-slate-600);
    --text-light-color: var(--vr-slate-500);
    --text-dark-color: var(--vr-ink);
    --text-link-color: var(--vr-brand-600);
    --text-link-hover-color: var(--vr-brand-700);
    --background-color-light: var(--vr-gray-50);
    --button-color: var(--vr-brand-600);
    --button-hover-color: var(--vr-brand-700);
    --border-color: var(--vr-gray-200);
    --input-border-color: var(--vr-gray-300);
    --input-focus-border-color: var(--vr-brand-500);
    --navbar-background-color: #ffffff;
    --footer-background-color: #ffffff;
    --table-header-color: var(--vr-gray-50);
    --table-border-color: var(--vr-gray-200);
    --background-cream-color: var(--vr-gray-50);

    /* Bootstrap 5.3 variables */
    --bs-body-font-family: var(--vr-font);
    --bs-body-color: var(--vr-slate-600);
    --bs-body-bg: var(--vr-gray-50);
    --bs-link-color: var(--vr-brand-600);
    --bs-link-color-rgb: 13, 148, 136;
    --bs-link-hover-color: var(--vr-brand-700);
    --bs-link-hover-color-rgb: 15, 118, 110;
    --bs-primary: var(--vr-brand-600);
    --bs-primary-rgb: 13, 148, 136;
    --bs-border-color: var(--vr-gray-200);
}

/* ======================= Base ======================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--vr-font);
    background: var(--vr-gray-50);
    color: var(--vr-slate-600);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vr-font);
    color: var(--vr-ink);
    letter-spacing: -0.01em;
}

h1, h2, h3 {
    font-weight: 700;
}

h4, h5, h6 {
    font-weight: 600;
}

p {
    font-weight: 400;
    color: var(--vr-slate-600);
}

b, strong {
    font-weight: 600 !important;
}

::selection {
    background: var(--vr-brand-100);
    color: var(--vr-brand-900);
}

:focus-visible {
    outline: 2px solid var(--vr-brand-500);
    outline-offset: 2px;
}

.vr-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.vr-container--wide {
    max-width: 1440px;
}

@media (min-width: 640px) {
    .vr-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .vr-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.vr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vr-text-brand {
    color: var(--vr-brand-600);
}

/* ======================= Buttons ======================= */
.vr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--vr-radius);
    border: 1px solid transparent;
    font-family: var(--vr-font);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.vr-btn--primary,
.vr-btn--primary:focus {
    background: var(--vr-brand-600);
    color: #fff;
    box-shadow: var(--vr-shadow-sm);
}

.vr-btn--primary:hover {
    background: var(--vr-brand-700);
    color: #fff;
}

.vr-btn--outline,
.vr-btn--outline:focus {
    background: #fff;
    border-color: var(--vr-gray-200);
    color: var(--vr-slate-700);
    box-shadow: var(--vr-shadow-sm);
}

.vr-btn--outline:hover {
    background: var(--vr-gray-50);
    color: var(--vr-slate-900);
}

.vr-btn--ghost {
    background: transparent;
    color: var(--vr-slate-600);
    padding-left: 8px;
    padding-right: 8px;
}

.vr-btn--ghost:hover {
    color: var(--vr-slate-900);
}

.vr-btn--block {
    width: 100%;
}

.vr-btn--sm {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: var(--vr-radius-sm);
}

.vr-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--vr-brand-600);
    font-weight: 500;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.vr-link:hover,
.vr-link:focus {
    color: var(--vr-brand-700);
}

.vr-link i {
    transition: transform 0.2s;
}

.vr-link:hover i {
    transform: translateX(3px);
}

/* Legacy Bootstrap/site buttons re-themed */
.btn-primary,
.btn-theme-color,
.main-button-red a,
.form-submit-btn,
.btn-submit {
    background-color: var(--vr-brand-600) !important;
    border-color: var(--vr-brand-600) !important;
    color: #fff !important;
    border-radius: var(--vr-radius-sm);
}

.btn-primary:hover,
.btn-theme-color:hover,
.main-button-red a:hover,
.form-submit-btn:hover,
.btn-submit:hover {
    background-color: var(--vr-brand-700) !important;
    border-color: var(--vr-brand-700) !important;
}

.btn-outline-primary {
    color: var(--vr-brand-600);
    border-color: var(--vr-brand-600);
}

.btn-outline-primary:hover {
    background: var(--vr-brand-600);
    border-color: var(--vr-brand-600);
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--vr-brand-500) !important;
    box-shadow: 0 0 0 3px rgba(5, 173, 160, 0.15) !important;
}

.form-check-input:checked {
    background-color: var(--vr-brand-600);
    border-color: var(--vr-brand-600);
}

/* ======================= Badges / chips ======================= */
.vr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
}

.vr-badge--brand { background: var(--vr-brand-50); color: var(--vr-brand-700); border-color: var(--vr-brand-100); }
.vr-badge--amber { background: var(--vr-amber-50); color: var(--vr-amber-700); border-color: var(--vr-amber-100); }
.vr-badge--blue { background: var(--vr-blue-50); color: var(--vr-blue-700); border-color: var(--vr-blue-100); }
.vr-badge--purple { background: var(--vr-purple-50); color: var(--vr-purple-700); border-color: var(--vr-purple-100); }
.vr-badge--green { background: var(--vr-green-50); color: var(--vr-green-700); border-color: var(--vr-green-100); }
.vr-badge--gray { background: var(--vr-gray-100); color: var(--vr-slate-600); border-color: var(--vr-gray-200); }

.vr-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--vr-gray-100);
    color: var(--vr-slate-700);
    border: 1px solid var(--vr-gray-200);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

a.vr-tag:hover {
    border-color: var(--vr-brand-300);
    color: var(--vr-brand-700);
}

.vr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--vr-gray-200);
    color: var(--vr-slate-600);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--vr-shadow-sm);
    transition: border-color 0.2s, color 0.2s;
}

.vr-chip:hover {
    border-color: var(--vr-brand-500);
    color: var(--vr-brand-600);
}

.vr-chip--soft {
    background: #fff;
    border-color: var(--vr-brand-200);
    color: var(--vr-brand-700);
    border-radius: var(--vr-radius-sm);
    padding: 6px 12px;
    box-shadow: none;
}

.vr-chip--soft:hover {
    background: var(--vr-brand-600);
    border-color: var(--vr-brand-600);
    color: #fff;
}

/* Pulsing status dot */
.vr-pulse {
    position: relative;
    display: inline-flex;
    width: 12px;
    height: 12px;
}

.vr-pulse::before,
.vr-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--vr-red-500);
}

.vr-pulse::before {
    background: #f87171;
    opacity: 0.75;
    animation: vr-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes vr-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vr-pulse::before {
        animation: none;
    }
}

/* ======================= Header ======================= */
.vr-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vr-gray-100);
    transition: box-shadow 0.2s, background-color 0.2s;
}

.vr-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--vr-shadow-sm);
}

.vr-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--vr-header-height);
}

.vr-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
}

.vr-logo__img {
    display: block;
    height: 44px;
    width: auto;
}

.vr-nav {
    display: none;
    align-items: center;
    gap: 28px;
    height: 100%;
}

.vr-nav__link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: var(--vr-slate-600);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    padding-top: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.vr-nav__link:hover,
.vr-nav__link:focus {
    color: var(--vr-brand-600);
}

.vr-nav__link.is-active {
    color: var(--vr-brand-600);
    border-bottom-color: var(--vr-brand-600);
}

.vr-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vr-hide-mobile {
    display: none !important;
}

@media (min-width: 992px) {
    .vr-header__actions {
        gap: 12px;
    }

    .vr-hide-mobile {
        display: inline-flex !important;
    }

    .vr-show-mobile {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .vr-logo__img {
        height: 36px;
    }
}

.vr-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--vr-slate-500);
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.vr-icon-btn:hover,
.vr-icon-btn[aria-expanded="true"] {
    background: var(--vr-gray-100);
    color: var(--vr-brand-600);
}

.vr-icon-btn .vr-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--vr-red-500);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.vr-icon-btn .vr-count:empty {
    display: none;
}

.vr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    background: var(--vr-gray-100);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--vr-gray-200);
}

@media (min-width: 992px) {
    .vr-nav {
        display: flex;
    }
}

/* Dropdown menus in the header (Bootstrap dropdown behaviour, themed) */
.vr-header .dropdown-menu {
    border: 1px solid var(--vr-gray-200);
    border-radius: var(--vr-radius);
    box-shadow: var(--vr-shadow-card-hover);
    padding: 6px;
    min-width: 220px;
    margin-top: 8px !important;
}

.vr-header .dropdown-item {
    border-radius: var(--vr-radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    color: var(--vr-slate-700);
    font-weight: 500;
}

.vr-header .dropdown-item:hover,
.vr-header .dropdown-item:focus {
    background: var(--vr-brand-50);
    color: var(--vr-brand-700);
}

.vr-header .dropdown-divider {
    margin: 6px 0;
    border-color: var(--vr-gray-100);
}

.vr-header .dropdown-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vr-slate-400);
    font-weight: 600;
}

/* Notification dropdown content is injected by notification.js */
.vr-header #user-notification {
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
}

.vr-header #user-notification .notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--vr-gray-100);
    background: #fff;
    position: sticky;
    top: 0;
}

.vr-header #user-notification .notification-header h5 {
    margin: 0;
    font-size: 15px;
}

.vr-header #user-notification .notification-header button {
    border: 0;
    background: none;
    color: var(--vr-brand-600);
    font-size: 13px;
    font-weight: 500;
}

.vr-header #user-notification .dropdown-item {
    white-space: normal;
    border-radius: 0;
    border-bottom: 1px solid var(--vr-gray-100);
    padding: 10px 16px;
    font-weight: 400;
}

.vr-header #user-notification .dropdown-item.active {
    background: var(--vr-brand-50);
    color: var(--vr-slate-800);
}

.vr-header #user-notification .notification-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--vr-brand-700);
}

/* Header search panel (opened by the magnifier) */
.vr-header-search {
    display: none;
    border-top: 1px solid var(--vr-gray-100);
    background: #fff;
    padding: 14px 0;
}

.vr-header-search.is-open {
    display: block;
}

/* Mobile menu */
.vr-mobile-menu {
    display: none;
    border-top: 1px solid var(--vr-gray-100);
    background: #fff;
    box-shadow: var(--vr-shadow-card-hover);
    max-height: calc(100vh - var(--vr-header-height));
    overflow-y: auto;
}

.vr-mobile-menu.is-open {
    display: block;
}

.vr-mobile-menu__list {
    padding: 8px 0 20px;
}

.vr-mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--vr-radius-sm);
    font-weight: 500;
    color: var(--vr-slate-700);
}

.vr-mobile-menu__link:hover,
.vr-mobile-menu__link.is-active {
    background: var(--vr-gray-50);
    color: var(--vr-brand-600);
}

.vr-mobile-menu__link i {
    font-size: 18px;
    color: var(--vr-slate-400);
}

.vr-mobile-menu__group {
    border-top: 1px solid var(--vr-gray-100);
    margin-top: 12px;
    padding-top: 12px;
}

.vr-mobile-menu__label {
    padding: 4px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vr-slate-400);
    font-weight: 600;
}

.vr-mobile-menu__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--vr-gray-100);
    margin-top: 16px;
    padding-top: 16px;
}

@media (min-width: 992px) {
    .vr-mobile-menu {
        display: none !important;
    }
}

/* Account verification notice under the header */
.vr-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: var(--vr-radius);
    background: var(--vr-amber-50);
    border: 1px solid var(--vr-amber-100);
    color: var(--vr-amber-700);
    font-size: 14px;
}

.vr-notice a {
    color: var(--vr-amber-700);
    text-decoration: underline;
    font-weight: 600;
}

.vr-notice .statusMessage {
    flex-basis: 100%;
}

/* ======================= Search box ======================= */
.vr-searchbox {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 1px solid var(--vr-gray-200);
    border-radius: var(--vr-radius-lg);
    box-shadow: var(--vr-shadow-card);
    padding: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vr-searchbox:focus-within {
    border-color: var(--vr-brand-500);
    box-shadow: 0 0 0 3px rgba(5, 173, 160, 0.2);
}

.vr-searchbox__icon {
    font-size: 22px;
    color: var(--vr-slate-400);
    padding-left: 10px;
    flex-shrink: 0;
}

.vr-searchbox__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 12px;
    font-size: 17px;
    color: var(--vr-slate-800);
    font-family: var(--vr-font);
}

.vr-searchbox__input::placeholder {
    color: var(--vr-slate-400);
}

.vr-searchbox__input::-webkit-search-cancel-button {
    cursor: pointer;
}

.vr-searchbox__type {
    flex-shrink: 0;
    height: 40px;
    border: 0;
    border-left: 1px solid var(--vr-gray-200);
    background-color: transparent;
    padding: 0 28px 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--vr-slate-700);
    font-family: var(--vr-font);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%2364748b' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.vr-searchbox__btn {
    height: 48px;
    padding: 0 24px;
    margin-left: 6px;
    border: 0;
    border-radius: var(--vr-radius);
    background: var(--vr-brand-600);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    font-family: var(--vr-font);
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vr-searchbox__btn:hover {
    background: var(--vr-brand-700);
}

.vr-searchbox--compact {
    border-radius: var(--vr-radius);
    box-shadow: none;
    padding: 4px;
}

.vr-searchbox--compact .vr-searchbox__input,
.vr-searchbox--compact .vr-searchbox__btn {
    height: 40px;
    font-size: 15px;
}

.vr-searchbox--compact .vr-searchbox__btn {
    border-radius: var(--vr-radius-sm);
    padding: 0 16px;
}

.vr-searchbox__error {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    color: var(--vr-red-600);
    font-weight: 500;
}

.vr-searchbox__error.is-visible {
    display: block;
}

@media (max-width: 575.98px) {
    .vr-searchbox__btn-label {
        display: none;
    }

    .vr-searchbox__btn {
        padding: 0 14px;
    }

    .vr-searchbox__type {
        max-width: 116px;
    }

    .vr-searchbox__input {
        font-size: 16px;
        padding: 0 8px;
    }

    .vr-searchbox__icon {
        display: none;
    }
}

/* ======================= Sections ======================= */
.vr-section {
    padding: 64px 0;
}

.vr-section--white {
    background: #fff;
}

.vr-section--bordered {
    border-top: 1px solid var(--vr-gray-100);
    border-bottom: 1px solid var(--vr-gray-100);
}

.vr-section--tight {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .vr-section {
        padding: 80px 0;
    }

    .vr-section--tight {
        padding: 48px 0;
    }
}

.vr-section__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .vr-section__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.vr-section__head--center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

.vr-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--vr-ink);
}

@media (min-width: 768px) {
    .vr-section__title {
        font-size: 30px;
    }
}

.vr-section__title--sm {
    font-size: 20px !important;
}

.vr-section__lead {
    margin: 8px 0 0;
    color: var(--vr-slate-500);
}

.vr-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.vr-grid--tight {
    gap: 16px;
}

.vr-grid--2-sm {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .vr-grid--2-md { grid-template-columns: repeat(2, 1fr); }
    .vr-grid--3-md { grid-template-columns: repeat(3, 1fr); }
    .vr-grid--4-md { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .vr-grid--3-lg { grid-template-columns: repeat(3, 1fr); }
    .vr-grid--4-lg { grid-template-columns: repeat(4, 1fr); }
    .vr-grid--5-lg { grid-template-columns: repeat(5, 1fr); }
    .vr-grid--6-lg { grid-template-columns: repeat(6, 1fr); }
}

.min-w-0 {
    min-width: 0;
}

.vr-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px dashed var(--vr-gray-300);
    border-radius: var(--vr-radius-lg);
    color: var(--vr-slate-500);
}

.vr-empty i {
    font-size: 40px;
    color: var(--vr-slate-300);
    display: block;
    margin-bottom: 12px;
}

.vr-empty h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.vr-empty p {
    margin: 0 auto;
    max-width: 420px;
    color: var(--vr-slate-500);
}

/* ======================= Home: hero ======================= */
.vr-hero {
    padding: 64px 0 56px;
    text-align: center;
}

@media (min-width: 768px) {
    .vr-hero {
        padding: 96px 0 88px;
    }
}

.vr-hero__title {
    max-width: 768px;
    margin: 0 auto;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--vr-ink);
}

@media (min-width: 768px) {
    .vr-hero__title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .vr-hero__title {
        font-size: 60px;
    }
}

.vr-hero__lead {
    max-width: 680px;
    margin: 24px auto 0;
    font-size: 18px;
    color: var(--vr-slate-500);
}

@media (min-width: 768px) {
    .vr-hero__lead {
        font-size: 20px;
    }
}

.vr-hero__search {
    max-width: 896px;
    margin: 40px auto 0;
    text-align: left;
}

.vr-hero__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.vr-hero__chips-label {
    font-size: 14px;
    color: var(--vr-slate-500);
    margin-right: 6px;
}

@media (min-width: 768px) {
    .vr-hero__chips {
        gap: 12px;
    }
}

/* ======================= Home: explore (category) cards ======================= */
.vr-explore-card {
    display: block;
    padding: 24px;
    background: var(--vr-gray-50);
    border: 1px solid var(--vr-gray-100);
    border-radius: var(--vr-radius-lg);
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}

.vr-explore-card:hover {
    background: #fff;
    box-shadow: var(--vr-shadow-card-hover);
    border-color: var(--vr-brand-200);
}

.vr-explore-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--vr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.vr-explore-card:hover .vr-explore-card__icon {
    transform: scale(1.1);
}

.vr-explore-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.vr-explore-card__text {
    font-size: 14px;
    color: var(--vr-slate-500);
    margin: 0 0 24px;
}

.vr-explore-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

.vr-explore-card__meta i {
    transition: transform 0.2s;
}

.vr-explore-card:hover .vr-explore-card__meta i {
    transform: translateX(4px);
}

.vr-tone--brand .vr-explore-card__icon { background: var(--vr-brand-100); color: var(--vr-brand-600); }
.vr-tone--brand .vr-explore-card__meta { color: var(--vr-brand-600); }
.vr-tone--amber .vr-explore-card__icon { background: var(--vr-amber-100); color: var(--vr-amber-600); }
.vr-tone--amber .vr-explore-card__meta { color: var(--vr-amber-600); }
.vr-tone--blue .vr-explore-card__icon { background: var(--vr-blue-100); color: var(--vr-blue-600); }
.vr-tone--blue .vr-explore-card__meta { color: var(--vr-blue-600); }
.vr-tone--purple .vr-explore-card__icon { background: var(--vr-purple-100); color: var(--vr-purple-600); }
.vr-tone--purple .vr-explore-card__meta { color: var(--vr-purple-600); }

/* ======================= Home: closing soon cards ======================= */
.vr-urgent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vr-orange-100);
    border-radius: var(--vr-radius-lg);
    box-shadow: var(--vr-shadow-card);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.vr-urgent-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--vr-orange-400);
}

.vr-urgent-card:hover {
    box-shadow: var(--vr-shadow-card-hover);
}

.vr-urgent-card__body {
    flex-grow: 1;
    padding: 24px;
}

.vr-urgent-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.vr-urgent-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.vr-urgent-card__title a {
    color: var(--vr-ink);
}

.vr-urgent-card:hover .vr-urgent-card__title a {
    color: var(--vr-brand-600);
}

.vr-urgent-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--vr-gray-100);
    background: rgba(255, 247, 237, 0.6);
}

.vr-urgent-card__countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--vr-orange-600);
}

.vr-urgent-card__countdown i {
    font-size: 18px;
}

.vr-urgent-card__view {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--vr-ink);
}

.vr-urgent-card__view:hover {
    color: var(--vr-brand-600);
}

.vr-urgent-card--critical {
    border-color: var(--vr-red-100);
}

.vr-urgent-card--critical::before {
    background: var(--vr-red-500);
}

.vr-urgent-card--critical .vr-urgent-card__foot {
    background: rgba(254, 242, 242, 0.6);
}

.vr-urgent-card--critical .vr-urgent-card__countdown {
    color: var(--vr-red-600);
}

.vr-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 14px;
    color: var(--vr-slate-600);
    margin: 0 0 16px;
}

.vr-meta i {
    color: var(--vr-slate-400);
}

.vr-meta__sep {
    color: var(--vr-gray-300);
}

.vr-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vr-meta__item--strong {
    font-weight: 500;
}

.vr-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ======================= Grid card (Latest Opportunities) ======================= */
.vr-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vr-gray-100);
    border-radius: var(--vr-radius-lg);
    box-shadow: var(--vr-shadow-sm);
    padding: 24px;
    transition: box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}

.vr-card:hover {
    box-shadow: var(--vr-shadow-card-hover);
    border-color: var(--vr-brand-200);
}

.vr-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.vr-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.vr-card__title a {
    color: var(--vr-ink);
}

.vr-card:hover .vr-card__title a {
    color: var(--vr-brand-600);
}

.vr-card__meta {
    flex-grow: 1;
    margin-bottom: 16px;
}

.vr-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--vr-gray-50);
    padding-top: 16px;
    margin-top: 8px;
}

.vr-card__due {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--vr-slate-500);
}

.vr-card__btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--vr-radius-sm);
    border: 1px solid var(--vr-gray-200);
    background: var(--vr-gray-50);
    color: var(--vr-slate-700);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.vr-card__btn:hover {
    background: var(--vr-brand-50);
    border-color: var(--vr-brand-200);
    color: var(--vr-brand-700);
}

/* ======================= Field + country tiles ======================= */
.vr-field-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--vr-gray-50);
    border: 1px solid var(--vr-gray-100);
    border-radius: var(--vr-radius-lg);
    transition: border-color 0.3s, background-color 0.3s;
    height: 100%;
}

.vr-field-tile:hover {
    border-color: var(--vr-brand-300);
    background: var(--vr-brand-50);
}

.vr-field-tile i {
    font-size: 30px;
    color: var(--vr-slate-700);
    margin-bottom: 12px;
    transition: color 0.2s;
}

.vr-field-tile:hover i {
    color: var(--vr-brand-600);
}

.vr-field-tile__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--vr-ink);
    margin: 0;
    text-transform: capitalize;
    word-break: break-word;
}

.vr-field-tile:hover .vr-field-tile__name {
    color: var(--vr-brand-700);
}

.vr-field-tile__count {
    font-size: 12px;
    color: var(--vr-slate-500);
    margin-top: 4px;
}

.vr-country-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--vr-gray-100);
    border-radius: var(--vr-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vr-country-tile:hover {
    border-color: var(--vr-brand-300);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.vr-country-tile__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vr-country-tile__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--vr-brand-50);
    color: var(--vr-brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.vr-country-tile__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--vr-slate-800);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-country-tile:hover .vr-country-tile__name {
    color: var(--vr-brand-600);
}

.vr-country-tile__count {
    font-size: 12px;
    color: var(--vr-slate-500);
}

.vr-country-tile > i {
    color: var(--vr-slate-300);
}

.vr-country-tile:hover > i {
    color: var(--vr-brand-500);
}

/* ======================= Why choose ======================= */
.vr-feature {
    text-align: center;
    padding: 0 16px;
}

.vr-feature__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: var(--vr-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.vr-feature__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.vr-feature__text {
    font-size: 14px;
    color: var(--vr-slate-500);
    margin: 0;
}

/* ======================= CTA ======================= */
.vr-cta {
    position: relative;
    overflow: hidden;
    background: var(--vr-ink);
    border-radius: var(--vr-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.vr-cta::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 384px;
    height: 384px;
    border-radius: 999px;
    background: var(--vr-brand-500);
    filter: blur(64px);
    opacity: 0.2;
}

.vr-cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    align-items: center;
    padding: 32px;
}

@media (min-width: 768px) {
    .vr-cta__inner {
        padding: 48px;
    }
}

@media (min-width: 1024px) {
    .vr-cta__inner {
        grid-template-columns: 1fr 1fr;
        padding: 64px;
    }
}

.vr-cta__title {
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .vr-cta__title {
        font-size: 36px;
    }
}

.vr-cta__text {
    color: var(--vr-slate-300);
    font-size: 18px;
    max-width: 448px;
    margin-bottom: 32px;
}

.vr-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .vr-cta__actions {
        flex-direction: row;
    }
}

.vr-cta__primary,
.vr-cta__primary:focus {
    background: var(--vr-brand-500);
    color: #fff;
    font-weight: 600;
    padding: 14px 24px;
    box-shadow: 0 10px 15px -3px rgba(5, 173, 160, 0.3);
}

.vr-cta__primary:hover {
    background: var(--vr-brand-400);
    color: #fff;
}

.vr-cta__secondary,
.vr-cta__secondary:focus {
    background: var(--vr-slate-700);
    color: #fff;
    padding: 14px 24px;
}

.vr-cta__secondary:hover {
    background: var(--vr-slate-600);
    color: #fff;
}

.vr-cta__mock {
    display: none;
    background: var(--vr-slate-900);
    border: 1px solid var(--vr-slate-700);
    border-radius: var(--vr-radius-lg);
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: rotate(1deg);
    transition: transform 0.5s;
}

.vr-cta__mock:hover {
    transform: rotate(0);
}

@media (min-width: 768px) {
    .vr-cta__mock {
        display: block;
    }
}

.vr-cta__mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--vr-slate-800);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.vr-cta__mock-head h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vr-cta__mock-head h4 i {
    color: var(--vr-brand-400);
    font-size: 20px;
}

.vr-cta__mock-dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--vr-slate-800);
}

.vr-cta__mock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--vr-slate-800);
    border: 1px solid var(--vr-slate-700);
    border-radius: var(--vr-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.vr-cta__mock-item:last-child {
    margin-bottom: 0;
}

.vr-cta__mock-line {
    height: 16px;
    border-radius: 4px;
    background: var(--vr-slate-600);
    margin-bottom: 8px;
}

.vr-cta__mock-line--sub {
    height: 12px;
    background: var(--vr-slate-700);
    margin-bottom: 0;
}

.vr-cta__mock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--vr-radius-sm);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.vr-cta__mock-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.vr-cta__mock-pill--red { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.vr-cta__mock-pill--orange { background: rgba(249, 115, 22, 0.1); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.2); }
.vr-cta__mock-pill--green { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }

/* ======================= Resource tiles ======================= */
.vr-resource-tile {
    display: block;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--vr-gray-200);
    border-radius: var(--vr-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 100%;
}

.vr-resource-tile:hover {
    border-color: var(--vr-brand-300);
    box-shadow: var(--vr-shadow-sm);
}

.vr-resource-tile h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--vr-slate-700);
    margin: 0;
}

.vr-resource-tile:hover h3 {
    color: var(--vr-brand-600);
}

.vr-resource-tile p {
    font-size: 12px;
    color: var(--vr-slate-500);
    margin: 4px 0 0;
}

/* ======================= Footer ======================= */
.vr-footer {
    background: #fff;
    border-top: 1px solid var(--vr-gray-200);
    padding: 64px 0 32px;
}

.vr-footer__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 48px;
}

.vr-footer__brand {
    grid-column: span 2;
}

.vr-footer__brand .vr-logo__img {
    height: 52px;
}

@media (min-width: 768px) {
    .vr-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .vr-footer__grid {
        grid-template-columns: 1.4fr repeat(4, 1fr);
    }

    .vr-footer__brand {
        grid-column: span 1;
    }
}

.vr-footer__about {
    font-size: 14px;
    color: var(--vr-slate-500);
    margin: 16px 0 24px;
    max-width: 320px;
}

.vr-footer__social {
    display: flex;
    gap: 16px;
}

.vr-footer__social a {
    color: var(--vr-slate-400);
    font-size: 22px;
    transition: color 0.2s;
}

.vr-footer__social a:hover {
    color: var(--vr-brand-600);
}

.vr-footer__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--vr-ink);
    margin: 0 0 16px;
}

.vr-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vr-footer__list li + li {
    margin-top: 12px;
}

.vr-footer__list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--vr-slate-500);
    transition: color 0.2s;
    text-transform: capitalize;
}

.vr-footer__list a:hover {
    color: var(--vr-brand-600);
}

.vr-footer__list .vr-footer__count {
    font-size: 12px;
    color: var(--vr-slate-400);
}

.vr-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--vr-gray-100);
    padding-top: 32px;
    font-size: 14px;
    color: var(--vr-slate-400);
    text-align: center;
}

.vr-footer__bottom p {
    margin: 0;
    color: var(--vr-slate-400);
    font-size: 14px;
}

.vr-footer__bottom a {
    color: var(--vr-slate-500);
}

.vr-footer__bottom a:hover {
    color: var(--vr-brand-600);
}

@media (min-width: 768px) {
    .vr-footer__bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* ======================= Search / listing page ======================= */
.vr-search-page {
    padding: 24px 0 48px;
}

@media (min-width: 1024px) {
    .vr-search-page {
        padding: 40px 0 64px;
    }
}

.vr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--vr-slate-500);
}

.vr-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vr-breadcrumb a:hover {
    color: var(--vr-brand-600);
}

.vr-breadcrumb i {
    font-size: 12px;
}

.vr-breadcrumb [aria-current="page"] {
    color: var(--vr-slate-900);
    font-weight: 500;
}

.vr-page-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #111827;
}

@media (min-width: 1024px) {
    .vr-page-title {
        font-size: 36px;
    }
}

.vr-page-lead {
    color: var(--vr-slate-500);
    font-size: 15px;
    margin: 0 0 24px;
    max-width: 720px;
}

.vr-search-page__box {
    width: 100%;
}

.vr-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 20px 0 32px;
}

.vr-active-filters__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--vr-slate-500);
    margin-right: 4px;
}

.vr-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--vr-gray-200);
    border-radius: 999px;
    padding: 4px 6px 4px 12px;
    font-size: 14px;
    color: #111827;
    box-shadow: var(--vr-shadow-sm);
}

.vr-filter-pill strong {
    font-weight: 500 !important;
}

.vr-filter-pill a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: var(--vr-gray-400);
}

.vr-filter-pill a:hover {
    color: var(--vr-red-500);
    background: var(--vr-red-50);
}

.vr-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 992px) {
    .vr-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.vr-layout__main {
    flex: 1;
    min-width: 0;
}

/* Filter sidebar */
.vr-filters {
    display: none;
    width: 288px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .vr-filters {
        display: block;
        position: sticky;
        top: calc(var(--vr-header-height) + 24px);
    }
}

.vr-filters__panel {
    background: #fff;
    border: 1px solid var(--vr-gray-200);
    border-radius: var(--vr-radius-lg);
    box-shadow: var(--vr-shadow-sm);
    padding: 20px;
    max-height: calc(100vh - var(--vr-header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--vr-slate-300) transparent;
}

.vr-filters__panel::-webkit-scrollbar {
    width: 4px;
}

.vr-filters__panel::-webkit-scrollbar-thumb {
    background: var(--vr-slate-300);
    border-radius: 20px;
}

.vr-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.vr-filters__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.vr-filter-group {
    border-bottom: 1px solid var(--vr-gray-100);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.vr-filter-group:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.vr-filter-group__title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.vr-filter-search {
    position: relative;
    margin-bottom: 12px;
}

.vr-filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vr-gray-400);
}

.vr-filter-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: var(--vr-gray-50);
    border: 1px solid var(--vr-gray-200);
    border-radius: var(--vr-radius-sm);
    font-size: 14px;
    font-family: var(--vr-font);
    outline: none;
}

.vr-filter-search input:focus {
    border-color: var(--vr-brand-500);
    box-shadow: 0 0 0 1px var(--vr-brand-500);
}

.vr-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.vr-filter-list li + li {
    margin-top: 2px;
}

.vr-filter-list li[hidden] {
    display: none;
}

.vr-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 8px;
    margin: 0 0 0 -8px;
    border-radius: var(--vr-radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.15s;
}

.vr-check:hover {
    color: #111827;
}

.vr-check input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid var(--vr-gray-300);
    border-radius: 4px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.vr-check input[type="radio"] {
    border-radius: 999px;
}

.vr-check input::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
}

.vr-check input[type="radio"]::after {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    transform: none;
}

.vr-check input:checked {
    background: var(--vr-brand-600);
    border-color: var(--vr-brand-600);
}

.vr-check input:checked::after {
    opacity: 1;
}

.vr-check input:focus-visible {
    outline: 2px solid var(--vr-brand-500);
    outline-offset: 2px;
}

.vr-check:has(input:checked) {
    background: var(--vr-brand-50);
    color: var(--vr-brand-900);
    font-weight: 500;
}

.vr-check__label {
    flex: 1;
    min-width: 0;
}

.vr-filter-list .vr-check__label {
    text-transform: capitalize;
}

.vr-filters__apply {
    margin-top: 8px;
}

/* Mobile filter/sort bar */
.vr-mobile-bar {
    position: sticky;
    top: var(--vr-header-height);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -16px;
    padding: 12px 16px;
    background: var(--vr-gray-50);
    border-bottom: 1px solid var(--vr-gray-200);
    box-shadow: var(--vr-shadow-sm);
}

.vr-mobile-bar__count {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.vr-mobile-bar__actions {
    display: flex;
    gap: 8px;
}

.vr-mobile-bar .vr-btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: var(--vr-radius-sm);
    border-color: var(--vr-gray-300);
}

.vr-mobile-bar select {
    border: 1px solid var(--vr-gray-300);
    border-radius: var(--vr-radius-sm);
    padding: 6px 8px;
    font-size: 14px;
    background: #fff;
    font-family: var(--vr-font);
    max-width: 150px;
}

@media (min-width: 640px) {
    .vr-mobile-bar {
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 992px) {
    .vr-mobile-bar {
        display: none;
    }
}

/* Mobile filter drawer: the sidebar panel becomes a bottom sheet */
.vr-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(17, 24, 39, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

@media (max-width: 991.98px) {
    .vr-filters.is-open {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        width: auto;
        animation: vr-sheet-in 0.3s ease-out;
    }

    .vr-filters.is-open .vr-filters__panel {
        max-height: 85vh;
        border-radius: var(--vr-radius-xl) var(--vr-radius-xl) 0 0;
        padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }

    /* The ShareThis sticky bar is fixed to the bottom on mobile and covers the Apply button */
    body.vr-no-scroll .st-sticky-share-buttons {
        display: none !important;
    }

    .vr-filters.is-open + .vr-drawer-backdrop {
        display: block;
    }

    .vr-filters .vr-check {
        font-size: 16px;
        padding: 8px;
    }

    .vr-filters .vr-check input {
        width: 20px;
        height: 20px;
    }

    .vr-filters__apply {
        position: sticky;
        bottom: calc(-24px - env(safe-area-inset-bottom, 0px));
        background: #fff;
        padding: 16px 0 env(safe-area-inset-bottom, 0px);
        margin-top: 0;
    }
}

@keyframes vr-sheet-in {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.vr-filters__close {
    display: inline-flex;
}

@media (min-width: 992px) {
    .vr-filters__close {
        display: none;
    }
}

body.vr-no-scroll {
    overflow: hidden;
}

/* Results toolbar */
.vr-toolbar {
    display: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vr-gray-200);
}

@media (min-width: 992px) {
    .vr-toolbar {
        display: flex;
    }
}

.vr-toolbar__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.vr-toolbar__sub {
    font-size: 14px;
    color: var(--vr-slate-500);
    margin: 4px 0 0;
}

.vr-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.vr-select {
    background-color: #fff;
    border: 1px solid var(--vr-gray-300);
    border-radius: var(--vr-radius-sm);
    padding: 8px 32px 8px 10px;
    font-size: 14px;
    font-family: var(--vr-font);
    color: #111827;
    box-shadow: var(--vr-shadow-sm);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%2364748b' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
}

.vr-select:focus {
    border-color: var(--vr-brand-500);
    box-shadow: 0 0 0 2px rgba(5, 173, 160, 0.2);
}

/* Result list card */
.vr-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vr-result {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vr-gray-200);
    border-radius: var(--vr-radius-lg);
    padding: 16px;
    box-shadow: var(--vr-shadow-sm);
    transition: box-shadow 0.2s;
}

@media (min-width: 640px) {
    .vr-result {
        padding: 20px;
    }
}

.vr-result:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.vr-result__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.vr-result__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
}

@media (min-width: 640px) {
    .vr-result__title {
        font-size: 20px;
    }
}

.vr-result__title a {
    color: #111827;
}

.vr-result:hover .vr-result__title a,
.vr-result__title a:hover {
    color: var(--vr-brand-600);
}

.vr-result__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}

.vr-result__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vr-result__excerpt {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vr-result__excerpt * {
    font-size: inherit !important;
    color: inherit !important;
    margin: 0 !important;
    display: inline;
    font-weight: inherit !important;
}

.vr-result__foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--vr-gray-100);
    padding-top: 16px;
    margin-top: auto;
}

@media (min-width: 640px) {
    .vr-result__foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.vr-result__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--vr-gray-400);
}

.vr-result__stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vr-result__applied {
    color: var(--vr-green-700);
    font-weight: 600;
}

.vr-result__cta {
    justify-content: center;
    width: 100%;
    border-color: var(--vr-gray-300);
    color: #111827;
}

.vr-result__cta:hover {
    border-color: var(--vr-brand-500);
    color: var(--vr-brand-600);
    background: #fff;
}

@media (min-width: 640px) {
    .vr-result__cta {
        width: auto;
    }
}

/* Deadline callout on result cards */
.vr-deadline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: var(--vr-radius);
    border: 1px solid var(--vr-gray-200);
    background: var(--vr-gray-50);
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.vr-deadline i {
    font-size: 18px;
    color: var(--vr-gray-400);
}

.vr-deadline__sep {
    color: var(--vr-gray-300);
    margin: 0 2px;
}

.vr-deadline--soon {
    background: var(--vr-orange-50);
    border-color: var(--vr-orange-100);
    color: var(--vr-orange-800);
}

.vr-deadline--soon i {
    color: #f97316;
}

.vr-deadline--soon .vr-deadline__sep {
    color: #fdba74;
}

.vr-deadline--urgent {
    background: var(--vr-red-50);
    border-color: var(--vr-red-100);
    color: var(--vr-red-800);
}

.vr-deadline--urgent i {
    color: var(--vr-red-500);
}

.vr-deadline--urgent .vr-deadline__sep {
    color: #fca5a5;
}

.vr-deadline--closed {
    background: var(--vr-gray-100);
    color: var(--vr-slate-500);
}

.vr-deadline strong {
    font-weight: 700 !important;
}

/* Expired result */
.vr-result--expired {
    background: var(--vr-gray-50);
    box-shadow: none;
}

.vr-result--expired .vr-result__title a {
    color: var(--vr-slate-500);
}

.vr-result--expired .vr-result__meta,
.vr-result--expired .vr-result__excerpt {
    color: var(--vr-slate-500);
}

/* Save (bookmark) button. The .marked class is toggled by custom.js */
.vr-save,
.vr-save.circular-bookmark,
.vr-save.scholarship-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
    width: auto;
}

.vr-save .btn-marker {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0 !important;
    border-radius: 999px;
    background: transparent !important;
    color: var(--vr-gray-400) !important;
    font-size: 20px;
    line-height: 1;
    opacity: 1;
    box-shadow: none !important;
    transition: color 0.2s, background-color 0.2s;
}

.vr-save .btn-marker:hover,
.vr-save .btn-marker:focus-visible {
    color: var(--vr-red-500) !important;
    background: var(--vr-red-50) !important;
}

.vr-save .btn-marker .vr-save__on,
.vr-save .btn-marker.marked .vr-save__off {
    display: none;
}

.vr-save .btn-marker.marked .vr-save__on {
    display: inline;
}

.vr-save .btn-marker.marked {
    color: var(--vr-red-500) !important;
}

.vr-save .btn-marker .loader {
    display: none;
    width: 16px !important;
}

.vr-save .btn-marker .to-tooltip-add,
.vr-save .btn-marker .to-tooltip-remove {
    display: none !important;
}

.vr-save .tooltip-counter-style {
    font-size: 12px;
    color: var(--vr-gray-400);
    min-width: 8px;
}

.vr-save form {
    margin: 0;
}

/* Popular searches box */
.vr-related {
    margin-top: 40px;
    padding: 24px;
    background: var(--vr-brand-50);
    border: 1px solid var(--vr-brand-100);
    border-radius: var(--vr-radius-lg);
}

.vr-related__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--vr-brand-900);
    margin: 0 0 16px;
}

.vr-related__title i {
    color: var(--vr-brand-500);
}

.vr-related__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Ad slot inside the results list */
.vr-ad-slot {
    background: var(--vr-gray-50);
    border: 1px solid var(--vr-gray-200);
    border-radius: var(--vr-radius);
    padding: 16px;
}

.vr-ad-slot__label {
    display: block;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vr-gray-400);
    margin-bottom: 8px;
}

.vr-filters .amazon-ad-widget,
.vr-filters__ads {
    margin-top: 24px;
}

/* ======================= Pagination ======================= */
.vr-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--vr-gray-200);
}

@media (min-width: 640px) {
    .vr-pagination {
        flex-direction: row;
    }
}

.vr-pagination__summary {
    margin: 0;
    font-size: 14px;
    color: var(--vr-slate-500);
}

.vr-pagination__summary span {
    font-weight: 500;
    color: #111827;
}

.vr-pagination__nav {
    display: inline-flex;
    border-radius: 6px;
    box-shadow: var(--vr-shadow-sm);
}

.vr-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    padding: 0 12px;
    margin-left: -1px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: #fff;
    border: 1px solid var(--vr-gray-300);
}

.vr-pagination__item:first-child {
    margin-left: 0;
    border-radius: 6px 0 0 6px;
    padding: 0 8px;
    color: var(--vr-gray-400);
}

.vr-pagination__item:last-child {
    border-radius: 0 6px 6px 0;
    padding: 0 8px;
    color: var(--vr-gray-400);
}

a.vr-pagination__item:hover {
    background: var(--vr-gray-50);
    color: var(--vr-brand-700);
}

.vr-pagination__item.is-current {
    position: relative;
    z-index: 1;
    background: var(--vr-brand-600);
    border-color: var(--vr-brand-600);
    color: #fff;
}

.vr-pagination__item.is-disabled {
    color: var(--vr-gray-300) !important;
    cursor: default;
}

@media (max-width: 575.98px) {
    .vr-pagination__item.is-far {
        display: none;
    }
}

/* Legacy Bootstrap pagination used by account pages */
.pagination .page-link {
    color: var(--vr-slate-700);
    border-color: var(--vr-gray-300);
}

.pagination .page-item.active .page-link,
.pagination .active > .page-link {
    background-color: var(--vr-brand-600);
    border-color: var(--vr-brand-600);
    color: #fff;
}

.pagination .page-link:hover {
    color: var(--vr-brand-700);
    background: var(--vr-gray-50);
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 3px rgba(5, 173, 160, 0.2);
}

/* ======================= Toast ======================= */
.vr-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.vr-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* ======================= Legacy page polish ======================= */
/* Pages that still use the older markup (details, blogs, account, legal)
   get the new palette, type and surfaces through these overrides. */
.content {
    min-height: 50vh;
}

.page-content,
.home-page,
.scholarship-page {
    padding-top: 40px;
    padding-bottom: 56px;
}

.card,
.post-feed,
.large-shadow,
.user-circular-list,
.profile-area,
.form-area {
    border-radius: var(--vr-radius-lg) !important;
    border-color: var(--vr-gray-200) !important;
}

.form-title h5,
.section-heading h2 {
    color: var(--vr-ink);
    font-weight: 700;
}

.table {
    --bs-table-bg: #fff;
    font-size: 14px;
}

.table > thead th {
    background: var(--vr-gray-50);
    color: var(--vr-slate-600);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
    border-bottom-color: var(--vr-gray-200);
}

.action-btn a,
.action-btn i {
    color: var(--vr-brand-600);
}

.form-control,
.form-select {
    border-radius: var(--vr-radius-sm);
    border-color: var(--vr-gray-300);
    font-family: var(--vr-font);
}

.invalid-page {
    padding: 48px 24px;
}

.invalid-page h1 i {
    color: var(--vr-slate-300);
}

.back-to-top .to-top {
    background: var(--vr-brand-600) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: var(--vr-shadow-card-hover);
}

.back-to-top .to-top:hover {
    background: var(--vr-brand-700) !important;
}

.swal2-styled.swal2-confirm {
    background-color: var(--vr-brand-600) !important;
}

/* Cookie banner */
#cookies-banner {
    font-family: var(--vr-font);
    border-radius: var(--vr-radius-lg) !important;
    border: 1px solid var(--vr-gray-200) !important;
    box-shadow: var(--vr-shadow-card-hover) !important;
}

#cookies-banner h2 {
    color: var(--vr-ink);
}

#cookies-banner a {
    color: var(--vr-brand-600) !important;
}

#cookies-banner .btn-green-color {
    background: #fff !important;
    color: var(--vr-slate-700) !important;
    border: 1px solid var(--vr-gray-200) !important;
}

/* Line legacy Bootstrap containers up with the header and footer on wide screens */
@media (min-width: 1200px) {
    .content .container {
        max-width: 1280px;
        padding-left: 32px;
        padding-right: 32px;
    }
}
