:root {
  --paper: #fff8ed;
  --paper-deep: #ffefd9;
  --ink: #3a3a55;
  --pine: #2c93c2;
  --pine-light: #3fa9cc;
  --moss: #d9efe6;
  --moss-pale: #fdf6ec;
  --honey: #ffd873;
  --honey-deep: #f0a93e;
  --bark: #ff9b76;
  --leaf-deep: #4fae7d;
  --coral-deep: rgba(226, 97, 74, 0.85);
  --coral-deep-light: rgba(226, 97, 74, 0.3);
  --white: #ffffff;
  --line: #cbd8df;
  --shadow: 0 12px 28px -12px rgba(44, 147, 194, 0.28);
  --radius: 22px;
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Inter", sans-serif;


  --font-header: "Quicksand", sans-serif;
  --color-zs: #589A46;
  --color-ms: #A2C04E;
  --color-sd: #45A1BB;
  --color-kr: #E8453F;
  --color-sj: #F1B533;
  --color-contact: #235329;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #52667a;
  font-weight: 300;
  background-color: #fffffc;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

p {
  font-size: 1rem;
}

a {
  color: #113f59;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #1e4f6c;
  text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #0e4569;
}

h1 {
  font-size: 2em;
  padding-bottom: 10px;
}

h1 small {
  position: relative;
  top: 7px;
  color: #F1B533;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
}

h2 {
  font-size: 1.4rem;
  margin: 30px 0 10px 0;
}

h3 {
  color: #275F94;
  font-size: 1.3rem;
  margin: 50px 0 20px 0;
}

h4 {
  font-size: 1.2rem;
  margin: 40px 0 20px 0;
}

b,
strong {
  font-weight: 600;
}

li {
  font-size: 1rem;
  margin-bottom: 8px;
}

.thumbnail {
  border: 1px solid #cbd8df;
  border-radius: 16px;
  overflow: hidden;
}

.thumbnail img {
  -webkit-transition: transform 0.1s linear;
  -o-transition: transform 0.1s linear;
  transition: transform 0.1s linear;
}

.thumbnail img:hover {
  transform: scale(1.04);
}

.red {
  color: #E8453F;
}

.orange {
  color: #ec7600;
}

.green {
  color: #76B729;
}

.blue {
  color: #162B6A;
}

.grey {
  color: #c1c0c0;
}

.bg_white {
  background-color: #FFFFFF;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  font-weight: 300;
}

.btn-primary {
  color: #FFFFFF !important;
  background-color: #0e4569;
  text-decoration: none;
  border: 1px solid #0e4569;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 1rem;
}

.btn-primary.active,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
  color: #FFFFFF !important;
  background-color: #285f94;
  border: 1px solid #285f94;
  box-shadow: 0 0 0 .25rem #C9D1DF;
}

.btn-secondary {
  color: #ffffff;
  background-color: #696969;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-secondary.active,
.btn-secondary:active,
.btn-secondary:focus,
.btn-secondary:hover {
  color: #000000;
  background-color: #ffffff;
  border: 1px solid #ffffff;
}

#no_record {
  margin-bottom: 120px;
  font-size: 1.1rem;
  text-align: center;
}

#no_record_ico {
  margin: 120px 0 50px 0;
  text-align: center;
  color: #E3000F;
}

blockquote {
  position: relative;
  line-height: 1.5;
  padding: 30px 40px;
  margin: 30px 0 0 0;
  background-color: #f1f5f9;
  border-radius: 8px;
  font-style: italic;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 5rem;
  color: #cbd5e1;
  font-family: Georgia, serif;
  line-height: 1;
}


/* horní informační lišta */

.topbar {
  background-color: #F6CC7C;
  font-size: 0.8em;
  color: #4f4f4f;
  padding: 8px 0 4px 0;
}

.topbar a {
  color: #4f4f4f;
  text-decoration: none;
  transition: color .2s ease;
}

.topbar a:hover {
  color: #343333;
}

.topbar i {
  margin-right: .35rem;
}


/* hlavní navigace */

#mainNav {
  padding: 0;
  z-index: 999 !important;
  background-color: #FFFFFF;
}

#mainNav .container {
  position: relative;
  padding: 0 !important;
}

#mainNav .navbar-toggler {
  font-size: 1rem;
  padding: 6px 0 6px 6px;
  margin-right: 10px;
  border: none;
  background-color: none;
}

#mainNav .navbar-toggler-icon {
  width: 30px;
  height: 30px;
}

#mainNav .navbar-brand {
  margin: 20px 0 30px 12px;
}

#mainNav .navbar-nav .nav-item {
  margin-bottom: 0;
}

#mainNav .navbar-nav .nav-item.contact {
  margin-top: 3px;
}

#mainNav .dropdown-item {
  font-weight: 300;
}

#mainNav .navbar-nav .nav-item .btn-primary {
  margin: 0 14px 0 18px;
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-size: 1em;
  line-height: 28px;
  padding: 5px 12px;
  margin: 0 4px;
  color: #073121;
  position: relative;
  text-decoration: none;
  border: 4px solid #FFFFFF;
  border-radius: 5px;
  -webkit-transition: border-color 0.4s linear;
  -o-transition: border-color 0.4s linear;
  transition: border-color 0.4s linear;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:focus,
#mainNav .navbar-nav .nav-item .nav-link:active,
#mainNav .navbar-nav .nav-item.active .nav-link {
  border: 4px solid #C9D1DF;
  border-radius: 5px;
  padding: 5px 12px;
  margin: 0 4px;
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  padding: 0 10px 20px 10px;
  background-color: #FFFFFF;
}

@media (max-width: 1199.98px) {
  #mainNav .dropdown-menu {
    display: none;
  }

  #mainNav .dropdown-toggle::after {
    display: none;
  }

  #mainNav .navbar-nav .nav-item:last-of-type {
    margin-top: 10px;
  }

  #mainNav .navbar-brand {
    margin: 5px 0 5px 12px;
  }

}

@media (max-width: 576px) {
  #mainNav .navbar-brand img {
    width: 200px;
    height: 43px;
  }

  #mainNav .navbar-brand {
    margin: 10px 0 16px 12px;
  }
}


/* sekce */

