/* ==========================================================================
   FISIPOL UNPACTI E-Library Theme CSS
   Institutional Academic Quality — No AI Tropes
   Palette: Deep Royal Navy (#1E3A8A) & Academic Gold (#D4AF37)
   Typography: Playfair Display (Headings) & Outfit (Body & UI)
   ========================================================================== */

/* 1. Root Tokens */
:root {
  --color-primary: #1E3A8A;
  --color-primary-dark: #152860;
  --color-primary-light: #2D4FA0;
  --color-accent: #D4AF37;
  --color-accent-hover: #b8860b;
  --color-bg-dark: #0f1f4a;
  --color-bg-body: #f8fafc;
  --color-surface: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;
}

/* 2. Global Resets */
body {
  font-family: var(--font-sans) !important;
  color: var(--color-text-main) !important;
  background-color: var(--color-bg-body) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif, .section-heading {
  font-family: var(--font-serif) !important;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

/* 3. Header & Navigation (Clean Institutional) */
.navbar {
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  padding: 0.75rem 1.75rem;
  z-index: 1040;
}

.navbar.navbar-dark {
  background: rgba(15, 31, 74, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.navbar.is-scrolled {
  background: #142454 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28) !important;
  padding: 0.55rem 1.75rem !important;
  border-bottom: 2px solid var(--color-accent) !important;
}

/* Brand Identity */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
}

.navbar-brand .brand-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.navbar-brand .brand-sub {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  color: #D4AF37;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.navbar-brand .brand-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Menu Items (NO ABNORMAL PILLS) */
.navbar-dark .navbar-nav .nav-link {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 0.5rem !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
  white-space: nowrap !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: transparent !important;
  border-bottom-color: rgba(212, 175, 55, 0.5) !important;
}

.navbar-dark .navbar-nav .nav-item.active .nav-link,
.navbar-dark .navbar-nav .active > .nav-link {
  color: #ffffff !important;
  font-weight: 600 !important;
  background: transparent !important;
  border-bottom: 2px solid var(--color-accent) !important;
}

.nav-link-repo {
  color: rgba(255, 255, 255, 0.85) !important;
}
.nav-link-repo:hover {
  color: var(--color-accent) !important;
}

.nav-divider {
  height: 20px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 6px;
}

.nav-member-name {
  max-width: 130px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Institutional Outline Button (Clean & Professional) */
.nav-btn-portal {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff !important;
  border: 1px solid rgba(212, 175, 55, 0.75);
  border-radius: var(--radius-sm);
  padding: 5px 13px;
  background: rgba(212, 175, 55, 0.12);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.nav-btn-portal:hover {
  background: var(--color-accent);
  color: #0f172a !important;
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.nav-link-user {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
}
.nav-link-user:hover {
  color: #ffffff !important;
}

/* 4. Hero Header & Dark Architectural Overlay */
.c-header {
  position: relative !important;
  min-height: 500px !important;
  background-size: cover !important;
  background-position: center center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden;
}

.c-header .mask {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(180deg, rgba(15, 31, 74, 0.82) 0%, rgba(10, 20, 50, 0.88) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.c-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 31, 74, 0.82) 0%, rgba(10, 20, 50, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

.c-header .navbar {
  position: relative;
  z-index: 10;
}

/* Hero Content — Perfectly Centered, Prestigious White Typography */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3.5rem 1.5rem 5rem 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif) !important;
  font-size: 2.85rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
  line-height: 1.25 !important;
}

.hero-subtitle {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
}

/* 5. Floating Search Bar */
.search {
  position: relative;
  z-index: 20;
  margin-top: -2.35rem;
  margin-bottom: 1.25rem;
}

.search .card {
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 12px 35px rgba(15, 31, 74, 0.16) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  background: #ffffff !important;
  transition: all 0.25s ease;
}

.search .card:hover,
.search .card:focus-within {
  box-shadow: 0 16px 42px rgba(30, 58, 138, 0.22) !important;
  border-color: rgba(212, 175, 55, 0.6) !important;
}

.search .card-body {
  padding: 0.4rem 0.85rem !important;
}

.search input#search-input {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-main);
  padding: 8px 12px;
  background: transparent;
  border: none;
  outline: none !important;
}

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

.search-submit-btn {
  background: var(--color-primary);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-submit-btn:hover {
  background: var(--color-accent);
  color: #0f172a !important;
}

/* Advanced Search Dropdown Box */
.advanced-wraper {
  background: var(--color-surface);
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.15) !important;
  padding: 1.25rem !important;
}

.advanced-wraper .btn {
  border-radius: var(--radius-pill) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 5px 14px !important;
}

.advanced-wraper .btn-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
.advanced-wraper .btn-primary:hover {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #0f172a !important;
}

/* 6. Institutional Stats Bar */
.institutional-stats-bar {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 22px rgba(15, 31, 74, 0.06);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 5;
}

.stat-col {
  padding: 0.5rem 1rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.text-gold {
  color: var(--color-accent-hover) !important;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 3px;
}

@media (min-width: 768px) {
  .border-left-md {
    border-left: 1px solid var(--color-border);
  }
  .border-right-md {
    border-right: 1px solid var(--color-border);
  }
}

/* 7. Topics / Category Section */
.section-heading {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.section-subheading {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.topic-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.topic-card .topic-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background 0.2s ease;
}

.topic-card:hover .topic-icon-wrap {
  background: #fdf6e2;
}

.topic-card .topic-icon-wrap i {
  font-size: 1.35rem;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.topic-card:hover .topic-icon-wrap i {
  color: var(--color-accent);
}

.topic-card .topic-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.3;
}

.topic-card-more {
  border-style: dashed;
  background: #fafafa;
}
.topic-card-more .topic-icon-wrap {
  background: #e2e8f0;
}
.topic-card-more .topic-icon-wrap i {
  color: #64748b;
}

/* 8. SLiMS Book Collection Cards */
.subtitle-section {
  color: var(--color-text-muted) !important;
  font-size: 0.9rem !important;
  display: block;
}

.card-item, .slims-card, .book-card {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.25s ease !important;
}

.card-item:hover, .slims-card:hover, .book-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(30, 58, 138, 0.2) !important;
}

/* 9. Map & Location Card */
.map-container-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 1.75rem;
}

.map-container-card iframe {
  border-radius: var(--radius-md);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: transform 0.2s ease !important;
}
.social-btn:hover {
  transform: translateY(-2px);
}

/* 10. Institutional Footer */
footer {
  background-color: var(--color-primary) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-top: 3px solid var(--color-accent);
  padding-top: 3.5rem !important;
  padding-bottom: 2rem !important;
}

footer h4, footer .footer-heading {
  font-family: var(--font-sans) !important;
  color: var(--color-accent) !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

footer a {
  color: rgba(255, 255, 255, 0.78) !important;
  transition: all 0.2s ease;
}

footer a:hover {
  color: #ffffff !important;
  padding-left: 3px;
}

footer ul {
  padding-left: 0;
  list-style: none;
}

footer ul li {
  margin-bottom: 8px;
}

footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2rem 0 1.5rem 0;
}

footer .footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

footer .footer-power {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

footer .footer-power code {
  color: var(--color-accent);
  background: rgba(15, 31, 74, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 11. Subpage Headers */
.result-search .c-header,
.member-area .c-header {
  min-height: 220px !important;
  padding-bottom: 2rem !important;
}

.result-search .c-header .navbar,
.member-area .c-header .navbar {
  background: var(--color-primary) !important;
}

/* 12. Responsive */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .c-header {
    min-height: 420px;
  }
  .search {
    margin-top: -2.5rem;
  }
  .navbar-collapse {
    background: #142454;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  .nav-divider {
    display: none;
  }
  footer .footer-power {
    text-align: left;
    margin-top: 8px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Search Scope Switcher */
.search-scope-switcher { display: flex !important; align-items: center !important; justify-content: center !important; margin-bottom: 0.95rem !important; gap: 8px !important; }
.scope-tab-btn { display: inline-flex !important; align-items: center !important; background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.22) !important; color: rgba(255, 255, 255, 0.88) !important; padding: 6px 14px !important; border-radius: 20px !important; font-size: 0.82rem !important; font-weight: 600 !important; cursor: pointer !important; transition: all 0.2s ease !important; backdrop-filter: blur(8px) !important; }
.scope-tab-btn:hover { background: rgba(255, 255, 255, 0.18) !important; color: #ffffff !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.scope-tab-btn.active { background: #ffffff !important; color: #0b1a30 !important; border-color: #ffffff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22) !important; }
.scope-count-badge { display: inline-block !important; background: rgba(255, 255, 255, 0.15) !important; color: inherit !important; font-size: 0.68rem !important; font-weight: 700 !important; padding: 1px 7px !important; border-radius: 10px !important; margin-left: 6px !important; }
.scope-tab-btn.active .scope-count-badge { background: #ecfdf5 !important; color: #065f46 !important; }

/* Quick Search Chips Enhancement */
.repo-search-chips-bar { display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: center !important; gap: 8px !important; margin-top: 1.15rem !important; margin-bottom: 0.5rem !important; }
.repo-quick-chip { background: rgba(255, 255, 255, 0.08) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; color: #f1f5f9 !important; border: 1px solid rgba(255, 255, 255, 0.18) !important; padding: 5px 13px !important; border-radius: 9999px !important; text-decoration: none !important; font-weight: 600 !important; font-size: 0.78rem !important; transition: all 0.15s ease !important; display: inline-flex !important; align-items: center !important; margin: 3px !important; }
.repo-quick-chip:hover { background: #ffffff !important; color: #0b1a30 !important; border-color: #ffffff !important; transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; }
.repo-quick-chip.chip-ip { background: rgba(6, 78, 59, 0.35) !important; border-color: rgba(52, 211, 153, 0.45) !important; }
.repo-quick-chip.chip-ik { background: rgba(15, 46, 90, 0.45) !important; border-color: rgba(96, 165, 250, 0.45) !important; }
.repo-quick-chip.chip-pdf { background: rgba(159, 18, 57, 0.35) !important; border-color: rgba(251, 113, 133, 0.45) !important; }

/* Isolation Rule for Quick Search Chips */
#chips-scope-repo.repo-chips-hidden,
#chips-scope-repo.d-none,
#chips-scope-repo[style*="none"] {
  display: none !important;
}
#chips-scope-perpus.repo-chips-hidden,
#chips-scope-perpus.d-none,
#chips-scope-perpus[style*="none"] {
  display: none !important;
}

/* ==========================================================================
   DETAIL PAGE COMPACT LAYOUT & ANTI-SLOP TYPOGRAPHY (TASTE SKILL)
   ========================================================================== */
.result-search.perpus-detail-page .c-header,
.result-search.perpus-detail-page .c-header-detail,
.c-header-detail {
  min-height: 72px !important;
  max-height: 76px !important;
  height: 72px !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: #0b1a30 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
}

.result-search.perpus-detail-page .c-header::before,
.result-search.perpus-detail-page .c-header .mask,
.c-header-detail::before,
.c-header-detail .mask,
.c-header-detail .vegas-slide,
.c-header-detail .vegas-overlay {
  display: none !important;
}

.result-search.perpus-detail-page .c-header .navbar,
.c-header-detail .navbar {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  background: transparent !important;
}

@media (max-width: 991.98px) {
  .result-search.perpus-detail-page .c-header,
  .result-search.perpus-detail-page .c-header-detail,
  .c-header-detail {
    min-height: 72px !important;
    max-height: none !important;
    height: auto !important;
  }
}

/* ==========================================================================
   INSTITUTIONAL SUBPAGES (LIBINFO, NEWS, HELP, LIBRARIAN) - TASTE SKILL
   ========================================================================== */
.result-search.perpus-subpage {
  background: #f8fafc;
  min-height: 100vh;
}

/* Subpage Academic Hero Banner */
.subpage-academic-hero {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 0 1.25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.subpage-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.subpage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.subpage-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}
.subpage-breadcrumb a:hover {
  color: #0b1a30;
}
.subpage-breadcrumb .sep {
  font-size: 0.65rem;
  color: #94a3b8;
}
.subpage-breadcrumb .current {
  color: #0b1a30;
  font-weight: 600;
}
.subpage-hero-content-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.subpage-hero-text {
  flex: 1;
  min-width: 280px;
}
.subpage-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 78, 59, 0.08);
  color: #065f46;
  border: 1px solid rgba(6, 78, 59, 0.2);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.subpage-badge-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}
.subpage-hero-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0b1a30;
  line-height: 1.25;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}
.subpage-hero-sub {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  max-width: 820px;
}
.btn-subpage-back {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-subpage-back:hover {
  background: #0b1a30;
  color: #ffffff;
  border-color: #0b1a30;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Subpage Main Container */
.subpage-main-container {
  max-width: 1140px;
}

/* ==========================================================================
   HALAMAN INFORMASI PERPUSTAKAAN (LIBINFO)
   ========================================================================== */
.libinfo-academic-wrapper {
  margin-bottom: 2rem;
}
.libinfo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.libinfo-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}
.libinfo-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(11, 26, 48, 0.06);
  color: #0b1a30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.libinfo-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1a30;
  margin: 0;
  line-height: 1.3;
}
.libinfo-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.15rem 0 0 0;
}
.libinfo-card-body {
  padding: 1.4rem;
}
.libinfo-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 1.25rem;
}
.libinfo-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 0.5rem;
  text-align: center;
}
.libinfo-stat-box .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #064e3b;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.libinfo-stat-box .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
}
.libinfo-schedule-list {
  display: flex;
  flex-direction: column;
}
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}
.schedule-item:last-child {
  border-bottom: none;
}
.schedule-item.highlight {
  background: #f0fdf4;
  margin: 0 -0.5rem;
  padding: 10px 0.5rem;
  border-radius: 6px;
  border-bottom: none;
  margin-bottom: 6px;
}
.schedule-day {
  font-weight: 600;
  color: #1e293b;
}
.schedule-time {
  font-size: 0.85rem;
  color: #475569;
}
.badge-active-247 {
  background: #d1fae5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-block;
}
.alert-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.libinfo-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.libinfo-contact-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 1rem;
}
.libinfo-contact-list li:last-child {
  margin-bottom: 0;
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0b1a30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.contact-details {
  font-size: 0.86rem;
  line-height: 1.5;
}
.contact-details strong {
  color: #0f172a;
}
.feature-pillar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  height: 100%;
}
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b1a30 0%, #064e3b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.pillar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b1a30;
  margin-bottom: 4px;
}
.pillar-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   HALAMAN BANTUAN & PANDUAN PENGGUNAAN (HELP)
   ========================================================================== */
.help-academic-wrapper {
  margin-bottom: 2rem;
}
.help-intro-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.help-intro-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #064e3b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.help-intro-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0b1a30;
}
.help-intro-sub {
  font-size: 0.88rem;
  line-height: 1.45;
}
.help-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.help-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.4rem;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
}
.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0b1a30;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1a30;
  margin: 0;
}
.step-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 9999px;
}
.help-step-body {
  padding: 1.4rem;
}
.step-subcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  height: 100%;
}
.subcard-header {
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.step-sublist {
  padding-left: 18px;
  margin: 0;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.6;
}
.step-tip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: #92400e;
  line-height: 1.5;
}
.step-action-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.15rem 1rem;
  height: 100%;
  text-align: center;
}
.action-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #064e3b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.action-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0b1a30;
  margin-bottom: 4px;
}
.action-text {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}
.citation-demo-box {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #1e293b;
}
.demo-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}
.demo-citation {
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
  color: #cbd5e1;
}
.help-contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   HALAMAN BERITA PERPUSTAKAAN (NEWS)
   ========================================================================== */
