:root {
  /* --tagline-bg: #333333; */
  --tagline-bg: #515151;
  /* --main-theme-color: #4a6da7; */
  --main-theme-color: #007878;
  /* --main-theme-color-light: #e1e6f0; */
  --main-theme-color-light: #0078781a;
}

body {
  font-family: 'Helvetica Neue', helvetica, arial;
}

a {
  color: var(--main-theme-color);
  text-decoration: none;
}

a:hover {
  color: #003d6b;
  text-decoration: underline;
}

h2 {
  font-family: 'Helvetica Neue', helvetica, arial;
  font-size: 1.25em;
  text-align: center;
  color: #ae1804;
}
h2.rozcestnik {
  font-weight: 500;
}
h2 > a,
p > a {
  color: var(--main-theme-color);
}

img.img_homepage {
  width: 100%;
  height: 280px;
  -o-object-fit: cover;
  object-fit: cover;
}
/* @media screen and (max-width: 600px) {
  img.img_homepage {
    object-position: -400px 40px;
  }
} */

@media screen and (max-width: 399px) {
  img.img_homepage {
    -o-object-position: -50px 0px;
    object-position: -50px 0px;
    height: 240px;
  }
}
@media screen and (min-width: 400px) {
  img.img_homepage {
    -o-object-position: 0px 0px;
    object-position: 0px 0px;
    height: 280px;
  }
}

@media screen and (min-width: 771px) and (max-width: 1000px) {
  img.img_homepage {
    /* object-position: 0px -15px; */
  }
}
@media screen and (min-width: 1000px) {
  img.img_homepage {
    -o-object-position: 0px -50px;
    object-position: 0px -50px;
  }
}

h1 {
  color: #121212;
}

sup {
  line-height: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

hr {
  width: 70%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content a {
  margin-right: 10px;
  color: #fff;
  text-decoration: none;
}

.footer-content img {
  height: 17px;
  margin-left: 10px;
  padding-top: 3px;
}

/* table */
table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 8px;
}

.article_table th,
.article_table td {
  border: #555555 1px solid;
}

th {
  background-color: #ddd;
  text-align: center;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.article_table tr:hover {
  background-color: #ddd;
}

td:first-child {
  font-weight: bold;
}

/* td:last-child {
  text-align: right;
} */
thead {
  text-align: center;
}
tbody > tr > td {
  text-align: left;
}

#footerr {
  flex-shrink: 0;
  color: #f2f0e9;
  background-color: var(--tagline-bg);
  /* padding: 0.7rem 0 1.6rem 0; */
  margin-bottom: 0;
  font-size: 1.1rem;
  /* padding: 20px; */
  border-top: 1px solid #dddddd;
  margin: 0 auto;
  /* margin-top: 20px; */
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-width: 1042px;
  width: 100%;
  box-shadow: 0 10px 10px -10px rgba(241, 241, 241, 0.8);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  /* border-radius: 4px; */
}

.logo_img {
  /* width: 80px; */
  margin: 0px;
  margin-right: 1rem;
  margin-left: 0px;
}

@media screen and (max-width: 450px) {
  .logo_img {
    /* width: 40px; */
    /* height: 35.499px;
    width: auto; */
  }
}
@media screen and (min-width: 601px) and (max-width: 850px) {
  .logo_img {
    /* width: 40px; */
  }
}
@media screen and (max-width: 999px) {
  .logo_img {
    padding: 0px;
  }
  .headingsmall .header-mobile-logo .logo_img {
    margin: 0;
    max-width: none;
  }
}

#headerpurple {
  background-color: #ffffff;
}

.img_homepage {
  width: 100%;
  max-width: 100%;
}

.tag_header {
  margin-bottom: 2rem;
  margin-top: 0rem;
}

h1,
.headerlogotext {
  font-family: 'Montserrat', sans-serif;
  font-family: 'Raleway', sans-serif;
}

img.imgmain {
  border-radius: 4px;
}

.text-align-right {
  text-align: right;
}

#headerlinks {
  font-family: Arial, Helvetica, sans-serif;
}

blockquote {
  /* font-size: 1.4em; */
  width: 90%;
  margin: 0 auto;
  margin-top: 0rem;
  margin-bottom: 1rem;
  /* font-family: Open Sans; */
  /* font-style: italic; */
  color: #555555;
  /* padding: 1.2em 30px 1.2em 75px; */
  padding: 0.5em;
  padding-bottom: 0.03em;
  padding-top: 0.03em;
  border-left: 8px solid var(--main-theme-color);
  /* border-left: 8px solid #7d8ca5; */
  /* line-height: 1.6; */
  position: relative;
  background: var(--main-theme-color-light);
  border-radius: 6px;
}

