/**
 * @Author: Waris Agung Widodo <user>
 * @Date:   2018-01-22T10:46:36+07:00
 * @Email:  ido.alit@gmail.com
 * @Filename: style.css
 * @Last modified by:   user
 * @Last modified time: 2018-01-26T11:08:52+07:00
 */

@import url('../../../../css/core.css');

:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --primary: #9b324a;
    --primary-light: #c03f5a;
    --primary-dark: #7a2838;
    --primary-glow: rgba(192, 63, 90, 0.35);
    --accent: #06b6d4;
    --dark-bg: #090d16;
    --dark-surface: #111827;
    --card-bg: #ffffff;
    --card-border: rgba(226, 232, 240, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

body {
    font-family: var(--font-sans) !important;
    color: var(--text-main);
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

/* ========================================================
   HERO
   ======================================================== */
.hero-section {
    position: relative;
    background: #0a0d14;
}

.c-header.modern-c-header {
    overflow: hidden;
}

.c-header {
    min-height: 460px;
    background: url('../images/slide1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 90%;
    position: relative;
}

.c-header.modern-c-header {
    min-height: 580px;
    background: transparent !important;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding-bottom: 64px;
}

.hero-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(100deg, rgba(9, 13, 20, 0.94) 0%, rgba(9, 13, 20, 0.8) 36%, rgba(9, 13, 20, 0.4) 62%, rgba(9, 13, 20, 0.12) 100%);
    pointer-events: none;
}

.c-header .mask {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 40px;
}

.hero-hours-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 20px 22px;
    min-width: 260px;
    margin-bottom: 4px;
}

.hero-hours-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.hero-hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 0.88rem;
    color: #f1f5f9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-hours-row-muted {
    color: #cbd5e1;
    font-size: 0.82rem;
    border-bottom: none;
}

.hero-hours-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f0b8c3;
    text-decoration: none !important;
}

.hero-hours-link:hover {
    color: #ffffff;
}

.hero-panel {
    max-width: 620px;
    border-left: 3px solid var(--primary-light);
    padding-left: 28px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    color: #f0b8c3;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
}

.hero-eyebrow-mark {
    width: 18px;
    height: 2px;
    background: var(--primary-light);
    margin-right: 10px;
    flex-shrink: 0;
}

