/* JU Discover: Academic Management System V102 visual adaptation.
   Scope styles to VuFind Bootstrap 5 components to avoid disrupting searches. */
:root {
  --ju-page: #E9EDF2;
  --ju-surface: #FFFFFF;
  --ju-navy: #173B58;
  --ju-heading: #173B63;
  --ju-blue: #2563A6;
  --ju-link: #1761A2;
  --ju-text: #243447;
  --ju-muted: #64748B;
  --ju-border: #dce3eb;
  --ju-table-head: #DCEBFA;
  --ju-success: #087850;
  --ju-font-en: Roboto, Arial, sans-serif;
  --ju-font-bn: 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
}
html { background: var(--ju-page); }
body {
  font-family: var(--ju-font-en), var(--ju-font-bn);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ju-text);
  background: var(--ju-page);
}
html[lang^="bn"] body {font-family: var(--ju-font-bn), var(--ju-font-en); font-size: 15px;}
h1, h2, h3, h4, h5, h6 {color:var(--ju-heading); font-weight:700;}
a {color:var(--ju-link);}
a:hover {color:var(--ju-navy);}
/* Retain Bootstrap structure and VuFind navigation behavior. */
header .navbar, .navbar.navbar-default, .navbar.navbar-inverse, .navbar.bg-primary {
  background-color: var(--ju-navy) !important;
  border-color: var(--ju-navy) !important;
}
header .navbar a, header .navbar .nav-link, header .navbar .navbar-brand,
.navbar.bg-primary .nav-link, .navbar.bg-primary .navbar-brand {color:#f4f8fc;}
header .navbar a:hover, header .navbar .nav-link:hover,
.navbar.bg-primary .nav-link:hover {color:#fff; text-decoration:underline;}
/* White card surfaces and clean compact tables from Academic Management. */
.card, .panel, .well, .search-result, .result, .facet-group {
  background:var(--ju-surface);
  border-color:var(--ju-border);
  border-radius:10px;
}
.card, .panel, .well {box-shadow:0 2px 10px rgba(23,59,88,.035);}
.card-header, .panel-heading {background:#f7f9fc; color:var(--ju-heading); border-color:var(--ju-border);}
.table, table {color:var(--ju-text);}
.table thead th, table thead th {background:var(--ju-table-head); color:var(--ju-heading); border-color:#B8C7D8; font-weight:700;}
.table td, .table th {padding:.65rem .75rem; vertical-align:middle;}
.table tbody tr:hover {background:#fafcff;}
/* Search elements and inputs */
.form-control, .form-select, input[type="search"], input[type="text"], select {
  border-color:#cbd6e0;
  border-radius:6px;
}
.form-control:focus, .form-select:focus, input:focus-visible {
  border-color:var(--ju-blue);
  box-shadow:0 0 0 .2rem rgba(37,99,166,.15);
}
.btn {border-radius:7px; font-weight:600;}
.btn-primary, .btn-primary:focus {background:var(--ju-blue); border-color:var(--ju-blue); color:#fff;}
.btn-primary:hover {background:#164a73; border-color:#164a73;}
.btn-outline-primary {color:var(--ju-blue); border-color:var(--ju-blue);}
.btn-outline-primary:hover {background:var(--ju-blue); color:#fff;}
.badge {border-radius:24px;}
.pagination .page-link {color:var(--ju-blue);}
.pagination .active .page-link {background:var(--ju-blue); border-color:var(--ju-blue); color:#fff;}
.breadcrumb {background:transparent;}
/* Adapt existing VuFind search page, don't replace its HTML. */
.container, .container-fluid {min-width:0;}
.mainbody {background:transparent;}
.searchtools, .search-sort {color:var(--ju-muted);}
footer, .footer {border-color:var(--ju-border);}
@media (max-width: 767px) {
  body {font-size:14px;}
  .card {border-radius:8px;}
  .table-responsive {overflow-x:auto;}
  .btn {white-space:normal;}
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {scroll-behavior:auto!important; transition:none!important;}
}

/* JU Discover Homepage v2 */

.ju-home {
    font-family: Arial, sans-serif;
    color: #173b58;
}

.ju-resource-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 15px 24px;
    background: #fff;
    border-bottom: 1px solid #dce3eb;
}

.ju-resource-nav a {
    color: #173b58;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.ju-resource-nav a:hover {
    color: #2563a6;
}

.ju-hero {
    background: #e9edf2;
    padding: 65px 20px 75px;
    text-align: center;
}

.ju-hero-inner {
    max-width: 1000px;
    margin: auto;
}

.ju-eyebrow {
    color: #2563a6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.ju-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    color: #173b58;
    margin-bottom: 16px;
}

.ju-hero p {
    color: #526579;
    font-size: 16px;
}

.ju-search-panel {
    max-width: 850px;
    margin: 32px auto 12px;
    padding: 22px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(23,59,88,.08);
    text-align: left;
}

.ju-search-panel .searchForm {
    max-width: 100%;
}

.ju-hero-caption {
    font-size: 13px;
    color: #63758a;
    margin-top: 20px;
}

.ju-resources {
    max-width: 1200px;
    margin: 0 auto;
    padding: 58px 20px;
}

.ju-section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.ju-section-heading h2 {
    font-size: 27px;
    font-weight: 700;
}

.ju-section-heading p {
    color: #64748b;
}

.ju-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
}

.ju-resource-card {
    display: block;
    padding: 27px 22px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 9px;
    text-decoration: none;
    color: #173b58;
    transition: transform .2s, box-shadow .2s;
}

.ju-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(23,59,88,.12);
    color: #173b58;
}

.ju-card-icon {
    display: block;
    font-size: 30px;
    margin-bottom: 18px;
}

.ju-resource-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.ju-resource-card p {
    font-size: 14px;
    color: #64748b;
    min-height: 65px;
}

.ju-card-action {
    color: #2563a6;
    font-size: 13px;
    font-weight: 700;
}

.ju-home-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #dce3eb;
}

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

@media (max-width: 580px) {
    .ju-resource-grid {
        grid-template-columns: 1fr;
    }

    .ju-hero {
        padding: 35px 12px;
    }

    .ju-search-panel {
        padding: 14px;
    }

    .ju-resource-nav {
        gap: 12px;
    }
}

/* JU Discover - Homepage Layout Refinements */

.ju-hero {
    padding: 36px 20px 28px !important;
}

.ju-hero h1 {
    font-size: clamp(28px, 3.2vw, 38px);
    margin-bottom: 10px;
}

.ju-search-panel {
    max-width: 950px;
    margin: 24px auto 10px;
    padding: 18px 22px;
}

.ju-search-panel form {
    width: 100%;
}

.ju-search-panel .searchForm {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

.ju-search-panel input[type="text"],
.ju-search-panel input[type="search"] {
    flex: 1 1 340px;
    min-width: 0;
}

.ju-hero-caption {
    margin-top: 12px;
}

.ju-resources {
    padding: 28px 20px 45px;
}

.ju-section-heading {
    margin-bottom: 22px;
}

.ju-section-heading h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.ju-resource-card {
    padding: 22px 20px;
}

.ju-resource-nav {
    padding: 12px 20px;
    gap: 24px;
}

@media (max-width: 600px) {
    .ju-hero {
        padding: 26px 12px;
    }

    .ju-search-panel {
        padding: 12px;
    }

    .ju-search-panel .searchForm {
        display: block;
    }
}

/* JU Discover Search Box Refinement */

.ju-search-panel {
    max-width: 1000px;
    margin: 22px auto 12px;
    padding: 18px 24px;
}

.ju-search-panel form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.ju-search-panel form input[name="lookfor"] {
    flex: 1 1 450px;
    width: 100% !important;
    min-width: 220px;
    max-width: none !important;
    height: 44px;
}

.ju-search-panel form select {
    height: 44px;
}

.ju-search-panel form button {
    min-height: 44px;
}

@media (max-width: 600px) {
    .ju-search-panel form {
        flex-direction: column;
        align-items: stretch;
    }

    .ju-search-panel form input[name="lookfor"] {
        flex: none;
        min-width: 0;
    }
}

/* JU Discover: Full-width Search Box Fix */

.ju-search-panel #searchForm {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ju-search-panel #searchForm .searchForm-inputs {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
}

.ju-search-panel #searchForm .searchForm-query {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}

.ju-search-panel #searchForm input.searchForm_lookfor {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: 46px;
    box-sizing: border-box;
}

.ju-search-panel #searchForm select.searchForm_type {
    flex: 0 0 155px;
    width: 155px;
    height: 46px;
}

.ju-search-panel #searchForm button[type="submit"] {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 22px;
}

.ju-search-panel #searchForm .advanced-search-link {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
}

/* Mobile responsive search */

@media (max-width: 767px) {
    .ju-search-panel #searchForm .searchForm-inputs {
        flex-wrap: wrap;
    }

    .ju-search-panel #searchForm .searchForm-query {
        flex: 1 0 100%;
        width: 100%;
    }

    .ju-search-panel #searchForm select.searchForm_type {
        flex: 1 1 150px;
        width: auto;
    }
}