.section_blue {
  padding-bottom: 50px;
  background: url('/images/bg_blue_top.svg') top left / 125px 3px repeat-x,
    url('/images/bg_blue_bot.svg') bottom left / 125px 3px repeat-x;
  background-color: #e4f2f9;
}

.section_white {
  background-color: #FFFFFF;
}

.section_beige {
  padding-bottom: 50px;
  background: url('/images/bg_beige_top.svg') top left / 125px 3px repeat-x;
  background-color: #FCF7F3;
}



/* index - aktuality */

.index-news {
  z-index: 1;
  padding: 20px 13px 10px 13px;
}

.quick-links {
  margin-bottom: 20px;
}

.quick-links a {
  text-decoration: none;
}

.quick-links a:hover {
  text-decoration: none;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  text-align: left;
  padding: 8px 10px;
  transition: transform .18s, box-shadow .18s;
}

.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 8px #173d2912;
}

.quick-link .icon i {
  font-size: 42px;
}

.quick-link .name {
  margin: 0 0 4px 0;
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 700;
}

.quick-link .desc {
  font-size: 0.8em;
}

.quick-link.blue h2,
.quick-link.blue {
  background-color: #bfe0f3;
  color: #113f59;
}

.quick-link.green h2,
.quick-link.green {
  background-color: #e0efbe;
  color: #235329;
}

.quick-link.yellow h2,
.quick-link.yellow {
  background-color: #ffe782;
  color: #584f2a;
}

.index-news .head-article {
  margin-left: 0;
  margin-right: 0;
  padding: 20px 8px 20px 8px;
  background-color: #CAE5F5;
  border-radius: 16px 16px 0 0;
}

.index-news .head-article .thumbnail {
  float: left;
}

.index-news .head-article h3 {
  line-height: 1.3;
  margin: 0 0 12px;
}

.index-news .head-article .header {
  color: #113f59;
  text-decoration: none;
}

.index-news .head-article .header:hover {
  text-decoration: underline !important;
}

.index-news .head-article p {
  font-size: 0.9rem;
  color: #52667a;
  margin-bottom: 15px;
}

.index-news .head-article .dacateg {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: #0e6b84;
  margin-bottom: 11px;
}

.index-news .head-article .dacateg a {
  font-size: 0.8rem;
  color: #0e6b84;
  text-decoration: none;
}

.index-news .head-article .dacateg a:hover {
  text-decoration: underline !important;
}



/* index - škola a motto */

.about-right {
  margin-bottom: 20px;
}

.about-photo {
  position: relative;
  overflow: hidden;
}

.about-photo img {
  display: block;
}

.about-photo-slogan {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 0 0 24px 70px;

  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.about-photo-slogan span {
  display: block;
  padding-left: 60px;
}

@media (max-width: 1399.98px) {
  .about-photo-slogan {
    padding: 0 0 20px 60px;
    font-size: 26px;
  }
}

@media (max-width: 1199.98px) {
  .about-photo-slogan {
    padding: 0 0 16px 50px;
    font-size: 21px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .about-photo-slogan {
    padding: 0 0 40px 90px;
    font-size: 48px;
  }

  .about-photo img {
    width: 694px;
    height: 476px;
    content: url("/images/pages/index/school_about_t.png");
  }

}

@media (max-width: 767.98px) {
  .about-photo-slogan {
    padding: 0 0 32px 90px;
    font-size: 36px;
  }
}

@media (max-width: 575.98px) {
  .about-photo-slogan {
    padding: 0 0 24px 68px;
    font-size: 26px;
  }

  .about-right {
    margin-bottom: 0;
  }

}


/* index - kalendář akcí */

.index_cal {
  padding-top: 20px;
}

.content-cal {
  padding-top: 30px;
}

.cal-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  padding: 20px;
  position: relative;
}

.cal-card::before,
.cal-card::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--honey);
  border: 3px solid var(--paper);
  z-index: 3;
}

.cal-card::before {
  left: 29%;
  transform: translateX(-50%);
}

.cal-card::after {
  left: 71%;
  transform: translateX(-50%);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav button {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  transition: background .15s ease;
}

.cal-nav button:hover {
  background: var(--moss-pale);
}

.cal-nav .month-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--pine);
  text-transform: capitalize;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-dow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  color: var(--pine-light);
  text-transform: uppercase;
  padding-bottom: 4px;
}

.cal-day {
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--paper);
  position: relative;
  font-size: 13px;
  transition: background .15s ease, border-color .15s ease;
}

.cal-day:hover {
  border-color: var(--pine-light);
}

.cal-day .num {
  font-family: var(--font-mono);
  font-weight: 700;
}

.cal-day .name {
  font-size: 8.5px;
  color: #7a7a99;
  margin-top: 1px;
  line-height: 1;
  text-align: center;
  padding: 0 2px;
}

.cal-day.weekend {
  background: #edf0f3;
}

.cal-day.holiday {
  background: #e8f1d8;
}

.cal-day.weekend.holiday {
  background: #dce2d8;
}

.cal-day.day-off {
  background: #e8f1d8;
}

.cal-day.public-holiday {
  background: #fbe5df;
}

.cal-day.other-month {
  opacity: .32;
}

.cal-day.today {
  background: var(--honey);
  border-color: var(--honey-deep);
}

.cal-day.today .num,
.cal-day.today .name {
  color: var(--pine);
}

.cal-day .cal-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  width: 100%;
  padding: 0 3px;
  margin-top: 4px;
}

.cal-day .cal-dot {
  display: block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral-deep);
}

.cal-day.today .cal-dot {
  background: var(--pine);
}

.cal-day.selected {
  border-color: var(--pine);
  box-shadow: 0 0 0 2px var(--pine) inset;
}