.hero-title {
    font-size: 2.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.08rem;
    color: #e2e8f0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 540px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 6px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hero-stat strong {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-stat span {
    color: #e2e8f0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
    .hero-panel {
        border-left: none;
        border-top: 3px solid var(--primary-light);
        padding-left: 0;
        padding-top: 20px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-stats {
        gap: 14px;
    }
}

/* ========================================================
   MODERN NAVBAR
   ======================================================== */
.modern-navbar {
    background: rgba(9, 13, 22, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.brand-logo-wrap {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.brand-logo-wrap:has(.brand-icon) {
    width: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(192, 63, 90, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-icon {
    width: 22px;
    height: 22px;
    color: #d78495;
}

.brand-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.03em;
}

.nav-pill-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-pill-link:hover,
.nav-item.active .nav-pill-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active .nav-pill-link {
    font-weight: 600;
    color: #e3aab6 !important;
}

.btn-member-pill {
    background: linear-gradient(135deg, #9b324a 0%, #c03f5a 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    padding: 8px 18px !important;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(155, 50, 74, 0.35);
    transition: all 0.25s ease;
}

.btn-member-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 50, 74, 0.5);
    color: #ffffff !important;
}

.basket-link {
    position: relative;
    color: #cbd5e1 !important;
    font-size: 1.1rem;
    padding: 8px 12px !important;
}

.badge-basket {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

.user-pill-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 4px 14px 4px 6px !important;
    color: #f1f5f9 !important;
    font-weight: 500;
    font-size: 0.88rem;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-pill-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px !important;
    color: #cbd5e1 !important;
}

.glass-dropdown {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
    padding: 8px;
    min-width: 180px;
}

.glass-dropdown .dropdown-item {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 8px;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(192, 63, 90, 0.15);
    color: #ffffff;
}

.glass-dropdown .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

/* ========================================================
   COMMAND BAR SEARCH WRAPPER
   ======================================================== */
.modern-search-wrapper {
    margin-top: -46px;
    margin-bottom: -20px;
    position: relative;
    z-index: 10;
}

.glass-search-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(192, 63, 90, 0.08);
    padding: 10px 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-search-card:focus-within {
    box-shadow: 0 25px 60px -10px rgba(192, 63, 90, 0.3), 0 0 0 3px rgba(192, 63, 90, 0.25);
    transform: translateY(-2px);
}

.search-input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(192, 63, 90, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    color: #9b324a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-right: 12px;
}

.modern-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.12rem;
    font-weight: 500;
    color: #0f172a;
    padding: 10px 6px;
    font-family: var(--font-sans);
}

.modern-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.btn-search-action {
    background: linear-gradient(135deg, #9b324a 0%, #c03f5a 100%);
    border: none;
    outline: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(155, 50, 74, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-search-action:hover {
    box-shadow: 0 6px 20px rgba(155, 50, 74, 0.5);
    transform: translateY(-1px);
}

/* Glass Popup for Filters */
.glass-popup {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 20px 24px;
    position: absolute;
    left: 15px;
    right: 15px;
    top: 68px;
    z-index: 1000;
}

.popup-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.close-popup-btn {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-popup-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-chip {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.filter-chip-active {
    background: #9b324a;
    color: #ffffff;
    border: 1px solid #9b324a;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(155, 50, 74, 0.3);
}

.filter-chip-adv {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #9b324a;
}

.filter-chip-adv:hover {
    background: #fbf3f5;
    border-color: #e3aab6;
}

.recent-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.recent-tag:hover {
    background: #fbf3f5;
    border-color: #edc9d1;
    color: #9b324a;
}

/* ========================================================
   SECTION HEADINGS & TAGS
   ======================================================== */
.section-tag {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-tag::before {
    content: '';
    width: 18px;
    height: 2px;
    background: currentColor;
    margin-right: 10px;
    flex-shrink: 0;
}

.section-tag-green {
    color: #059669;
}

.section-tag-amber {
    color: #d97706;
}

.section-title {
    font-size: 1.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 0.98rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.btn-view-all {
    color: #9b324a;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-view-all:hover {
    color: #7a2838;
    transform: translateX(4px);
}

/* ========================================================
   TOPIC & CATEGORY CARDS
   ======================================================== */
.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 991px) {
    .col-lg-2-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 576px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.modern-topic-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 3px solid transparent;
    border-radius: 12px;
    padding: 20px 18px;
    text-align: left;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.modern-topic-card:hover {
    box-shadow: 0 14px 28px -12px rgba(15, 23, 42, 0.16);
    transform: translateY(-3px);
}

.topic-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}

.topic-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.modern-topic-card:hover .topic-icon-wrap {
    transform: scale(1.08);
}

.topic-icon-indigo { background: #fbf3f5; color: #9b324a; }
.topic-icon-blue   { background: #f1f5f9; color: #475569; }
.topic-icon-teal   { background: #ecfdf5; color: #15803d; }
.topic-icon-rose   { background: #fffbeb; color: #b45309; }
.topic-icon-amber  { background: #fefce8; color: #a16207; }

.topic-icon-font {
    font-size: 16px;
    color: inherit;
}

.topic-count {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.topic-accent-indigo:hover { border-top-color: #9b324a; }
.topic-accent-blue:hover   { border-top-color: #475569; }
.topic-accent-teal:hover   { border-top-color: #15803d; }
.topic-accent-rose:hover   { border-top-color: #b45309; }
.topic-accent-amber:hover  { border-top-color: #a16207; }

.topic-info {
    width: 100%;
    min-width: 0;
}

.topic-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.topic-arrow {
    font-size: 0.68rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.modern-topic-card:hover .topic-arrow {
    opacity: 1;
    transform: translateX(0);
}

.topic-code {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.topic-rank-badge {
    position: absolute;
    top: -11px;
    left: 16px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 11px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(155, 50, 74, 0.35);
    white-space: nowrap;
}

.topic-bar-track {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
}

.topic-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.topic-fill-indigo { background: #9b324a; }
.topic-fill-blue   { background: #475569; }
.topic-fill-teal   { background: #15803d; }
.topic-fill-rose   { background: #b45309; }
.topic-fill-amber  { background: #a16207; }

/* Quick classification chip row (compact Dewey browse, sits above the subject cards) */
.quick-browse-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
}

.quick-browse-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 4px;
}

.quick-browse-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.quick-browse-chip i {
    color: var(--primary);
    font-size: 0.78rem;
}

.quick-browse-chip span.chip-range {
    color: #94a3b8;
    font-weight: 500;
}

.quick-browse-chip:hover {
    border-color: var(--primary-light);
    background: #fbf3f5;
    color: #1e293b;
}

/* Modal Topic Cards */
.modern-modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

.modal-topic-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.modal-topic-card:hover {
    background: #ffffff;
    border-color: #e3aab6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(155, 50, 74, 0.12);
}

.modal-topic-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modal-topic-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.badge-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9b324a;
    background: #fbf3f5;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

.modal-topic-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
    line-height: 1.3;
}

/* ========================================================
   MODERN FOOTER
   ======================================================== */
.modern-footer {
    background: #090d16;
    color: #e2e8f0;
    border-top: 3px solid var(--primary);
}

.footer-logo {
    height: 38px;
    width: auto;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.footer-subtext {
    font-size: 0.82rem;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-link {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-block;
    padding: 5px 0;
    text-decoration: none !important;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-input-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.88rem;
    padding: 10px 14px;
}

.footer-input::placeholder {
    color: #64748b;
}

.btn-footer-search {
    background: #9b324a;
    border: none;
    color: #ffffff;
    padding: 0 16px;
    transition: background 0.2s;
}

.btn-footer-search:hover {
    background: #c03f5a;
}

.btn-footer-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s;
}

.btn-footer-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.badge-status-online {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 9999px;
    color: #34d399;
    font-size: 0.76rem;
    font-weight: 600;
}

.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34d399;
    box-shadow: 0 0 8px #34d399;
    margin-right: 6px;
}

.badge-status-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 500;
}

.badge-slims {
    background: rgba(192, 63, 90, 0.2);
    color: #e3aab6;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.76rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

.text-indigo {
    color: #c03f5a !important;
}

.rounded-pill {
    border-radius: 9999px !important;
}

.text-thin {
    font-weight: 300 !important;
}

.subtitle-section {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
}

.btn-rounded {
    border-radius: 9999px !important;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.card-text.title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.link-see-more {
    font-weight: 600;
    color: #9b324a;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.link-see-more:hover {
    color: #7a2838;
    transform: translateX(3px);
}

.card-image-rounded {
    width: 84px;
    height: 84px;
    overflow: hidden;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.card:hover .card-image-rounded {
    transform: scale(1.05);
}

.card-image {
    position: relative;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.18);
    background: #f1f5f9;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    aspect-ratio: 285 / 379;
    height: auto !important;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 7px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

.card:hover .card-image {
    box-shadow: 0 20px 34px -12px rgba(15, 23, 42, 0.32);
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.045);
}

.collection .card-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-readers-section .card {
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.top-readers-section .card:hover {
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.result-search .c-header {
    min-height: 160px;
}

.member-area .c-header {
    min-height: 40px;
}

.item p {
    font-size: 10pt;
}

.authors a {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    background: #f4f1ed;
    border: 1px solid #e5e1dc;
    border-radius: 9999px;
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 3px 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.authors a:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: #fbf3f5;
}

/* ========================================================
   SEARCH RESULT CARD (list view)
   ======================================================== */
.result-card {
    background: #ffffff;
    border: 1px solid #e5e1dc;
    border-radius: 10px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.result-card:hover {
    border-color: #d9d3cc;
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.18);
}

.result-card-inner {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.result-cover-col {
    flex-shrink: 0;
}

.result-cover {
    width: 96px;
    box-shadow: none;
}

.result-main-col {
    flex: 1 1 260px;
    min-width: 0;
}

.result-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none !important;
    line-height: 1.35;
    margin-bottom: 4px;
}

.result-title:hover {
    color: var(--primary);
}

.result-notes {
    color: #6b6560;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 8px 0 0;
}

.result-side-col {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9999px;
    margin-bottom: 4px;
}

.result-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.result-status.status-available {
    background: #ecfdf5;
    color: #059669;
}

.result-status.status-unavailable {
    background: #f4f1ed;
    color: #8a8178;
}

.result-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #45403a;
    background: transparent;
    border: 1px solid #d9d3cc;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.result-action-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: #fbf3f5;
}

@media (max-width: 575px) {
    .result-card-inner {
        flex-direction: column;
    }
    .result-cover {
        width: 110px;
    }
    .result-side-col {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .result-side-col .result-status {
        width: 100%;
    }
    .result-action-btn {
        width: auto;
        flex: 1;
    }
}

/* ========================================================
   SEARCH SIDEBAR FILTERS
   ======================================================== */
#search-filter .list-group-item {
    border-color: #e5e1dc !important;
    padding-left: 0;
    padding-right: 0;
}

#search-filter strong.text-sm {
    color: #1e293b;
    font-weight: 700;
}

#search-filter .form-check-input {
    accent-color: var(--primary);
}

#search-filter .form-check-label {
    color: #45403a;
    font-size: 0.88rem;
}

#search-filter .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

#search-filter .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

#search-filter .irs--flat .irs-bar,
#search-filter .irs--flat .irs-handle > i:first-child,
#search-filter .irs--flat .irs-from,
#search-filter .irs--flat .irs-to,
#search-filter .irs--flat .irs-single {
    background-color: var(--primary) !important;
}

#search-filter .irs--flat .irs-from::before,
#search-filter .irs--flat .irs-to::before,
#search-filter .irs--flat .irs-single::before {
    border-top-color: var(--primary) !important;
}

.search-found-info {
    color: #45403a;
    font-size: 0.92rem;
}

.search-found-info strong {
    color: var(--primary);
}

.biblioPaging {
    text-align: center;
    border-top: 1px solid #e5e1dc;
    padding-top: 20px;
}

.biblioPaging:first-child {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e1dc;
    border-top: none;
    padding-bottom: 20px;
    padding-top: 0px;
}

.biblioPaging .pagingList {
    display: inline-flex;
    justify-content: center;
    background: #f4f1ed;
    border-radius: 20px;
}

.biblioPaging .pagingList b,
.biblioPaging .pagingList a {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}

.biblioPaging .pagingList b {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 20px;
    min-width: 38px;
    box-shadow: 0 0 10px rgba(155, 50, 74, 0.4);
}

.biblioPaging .pagingList a {
    color: #45403a;
    background-color: transparent;
}

.biblioPaging .pagingList a:hover {
    color: var(--primary);
}

.biblioPaging .pagingList a.first_link {
    padding-left: 20px;
}

.biblioPaging .pagingList a.last_link {
    padding-right: 20px;
}

.sugestion {
    min-height: 80px;
    margin-top: 16px;
    padding-left: 60px;
}

.sugestion .title {
    font-weight: 600;
}

.sugestion .author {
    color: #839CB5;
}

.container-img {
    width: 60px;
    position: absolute;
    top: -10px;
    left: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.sugestion .card-text {
    font-size: 12px;
}

.text-label {
    font-weight: bold !important;
}

/* Enter and leave animations can use different */
/* durations and timing functions.              */
.slide-fade-enter-active {
    transition: all .3s ease;
}

.slide-fade-leave-active {
    transition: all .5s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}

.slide-fade-enter, .slide-fade-leave-to
    /* .slide-fade-leave-active below version 2.1.8 */
{
    transform: translateX(10px);
    opacity: 0;
}

/* Card elevation */

.elevation-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.elevation-1:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.elevation-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.elevation-3 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.elevation-4 {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.elevation-5 {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

.page-member-area .memberButton,
.jsonResultLink,
.xmlResultLink {
    font-weight: 400;
    color: #007bff;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.jsonResultLink:hover,
.xmlResultLink:hover {
    color: #0056b3;
    text-decoration: none;
}

.jsonResultLink:focus,
.xmlResultLink:focus {
    text-decoration: none;
    box-shadow: none;
}

.jsonResultLink:disabled,
.xmlResultLink:disabled {
    color: #6c757d;
    pointer-events: none;
}

.biblioMarkFormAction {
    display: none;
}

.memberInfoHead {
    font-size: 24px;
    font-weight: bold;
    border-left: 4px solid #848484;
    padding: 2px 4px 2px 16px;
    margin-bottom: 16px;
}

.page-member-area .tagline {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 1.5rem;
}

.page-member-area .memberButton {
    background-color: #0074e7;
    color: white;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 200ms ease-in-out;
}

.page-member-area .memberButton:hover {
    background-color: #0085ff;
    box-shadow: 0 0 4px rgba(0, 0, 0, .05), 0 6px 10px rgba(0, 0, 0, .08);
}

.page-member-area .errorBox {
    color: #fd423d;
    padding: 1rem;
    background-color: rgba(255, 67, 61, 0.22);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.page-member-area .loginInfo {
    padding: 0.5rem 0;
}

.page-member-area .fieldLabel {
    font-weight: bold;
    padding: 0.2rem 0;
}

.page-member-area .form-control {
    width: 320px;
}

.librarian {
    display: flex;
    margin-bottom: 1.5rem;
    flex: 0 50%;
}

.span2 {
    width: 12rem;
}

.span2 div:first-child {
    padding: 2rem;
    background: #dae1e7;
    border-radius: 4px;
}

.span2 img {
    border-radius: 4px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px 0 rgba(0, 0, 0, 0.08);
}

.span8 {
    flex: 1;
    padding: 0 1rem 0 1rem;
}

.span8 .row-fluid {
    display: flex;
}

.span8 .row-fluid .key {
    flex: 0 0 100px;
    font-weight: bold;
}

.span8 .row-fluid .value {
    flex: 1;
}

.span8 .librarian-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

#loginForm form {
    width: 20rem;
}

#loginForm .heading1 {
    font-weight: bold;
}

#loginForm .login_input input {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 8px;
}

#loginForm .homeButton {
    display: none;
}

.loginButton {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#loginForm .loginButton {
    margin-top: 10px;
}

#loginForm .loginButton {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

#loginForm .loginButton:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

#adv-modal .modal-content,
#adv-modal .modal-footer {
    position: relative;
    z-index: 1;
}

#adv-modal .modal-content:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-image: url("../images/logo-big.png");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position-x: 500px;
    background-position-y: 250px;
    z-index: 0;
    opacity: 0.5;
}

.attachList {
    padding: 4px 24px;
}

.attachList li {
    padding: 4px 0;
}

.comment-found {
    display: inline-block;
    margin-bottom: 8px;
}

.comments {
    padding: 8px 0;
    border-top: 1px dotted #cbd5e0;
}

.comments .comment-member {
    font-size: 10pt;
    font-weight: bold;
}

.comments .comment-content {
    color: #4a5568;
}

#colorbox {
    border-radius: 5px;
}

#cboxLoadedContent {
    padding: 10px;
}

#cboxOverlay {
    background: #404040;
}

#cboxTitle {
    font: 10pt/1.8 'Quicksand', sans-serif;
    font-weight: bold;
    padding: 15px 0;
    background: #000000;
    bottom: 0;
    color: #ffffff;
}

#cboxTopLeft,
#cboxTopRight,
#cboxBottomLeft,
#cboxBottomRight {
    width: 0;
    height: 0;
}

#cboxMiddleLeft,
#cboxMiddleRight {
    width: 0;
}

#cboxBottomCenter,
#cboxTopCenter {
    height: 0;
}

#languageMenuButton::after {
    display: none;
}

.s-chat {
    display: none;
    flex-direction: column;
    width: 320px;
    height: 480px;
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
    z-index: 99;
}

.s-chat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: #EF6C00;
    z-index: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.s-chat div,
.s-chat a,
.s-chat footer {
    position: relative;
    z-index: 10;
}

#show-pchat {
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 20;
    top: 0;
    right: 0;
    background-color: white;
    border-bottom-left-radius: 4px;
    cursor: pointer;
}

#show-pchat i {
    display: none;
}

#show-pchat:hover {
    opacity: .9;
}

#show-pchat:before {
    font-family: Font Awesome\ 5 Free;
    content: "\f2d1";
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
}

.s-chat-header {
    font-size: 24px;
    font-weight: 300;
    color: #ebf8ff;
    line-height: 1.2;
}

.s-chat-content.text-center {
    position: relative;
}

.s-chat-content.text-center form {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0 16px;
    margin-top: 4px;
}

.s-chat-content.text-center p:first-of-type {
    text-align: left;
    font-size: 14px;
    color: #FFE0B2;
    font-weight: 300;
    margin: 0 -16px;
    line-height: 1;
}

.s-chat-content.text-center hr {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 378px;
    z-index: 1;
}

.s-chat-content.text-center label {
    z-index: 10;
    position: relative;
    margin-top: 20px;
    font-size: 14px;
}

.s-chat-content.text-center input#message {
    z-index: 10;
    position: relative;
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin-bottom: 16px;
}

.s-chat-content input#message:focus,
.s-chat-content.text-center input#message:focus {
    color: #495057;
    background-color: #fff;
    border-color: #FFCC80;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255,204,128,.25);
}

.s-chat-content label {
    z-index: 10;
    position: relative;
}

.s-chat-content input#message {
    z-index: 10;
    position: relative;
    display: inline-block;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin-bottom: 8px;
}

.s-chat-content .btn.btn-block {
    border: 1px solid #E65100;
    position: relative;
    z-index: 10;
    font-size: 14px;
    background-color: #EF6C00;
    color: #FFF3E0;
}

.s-chat-content .btn.btn-block:hover {
    background-color: #F57C00;
}

.s-chat-content:not(.text-center) {
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    height: 370px;
    margin: 8px 0;
    padding: 16px;
    font-size: 14px;
}

.s-chat-content #log {
    height: 270px;
    background-color: white;
    margin: -16px -16px 8px -16px;
    border-radius: 8px 8px 0 0;
    padding: 16px;
    border-bottom: 1px solid #e3e3e3;
    overflow-y: scroll;
}

.s-chat footer {
    font-size: 11px;
    padding: 16px;
    display: none;
}

.s-chat footer:not(.text-center) {
    font-size: 11px;
    padding: 0;
    display: block;
}

.remember_forgot {
    display: flex;
    justify-content: space-between;
}

.expand {
    margin: 0 -1.25rem -1.25rem -1.25rem;
}

.navbar-collapse.collapsing,
.navbar-collapse.collapse.show {
    background-color: #2d3748;
    padding: 16px;
    z-index: 99;
    border-radius: 4px;
    margin-top: 8px;
}

.forgotButton {
    float: right;
    text-decoration: none;
    padding-top: 16px;
    color: #718096;
}

.forgotButton:hover {
    text-decoration: none;
    color: #4299E1;
}
.highlight{
	color:red;
}

.biblioPagingTop {
    display: none;
}

.grid-item {
    font-size: 12.04px;
    font-family: "Open Sauce One", sans-serif;
}

.grid-item--title {
	box-sizing: border-box;
    color: rgb(33, 33, 33);
    cursor: pointer;
    display: -webkit-box;
    line-height: 18.0667px;
    margin-bottom: 4px;
    max-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    word-break: keep-all;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.grid-item .list-group-item {
    padding: .25rem .5rem;
    display: flex;
    justify-content: space-between;
}

.grid-item .list-group-item label {
    color: #6D7588;
    padding: 0;
    margin: 0;
}


.grid-item--menu {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 10;
}

.grid-item--menu .dropdown-toggle {
    text-decoration: none;
    color: inherit;
}

.grid-item--menu .dropdown-toggle::after {
    display: none;
}

pre.sf-dump, pre.sf-dump .sf-dump-default {
    z-index: 888 !important;
}

.availability-item {
    color: white; 
    padding: 10px; 
    border-radius: 5px
}

.item-onloan, .item-notforloan  {
    background-color: #f00; 
    width: 100%; 
    display: block;
}

.item-available {
    background-color: #5bc0de; 
}

.item-onreserve {
    background-color: orange;
}

/* ========================================================
   DETAIL PAGE (modern)
   ======================================================== */
.detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.detail-cover-col {
    width: 240px;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .detail-cover-col {
        width: 180px;
        margin: 0 auto;
    }
}

.detail-cover-frame {
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.18);
}

.detail-cover-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-action-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.detail-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
}

.detail-action-btn:hover {
    background: #fbf3f5;
    border-color: #edc9d1;
    color: #9b324a;
}

.detail-action-btn.is-active {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.detail-main-col {
    flex: 1;
    min-width: 280px;
}

.detail-gmd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 14px 0 6px;
}

.detail-authors {
    color: #64748b;
    font-size: 0.98rem;
    font-weight: 500;
}

.detail-authors a {
    color: #9b324a;
    text-decoration: none !important;
    font-weight: 600;
}

.detail-authors a:hover {
    color: #7a2838;
}

.detail-notes {
    color: #475569;
    line-height: 1.7;
    margin: 18px 0;
}

.detail-section-heading {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 14px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.detail-section-heading:first-of-type {
    border-top: none;
    padding-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
}

@media (max-width: 767px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-row dt {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 2px;
}

.info-row dd {
    font-size: 0.92rem;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 0;
}

/* item copies / availability list on detail page */
.copy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.copy-location {
    flex: 1;
    min-width: 160px;
}

.copy-location .loc-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.copy-location .call-number {
    color: #64748b;
    font-size: 0.78rem;
}

.copy-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 8px;
}

.copy-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.copy-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.copy-status.item-available {
    background: #ecfdf5;
    color: #059669;
}

.copy-status.item-onloan {
    background: #fff7ed;
    color: #c2410c;
}

.copy-status.item-notforloan {
    background: #f1f5f9;
    color: #64748b;
}

.copy-status.item-onreserve {
    background: #fffbeb;
    color: #b45309;
}

.empty-state-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 14px 18px;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========================================================
   AUTH PAGES (member + librarian login)
   ======================================================== */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e5e1dc;
    border-top: 3px solid var(--primary);
    border-radius: 10px;
    padding: 36px 32px;
}

.auth-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #fbf3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #171310;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: #6b6560;
    line-height: 1.5;
    margin-bottom: 22px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #45403a;
    margin-bottom: 6px;
}

.auth-field input[type="text"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #d9d3cc;
    background: #faf8f6;
    font-size: 0.95rem;
    color: #171310;
    transition: all 0.2s ease;
}

.auth-field input[type="text"]:focus,
.auth-field input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(192, 63, 90, 0.12);
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b6560;
}

.auth-submit-btn {
    width: 100%;
    background: var(--primary);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
}

.auth-home-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none !important;
}