/* JU Discover Academic Header */

.banner.navbar {
    background: #173b58;
    min-height: 70px;
    padding: 10px 0;
}

.banner .ju-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    white-space: normal;
}

.banner .ju-brand:hover,
.banner .ju-brand:focus {
    color: #ffffff;
    text-decoration: none;
}

.ju-brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #173b58;
    font-size: 17px;
    font-weight: 800;
    border: 2px solid #dce8f3;
}

.ju-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ju-university-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.ju-portal-name {
    color: #dce8f3;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.banner .nav-link {
    color: #ffffff;
    font-weight: 500;
}

.banner .nav-link:hover,
.banner .nav-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .banner.navbar {
        min-height: 62px;
    }

    .ju-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 14px;
    }

    .ju-university-name {
        font-size: 14px;
    }

    .ju-portal-name {
        font-size: 10px;
    }

    .banner .ju-brand {
        gap: 8px;
        max-width: calc(100% - 60px);
    }
}

/* ============================================
   JU Discover - Responsive Layout v3
   Academic Management Design
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #e9edf2;
}

/* Header */

.banner.navbar {
    min-height: 64px;
    padding: 8px 0;
}

.ju-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.ju-university-name {
    font-size: 17px;
}

.ju-portal-name {
    font-size: 11px;
}