.cal-detail {
  background: var(--coral-deep);
  color: var(--paper);
  border-radius: 16px 16px 0 0;
  padding: 20px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.cal-detail .dd {
  float: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.cal-detail .dateStr {
  float: left;
  line-height: 1;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 2.5rem;
  margin-top: 4px;
  margin-right: 16px;
  font-weight: 700;
}

.cal-detail .nn {
  float: right;
  text-align: right;
  font-size: 14px;
  color: var(--paper);
}

.cal-detail .nameday {
  color: var(--honey);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  float: none;
  display: flow-root;
  overflow-wrap: anywhere;
  text-align: right;
  margin-bottom: 2px;
}

.cal-detail .events {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-detail .event-item {
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cal-detail .event-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--honey);
}

.cal-detail .event-item a {
  color: var(--white);
  font-weight: 400;
  text-decoration: none;
}

.cal-detail .event-item a i {
  margin-left: 10px;
  transition: margin-left 0.25s ease;
}

.cal-detail .event-item a:hover i,
.cal-detail .event-item a:focus-visible i {
  margin-left: 18px;
}


.cal-detail .no-events {
  margin-top: 16px;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 400;
}


/* index - aktuální jídelníček */

.index-menu {
  padding: 16px 0 14px 0;
  margin-top: 20px;
  margin-bottom: 30px;
  border-radius: 16px;
  background-color: #e0efbe;
  color: #235329;
  border: 1px solid #d5e2c3;
}

.index-menu .eats-item {
  border-radius: 0;
  display: block;
  margin-bottom: 0;
  background: #fffef9;
  border-top: 1px solid #d5e2c3;
  border-bottom: 1px solid #d5e2c3;
  border-left: none;
  border-right: none;
}

.index-menu h2 {
  color: #235329;
  font-size: 1.2rem;
  padding: 0;
  margin: 0 0 16px 20px;
}

.index-menu h2 i {
  margin-right: 14px;
}

.index-menu .eat-label {
  color: #526849 !important;
}

.index-menu .allg-text {
  color: #526849 !important;
}

.index-menu .allg-item {
  text-decoration-color: #526849;
}

.index-menu .eat-text {
  color: #263d30
}

.index-menu .button {
  margin: 10px 0 0 20px;
}

.index-menu a {
  color: #235329;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.index-menu a i {
  margin-left: 10px;
  transition: margin-left 0.25s ease;
}

.index-menu a:hover i,
.index-menu a:focus-visible i {
  margin-left: 18px;
}


/* index - o naší škole */

.index_about {
  padding-top: 80px;
  padding-bottom: 40px;
}

.index_about h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.9em;
}

.index_about p.header {
  margin: 0 0 40px 0;
  font-style: italic;
}

.index_about p {
  text-align: justify;
}

.index_about .about-img {
  margin-left: 36px;
  border-radius: 16px;
}

.index_about blockquote {
  border-radius: 0 20px 0 20px;
}

.index_about .buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.index_about .buttons a.more {
  font-size: 0.9rem;
  font-weight: 600;
  color: #285f94;
  padding-top: 6px;
  text-decoration: none;
}

.index_about .buttons a.more i {
  margin-left: 10px;
  transition: transform 0.25s ease;
}

.index_about .buttons a.more:hover i,
.index_about .buttons a.more:focus-visible i {
  transform: translateX(8px);
}



/* index - projekty */

.index_projects {
  padding-top: 80px;
  padding-bottom: 50px;
}

.index_projects h2 {
  color: #5c4442;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.9em;
}

.index_projects p.header {
  color: #6E5350;
  margin: 0 0 50px 0;
  font-style: italic;
}

.index_projects .card_project {
  border-radius: 20px 0 20px 0;
  margin-bottom: 40px;
}

.index_projects .card_project h3 {
  margin-bottom: 20px;
}

.index_projects .card_project h3 a {
  color: #5c4442;
  text-decoration: none;
}

.index_projects .card_project h3 a:hover {
  color: #6E5350;
  text-decoration: underline !important;
}

.index_projects .card_project .card_text {
  color: #6E5350;
  margin-bottom: 15px;
}

.index_projects .card_project a.card_more {
  color: #5c4442;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.index_projects .card_project a.card_more i,
.index_projects .card_project a.card_more i {
  margin-left: 10px;
  transition: margin-left 0.25s ease;
}

.index_projects .card_project a.card_more:hover i,
.index_projects .card_project a.card_more:focus-visible i,
.index_projects .card_project a.card_more:hover i,
.index_projects .card_project a.card_more:focus-visible i {
  margin-left: 18px;
}




.index_projects .btn-primary {
  background-color: #5c4442;
  border: 1px solid #5c4442;
}

.index_projects .btn-primary.active,
.index_projects .btn-primary:active,
.index_projects .btn-primary:focus,
.index_projects .btn-primary:hover {
  background-color: #776360;
  border: 1px solid #7763607b;
  box-shadow: 0 0 0 .25rem #7763604e;
}





/* levé menu */

.sideNav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 99 !important;
  padding: 20px 16px 12px 16px;
  margin-top: 26px;
  margin-bottom: 70px;
  border-radius: 16px;
  border: 1px solid #cbd8df;
  background-color: #FFFFFF;
}

.sideNav h3 {
  margin: 0 0 20px 25px;
}

.sideNav-toggler {
  display: none;
}

.sideNav-toggler .section-chevron {
  display: inline-flex;
  transition: transform 0.35s ease;
}

.sideNav-toggler[aria-expanded="true"] .section-chevron {
  transform: rotate(180deg);
}

.sideNav .nav-item {
  margin: 0px;
  width: 100%;
}

.sideNav .nav-sub_item {
  position: absolute;
  visibility: hidden;
  margin: 0;
  width: 100%;
  padding-left: 20px;
  background-color: #F4F4F4;
  border-bottom: 1px solid rgba(14, 107, 132, 0.5);
}

.sideNav .nav-sub_item.active {
  position: static;
  visibility: visible;
}

.sideNav a.nav-link {
  color: #172d4c;
  padding: 13px 16px 13px 25px;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 46px;
  position: relative;
  border-radius: 8px;
}

.sideNav a.nav-link:hover {
  border-radius: 8px;
  background-color: #f0f6fa;
  text-decoration: none;
}

.sideNav a.nav-link.active {
  background: #e2f0f9;
  color: #1b5792;
  font-weight: 600;
  border-left: 5px solid #285f94;
  padding-left: 20px;
}

@media (max-width: 1199.98px) {

  .section-collapse {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;

    transition:
      grid-template-rows 0.35s ease,
      visibility 0s 0.35s;
  }

  .section-collapse.expanded {
    grid-template-rows: 1fr;
    visibility: visible;

    transition:
      grid-template-rows 0.35s ease,
      visibility 0s;
  }

  /* Umožní skutečné smrštění obsahu na nulovou výšku */
  .section-collapse-inner {
    min-height: 0;
    overflow: hidden;
  }

  /* Menu nesmí mít display: none, jinak by nešlo animovat */
  .section-collapse .sideNav {
    display: flex;
    padding: 8px 0;
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 0;
    border: none;
  }

  .sideNav-toggler {
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    color: #134e76;
    padding: 12px 0;
    font-weight: 600;
  }

  .section-collapse.expanded .sideNav {
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 0;
    border: none;
  }

  .section-collapse.expanded .sideNav h3 {
    display: none;
  }
}


/* drobečková navigace */

.breadcrumb {
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #265f95;
  background-color: transparent;
}

.breadcrumb i.fa-house {
  margin-right: 14px;
  font-size: 1.2rem;
}

.breadcrumb i.fa-chevron-right {
  margin: 0 10px;
  font-size: 0.7rem;
}

.breadcrumb a {
  color: #265f95;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline !important;
}

.breadcrumb li {
  margin-bottom: 0;
}


/* detail - obsah */

.page_content {
  overflow-x: clip;
  isolation: isolate;
}

.page_content .heading {
  padding: 30px 0 26px 0;
  position: relative;
}

.page_content .heading::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  z-index: -1;
  pointer-events: none;
  padding: 13px 0;
  background:
    url('/images/bg_blue_top.svg') top left / 125px 3px repeat-x,
    url('/images/bg_blue_bot.svg') bottom left / 125px 3px repeat-x,
    #e4f2f9;
}