.auth-home-link:hover {
    color: #9b324a;
}

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.86rem;
    margin-bottom: 18px;
}

.auth-card .alert {
    border-radius: 12px;
    font-size: 0.86rem;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.auth-card .alert-heading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.auth-card .alert p {
    margin-bottom: 0;
}

/* ========================================================
   MEMBER DASHBOARD
   ======================================================== */
.dash-wrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.1);
}

.dash-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fbf3f5;
    box-shadow: 0 8px 18px -6px rgba(155, 50, 74, 0.3);
    margin-bottom: 14px;
}

.dash-member-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    word-break: break-word;
}

.dash-member-id {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 18px;
}

.dash-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none !important;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.dash-sidebar-btn.is-primary {
    background: linear-gradient(135deg, #9b324a 0%, #c03f5a 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 18px -6px rgba(155, 50, 74, 0.4);
}

.dash-sidebar-btn.is-primary:hover {
    transform: translateY(-1px);
}

.dash-sidebar-btn.is-danger {
    background: #fef2f2;
    color: #b91c1c !important;
    border-color: #fecaca;
}

.dash-sidebar-btn.is-danger:hover {
    background: #fee2e2;
}

.dash-main {
    flex: 1;
    min-width: 280px;
}

.dash-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dash-status-pill.is-ok {
    background: #ecfdf5;
    color: #059669;
}

.dash-status-pill.is-warn {
    background: #fef2f2;
    color: #b91c1c;
}

.dash-greeting {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.dash-subinfo {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.dash-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 575px) {
    .dash-stat-row {
        grid-template-columns: 1fr;
    }
}

.dash-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.dash-stat-icon.indigo { background: #fbf3f5; color: #9b324a; }
.dash-stat-icon.green  { background: #ecfdf5; color: #059669; }
.dash-stat-icon.amber  { background: #fffbeb; color: #d97706; }

.dash-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.dash-stat-label {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

/* Tab bar */
.dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 0;
    list-style: none;
}

.dash-tabs .nav-item {
    flex: 1;
}

.dash-tabs .nav-link {
    display: block;
    text-align: center;
    padding: 10px 14px !important;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b !important;
    border: none !important;
    white-space: nowrap;
}

.dash-tabs .nav-link.active {
    background: #ffffff !important;
    color: #9b324a !important;
    box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.12);
}

.dash-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 18px 18px;
    padding: 24px;
}

/* restyle legacy simbio_datagrid tables used inside the dashboard panel
   (structure/classes are generated by PHP and kept as-is; only visuals
   are overridden here to match the rest of the OPAC) */
.dash-panel .memberInfoHead {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    border-left: 3px solid #9b324a;
    padding: 2px 4px 2px 14px;
    margin-bottom: 14px;
}

.dash-panel .memberLoanList,
.dash-panel .memberBookmarkList,
.dash-panel .memberBasketList,
.dash-panel .memberDetail {
    width: 100% !important;
    margin: 0 0 4px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate !important;
}

.dash-panel table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.dash-panel .dataListHeader {
    background: #fbf3f5 !important;
    color: #7a2838;
}

.dash-panel .dataListHeader th {
    font-size: 0.76rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.dash-panel .memberLoanList td,
.dash-panel .memberBookmarkList td,
.dash-panel .memberBasketList td {
    padding: 12px !important;
    border-color: #f1f5f9 !important;
    font-size: 0.88rem;
    vertical-align: middle;
}

.dash-panel .alterCell,
.dash-panel .alterCell2 {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 12px !important;
}

.dash-panel .alterCell2 {
    background-color: #ffffff !important;
}

.dash-panel .memberLoanListInfo,
.dash-panel .memberLoanHistInfo,
.dash-panel .memberBasketInfo {
    padding: 0 !important;
    color: #475569;
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dash-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.dash-change-pass-form {
    max-width: 420px;
}

.dash-change-pass-btn {
    width: auto !important;
    padding-left: 28px;
    padding-right: 28px;
}

/* ========================================================
   INSTANT SEARCH SUGGESTIONS
   ======================================================== */
.suggest-status {
    padding: 18px 4px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

.suggest-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 360px;
    overflow-y: auto;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.suggest-item:hover {
    background: #f1f5f9;
}

.suggest-cover {
    width: 40px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.suggest-meta {
    min-width: 0;
}

.suggest-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-author {
    font-size: 0.76rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-view-all {
    text-align: center;
}

/* ========================================================
   GENERIC CONTENT PAGES (Information, Help, News, Librarian)
   ======================================================== */
.page-heading {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 30px 32px;
    box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
}

@media (max-width: 575px) {
    .content-card {
        padding: 22px 20px;
    }
}

/* typography for admin-authored HTML content (libinfo, help, etc.) */
.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 28px;
    margin-bottom: 10px;
}

.prose h1:first-child, .prose h2:first-child, .prose h3:first-child, .prose h4:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.15rem;
    padding-left: 14px;
    border-left: 3px solid #9b324a;
}

.prose p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 14px;
}

.prose strong {
    color: #1e293b;
}

.prose a {
    color: #9b324a;
    font-weight: 600;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.prose ul, .prose ol {
    color: #475569;
    line-height: 1.75;
    padding-left: 22px;
    margin-bottom: 14px;
}

/* Librarian directory */
.librarian-intro {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 24px;
}

.librarian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.librarian-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
}

.librarian-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fbf3f5;
    box-shadow: 0 8px 18px -6px rgba(155, 50, 74, 0.3);
    margin: 0 auto 14px;
    display: block;
}

.librarian-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.librarian-position {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #9b324a;
    background: #fbf3f5;
    padding: 3px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.librarian-meta {
    text-align: left;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: 4px;
}

.librarian-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #64748b;
    margin-bottom: 6px;
}

.librarian-meta-row i {
    color: #94a3b8;
    width: 16px;
    flex-shrink: 0;
}

.librarian-meta-row a {
    color: #475569;
    text-decoration: none !important;
    word-break: break-all;
}

.librarian-meta-row a:hover {
    color: #9b324a;
}

/* News list */
.news-list .card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08) !important;
}

.news-list .content-date {
    font-size: 0.78rem;
    color: #64748b !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-list .content-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.news-list .content-summary {
    color: #64748b;
    line-height: 1.7;
}

.news-list .content-readmore .btn {
    background: linear-gradient(135deg, #9b324a 0%, #c03f5a 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 8px 18px;
    border-radius: 9999px;
}

.news-list .alert {
    border-radius: 14px;
    border: none;
    font-size: 0.9rem;
}

.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;
}

/* ========================================================
   RESEARCH RESOURCES DROPDOWN
   ======================================================== */
.research-dropdown {
    min-width: 280px;
    max-height: 420px;
    overflow-y: auto;
}

.research-dropdown .dropdown-header {
    color: #e3aab6;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.research-dropdown .dropdown-item small {
    font-size: 0.72rem;
    opacity: 0.7;
}


/* ==========================================================================
   TIPM LIBRARY NEXTGEN ENTERPRISE DESIGN SYSTEM (2026 EDITION)
   ========================================================================== */

:root {
    --tipm-navy-deep: #07090e;
    --tipm-navy-slate: #0b0f19;
    --tipm-navy-surface: #111827;
    --tipm-indigo-primary: #4f46e5;
    --tipm-indigo-light: #6366f1;
    --tipm-cyan-glow: #06b6d4;
    --tipm-emerald-accent: #10b981;
    --tipm-amber-accent: #f59e0b;
    --tipm-glass-bg: rgba(255, 255, 255, 0.06);
    --tipm-glass-border: rgba(255, 255, 255, 0.1);
    --tipm-blur: blur(20px);
}

/* ----------------------------------------------------
   Hero NextGen Architecture
   ---------------------------------------------------- */
.hero-section-nextgen {
    position: relative;
    background: #080b11;
    min-height: 640px;
    padding-bottom: 70px;
    overflow: hidden;
}

.hero-ambient-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.7;
    animation: orbPulse 10s ease-in-out infinite alternate;
}

.mesh-orb-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, transparent 70%);
    top: -120px;
    left: 15%;
}