.academic-news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  overflow: hidden;
}
.academic-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.news-card-inner {
  padding: 1.5rem;
}
.news-card-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.news-category-badge {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}
.news-date-badge {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}
.news-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.news-card-title a {
  color: #0b1a30;
  text-decoration: none;
  transition: color 0.15s ease;
}
.news-card-title a:hover {
  color: #064e3b;
  text-decoration: none;
}
.news-card-summary {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.9rem;
  flex-wrap: wrap;
  gap: 10px;
}
.news-institution-tag {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}
.btn-news-readmore {
  background: #0b1a30;
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.btn-news-readmore:hover {
  background: #064e3b;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateX(2px);
}

/* ==========================================================================
   HALAMAN PROFIL PUSTAKAWAN (LIBRARIAN)
   ========================================================================== */
.perpus-librarian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}
.librarian-personnel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.librarian-personnel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.librarian-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 1rem;
}
.librarian-avatar-box {
  flex-shrink: 0;
}
.librarian-avatar-monogram {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.librarian-avatar-monogram.badge-role-senior {
  background: linear-gradient(135deg, #0b1a30 0%, #1e3a8a 100%);
}
.librarian-avatar-monogram.badge-role-coordinator {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
}
.librarian-avatar-monogram.badge-role-technical {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}
.librarian-avatar-monogram.badge-role-librarian {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
}
.librarian-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}
.librarian-top-meta {
  flex: 1;
  min-width: 0;
}
.librarian-role-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 4px;
}
.librarian-role-pill.badge-role-senior {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}
.librarian-role-pill.badge-role-coordinator {
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #bbf7d0;
}
.librarian-role-pill.badge-role-technical,
.librarian-role-pill.badge-role-librarian {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.librarian-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b1a30;
  margin: 0;
  line-height: 1.3;
}
.librarian-position {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
  margin-top: 2px;
}
.librarian-card-body {
  margin-bottom: 1rem;
}
.librarian-affiliation {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}
.librarian-skills-wrap {
  margin-top: 0.5rem;
}
.skills-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.librarian-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-librarian-contact {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0b1a30;
  text-decoration: none;
  transition: color 0.15s ease;
}
.btn-librarian-contact:hover {
  color: #064e3b;
  text-decoration: underline;
}
.btn-librarian-contact.disabled {
  color: #94a3b8;
  pointer-events: none;
}
.librarian-status-indicator {
  font-size: 0.72rem;
  font-weight: 600;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* News HUD Summary Bar */
.news-hud-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.badge-news-count {
  background: #0b1a30;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}
.news-hud-text {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   ACADEMIC LIVING LIBRARY BOOK CARDS (HOMEPAGE SHOWCASE)
   Standar: Taste-Skill / Anti-Slop / High-End Academic Editorial
   ========================================================================== */
.academic-home-book-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(11, 26, 48, 0.05), 0 1px 3px rgba(11, 26, 48, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 14px;
}

.academic-home-book-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(11, 26, 48, 0.12), 0 4px 10px rgba(11, 26, 48, 0.06);
}

.home-book-cover-stage {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  padding: 18px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  border: 1px solid #edf2f7;
}

.home-book-cover-link {
  display: block;
  text-decoration: none;
}

.home-book-3d-wrapper {
  position: relative;
  width: 136px;
  height: 204px; /* Rasio 2:3 seragam */
  perspective: 800px;
  transition: transform 0.25s ease;
}

.academic-home-book-card:hover .home-book-3d-wrapper {
  transform: scale(1.03) translateY(-2px);
}

/* Spine Depth & Drop Shadow Effect */
.home-book-spine-depth {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(255, 255, 255, 0.25) 45%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 5;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  pointer-events: none;
}

.home-book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 
    -2px 0 5px rgba(0, 0, 0, 0.15),
    4px 6px 16px rgba(11, 26, 48, 0.16),
    0 1px 3px rgba(0, 0, 0, 0.08);
  display: block;
  background-color: #ffffff;
}

/* Floating Prodi Badge on Cover Stage */
.home-book-prodi-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 10;
  white-space: nowrap;
}