.content {
  padding: 0 13.5px 60px 20px;
  padding-bottom: 60px;
  text-align: justify;
}

.content h2 {
  color: #0e4569;
  font-size: 2em;
  margin: 0 0 9px 0;
  padding-bottom: 10px;
  padding-top: 30px;
}

.content a {
  color: #52667a;
}

.content .settingCookiesBtn {
  float: right;
  margin: 36px 0 0 20px;
}

.content .settingCookiesBtn i {
  margin-right: 10px;
}

.content .date {
  float: right;
  font-size: 0.8em;
  color: #265f95;
}

.content .desc {
  text-align: left;
  color: #265f95;
  font-style: italic;
}

.content .desc p {
  margin-bottom: 0;
}

.content .text {
  margin: 30px 0;
}

.content .text_block {
  display: inline-block;
  padding: 15px;
  margin-top: 10px;
  text-align: left;
  border-radius: 10px;
  background-color: #e9e9e9
}

.content .text_img img {
  border-radius: 16px;
  border: 1px solid #cbd8df;
}

.content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
  margin-left: 10px;
}

.content ul li {
  padding-left: 24px;
  margin-bottom: 12px;
  background-image: url('/images/ul_li_b.png');
  background-repeat: no-repeat;
  background-position: 0 9px;
}

.content .section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 60px 0 23px 0;
  padding-top: 32px;
}

.content .section h3.header {
  color: #0e4569;
  font-size: 1.4em;
  margin: 0;
  padding: 0;
}

.content .section .count {
  font-size: 0.8rem;
  color: #506a7f;
  background: #edf4f7;
  border-radius: 20px;
  padding: 4px 11px;
}

.content .photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content .photo {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #edf4f7;
  aspect-ratio: 24/17;
}

.content .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}

.content .photo:hover img {
  transform: scale(1.04);
}

.content .addons {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #cbd8df;
}

.content .addons li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #cbd8df;
  padding: 0;
  margin: 0;
  background: none;
}

.content .addon {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  padding: 22px 12px;
  text-decoration: none;
  transition: background .15s;
}

.content .addon:hover,
.content .download:hover {
  background: #f3f7fa;
  text-decoration: none;
}

.content .addon .file_symbol {
  width: 52px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eaf1f8;
  color: #315c87;
  font-size: 29px;
}

.content .addon .file-pdf {
  background: #eaf3e8;
  color: #38613a;
}

.content .addon .file-csv,
.content .addon .file-xls,
.content .addon .file-xlsx {
  background: #fbede8;
  color: #a94330;
}

.content .addon .file-image {
  color: #71529a;
  background: #f1ebf8;
}

.content .addon .file-zipper {
  background: #f5efdf;
  color: #876421;
}

.content .addon .file_info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.content .file_info .file_name {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #0e4569;
  overflow-wrap: anywhere;
}

.content .file_info .file_desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #536779;
}

.content .file_info .file_meta {
  display: flex;
  gap: 8px;
  row-gap: 8px;
  column-gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: #657789;
}

.content .addons .download {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 10px;
  min-width: 0;
  padding: 22px 12px;
  transition: background .15s;

  color: #285c85;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.content .addons .download i {
  font-size: 1rem;
}

@media (max-width: 1199.98px) {
  .content {
    padding: 0 13.5px 30px 13.5px;
  }
}

@media (max-width: 991.98px) {

  .content .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

}

@media (max-width: 420px) {

  .content .photos {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
  }

}


@media (max-width: 575.98px) {
  .content .addons>li {
    gap: 4px;
  }

  .content .addons>li>.addon {
    gap: 12px;
    padding: 18px 0;
  }

  .content .addons>li>.download>span {
    display: none;
  }
}


.bg-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.bg-deco-1 {
  top: 4%;
  left: 6%;
  width: 150px;
}

.bg-deco-2 {
  top: 12%;
  right: 9%;
  width: 90px;
}

.bg-deco-3 {
  bottom: 10%;
  left: 10%;
  width: 130px;
}

.bg-deco-4 {
  bottom: 10%;
  right: 4%;
  width: 100px;
}



/* mapa */

.footer_map {
  height: 400px;
  position: relative;
  z-index: 10 !important;
  display: block;
}

.footer_map_vawe {
  position: relative;
  z-index: 99 !important;
  height: 8px;
  margin-top: -2px;
  margin-bottom: -2px;
  background-image: url('/images/bg_map_vawe.svg');
  background-repeat: repeat-x;
  background-size: 128px 8px;
  background-position: bottom;
  background-color: transparent;
}


