/**
 * @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 & AMBIENT GLOW
   ======================================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #330f17 0%, #0f172a 60%, #090d16 100%);
    overflow: hidden;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
}

.ambient-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 63, 90, 0.3) 0%, rgba(192, 63, 90, 0) 70%);
    top: -100px;
    left: 20%;
    animation: pulse-glow 8s ease-in-out infinite alternate;
}

.ambient-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
    top: 50px;
    right: 15%;
    animation: pulse-glow 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.1) translate(20px, 15px); opacity: 1; }
}

.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: 520px;
    background: transparent !important;
    position: relative;
    z-index: 2;
    padding-bottom: 70px;
}

.hero-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.2) 0%, rgba(9, 13, 22, 0.7) 100%);
    pointer-events: none;
}

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

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 50px;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #f6e4e8;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    margin-right: 8px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #e3aab6 0%, #38bdf8 50%, #d78495 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

.hero-highlights {
    gap: 10px;
}

.highlight-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.highlight-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ========================================================
   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 {
    width: 42px;
    height: 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);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.brand-img {
    width: 100%;
    height: 100%;
    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 16px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.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-block;
    padding: 4px 12px;
    background: #fbf3f5;
    color: #9b324a;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    border: 1px solid #f6e4e8;
}

.section-tag-green {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.section-tag-amber {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

.section-title {
    font-size: 1.85rem;
    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: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px 16px;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.modern-topic-card:hover {
    transform: translateY(-6px);
    border-color: #edc9d1;
    box-shadow: 0 20px 30px -10px rgba(155, 50, 74, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.topic-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s 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-more   { background: #f8fafc; border: 2px dashed #cbd5e1; }

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

.topic-icon-more .topic-icon-font {
    color: #9b324a;
}

.topic-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.topic-code {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

/* 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;
}

/* ========================================================
   LOCATION / MAP CARD & SOCIAL BUTTONS
   ======================================================== */
.modern-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

.map-frame-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.btn-social-chip {
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none !important;
    margin-right: 10px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.btn-social-fb { background: #fbf3f5; color: #1877f2; }
.btn-social-tw { background: #f0f9ff; color: #0284c7; }
.btn-social-yt { background: #fef2f2; color: #dc2626; }
.btn-social-ig { background: #fdf2f8; color: #db2777; }

.btn-social-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-social-fb:hover { background: #1877f2; color: #ffffff; }
.btn-social-tw:hover { background: #0284c7; color: #ffffff; }
.btn-social-yt:hover { background: #dc2626; color: #ffffff; }
.btn-social-ig:hover { background: #db2777; color: #ffffff; }

/* ========================================================
   MODERN FOOTER
   ======================================================== */
.modern-footer {
    background: #090d16;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.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: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    transition: transform 0.3s ease;
}

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

.card-image {
    border-radius: 14px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.16);
    background: #f1f5f9;
}

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

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

.collection .card-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 8px;
}

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

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

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

.authors a {
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
}

.availability {
    text-align: center;
    overflow: hidden;
}

.availability .label {
    font-size: 7pt;
    color: #aaa;
}

.availability .value {
    font-size: 28pt;
    font-weight: 200;
}

.add-to-chart {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #606f7b;
    color: #f8fafc;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.add-to-chart .label {
    color: #f8fafc;
}

.availability:hover .add-to-chart {
    opacity: 1;
}

.availability:hover .availability-content {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

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

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

.biblioPaging .pagingList {
    display: inline-flex;
    justify-content: center;
    background: #dae1e7;
    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: #007bff;
    border-color: #007bff;
    border-radius: 20px;
    min-width: 38px;
    box-shadow: 0px 0px 10px #007bff;
}

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

.biblioPaging .pagingList a:hover {
    color: #007bff;
}

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

#vio {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 99999999999;
    background: #f56565;
    padding: 8px 0;
    color: #fff5f5;
}

#vio a {
    color: #2d3748;
}

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

img.not-available {
    filter: grayscale(.9);
}

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

/* soften the "0 available" indicator on listing cards so an empty
   catalogue field doesn't read as a broken/alarming state */
.availability .value.text-danger {
    color: #64748b !important;
}

/* ========================================================
   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 #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.2);
    padding: 36px 32px;
}

.auth-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #9b324a 0%, #c03f5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px -5px rgba(155, 50, 74, 0.4);
    margin-bottom: 18px;
}

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

.auth-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    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: #475569;
    margin-bottom: 6px;
}

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

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

.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: #64748b;
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #9b324a 0%, #c03f5a 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 18px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(155, 50, 74, 0.4);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -5px rgba(155, 50, 74, 0.5);
}

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