/* Navigation */

.ju-resource-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 12px 20px;
    min-height: 48px;
    margin: 0;
}

.ju-resource-nav a {
    font-size: 14px;
    line-height: 1.5;
}

/* Homepage */

.ju-home {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Hero */

.ju-hero {
    padding: 28px 20px 12px !important;
    margin: 0 !important;
}

.ju-hero-inner {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.ju-eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 1.2px;
}

.ju-hero h1 {
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
    margin: 0 0 10px;
}

.ju-hero p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.ju-search-panel {
    width: 100%;
    max-width: 1000px;
    padding: 16px 20px;
    margin: 20px auto 0;
    border-radius: 9px;
}

.ju-hero-caption {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

/* Search Form */

.ju-search-panel form {
    width: 100%;
    max-width: 100%;
}

.ju-search-panel #searchForm .searchForm-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.ju-search-panel #searchForm .searchForm-query {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.ju-search-panel #searchForm input.searchForm_lookfor {
    width: 100% !important;
    min-width: 0;
    height: 44px;
}

.ju-search-panel #searchForm select.searchForm_type {
    flex: 0 0 160px;
    height: 44px;
}

.ju-search-panel #searchForm button[type="submit"] {
    min-height: 44px;
    white-space: nowrap;
}

/* Resource Section */

.ju-resources {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 18px 20px 32px !important;
}

.ju-section-heading {
    text-align: center;
    margin: 0 0 20px !important;
}

.ju-section-heading h2 {
    font-size: 25px;
    line-height: 1.25;
    margin: 0 0 6px;
}

.ju-section-heading p {
    font-size: 14px;
    margin: 0;
}

/* Resource Cards */

.ju-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ju-resource-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border-radius: 9px;
}

.ju-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.ju-resource-card h3 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 8px;
}

.ju-resource-card p {
    font-size: 13px;
    line-height: 1.5;
    min-height: 0;
    margin: 0 0 14px;
}

.ju-card-action {
    margin-top: auto;
    font-size: 12px;
}

/* Tablet */

@media (max-width: 991px) {

    .ju-hero {
        padding: 24px 16px 12px !important;
    }

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

    .ju-resources {
        padding: 18px 16px 28px !important;
    }

    .ju-resource-nav {
        gap: 8px 16px;
    }
}

/* Mobile */