/* patička */

.footer {
  color: #265f95;
  background-color: #FFFFFF;
  border-top: 1px solid #cbd8df;
}

.footer.index {
  border-top: none;
  padding-top: 15px;
  padding-bottom: 15px;
}

.footer i {
  margin-right: 8px;
}

.footer a {
  text-decoration: none;
  color: #265f95;
}

.footer a:hover {
  color: #265f95;
  text-decoration: underline !important;
}

.footer .icon {
  width: 2rem !important;
  height: 2rem;
  font-size: 1.4rem;
  margin: 0 6px 0 0 !important;
  font-family: var(--font-header);
  font-weight: 700;
}

.footer .text {
  font-weight: 200;
  font-size: 0.85rem;
}

.footer .col-divider {
  width: 1px;
  height: 60px;
  padding: 0;
  background: #cbd8df;
  margin: 0;
}

.footer-logo,
.footer .col-auto {
  margin-top: 15px;
  margin-bottom: 15px;
}

.footer-logo {
  text-align: center;
}

.copyright {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 200;
  background: url('/images/bg_green_top.svg') top left / 128px 3px repeat-x;
  background-color: #235329;
  line-height: 2em;
  padding-top: 10px;
  padding-bottom: 20px;
}

.copyright i {
  margin-right: 8px;
}

.copyright a {
  color: #FFFFFF;
  margin-left: 30px;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline !important;
}

@media (max-width: 576px) {
  .copyright a {
    margin-left: 0;
    margin-top: 20px;
  }

  .copyright .col-auto {
    text-align: center;
    margin: 10px 0;
  }
}




/* cookies */

#cookieAlert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0 !important;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  border-radius: 0;
  transform: translateY(100%);
  transition: all 500ms ease-out;
  font-size: 1em;
  color: #FFFFFF;
  background-color: #0000009e;
}

#cookieAlert a {
  color: #FFFFFF;
}

#cookieAlert i {
  margin-right: 10px;
}

#cookieAlert .btn {
  margin-left: 20px;
}

#cookieAlert.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0%);
  transition-delay: 1000ms;
}

#cookieAlert .acceptCookiesAllBtn {
  border: 1px solid #ffffff;
}


/* modal */

.modal-header {
  border-bottom: solid 1px #E9E9E9;
  padding: 15px 20px 14px 20px;
  background-color: #F9F8F8;
}

.modal-header i {
  font-size: 1.1rem;
  margin-top: 6px;
  margin-right: 10px;
}

.modal-header h1 {
  font-size: 1.4rem;
  padding-bottom: 0;
}

.modal-footer {
  font-size: 0.9rem;
  padding: 15px 20px;
  border-top: solid 1px #E9E9E9;
  background-color: #F9F8F8;
}


/* cookies modal */

#cookieModal .modal-body {
  color: #52667a;
  padding: 30px;
}

#cookieModal .modal-body .disabled {
  color: #9ca6af;
}

#cookieModal .modal-body .form-check {
  padding: 20px 0;
  border-top: solid 1px #E9E9E9;
}

#cookieModal .modal-body .form-check.first {
  padding-top: 0;
  border-top: none;
}

#cookieModal .modal-body .form-check.last {
  padding-bottom: 0;
}

#cookieModal .modal-body .form-check .custom-control-label {
  font-size: 1.1em;
  font-weight: 600;
  padding: 0 0 0 20px;
}

#cookieModal .modal-body p {
  font-size: 0.9rem;
  margin: 0 0 0 51px;
}

#cookieModal .modal-body .fa-circle-check {
  margin-bottom: 30px;
}

#cookieModal .modal-footer .modalCookiesAllBtn {
  margin-left: 20px;
}
















/* stránkování */

.pagination {
  margin-top: 50px;
}

.page-link {
  padding: 5px 11px;
  font-size: 0.9rem;
  color: #255F95;
  border-color: #cbd8df;
  text-decoration: none;
}

.page-link:hover {
  color: #255F95;
  border-color: #cbd8df;
  background-color: rgb(213, 229, 246);
}

.page-item.active .page-link {
  background-color: #255F95;
  border-color: #255F95;
  text-decoration: none;
}

.page-item.active .page-link:hover {
  color: #FFFFFF;
  border-color: #0e6b84;
}

.page-item.disabled .page-link {
  border-color: #cbd8df;
}

.content .pagination li {
  background-image: none;
  padding-left: 0;
  margin-bottom: 0;
}



/* custom-switch-lg - zvětšení a barva custom-switch */

.form-switch .form-check-input {
  color: #275F94;
  border-color: #275F94;
  margin-top: 8px;
  margin-left: 0;
}

.form-switch .form-check-label {
  color: #275F94;
  margin-left: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.form-switch .form-check-input:checked {
  background-color: #275F94;
  border-color: #275F94;
}


/* msg modal */

#modal-msg .modal-body {
  padding: 30px 30px 50px 30px;
  text-align: center;
}

#modal-msg .modal-body .fa-circle-check {
  font-size: 36px;
  margin-bottom: 30px;
}


/* error modal */

#modal-error .modal-body {
  padding: 30px 30px 50px 30px;
  text-align: center;
}

#modal-error .modal-body .fa-exclamation-triangle {
  font-size: 36px;
  margin-bottom: 30px;
}

/* stránka Kalendář akcí */

.diary-next h3 {
  margin-top: 30px;
  margin-bottom: 20px;
}

.diary-next .item {
  display: flex;
  gap: 17px;
  padding: 22px 0;
  border-top: 1px solid #dfedf4;
}

.diary-next .item a.header {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.3rem;
  line-height: 1;
  margin: 0 0 10px 0;
  color: #0e4569;
  display: block;
  text-decoration: none;
}

.diary-next .item p {
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 10px;
  color: #506a7f;
}

.diary-next .item a.next-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: #285f94;
  padding-top: 6px;
  display: block;
  text-decoration: none;
}

.diary-next .item a.next-more i {
  margin-left: 10px;
  transition: margin-left 0.25s ease;
}

.diary-next .item a.next-more:hover i,
.diary-next .item a.next-more:focus-visible i {
  margin-left: 18px;
}