.mesh-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 70%);
    top: 140px;
    right: 8%;
    animation-delay: -3s;
}

.mesh-orb-3 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    bottom: -80px;
    left: 35%;
    animation-delay: -6s;
}

@keyframes orbPulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(20px, -20px); }
    100% { transform: scale(0.95) translate(-15px, 15px); }
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.45;
}

/* ----------------------------------------------------
   Hero Center & Typography
   ---------------------------------------------------- */
.hero-center-container {
    position: relative;
    z-index: 10;
    padding-top: 40px;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 6px 16px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 0.83rem;
    font-weight: 600;
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ----------------------------------------------------
   Hero Metrics Matrix
   ---------------------------------------------------- */
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 12px 16px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    text-align: left;
    transition: all 0.25s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.metric-number {
    display: block;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.2;
}

.metric-label {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ----------------------------------------------------
   Services Terminal Quick Actions
   ---------------------------------------------------- */
.services-terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 20px 18px;
    text-decoration: none !important;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.terminal-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.terminal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.terminal-card-icon.icon-cyan { background: rgba(6, 182, 212, 0.16); color: #22d3ee; }
.terminal-card-icon.icon-purple { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.terminal-card-icon.icon-emerald { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.terminal-card-icon.icon-amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }

.terminal-card-body h6 {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.terminal-card-body p {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

.terminal-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    align-self: flex-end;
    margin-left: auto;
    transition: all 0.2s ease;
}

.terminal-card:hover .terminal-arrow {
    color: #ffffff;
    transform: translateX(4px);
}

/* ----------------------------------------------------
   Main Portal Content & Section Headings
   ---------------------------------------------------- */
.main-portal-content {
    background: #f8fafc;
    min-height: 80vh;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
}

.section-pill.pill-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.section-pill.pill-cyan { background: rgba(6, 182, 212, 0.12); color: #0284c7; }

.portal-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.portal-subheading {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.btn-portal-outline {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-portal-outline:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.04);
}

/* ----------------------------------------------------
   Discipline Cards Grid
   ---------------------------------------------------- */
.discipline-grid {
    margin-top: 10px;
}

.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 991px) {
    .col-lg-2-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 576px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.discipline-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 18px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.discipline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
}

.discipline-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.discipline-card:hover .discipline-icon {
    transform: scale(1.1);
}

.discipline-code {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.discipline-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.35;
}

.discipline-action {
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

/* Card Themes */
.card-cyan .discipline-icon { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.card-cyan .discipline-code { background: #e0f2fe; color: #0284c7; }
.card-cyan .discipline-action { color: #0891b2; }

.card-indigo .discipline-icon { background: rgba(79, 70, 229, 0.12); color: #4f46e5; }
.card-indigo .discipline-code { background: #e0e7ff; color: #4338ca; }
.card-indigo .discipline-action { color: #4f46e5; }

.card-emerald .discipline-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.card-emerald .discipline-code { background: #dcfce7; color: #15803d; }
.card-emerald .discipline-action { color: #059669; }

.card-amber .discipline-icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.card-amber .discipline-code { background: #fef3c7; color: #b45309; }
.card-amber .discipline-action { color: #d97706; }

.card-all {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: none;
    color: #ffffff;
}

.card-all .discipline-icon { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.card-all .discipline-code { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.card-all .discipline-name { color: #ffffff; }
.card-all .discipline-action { color: #38bdf8; }

/* ----------------------------------------------------
   Trending Topics Panel
   ---------------------------------------------------- */
.trending-topics-panel {
    background: #0f172a;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.trending-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    color: #e2e8f0;
    text-decoration: none !important;
    margin: 4px;
    transition: all 0.2s ease;
}

.trending-topic-chip:hover {
    background: #4f46e5;
    border-color: #6366f1;
    color: #ffffff;
    transform: translateY(-2px);
}

.chip-count {
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
}

/* ----------------------------------------------------
   Research Hub Banner
   ---------------------------------------------------- */
.research-hub-banner {
    background: linear-gradient(135deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
}

.partner-chips {
    gap: 8px;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.partner-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-2px);
}

.portal-cta-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.cta-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.25);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ----------------------------------------------------
   Campus Location Hub & Live Status
   ---------------------------------------------------- */
.modern-hub-card {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.4);
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.live-status-pill.is-open {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.live-status-pill.is-closed {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.schedule-table {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 18px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: #e2e8f0;
}

.schedule-row.schedule-closed {
    border-bottom: none;
}

.schedule-label {
    font-weight: 600;
}

.schedule-time {
    font-weight: 700;
    color: #ffffff;
}

.map-container-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