@media (max-width: 767px) {

    .banner.navbar {
        min-height: 60px;
        padding: 8px 0;
    }

    .ju-university-name {
        font-size: 13px;
    }

    .ju-portal-name {
        font-size: 10px;
    }

    .ju-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .ju-resource-nav {
        padding: 10px 12px;
        gap: 8px 14px;
    }

    .ju-resource-nav a {
        font-size: 12px;
    }

    .ju-hero {
        padding: 24px 12px 10px !important;
    }

    .ju-eyebrow {
        font-size: 10px;
    }

    .ju-hero h1 {
        font-size: clamp(23px, 6vw, 29px);
    }

    .ju-hero p {
        font-size: 13px;
    }

    .ju-search-panel {
        padding: 14px;
        margin-top: 18px;
    }

    .ju-search-panel #searchForm .searchForm-inputs {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ju-search-panel #searchForm .searchForm-query {
        flex: 0 0 auto;
        width: 100%;
    }

    .ju-search-panel #searchForm input.searchForm_lookfor {
        width: 100% !important;
        height: 44px;
    }

    .ju-search-panel #searchForm select.searchForm_type {
        flex: 0 0 auto;
        width: 100%;
        height: 44px;
    }

    .ju-search-panel #searchForm button[type="submit"] {
        width: 100%;
        min-height: 44px;
    }

    .ju-hero-caption {
        font-size: 11px;
    }

    .ju-resources {
        padding: 16px 12px 24px !important;
    }

    .ju-section-heading {
        margin-bottom: 16px !important;
    }

    .ju-section-heading h2 {
        font-size: 22px;
    }

    .ju-resource-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ju-resource-card {
        padding: 18px;
    }

    .ju-resource-card p {
        margin-bottom: 10px;
    }
}

/* Small Mobile */

@media (max-width: 380px) {

    .ju-university-name {
        font-size: 12px;
    }

    .ju-portal-name {
        font-size: 9px;
    }

    .ju-hero h1 {
        font-size: 22px;
    }

    .ju-resource-nav {
        gap: 6px 12px;
    }
}

/* JU Discover - Mobile UI Refinement v4 */

@media (max-width: 767px) {

    /* University Header */
    .banner.navbar {
        padding: 8px 0;
    }

    .banner .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .banner .ju-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 55px);
    }

    .ju-brand-text {
        min-width: 0;
    }

    .ju-university-name {
        font-size: 12px;
        line-height: 1.3;
    }

    .ju-portal-name {
        font-size: 10px;
    }

    /* Hamburger Menu */
    .banner .navbar-toggler {
        flex-shrink: 0;
        border: 1px solid rgba(255,255,255,.55);
        color: #ffffff;
        background: rgba(255,255,255,.10);
        padding: 7px 10px;
    }

    /* Horizontal Resource Navigation */
    .ju-resource-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 18px;
        padding: 12px 14px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .ju-resource-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.5;
    }

    /* Hero */
    .ju-hero {
        padding: 22px 14px 8px !important;
    }

    .ju-eyebrow {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .ju-hero h1 {
        font-size: clamp(23px, 5.5vw, 28px);
        line-height: 1.22;
        margin-bottom: 10px;
    }

    .ju-hero p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Search Panel */
    .ju-search-panel {
        margin-top: 18px;
        padding: 14px;
        border-radius: 9px;
    }

    .ju-search-panel #searchForm .searchForm-inputs {
        gap: 9px;
    }

    /* Search Caption */
    .ju-hero-caption {
        margin-top: 12px;
        font-size: 11px;
    }

    /* Resources */
    .ju-resources {
        padding: 16px 14px 28px !important;
    }

    .ju-section-heading {
        margin-bottom: 16px !important;
    }

    .ju-section-heading h2 {
        font-size: 22px;
    }

    /* Cards */
    .ju-resource-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ju-resource-card {
        padding: 18px;
        min-height: 0;
    }

    .ju-card-icon {
        font-size: 26px;
        margin-bottom: 10px;
    }
}

/* JU Discover Bilingual Header v5 */

.banner .container {
    display: flex;
    align-items: center;
}

.ju-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
}

.ju-language-switch a {
    color: #dce8f3;
    text-decoration: none;
    padding: 5px 3px;
}

.ju-language-switch a.active {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ju-language-switch a:hover,
.ju-language-switch a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.ju-language-switch span {
    color: rgba(255,255,255,.45);
}

@media (min-width: 768px) {
    .banner .ju-language-switch {
        order: 1;
        margin-left: 8px;
    }

    .banner #header-collapse {
        order: 2;
        flex-grow: 0;
    }
}

@media (max-width: 767px) {
    .banner .ju-language-switch {
        margin-left: auto;
        padding: 0 7px;
        gap: 5px;
        font-size: 12px;
    }

    .banner .ju-brand {
        max-width: none;
        flex: 1 1 auto;
    }

    .banner .navbar-toggler {
        margin-left: 5px;
        flex: 0 0 auto;
    }
}

@media (max-width: 390px) {
    .ju-university-name {
        font-size: 11px;
    }

    .ju-portal-name {
        font-size: 9px;
    }

    .ju-language-switch {
        font-size: 11px;
        gap: 3px;
    }
}

/* JU Discover - Final Language Pill v6 */

.banner.navbar .container {
    display: flex;
    align-items: center;
}

