﻿:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --text: #203144;
  --muted: #64748b;
  --primary: #0b7fb8;
  --primary-dark: #075d89;
  --accent: #10b981;
  --border: #d7e3ed;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 38, 59, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at 0 0, #eaf4fb 0, #f4f8fb 45%, #f7fafc 100%);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.6rem; }
[class*="col-"] { padding: 0 0.6rem; width: 100%; }
@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333%; }
  .col-md-8 { width: 66.666%; }
  .col-lg-8 { width: 66.666%; }
}

.header {
  background: linear-gradient(120deg, #ffffff, #ecf7ff);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header--row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0; flex-wrap: wrap; }
.header--logo img { max-height: 42px; }
.header--search { flex: 1; min-width: 260px; }
.header--hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  background: #fff;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: #89c8ea;
  box-shadow: 0 0 0 3px rgba(11, 127, 184, 0.14);
}
.input-group { display: flex; gap: 0.45rem; }
.input-group .form-control { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.btn-info, .btn-primary {
  background: linear-gradient(180deg, #13a0e3, #0b7fb8);
  color: #fff;
}
.btn-info:hover, .btn-primary:hover { background: linear-gradient(180deg, #1293d1, #096d9f); text-decoration: none; }
.btn-bordered { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-block { width: 100%; }

.header--navbar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nav { list-style: none; margin: 0; padding: 0; }
.navbar-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; padding: 0.55rem 0; }
.navbar-nav > li > a {
  display: block;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  color: #23455f;
  font-weight: 600;
}
.navbar-nav > li > a:hover { background: #eaf5fc; text-decoration: none; }

.subject-detail { padding: 1.2rem 0 0.4rem; }
.subject-detail--container,
.subject-info,
.plugin-subject-rating,
.plugin-subject-docs,
.plugin-comment,
.plugin-video-index,
.plugin-newsletter-banner--body,
.plugin-orfeo-banner--body,
.plugin-nominate-banner--body,
#project-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.subject-detail--container { padding: 1rem; }
.subject-detail--image-rounded {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.subject-detail--title { margin: 0 0 .5rem; font-size: clamp(1.35rem, 2.2vw, 1.85rem); color: #123a56; }
.subject-info { margin: 1rem 0; padding: 1rem 1.1rem; }

/* Cleaner vertical menu blocks (requested list) */
.subject-info-menu-list .nav.nav-tabs.nav-stacked,
.subject-profile-docs-body .nav.nav-tabs.nav-stacked {
  display: block;
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0.5rem 0 0;
}
.subject-info-menu-list .nav.nav-tabs.nav-stacked > li,
.subject-profile-docs-body .nav.nav-tabs.nav-stacked > li {
  margin: 0 0 0.45rem;
}
.subject-info-menu-list .nav.nav-tabs.nav-stacked > li > a,
.subject-profile-docs-body .nav.nav-tabs.nav-stacked > li > a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 0.8rem;
  border: 1px solid #d9e7f2;
  border-radius: 10px;
  color: #24465e;
  background: #f8fcff;
  box-shadow: none;
  font-weight: 600;
  white-space: normal;
  line-height: 1.35;
}
.subject-info-menu-list .nav.nav-tabs.nav-stacked > li > a:hover,
.subject-profile-docs-body .nav.nav-tabs.nav-stacked > li > a:hover {
  background: #eef7fd;
  text-decoration: none;
}

.nav-tabs {
  display: flex;
  gap: .5rem;
  margin: 1rem 0;
  padding: .35rem;
  border-radius: 999px;
  background: #e9f3fa;
  width: fit-content;
}
.nav-tabs > li { list-style: none; }
.nav-tabs > li > a {
  display: block;
  padding: .45rem .9rem;
  border-radius: 999px;
  color: #1f465e;
  font-weight: 700;
}
.nav-tabs > li.active > a,
.nav-tabs > li > a:hover { background: #fff; box-shadow: 0 4px 10px rgba(15,38,59,.1); text-decoration: none; }

.alert {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: .75rem .9rem;
  margin: .6rem 0;
}
.alert-info { background: #edf7ff; }
.alert-success { background: #e9faf2; border-color: #c3ecd8; }
.alert-warning { background: #fff8e8; }
.alert-danger, .alert-error { background: #ffecec; border-color: #f3c4c4; }

table { width: 100%; border-collapse: collapse; }
td, th { padding: .55rem .5rem; border-bottom: 1px solid #e7eef4; text-align: left; }

/* Documents block width and readability */
.plugin-subject-docs.subject-info {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.subject-profile-docs-body {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.subject-profile-docs-body a {
  word-break: break-word;
}

.banner { margin: 1rem 0; }
#footer { margin-top: 1.5rem; padding: 1.2rem 0 0; background: linear-gradient(180deg, #f8fbfd, #edf4f9); border-top: 1px solid var(--border); }
#project-info { padding: 1rem 1.1rem; }
.copyright { margin-top: 1rem; border-top: 1px solid var(--border); }
.copyright--body { padding: .9rem 0; color: var(--muted); font-size: .94rem; }

#online-poradna {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(340px, calc(100% - 2rem));
}
.online-poradna-content {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  padding: .9rem;
}
.online-poradna-title { margin: 0 0 .45rem; }
.online-chat-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid #c9dceb;
  border-radius: 50%;
  background: #fff;
  color: #33556f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.online-chat-close:hover {
  background: #f2f8fc;
}
.online-chat-open {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 41;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #0b7fb8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(11, 127, 184, 0.28);
}

iframe { border-radius: 12px; background: #fff; }
iframe, table { max-width: 100%; }

.media {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pull-right { margin-left: auto; }

@media (max-width: 991px) {
  #online-poradna { position: static; width: 100%; margin-top: 1rem; }
  .header--hamburger { display: inline-flex; }
  .header--row { justify-content: space-between; padding: 0.42rem 0; }
  .header--search { width: 100%; min-width: 0; }
  .header--navbar { display: none; }
  body.nav-open .header--navbar { display: block; }
  .navbar-nav {
    display: block;
    padding: .6rem 0;
  }
  .navbar-nav > li > a { margin-bottom: .3rem; }
  .media { flex-direction: column; }
  .subject-detail--image-rounded { margin-bottom: .6rem; }
}

@media (max-width: 768px) {
  .container { width: calc(100% - 1rem); }
  .header--logo img { max-height: 34px; }
  .header--hamburger { width: 36px; height: 36px; }
  .subject-detail--image-rounded { width: 108px; height: 108px; }
  .nav-tabs {
    width: 100%;
    border-radius: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .input-group { flex-direction: column; }
  .btn, .form-control { width: 100%; }
  [id*="subject-map"] { min-height: 220px; }
}