.diary-next .item time {
  flex: 0 0 62px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 9px;
  color: #333333;
}

.diary-next .item time.action {
  background: #fcf6e3;
}

.diary-next .item time.holiday {
  background: #e8f1d8;
}

.diary-next .item time.public-holiday {
  background: #fbe5df;
}

.diary-next .item time.freeday {
  background: #e8f1d8;
}


.diary-next .item time strong {
  font-size: 26px;
}

.diary-next .item time span {
  font-size: 14px;
}

.diary-next .item time small {
  font-size: 12px;
  margin-top: 4px;
}


/* stránka Kalendář akcí - detail */

.diary-params {
  margin-bottom: 26px;
}

.diary-param {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #285f94;
}

.diary-param i {
  margin-right: 10px;
}

.diary-param i.fa-arrow-right {
  margin: 0 14px 0 14px;
}

/* stránka Organizace školního roku */

.year_timeline {
  margin: 0 0 0 30px;
  padding: 0;
  list-style: none;
}

.year_timeline_item {
  position: relative;
  padding: 0 0 2rem 2rem;
}

.year_timeline_item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  bottom: -0.65rem;
  left: 0.4rem;
  width: 2px;
  background: #cbd8df;
  transform: translateX(-50%);
}

.year_timeline_item::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  outline: 1px solid #B4C4D7;
  left: -2px;
  background-color: #B4C4D7;
  top: 5px;
  border-radius: 50%;
  z-index: 1;
}

.year_timeline_item:last-child {
  padding-bottom: 0;
}

.year_timeline_item .ydate {
  display: block;
  color: #265f95;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.year_timeline_item .yname {
  color: #0e4569;
  margin-top: 5px;
  margin-bottom: 10px;
}


/* stránka Kontakty */

.contacts h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.contacts h3 i {
  margin-right: 12px;
}

.contacts a {
  color: #285f94;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline !important;
}

.contacts a i {
  margin-right: 10px;
}

.contacts_map {
  height: 100%;
  position: relative;
  z-index: 10 !important;
  display: block;
  margin-bottom: 20px;
}

.contacts_map iframe {
  border-radius: 16px;
  border: 1px solid #cbd8df;
}

.leadership_section {
  background: #fefbf1;
  border: 1px solid #cbd8df;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 27px;
}

.leadership_section h4 {
  font-size: 1.2rem;
}

.leadership_section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #265f95;
  margin: 0 0 22px;
  font-style: italic;
}

.leadership_section.kitchen .icon_section:first-child {
  margin-top: 0;
}

.icon_section {
  margin-top: 30px;
  display: flex;
}

.icon_section .icon {
  color: #285f94;
  width: 2.0rem !important;
  height: 2.0rem;
  font-size: 1.4rem;
  margin: 8px 10px 0 0 !important;
}

.icon_section .icon .fa-clock,
.icon_section .icon .fa-circle-user {
  width: 2.0rem !important;
  height: 2.0rem;
  font-size: 2rem;
  margin: 0 10px 0 -3px !important;
}

.icon_section .icon_header {
  font-size: 0.9rem;
  color: #172d4c;
  text-align: left;
}

.icon_section .icon_text {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  color: #285f94;
}

.icon_section .icon_email a {
  font-size: 0.9rem;
  font-weight: 400;
  color: #286094d4;
}

.contact_section {
  display: flow-root;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #cbd8df;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 27px;
}

.contact_section.kitchen .icon_section:first-child {
  margin-top: 0;
}

.contact_section .contact_more {
  float: right;
  font-size: 0.9rem;
  margin-top: 3px;
  margin-left: 10px;
}

.contact_section .contact_more i {
  margin-left: 10px;
  margin-right: 0;
  transition: transform 0.2s ease;
}

.contact_section .contact_more:hover {
  text-decoration: none !important;
}

.contact_section .contact_more:hover .fa-arrow-right {
  transform: translateX(5px);
}

.contact_section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #265f95;
  margin: 0 0 22px;
  font-style: italic;
}

.contact_section_small {
  margin-bottom: 27px;
}

.contact_section_wide {
  margin-top: 27px;
}