.home-book-prodi-badge.badge-ip {
  background: #ecfdf5;
  color: #064e3b;
  border: 1px solid #a7f3d0;
}

.home-book-prodi-badge.badge-ik {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

/* Card Body Details */
.home-book-card-body {
  padding-top: 14px;
}

.home-book-meta-top {
  font-size: 0.75rem;
  color: #64748b;
}

.home-book-callnumber {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  color: #334155;
  font-weight: 600;
}

.home-book-year {
  color: #64748b;
  font-size: 0.75rem;
}

.home-book-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.38;
  margin: 6px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.76em;
}

.home-book-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-book-title a:hover {
  color: #064e3b;
  text-decoration: underline;
}

.home-book-author {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-book-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #065f46;
  background: #d1fae5;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

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

.btn-read-home {
  background: #064e3b;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 6px 12px;
  transition: background 0.15s ease, transform 0.15s ease;
  border: none;
}

.btn-read-home:hover {
  background: #04392b;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-detail-home {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.btn-detail-home:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Topic Filter Hub Bar */
.home-topic-chips-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(11, 26, 48, 0.04);
}

.home-topic-label {
  font-size: 0.85rem;
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
}

.home-topic-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 13px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.15s ease;
  margin: 3px;
}

.home-topic-pill:hover {
  background: #064e3b;
  color: #ffffff !important;
  border-color: #064e3b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(6, 78, 59, 0.2);
}

.home-topic-pill.pill-more {
  background: #f1f5f9;
  color: #0f2e5a;
  border-color: #cbd5e1;
  font-weight: 600;
}

.home-topic-pill.pill-more:hover {
  background: #0f2e5a;
  color: #ffffff !important;
  border-color: #0f2e5a;
}

@media (max-width: 575.98px) {
  .home-book-cover-stage {
    min-height: 200px;
    padding: 12px 6px;
  }
  .home-book-3d-wrapper {
    width: 110px;
    height: 165px;
  }
  .home-book-title {
    font-size: 0.85rem;
    height: 2.8em;
  }
  .home-book-author {
    font-size: 0.75rem;
  }
  .btn-read-home {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
}

