:root {
  --digilib-sky: #18a2e0;
  --digilib-sky-deep: #0f8dcc;
  --digilib-navy: #0f3254;
  --digilib-gold: #ffd24a;
  --digilib-cream: #f8f4ea;
  --digilib-card: #ffffff;
  --digilib-text: #17324a;
  --digilib-muted: #5a6f82;
  --digilib-border: rgba(255, 255, 255, 0.22);
  --digilib-max: 1280px;
}

html,
body {
  background: linear-gradient(180deg, #f6fbff 0%, var(--digilib-cream) 100%);
  color: var(--digilib-text);
}

body {
}

h1,
h2,
h3,
h4,
.stikom-digilib-shell .brand-title,
.stikom-digilib-shell .hero-title,
.stikom-digilib-shell .section-title {
}

body:not(.stikom-adminpage) ds-header-navbar-wrapper,
body:not(.stikom-adminpage) ds-footer {
  display: none !important;
}

main#main-content {
  margin-top: 0 !important;
}

.stikom-digilib-shell a {
  color: inherit;
  text-decoration: none;
}

.stikom-digilib-shell a:hover,
.stikom-digilib-shell a:focus {
  text-decoration: none;
}

.stikom-digilib-shell .container {
  width: min(100%, var(--digilib-max));
  margin: 0 auto;
  padding: 0 24px;
}

.stikom-topbar,
.stikom-footer {
  position: relative;
  width: 100%;
  color: #fff;
  background: #00a2e9;
}

.stikom-header {
  position: sticky;
  top: 0;
  width: 100%;
  color: #fff;
  background: #00a2e9;
  z-index: 1200;
  box-sizing: content-box;
}

.stikom-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.stikom-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: content-box;
}

.stikom-topbar .container {
  min-height: 52px;
}

.stikom-topnav,
.stikom-toplinks {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stikom-topnav a,
.stikom-toplinks a {
  font-size: 0.98rem;
  font-weight: 400;
  opacity: 0.95;
}

.stikom-header {
  overflow: visible;
}

.stikom-header .container {
  position: relative;
  min-height: 70px;
  padding-top: 6px;
  padding-bottom: 6px;
  overflow: visible;
}

.stikom-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.stikom-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.stikom-home-link {
  display: inline-flex;
  align-items: center;
}

.stikom-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stikom-brand-copy .brand-title {
  margin: 0;
  font-size: clamp(2.0rem, 2.4vw, 3.2rem);
  line-height: 1;
  color: #fff;
}

.stikom-brand-copy .brand-title a {
  color: inherit;
  text-decoration: none;
}

.stikom-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
}

.stikom-header-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.stikom-header-dropdown {
  position: relative;
  z-index: 160;
}

.stikom-header-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.stikom-header-dropdown-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.stikom-header-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 260px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(16, 50, 84, 0.14);
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  display: none;
}

.stikom-header-dropdown[data-open="true"] .stikom-header-dropdown-menu {
  display: block;
}

.stikom-header-dropdown-menu li {
  margin: 0;
}

.stikom-header-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--digilib-navy);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.stikom-header-dropdown-menu a:hover {
  background: rgba(24, 162, 224, 0.12);
}

.stikom-home-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #00a2e9;
  color: #fff;
  overflow: hidden;
}

.stikom-home-hero::before,
.stikom-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stikom-home-hero::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.04) 35%, rgba(0, 0, 0, 0.10) 100%);
}

.stikom-home-hero::after {
  opacity: 0.14;
  background: url("/custom/assets/trust-strip-batik.jpg") center/cover no-repeat;
  filter: grayscale(1);
  mix-blend-mode: soft-light;
}