.highlighted_section,
.subcateg_section,
.employee_section {
  border: 1px solid #cbd8df;
  background-color: rgba(228, 242, 249, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.border_section {
  display: inline-block;
  border: 1px solid #cbd8df;
  background-color: rgba(228, 242, 249, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.subcateg_section-link {
  text-decoration: none !important;
}

.subcateg_section .icon_section .icon {
  margin-right: 20px !important;
}

.subcateg_section .icon_section .icon_header p {
  font-style: italic;
  margin-bottom: 0;
  text-decoration: none !important;
}

.description_section {
  border-bottom: 1px solid #cbd8df;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.border_section .icon_section:first-child,
.highlighted_section .icon_section:first-child,
.subcateg_section .icon_section:first-child,
.description_section .icon_section:first-child,
.employee_section .icon_section:first-child {
  margin-top: 0;
}

.highlighted_section table td,
.description_section table td,
.employee_section table td {
  padding-right: 20px;
}

/* stránka O naší škole */

.content .text .about-img {
  border-radius: 16px;
  margin-top: 52px;
  margin-bottom: 40px;
}

.about-stats {
  border: 1px solid #cbd8df;
  background: #F7FBFC;
  border-radius: 12px;
  padding: 0 0 24px 0;
  margin: 40px 0 40px 0;
}

.about-stats-item {
  margin-top: 24px;
}

.about-stats>div+div {
  border-left: 1px solid #cbd8df;
}

.about-stats .number {
  margin: 0 0 10px 0;
  font-size: 34px;
  font-weight: 600;
  text-align: center;
  color: #285f94;
  line-height: 1.4;
}

.about-stats .desc {
  font-size: 0.9rem;
  color: #172d4c;
  text-align: center;
}



/* stránka Aktuality + aktuality na indexu */

.news-list.index {
  padding: 0 20px;
  margin: 0;
  background-color: #fffffc;
  border-radius: 0 0 16px 16px;
}

.head-article a,
.news-list a {
  text-decoration: none;
}

.news-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: #285f94;
  padding-top: 6px;
}

.head-article a.news-more i,
.news-list a.news-more i {
  margin-left: 10px;
  transition: margin-left 0.25s ease;
}

.head-article a.news-more:hover i,
.head-article a.news-more:focus-visible i,
.news-list a.news-more:hover i,
.news-list a.news-more:focus-visible i {
  margin-left: 18px;
}

.news-item {
  padding: 24px 0;
  border-bottom: 1px solid #cbd8df;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item .thumbnail {
  float: left;
  margin-bottom: 20px;
}

.news-date time {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: #52667a;
  margin-bottom: 11px;
}

.news-copy h3 {
  line-height: 1.3;
  margin: 0 0 12px;
  color: #113f59;
}

.news-copy h3 a:hover {
  text-decoration: underline !important;
}

.news-copy p {
  font-size: 0.9rem;
  color: #52667a;
  margin: 0 0 15px;
}


/* stránka Logo a vize školy */

.vision-desc {
  text-align: center;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: #52667a;
  margin: 40px 0;
}

.vision-list {
  display: grid;
  gap: 30px;
}

.vision-item {
  display: flex;
  gap: 22px;
  padding: 25px 28px;
  border-radius: 12px;
}

.vision-item h3 {
  margin-top: 9px;
}

.vision-item p {
  font-size: 1rem;
  margin: 0 0 10px;
  text-align: left;
}

.vision-item .vision-idea {
  margin: 0;
  padding-top: 11px;
  font-weight: 600;
  color: #30465a;
  text-align: left;
}

.vision-copy {
  min-width: 0;
}

.vision-color {
  color: var(--vision-accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.vision-yellow {
  background: #fff3da;
  border: 1px solid #F1B533;
  border-left: 5px solid #F1B533;
}

.vision-yellow h3 {
  color: #F1B533;
}

.vision-yellow .vision-idea {
  border-top: 1px solid #F1B533;
}

.vision-blue {
  background: #eff6fa;
  border: 1px solid #246c97;
  border-left: 5px solid #246c97;
}

.vision-blue h3 {
  color: #246c97;
}

.vision-blue .vision-idea {
  border-top: 1px solid #246c97;
}

.vision-forest {
  background: #eef4ef;
  border: 1px solid #589A46;
  border-left: 5px solid #589A46;
}

.vision-forest h3 {
  color: #589A46;
}

.vision-forest .vision-idea {
  border-top: 1px solid #589A46;
}

.vision-green {
  background: #f3f7e7;
  border: 1px solid #A2C04F;
  border-left: 5px solid #A2C04F;
}

.vision-green .vision-idea {
  border-top: 1px solid #A2C04F;
}

.vision-green h3 {
  color: #A2C04F;
}

.vision-red {
  background: #fcf0ed;
  border: 1px solid #E8453F;
  border-left: 5px solid #E8453F;
}

.vision-red h3 {
  color: #E8453F;
}

.vision-red .vision-idea {
  border-top: 1px solid #E8453F;
}



/* stránka Rozvrhy hodin */

#article-title {
  scroll-margin-top: 140px;
}

.timetables-shortcuts {
  position: relative;
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timetables-shortcuts a {
  padding: 9px 15px;
  border-radius: 24px;
  background: #fff;
  color: #265f95;
  font-size: 0.8rem;
  font-style: normal;
  text-decoration: none;
}

.timetables-shortcuts a:hover {
  text-decoration: underline !important;
}

.timetables-content {
  --green: #254c29;
  --line: #cbd8df;

  position: relative;
  background: #fff;
}

.timetable-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.timetable-intro p {
  color: #52667a;
  line-height: 1.6;
  margin: 0;
}

.timetable-intro>a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #285f94;
  font-size: 15px;
  padding-block: 12px;
  text-decoration: none;
}

.timetable-intro>a:hover>span,
.timetable-intro>a:focus-visible>span {
  text-decoration: underline;
}

/* Sekce jednotlivých tříd */
.class-timetable {
  scroll-margin-top: 24px;
  margin-bottom: 70px;
}

.timetable-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.timetable-title h3,
.subject-legend h3 {
  line-height: 1.25;
  margin: 0;
}

.timetable-title>span {
  font-size: 13px;
  color: #52667a;
  background: #edf4f7;
  border-radius: 20px;
  padding: 6px 11px;
}

.timetable-title>a {
  margin-left: auto;
  color: #285f94;
  font-size: 14px;
  padding: 10px 0;
  text-decoration: none;
}

.timetable-title>a:hover {
  text-decoration: underline !important;
}

.timetable-title i {
  margin-left: 7px;
}

.timetable-mobile-note {
  display: none;
}

/* Posuvná tabulka */
.timetable-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.timetable-scroll:focus-visible {
  outline: 3px solid #a04d00;
  outline-offset: 4px;
}

.timetable-scroll table {
  border-collapse: collapse;
  width: 100%;
  min-width: 730px;
  table-layout: fixed;
  font-size: 16px;
}

.timetable-scroll th,
.timetable-scroll td {
  text-align: center;
  height: 65px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.timetable-scroll thead {
  background: #e4f2f9;
  color: #194e75;
}

.timetable-scroll thead th {
  height: 64px;
  font-size: 18px;
}

.timetable-scroll thead th span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
}

.timetable-scroll thead th .bell-time {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 8px;
}

.timetable-scroll th:first-child {
  width: 130px;
  text-align: left;
  padding-left: 20px;
  font-size: 14px;
}

.timetable-scroll tbody th {
  color: #173f60;
  background: #f8fbfd;
}

.timetable-scroll tr:last-child td,
.timetable-scroll tr:last-child th {
  border-bottom: 0;
}

.timetable-scroll tr> :last-child {
  border-right: 0;
}

/* Značky předmětů */
.subject {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: help;
}

.no-lesson {
  color: #81909d;
}

/* Barvy vyučujících */
.teacher-safarova {
  background: #f8edc4;
  color: #705519;
}

.teacher-romportlova {
  background: #f8dfcf;
  color: #814a2a;
}

.teacher-rockova {
  background: #dcecf8;
  color: #245879;
}

.teacher-halamkova {
  background: #e7ebee;
  color: #465766;
}

.teacher-zahalkova {
  background: #e2efd8;
  color: #3c6032;
}

.teacher-zavadilova {
  background: #ecdef2;
  color: #6c427d;
}

/* Legenda vyučujících a zvonění */
.teacher-legend,
.bell-schedule {
  padding-top: 28px;
  margin-bottom: 32px;
}

.teacher-legend h3,
.bell-schedule h3 {
  margin: 0 0 14px;
}

.teacher-legend p {
  font-size: 14px;
  color: #52667a;
  line-height: 1.6;
}

.teacher-legend ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  padding: 0;
  margin: 24px 0;
}

.teacher-legend li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 0 !important;
  background-image: none !important;
}

.teacher-swatch {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.bell-schedule ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bell-schedule li {
  background: #f4f8fa;
  border: 1px solid #cbd8df;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bell-schedule strong {
  color: #194e75;
  font-size: 16px;
}

.bell-schedule li>span {
  font-size: 18px;
}

.bell-schedule small {
  font-size: 13px;
  color: #52667a;
  line-height: 1.5;
}

/* Vysvětlivky předmětů */
.subject-legend {
  padding-top: 30px;
}

.subject-legend dl {
  display: grid;
  grid-template-columns: repeat(3, 32px minmax(0, 1fr));
  align-items: baseline;
  gap: 20px 12px;
  margin: 24px 0;
  font-size: 14px;
}

.subject-legend dt {
  margin: 0;
  font-weight: 700;
  color: #194e75;
}

.subject-legend dd {
  min-width: 0;
  margin: 0;
  padding-right: 12px;
  color: #52667a;
}

@media (max-width: 1200px) {
  .subject-legend dl {
    grid-template-columns: repeat(2, 32px minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .subject-legend dl {
    gap: 18px 7px;
    font-size: 13px;
  }

  .subject-legend dd {
    padding-right: 3px;
  }
}

/* Popisek tabulky dostupný čtečkám obrazovky */
.timetables-content .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Responzivní zobrazení */
@media (max-width: 1200px) {
  .timetables-content {
    padding-inline: 30px;
  }

  .teacher-legend ul,
  .bell-schedule ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timetable-mobile-note {
    display: block;
    color: #52667a;
    font-size: 12px;
  }

  .timetable-scroll th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
  }

  .timetable-scroll thead th:first-child {
    background: #e4f2f9;
  }
}

@media (max-width: 900px) {
  .timetables-content {
    padding-inline: 32px;
  }
}

@media (max-width: 700px) {
  .timetable-mobile-note {
    margin: 0 0 12px;
  }
}

@media (max-width: 580px) {
  .timetables-content {
    padding: 25px 22px 35px;
  }

  .timetable-intro {
    gap: 5px;
    margin-bottom: 26px;
  }

  .timetable-title {
    gap: 10px;
  }

  .timetable-title>a {
    font-size: 12px;
  }

  .timetable-title>span {
    font-size: 11px;
  }

  .class-timetable {
    margin-bottom: 32px;
  }

  .timetable-scroll th:first-child {
    width: 100px;
    padding-left: 12px;
  }

  .teacher-legend ul {
    grid-template-columns: 1fr;
  }

  .bell-schedule ol {
    gap: 10px;
  }

  .bell-schedule li {
    padding: 14px;
  }

  .bell-schedule li>span {
    font-size: 16px;
  }
}





/* stránka Dokumenty */

.content .doc_header {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.content .text .doc_header:first-child {
  margin-top: 10px;
}

.content .doc_header h3 {
  scroll-margin-top: 24px;
  font-size: 1.3rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

.content .doc_header .count {
  font-size: 0.8rem;
  color: #506a7f;
  background: #edf4f7;
  border-radius: 20px;
  padding: 4px 11px;
}


/* stránka O družině */

.content .text .desc-img {
  border-radius: 16px;
  margin-bottom: 40px;
}



/* stránka Jídelní lístek */

.menu-content h3 {
  margin-bottom: 30px;
  text-align: center;
}

.menu-content h3 small {
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.menu-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.menu-nav a {
  font-size: 1.8rem;
}

.menu-nav a span.xtooltip {
  cursor: pointer;
}

.eats-item {
  margin-bottom: 20px;
  border: 1px solid #dce9f0;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  background: #ffffff;
}

.eats-date {
  background: #eff6fa;
  padding: 24px 20px;
  border-radius: 15px 0 0 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.eats-date day {
  margin: 0 0 7px;
  color: #134e76;
  display: block;
  font-size: 1.2rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
}

.eats-date date {
  font-size: 0.9rem;
  color: #0e4569;
}

.eats-menu {
  padding: 14px 20px 16px 20px;
  color: #243b52;
}

.eats-eat {
  color: #172d4c;
  font-size: 1rem;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e3edf2;
}

.eats-eat:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.eats-eat .eat-label {
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #657d90;
}

.eats-eat .eat-texts {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eats-eat .eat-text {
  text-align: left;
  font-weight: 500;
}

.eats-eat .eat-texts .allg-text {
  font-size: 0.7rem;
  color: #657d90;
}

.eats-eat .eat-texts .allg-item {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.eats-no-service {
  display: flex;
  align-items: center;
  padding: 14px 20px 16px 20px;
}

.eats-no-service p {
  font-size: 0.9rem;
  color: #657d90;
  font-weight: 600;
  margin-bottom: 0;
}

.eats-change {
  margin: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #657d90;
}


/* Bublina nad textem */

.xtooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.xtooltip::before,
.xtooltip::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.xtooltip::before {
  border: 1px solid #dce9f0;
  content: attr(data-title);
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 6px;
  background: #eff6fa;
  color: #134e76;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  z-index: 10;
}

.xtooltip::after {
  content: "";
  bottom: calc(100% + 2px);
  width: 8px;
  height: 8px;
  background: #eff6fa;
  border: 0;
  border-right: 1px solid #dce9f0;
  border-bottom: 1px solid #dce9f0;
  transform: translateX(-50%) rotate(45deg);
  z-index: 10;
}

.xtooltip:is(:hover, :focus-visible)::before,
.xtooltip:is(:hover, :focus-visible)::after {
  opacity: 1;
  visibility: visible;
}