blockquote::after {
  content: '';
}

blockquote > a,
span {
  display: block;
  font-style: italic;
  /* color: #333333; */
  /* font-style: normal; */
  /* font-weight: bold; */
  /* margin-top: 1em; */
}

blockquote > p > a {
  display: block;
  font-style: italic;
}
.main-content > blockquote > p > sup > a {
  display: inline !important;
}
blockquote > sup {
  display: inline !important;
}

.home_image_link {
  display: block;
}

.headingsmall > img,
.headinglarge > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

p,
blockquote,
li,
.plarge {
  /* text-align: justify; */
}

.img-caption,
figcaption {
  margin-top: 0px;
  text-align: right;
  font-size: 0.9rem;
  font-style: italic;
}

.main-body {
  margin-bottom: 0px;
  flex: 1 0 auto;
}

#bluee {
  border-collapse: collapse;
  width: 100%;
}

#bluee td,
#bluee th {
  border: 1px solid #ddd;
  padding: 8px;
}

#bluee tr:nth-child(even) {
  background-color: #f2f2f2;
}

#bluee tr:hover {
  background-color: #ddd;
}

#bluee th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4caf50;
  color: white;
}

.blueetoprow {
  text-align: center;
  font-weight: bold;
}

.blueebody td:first-child {
  font-weight: bold;
  vertical-align: top;
}

.blueebottomleftcurve {
  border-bottom-left-radius: 10px;
}

.blueenocurve {
  border-radius: 0px;
}

.blueebottomrightcurve {
  border-bottom-right-radius: 10px;
}

body {
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.video_ {
  max-width: 100%;
}

/* dark mode */
/* body, blockquote, table, code, pre {
  background: #000 !important;
  color: #fff !important;
}
a, a:visited {
  color: #8ec6ff !important;
}
h1, h2, h3, h4, h5, h6, th, td, p, li, span, div {
  color: #fff !important;
  border-color: #222 !important;
}
input, textarea, select {
  background: #111 !important;
  color: #fff !important;
  border-color: #333 !important;
}
::placeholder {
  color: #bbb !important;
}
table {
  background: #111 !important;
  color: #fff !important;
}
code, pre {
  background: #222 !important;
  color: #ececec !important;
} */

/* lightbox – image wrapper links: no link styling on the image */
a.lb-trigger:has(> img),
a.lb-trigger:has(> img):hover,
a.lb-trigger:has(> img):focus {
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
  outline: none;
}

a.lb-trigger:has(> img) img {
  display: block;
}

/* imghalf/imgthird/img25 zůstanou vedle sebe i po init lightboxu */
a.lb-trigger:has(> img.imghalf) img,
a.lb-trigger:has(> img.imgthird) img,
a.lb-trigger:has(> img.img25) img {
  display: inline;
}

body.lb-noscroll {
  overflow: hidden;
}

#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#lb-overlay.lb-open {
  display: flex;
}

#lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(40, 40, 40, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-close:hover {
  background: #555;
}

#lb-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default;
  border-radius: 3px;
}

.header-section-title {
  color: #ffffff;
  text-transform: uppercase;
  font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  font-style: normal;
}

.nav-boxes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.85rem 0.65rem 1rem;
  box-sizing: border-box;
}