/* Brand remains on the left */
.banner .ju-brand {
    order: 0;
    flex: 0 1 auto;
}

/* Login / account menu moves right */
.banner #header-collapse {
    order: 2;
    flex: 0 1 auto;
    flex-grow: 0;
    margin-left: auto;
}

/* Single language switcher at far right */
.banner .ju-language-switch {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 0 0 16px;
    padding: 4px;
    border-radius: 999px;
    background: #e1e9fa;
    white-space: nowrap;
    flex-shrink: 0;
}

.banner .ju-language-switch > span {
    display: none;
}

.banner .ju-language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #102556;
    background: transparent;
    text-decoration: none;
    line-height: 1.2;
}

.banner .ju-language-switch a.active {
    background: #0961e8;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.banner .ju-language-switch a:hover,
.banner .ju-language-switch a:focus-visible {
    background: #c9d8f4;
    color: #102556;
    text-decoration: none;
}

.banner .ju-language-switch a.active:hover,
.banner .ju-language-switch a.active:focus-visible {
    background: #0754cf;
    color: #ffffff;
}

/* Mobile header */

@media (max-width: 767px) {

    .banner .ju-brand {
        order: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .banner .ju-language-switch {
        order: 1;
        margin-left: auto;
        padding: 3px;
        gap: 2px;
    }

    .banner .ju-language-switch a {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 11px;
    }

    .banner .navbar-toggler {
        order: 2;
        margin-left: 8px;
    }

    .banner #header-collapse {
        order: 3;
        flex: 0 0 100%;
        margin-left: 0;
    }
}

@media (max-width: 390px) {
    .banner .ju-language-switch a {
        padding: 6px 7px;
        font-size: 10px;
    }

    .ju-university-name {
        font-size: 11px;
    }

    .ju-portal-name {
        font-size: 9px;
    }
}


/* JU Discover v7: Bengali typography, JU emblem and compact footer */
.ju-home[lang="bn"], .ju-home[lang="bn"] :is(h1,h2,h3,p,a,span),
.banner .lang-bn, .banner .lang-bn * {
    font-family: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Shulekha", sans-serif;
}
.ju-home[lang="bn"] h1 { line-height: 1.4; }
.ju-home[lang="bn"] h2, .ju-home[lang="bn"] h3 { line-height: 1.45; }
.ju-home[lang="bn"] .ju-resource-card { min-width: 0; }
.ju-home[lang="bn"] .ju-resource-card p { line-height: 1.7; }
.banner .ju-brand-logo { background: #fff; overflow: hidden; padding: 4px; }
.banner .ju-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.ju-global-footer {
  border-top: 1px solid #dce3eb; background: #e9edf2;
  color: #173b58; padding: 18px 16px;
  text-align: center; font-size: 13px;
}
.ju-global-footer-inner { max-width: 1180px; margin: auto; }
.ju-footer-subtitle { margin-top: 3px; font-size: 12px; color: #64748b; }
.ju-footer-separator { margin: 0 8px; color: #64748b; }
@media(max-width:767px) {
  .ju-global-footer { padding: 15px 12px; font-size: 12px; }
  .ju-home[lang="bn"] h1 { font-size: clamp(23px, 6vw, 29px); }
  .ju-home[lang="bn"] .ju-resource-card h3 { font-size: 16px; }
}

/* JU Discover v7.1: Search Results Search Bar */

form.searchForm:not(.ju-search-panel form) {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

form.searchForm .searchForm-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

form.searchForm .searchForm-query {
    flex: 1 1 500px;
    width: auto;
    min-width: 0;
    max-width: none;
}

form.searchForm input.searchForm_lookfor {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 44px;
}

form.searchForm select.searchForm_type {
    flex: 0 0 160px;
    min-height: 44px;
}

form.searchForm button[type="submit"] {
    min-height: 44px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    form.searchForm .searchForm-inputs {
        flex-wrap: wrap;
        gap: 8px;
    }

    form.searchForm .searchForm-query {
        flex: 1 1 100%;
        width: 100%;
    }

    form.searchForm select.searchForm_type {
        flex: 1 1 145px;
    }
}

/* JU Discover: Koha holdings location highlighting */
.ju-home ~ .record,
.record .fullLocation,
table .fullLocation {
    font-weight: 600;
}

table .fullLocation {
    color: #173B58;
    background-color: #EAF3FF;
    border-left: 3px solid #2563A6;
}

table .fullLocation a {
    color: #1557A0;
    text-decoration: none;
}

table .fullLocation a:hover {
    text-decoration: underline;
}
