/* LibIS portal – standalone styles for the language landing pages */
:root {
  --portal-green: #174b34;
  --portal-green-deep: #123d2c;
  --portal-green-soft: #2c684d;
  --portal-brown: #8b5a2b;
  --portal-gold: #d5a66b;
  --portal-bg: #f7f8f6;
  --portal-surface: #fff;
  --portal-text: #263b35;
  --portal-muted: #68766f;
  --portal-border: #e0e6e1;
  --portal-shadow: 0 12px 30px rgba(26, 54, 41, .10);
  --portal-radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--portal-text);
  background: var(--portal-bg);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
a { text-decoration: none; }
.portal-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(110deg, var(--portal-green-deep), var(--portal-green));
  box-shadow: 0 3px 14px rgba(0,0,0,.13);
}
.portal-nav-wrap {
  width: min(1400px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.portal-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.portal-logo img { display: block; width: 132px; height: auto; max-height: 54px; object-fit: contain; }
.portal-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.portal-navigation a {
  color: rgba(255,255,255,.91);
  font-size: 15px;
  font-weight: 650;
  padding: 11px 17px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.portal-navigation a:hover,
.portal-navigation a.is-active { color: #fff; background: rgba(255,255,255,.15); }
.portal-language { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.portal-language a, .portal-language .language-current {
  color: #fff; display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
}
.portal-language img { width: 23px; height: auto; display: block; }
.language-divider { color: rgba(255,255,255,.48); }
.portal-nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 40px; padding: 9px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 9px; background: transparent;
}
.portal-nav-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; }
.portal-intro {
  position: relative;
  overflow: hidden;
  padding: 38px 24px 34px;
  background:
    radial-gradient(ellipse at 92% 40%, rgba(213,226,211,.7), transparent 38%),
    linear-gradient(105deg, #fbfcfa 0%, #f4f6f1 72%, #e9eee7 100%);
}
.portal-intro::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
  opacity: .32; pointer-events: none;
  background: url("../assets/images/portal-academy-building.jpg") right center / auto 100% no-repeat;
}
.portal-intro-inner { position: relative; z-index: 1; width: min(1360px, 100%); margin: 0 auto; }
.portal-kicker {
  display: inline-block; padding: 7px 15px; border-radius: 9px;
  background: #f0dfbf; color: #294735; font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.portal-intro h1 {
  max-width: 900px; margin: 15px 0 3px; color: var(--portal-green-deep);
  font-size: clamp(30px, 3.5vw, 48px); line-height: 1.13; font-weight: 780; letter-spacing: -.025em;
}
.portal-tagline { margin: 7px 0 12px; color: var(--portal-brown); font-size: clamp(18px, 2vw, 26px); font-weight: 700; font-style: italic; }
.portal-lead { margin: 0; color: #303a35; font-size: 17px; }
.portal-libraries {
  width: min(1400px, calc(100% - 48px)); margin: 0 auto;
  padding: 0 0 42px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px;
}
.library-card {
  min-width: 0; overflow: hidden; background: var(--portal-surface);
  border: 1px solid var(--portal-border); border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow); transition: transform .22s ease, box-shadow .22s ease;
}
.library-card:hover { transform: translateY(-3px); box-shadow: 0 17px 36px rgba(26,54,41,.14); }
.library-image-link { display: block; overflow: hidden; margin: 0; }
.library-image-link img {
  display: block; width: 100%; aspect-ratio: 2.18 / 1; object-fit: cover;
  transition: transform .35s ease;
}
.library-card:hover .library-image-link img { transform: scale(1.025); }
.library-card-content { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 16px; padding: 19px 25px 23px; }
.library-symbol {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-right: 2px solid currentColor; color: var(--portal-green-soft);
}
.library-symbol svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.library-card-historical .library-symbol { color: #bd7b2c; }
.library-copy h2 { margin: 0 0 3px; color: var(--portal-green-deep); font-size: clamp(21px, 2vw, 29px); line-height: 1.2; font-weight: 750; }
.library-card-historical .library-copy h2 { color: #75471f; }
.library-copy p { min-height: 66px; margin: 5px 0 15px; color: #39413d; font-size: 15.5px; line-height: 1.48; }
.library-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-width: min(100%, 365px); padding: 12px 20px; border-radius: 11px;
  color: #fff; background: var(--portal-green); font-weight: 700; font-size: 15px;
  transition: background .2s ease, transform .2s ease;
}
.library-button span { font-size: 23px; line-height: 1; }
.library-button:hover { color: #fff; background: #236344; transform: translateY(-1px); }
.library-card-historical .library-button { background: var(--portal-brown); }
.library-card-historical .library-button:hover { background: #74471f; }
.portal-footer { background: linear-gradient(105deg, #123d2c, #174b34); color: #fff; }
.portal-footer-inner {
  width: min(1400px, calc(100% - 48px)); min-height: 112px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; padding: 18px 0;
}
.academy-mark { flex: 0 0 155px; display: flex; justify-content: center; align-items: center; }
.academy-mark svg { display: block; width: 54px; height: 54px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.academy-details { display: flex; flex-direction: column; gap: 3px; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.42); }
.academy-details strong { font-size: 16px; }
.academy-details span { color: rgba(255,255,255,.84); font-size: 14px; }
.portal-copyright { display: flex; flex-direction: column; gap: 4px; margin-left: auto; text-align: right; color: rgba(255,255,255,.92); font-size: 13px; }
.portal-copyright small { color: rgba(255,255,255,.65); }
@media (max-width: 991.98px) {
  .portal-nav-wrap { width: min(100% - 32px, 760px); min-height: 72px; gap: 16px; flex-wrap: wrap; }
  .portal-nav-toggle { display: block; }
  .portal-navigation {
    display: none; order: 4; flex: 0 0 100%; flex-direction: column; align-items: stretch;
    padding: 0 0 14px; gap: 3px;
  }
  .portal-navigation.is-open { display: flex; }
  .portal-navigation a { padding: 10px 13px; }
  .portal-language { margin-left: auto; }
  .portal-libraries { gap: 20px; }
  .library-card-content { grid-template-columns: 54px minmax(0,1fr); gap: 12px; padding: 17px; }
  .library-symbol { width: 48px; height: 52px; }
  .library-symbol svg { width: 39px; height: 39px; }
  .library-copy p { min-height: 88px; }
  .portal-footer-inner { gap: 18px; }
  .academy-mark { flex-basis: 100px; }
  .academy-mark svg { width: 48px; height: 48px; }
}
@media (max-width: 700px) {
  .portal-intro { padding: 30px 20px 25px; }
  .portal-intro::after { width: 55%; opacity: .08; }
  .portal-intro h1 { font-size: 32px; }
  .portal-tagline { font-size: 19px; }
  .portal-lead { font-size: 15px; }
  .portal-libraries { width: calc(100% - 32px); grid-template-columns: 1fr; padding-bottom: 28px; }
  .library-image-link img { aspect-ratio: 1.9 / 1; }
  .library-copy p { min-height: 0; }
  .library-button { width: 100%; }
  .portal-footer-inner { width: calc(100% - 32px); flex-wrap: wrap; gap: 12px 18px; padding: 20px 0; }
  .academy-mark { flex-basis: 70px; }
  .academy-mark svg { width: 42px; height: 42px; }
  .academy-details { padding-left: 16px; flex: 1; }
  .portal-copyright { flex-basis: 100%; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); text-align: left; }
}
@media (max-width: 420px) {
  .portal-logo img { width: 108px; }
  .portal-nav-wrap { width: calc(100% - 24px); }
  .portal-language { gap: 7px; }
  .portal-language img { width: 19px; }
  .portal-intro h1 { font-size: 28px; }
  .library-card-content { grid-template-columns: 1fr; }
  .library-symbol { display: none; }
}