.nav-box {
  display: block;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid #dde4e4;
  border-radius: 10px;
  background: #f7fafa;
  text-decoration: none;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-box:hover,
.nav-box:focus {
  background: #ffffff;
  border-color: #b8d4d4;
  box-shadow: 0 4px 14px rgba(0, 120, 120, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-box-active {
  background: #ffffff;
  border-color: var(--main-theme-color);
  box-shadow: 0 2px 8px rgba(0, 120, 120, 0.1);
}

.nav-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.nav-box-title {
  color: #1e2a2a;
  font-family: 'Raleway', 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.nav-box-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(0, 120, 120, 0.08);
  color: var(--main-theme-color);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-box-action::before {
  content: '';
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}

.nav-box:hover .nav-box-action,
.nav-box:focus .nav-box-action {
  background: rgba(0, 120, 120, 0.14);
  transform: translateX(2px);
}

.nav-box-desc {
  color: #5a6363;
  font-size: 0.95rem;
  line-height: 1.45;
}

.nav-box:hover .nav-box-title,
.nav-box:focus .nav-box-title,
.nav-box:visited .nav-box-title {
  color: #1e2a2a;
  text-decoration: none;
}

.nav-box:hover .nav-box-desc,
.nav-box:focus .nav-box-desc,
.nav-box:visited .nav-box-desc {
  color: #444444;
  text-decoration: none;
}

@media screen and (max-width: 999px) {
  .headinglarge .header-section-title {
    font-size: 0.85rem;
  }
}

@media screen and (min-width: 1000px) {
  .headinglarge > img {
    max-width: 1042px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    max-width: 1000px;
    padding: 1.1rem 0 1.4rem;
  }

  .nav-box {
    width: auto;
  }

  .nav-box-title {
    font-size: 1.05rem;
  }

  .nav-box-desc {
    font-size: 0.88rem;
  }
}

.article-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  text-align: left;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #dde4e4;
  border-radius: 10px;
  background: #f7fafa;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.article-card:hover,
.article-card:focus {
  background: #ffffff;
  border-color: #b8d4d4;
  box-shadow: 0 4px 14px rgba(0, 120, 120, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.article-card-thumb {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eded;
}

.article-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.article-card-title {
  margin: 0;
  font-family: 'Raleway', 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  color: #1e2a2a;
}

.article-card-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #5a6363;
}

.article-card-more {
  margin-top: auto;
  padding-top: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--main-theme-color);
}

.article-card:hover .article-card-title,
.article-card:focus .article-card-title,
.article-card:visited .article-card-title {
  color: #1e2a2a;
  text-decoration: none;
}

.article-card:hover .article-card-desc,
.article-card:focus .article-card-desc,
.article-card:visited .article-card-desc {
  color: #444444;
  text-decoration: none;
}

.article-card:hover .article-card-more,
.article-card:focus .article-card-more {
  text-decoration: underline;
}

@media screen and (min-width: 600px) {
  .article-card {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
  }

  .article-card-thumb {
    width: 7rem;
    aspect-ratio: 1;
  }

  .article-card-title {
    font-size: 1.15rem;
  }
}

.related-articles {
  width: 100%;
  margin: 0;
  padding: 2.5rem 1rem 3rem;
  background: #e8f3f3;
  box-sizing: border-box;
}

.related-articles-inner {
  max-width: 720px;
  margin: 0 auto;
}

.related-articles-heading {
  margin: 0 0 1.5rem;
  font-family: 'Raleway', 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #1e2a2a;
}

.related-articles-cards {
  margin-top: 0;
}

.related-articles .article-card {
  background: #ffffff;
  border-color: #d5e5e5;
}

.related-articles .article-card:hover,
.related-articles .article-card:focus {
  background: #ffffff;
  border-color: #9ecaca;
}

@media screen and (min-width: 1000px) {
  .related-articles {
    padding: 3rem 2rem 3.5rem;
  }

  .related-articles-inner {
    max-width: 760px;
  }
}

/* welcome letter modal – first visit on homepage */
.welcome-letter-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.75);
}

.welcome-letter-overlay[hidden] {
  display: none;
}

.welcome-letter-modal {
  position: relative;
  width: min(42, 90%) !important;
  max-height: min(90vh, 52rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.welcome-letter-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.9);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.welcome-letter-close:hover,
.welcome-letter-close:focus {
  background: #555;
  outline: none;
}

.welcome-letter-close.welcome-letter-close-armed {
  background: #8b3a3a;
  transform: scale(1.08);
}

.welcome-letter-content {
  overflow-y: auto;
  padding: 2.25rem 0.75rem 1rem;
  color: #1e2a2a;
  line-height: 1.55;
}

.welcome-letter-content .tag_header {
  margin-top: 0;
  padding-right: 2.25rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

body.welcome-letter-open {
  overflow: hidden;
}

body.welcome-letter-open #footerr {
  visibility: hidden;
}

@media screen and (min-width: 600px) {
  .welcome-letter-overlay {
    padding: 1rem;
  }

  .welcome-letter-content {
    padding: 2.75rem 2rem 2rem;
  }

  .welcome-letter-content .tag_header {
    padding-right: 2.5rem;
    font-size: inherit;
    line-height: inherit;
  }
}

/* Contact page */
.contact-page-intro {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.contact-email {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-email a {
  font-weight: 600;
}

.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form-honeypot {
  display: none;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.contact-form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e2a2a;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dde4e4;
  border-radius: 8px;
  background: #f7fafa;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #1e2a2a;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--main-theme-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 120, 120, 0.12);
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form-submit {
  align-self: flex-start;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 8px;
  background: var(--main-theme-color);
  color: #ffffff;
  font-family: 'Raleway', 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.contact-form-submit:hover,
.contact-form-submit:focus {
  background: #006060;
  box-shadow: 0 4px 14px rgba(0, 120, 120, 0.25);
  transform: translateY(-1px);
  outline: none;
}