.stikom-home-hero .container {
  position: relative;
  width: min(100%, var(--digilib-max));
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.stikom-page-shell ds-themed-home-news,
.stikom-page-shell ds-home-news {
  display: none !important;
}

.hero-label {
  margin-bottom: 14px;
  color: var(--digilib-gold);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 700;
}

.hero-title {
  max-width: 980px;
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.04;
}

.hero-subtitle {
  max-width: 980px;
  margin: 0 0 34px;
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.hero-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stikom-hero-search {
  width: 100%;
  margin: 28px auto 0;
}

.stikom-hero-search .btn.btn-primary {
  background: #ffd24a;
  border-color: #ffd24a;
  color: #17324a;
}

.stikom-hero-search .btn.btn-primary:hover,
.stikom-hero-search .btn.btn-primary:focus {
  background: #f2c432;
  border-color: #f2c432;
  color: #17324a;
}

.hero-value-card {
  min-height: 272px;
  padding: 26px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-value-card .value-label {
  color: var(--digilib-gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-size: 0.84rem;
}

.hero-value-card .value-number {
  margin-top: 26px;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.hero-value-card::after {
  content: "";
  width: 80px;
  height: 2px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-value-card .value-link {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
}

.stikom-home-main {
  width: min(100%, var(--digilib-max));
  margin: 24px auto 0;
  padding: 56px 24px 88px;
}

.stikom-page-shell ds-search-page,
.stikom-page-shell ds-search,
.stikom-page-shell ds-themed-search-page,
.stikom-page-shell ds-themed-search,
.stikom-page-shell .search-page-container,
.stikom-page-shell [class*="search-page"] {
  display: block;
}

.stikom-page-shell ds-search-results,
.stikom-page-shell .search-results,
.stikom-page-shell [class*="search-results"] {
  display: block;
}

.stikom-page-shell .search-results .media,
.stikom-page-shell .search-results .list-group-item,
.stikom-page-shell ds-item-search-result-list-element .item-page-abstract,
.stikom-page-shell ds-item-search-result-list-element .search-result-entry,
.stikom-page-shell ds-listable-object-component-loader .list-group-item,
.stikom-page-shell ds-item-list-element .list-group-item {
  border-radius: 18px;
  border: 1px solid rgba(15, 50, 84, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.stikom-page-shell ds-search-filters,
.stikom-page-shell .search-sidebar,
.stikom-page-shell [class*="search-filters"],
.stikom-page-shell [class*="facet"] {
  display: block;
}

.stikom-page-shell .card,
.stikom-page-shell ds-search-filters .card,
.stikom-page-shell [class*="facet"] .card {
  border-radius: 20px;
  border: 1px solid rgba(15, 50, 84, 0.08);
}

.stikom-page-shell .pagination .page-link {
  border-radius: 10px;
  margin: 0 4px;
  border: 1px solid rgba(15, 50, 84, 0.12);
  color: var(--digilib-navy);
}

.stikom-page-shell .pagination .page-item.active .page-link {
  background: #00a2e9;
  border-color: #00a2e9;
  color: #fff;
}

.section-head {
  margin-bottom: 26px;
  text-align: center;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  color: var(--digilib-navy);
}

.section-copy {
  margin: 0;
  color: var(--digilib-muted);
  font-size: 1.02rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 54px;
}

.program-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: var(--digilib-card);
  border: 1px solid rgba(16, 50, 84, 0.08);
}

.program-card .abbr {
  display: inline-flex;
  min-width: 54px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--digilib-navy);
  color: #fff;
  font-weight: 700;
}

.program-card h3 {
  margin: 20px 0 14px;
  font-size: 1.55rem;
  line-height: 1.05;
  color: var(--digilib-navy);
}

.program-card p {
  margin: 0 0 20px;
  color: var(--digilib-muted);
  line-height: 1.7;
}

.program-card a {
  color: #a10c24;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.92rem;
}

.latest-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.latest-viewport {
  overflow: hidden;
}

.latest-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.latest-grid::-webkit-scrollbar {
  display: none;
}

.latest-card {
  display: grid;
  grid-template-rows: auto minmax(3.35em, auto) 2em minmax(5.4em, auto) auto;
  row-gap: 12px;
  align-items: start;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 50, 84, 0.08);
  scroll-snap-align: start;
}

.latest-card .type {
  color: var(--digilib-sky-deep);
  font-weight: 700;
}

.latest-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.28;
  color: var(--digilib-navy);
}

.latest-card .meta,
.latest-card .abstract {
  margin: 0;
  color: var(--digilib-muted);
  line-height: 1.65;
}

.latest-card .link {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(24, 162, 224, 0.18);
  background: rgba(24, 162, 224, 0.10);
  color: var(--digilib-navy);
  font-weight: 700;
}

.latest-card .link:hover,
.latest-card .link:focus {
  background: rgba(24, 162, 224, 0.18);
}

.latest-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 50, 84, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--digilib-navy);
  font-size: 1.8rem;
  line-height: 1;
}

.latest-nav:hover,
.latest-nav:focus {
  background: rgba(24, 162, 224, 0.08);
}

.stikom-footer {
  margin-top: 24px;
}

.stikom-footer .container {
  position: relative;
  padding-top: 54px;
  padding-bottom: 26px;
}

.stikom-footer-grid {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  gap: 42px;
  color: #fff;
}

.stikom-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stikom-footer-brand .brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.stikom-footer-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.stikom-footer-brand .site-name {
  margin: 0;
  font-size: 2.0vw;
  line-height: 0.95;
}

.stikom-footer-brand .site-sub {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.stikom-footer-brand .address,
.stikom-footer-brand .contact-list {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

.footer-col h3 {
  margin: 0 0 18px;
  font-size: 0.94rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  color: rgba(255,255,255,0.95);
}

.stikom-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
}

.stikom-footer-bottom .oai-line code {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.stikom-footer-bottom a {
  text-decoration: underline;
}

.stikom-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.stikom-page-shell .page-content {
  flex: 1 1 auto;
}

.stikom-internal-container {
  width: min(100%, var(--digilib-max));
  margin: 0 auto;
  padding: 38px 24px 72px;
}

.stikom-page-shell .search-page-container,
.stikom-page-shell .item-page-container,
.stikom-page-shell .community-page,
.stikom-page-shell .collection-page,
.stikom-page-shell .container.mt-4,
.stikom-page-shell .container.mt-5,
.stikom-page-shell main .container {
  width: min(100%, var(--digilib-max));
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep the first visible content block tucked under the breadcrumb bar. */
.stikom-page-shell .page-content > ds-app > main > .container:first-child,
.stikom-page-shell .page-content > ds-app > main > ds-themed-browse-by > .container:first-child,
.stikom-page-shell .page-content > ds-app > main > ds-themed-item-page > .container:first-child {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
}

.stikom-page-shell .page-content h1:first-child,
.stikom-page-shell .page-content .display-4:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.stikom-page-shell .search-results {
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.stikom-loginpage .login-logo,
.stikom-loginpage [class*="login-logo"],
.stikom-loginpage img[alt*="DSpace" i] {
  display: none !important;
}

.stikom-loginpage .container.mt-4,
.stikom-loginpage .container.mt-5,
.stikom-loginpage main .container {
  padding-top: 1.25rem !important;
}

.stikom-browsepage .page-content > ds-app > main,
.stikom-searchpage .page-content > ds-app > main,
.stikom-itempage .page-content > ds-app > main,
.stikom-statspage .page-content > ds-app > main {
  width: min(100%, var(--digilib-max));
  margin: 0 auto;
  padding: 0 24px 72px;
}

.stikom-browsepage h1,
.stikom-searchpage h1,
.stikom-itempage h1,
.stikom-statspage h1 {
  margin-bottom: 1rem;
  color: var(--digilib-navy);
  line-height: 1.08;
}

.stikom-browsepage .btn,
.stikom-searchpage .btn,
.stikom-itempage .btn,
.stikom-statspage .btn {
  border-radius: 10px;
}

.stikom-browsepage .input-group,
.stikom-searchpage .input-group {
  margin-bottom: 1.25rem;
}

.stikom-browsepage .list-group-item,
.stikom-searchpage .list-group-item,
.stikom-itempage .metadata-section,
.stikom-itempage .item-page-field-wrapper {
  border-radius: 16px;
}

.stikom-searchpage ds-search-results .list-group-item,
.stikom-searchpage ds-item-list-element .list-group-item,
.stikom-browsepage ds-item-list-element .list-group-item {
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.9rem;
}

.stikom-searchpage .sidebar-section,
.stikom-searchpage ds-search-filters .card,
.stikom-searchpage [class*="facet"] .card,
.stikom-browsepage .sidebar-section,
.stikom-browsepage [class*="facet"] .card {
  background: rgba(255, 255, 255, 0.96);
}

.stikom-itempage .item-page-container,
.stikom-itempage ds-themed-item-page .container,
.stikom-itempage ds-item-page .container {
  padding-top: 0.75rem !important;
}

.stikom-itempage .thumbnail,
.stikom-itempage ds-thumbnail img,
.stikom-itempage .item-page-thumbnail img {
  border-radius: 16px;
}

.stikom-itempage .simple-item-page .metadata,
.stikom-itempage .item-page-metadata,
.stikom-itempage .item-page-collections,
.stikom-itempage .item-page-uri-field {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 50, 84, 0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.stikom-page-shell .stikom-native-breadcrumb-wrapper {
  display: none !important;
}

.stikom-page-shell .stikom-native-breadcrumb-hidden {
  display: none !important;
}

/* Hard stop: never show native DSpace breadcrumbs inside the themed page content. */
body:not(.stikom-adminpage) .stikom-page-shell .page-content .nav-breadcrumb,
body:not(.stikom-adminpage) .stikom-page-shell .page-content .breadcrumb,
body:not(.stikom-adminpage) .stikom-page-shell .page-content ds-themed-breadcrumbs,
body:not(.stikom-adminpage) .stikom-page-shell .page-content ds-breadcrumbs,
body:not(.stikom-adminpage) .stikom-page-shell .page-content .container.breadcrumb.my-0,
body:not(.stikom-adminpage) .stikom-page-shell .page-content .container-fluid.bg-light,
body:not(.stikom-adminpage) .stikom-page-shell .page-content .container-fluid.py-2 {
  display: none !important;
}

.stikom-breadcrumb-bar {
  position: sticky;
  top: calc(var(--stikom-header-height, 70px) - 1px);
  width: 100%;
  background: rgba(24, 162, 224, 0.5);
  z-index: 1100;
  margin-top: -1px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(2px);
  box-sizing: content-box;
}

.stikom-breadcrumb-bar .container {
  width: min(100%, var(--digilib-max));
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: content-box;
}

.stikom-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 24px;
  list-style: none;
}

.stikom-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
}

.stikom-breadcrumb-list li::marker {
  content: "";
}

.stikom-breadcrumb-list li + li::before {
  content: "•";
  margin-right: 0.5rem;
  color: rgba(15, 50, 84, 0.7);
}

.stikom-breadcrumb-list a,
.stikom-breadcrumb-list span {
  color: var(--digilib-text);
  text-decoration: none;
}

.stikom-adminpage .stikom-header,
.stikom-adminpage .stikom-footer,
.stikom-adminpage .stikom-breadcrumb-bar {
  display: none !important;
}

.stikom-adminpage ds-header-navbar-wrapper,
.stikom-adminpage ds-footer {
  display: block !important;
}

.stikom-errorpage ds-admin-sidebar,
.stikom-errorpage .sidebar-fixed-element-wrapper,
.stikom-errorpage .sidebar-collapsible-element-outer-wrapper,
.stikom-errorpage .sidebar-collapsible-element-inner-wrapper {
  display: none !important;
}

.stikom-adminpage .stikom-page-shell .page-content {
  padding-top: 0 !important;
}

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

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .stikom-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .stikom-header .container,
  .stikom-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .stikom-brand {
    grid-template-columns: 1fr;
  }

  .stikom-brand img {
    width: 72px;
    height: 72px;
  }

  .stikom-header-links {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
  }

  .stikom-header-dropdown-menu {
    right: auto;
    left: 0;
  }

  .hero-values-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }
}
