/*
Theme Name: Inkluzivní škola
Theme URI:
Author: Pavel Ovesny
Author URI: https://weby.pavelovesny.cz
Description: Custom theme Inkluzivní škola
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* general */

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  font-size: 16px;
  font-family: "Roboto", Arial, Tahoma, sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: "Roboto Slab", serif;
  padding: 1em 0;
  margin: 0;
  color: #193c7e; 
}

h1 {
  font-size: 31px;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 20px;
}

p {
  padding: 0 0 1em 0;
  margin: 0;
}

a {
  color: #193c7e;
  text-decoration: none;
}

a:hover {
  color: #4D92FC;
}

.single .entry-content a {
  color: #bd1e4e;
}

.single .entry-content a:hover {
  color: #d16283;
  text-decoration: underline;
}

a img, a:hover img {
  text-decoration: none;
}

strong  {
  font-weight: 600;
}

/* table */

table {
  border-top: 3px solid #193c7e;
  border-bottom: 3px solid #193c7e;
  background: #E4F2FF;
  padding: 0 15px;
}

td {
  border-top: 2px dotted #193c7e;
}

th {
  color: #193c7e;
}

td, th {
  padding: 5px;
}




/* menu */

.site-header {
  background-color: #c8e5fe;
  height: 80px;
}

.site-header .container {
  display: flex;
  height: 40px;
  margin: 0 auto;
  padding: 20px 0;
  justify-content: space-between;
  align-items: center;
}

#logo {
  width: 300px;
  height: 40px;
  text-align: left;
}

#logo a {
  color: #000;
}

#logo img {
  width: 300px;
  height: auto;
}

.navbar {
  width: 100%;
}

.main-navigation {
  flex-grow: 1;
}

nav.main-navigation ul {
  font-family: "Roboto Slab", serif;
  width: 100%;
  margin: 0;
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  padding-left: 0;
}

nav.main-navigation ul li {
  padding: 0 10px;
  margin: 0 5px;
  font-weight: 700;
}

nav.main-navigation ul li a {
  color: #193c7e;
}

nav.main-navigation ul li.current-menu-item,
nav.main-navigation ul li a:hover {
  color: #0063fa;
}

nav.main-navigation ul li a:hover {
  text-decoration: underline;
}


/* content */

.container {
  width: 1220px;
  margin: 0 auto;
}

.title-bar {
  padding-top: 50px;
}

h2.entry-title a {
  color: #333;
  transition: color 0.5s ease;
}

h2.entry-title a:hover {
  color: #666;
  text-decoration: underline;
}

#primary.container {
  display: flex;
  flex-direction: row;
  position: relative;
}

#primary {
  padding-bottom: 25px;
}

#content {
  width: 70%;
  order: 2; 
}

.search-results #content {
  width: 100%;
}

#sidebar {
  width: 30%;
  order: 1; 
}


/* search */

#se-webform-9 {
  display: flex;
}

input[type="search"],
input[type="submit"],
.sber-emailu,
.odeslat-email {
  border-radius: 5px 0 0 5px;
  border: 0;
  height: 40px;
  width: 190px;
  background-color: #fff;
  color: #7c8287;
}

input[type="search"] {
  text-indent: 15px;
  border-radius: 4px 0 0 4px;
  border: 1px solid #7c8287;
  padding-right: 15px;
}

.odeslat-email,
input[type="submit"] {
  border-radius:  0 5px 5px 0;
  width: 90px;
  background-color: #0063fa;
  color: #fff;
  cursor: pointer;
}

.odeslat-email:hover,
input[type="submit"]:hover {
  background-color: #4D92FC;
}


/* buttons tags */

.btn,
.btn-invers,
.btn-more,
.btn-back,
.event-tags a,
.sidebar-tags a {
  display: inline-block;
  width: auto;
  padding: 6px 12px;
  border-radius: 4px;
  background: #0063fa;
  color: #fff;
  border: 2px solid #0063fa;
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

button.btn {
  cursor: pointer;
}

.btn-back,
.btn-more,
.btn-invers,
.btn:hover {
  color: #0063fa;
  border: 2px solid #0063fa;
  background: #fff;
  text-decoration: none;
}

.archive-header .btn-invers {
  color: #666;
  border: 2px solid #666;
  background: #fff;
  text-decoration: none;
}

.btn-back {
  color: #4D92FC;
  border: 2px solid #4D92FC;
}

.btn-more {
  display: block;
  width: 220px;
  padding: 10px 40px;
  border-radius: 4px;
  margin: 20px auto 40px auto;
}

.post-type-archive-akce .btn-invers,
.page-tema .btn-invers {
  padding: 6px 12px;
  margin: 5px auto;
  width: auto;
}

.btn:hover {
  color: #fff;
  border: 2px solid #4D92FC;
  background: #4D92FC;
  text-decoration: none;
}

.btn-back:hover,
.btn-more:hover,
.btn-invers:hover {
  background: #4D92FC;  
  color: #fff;
  border: 2px solid #4D92FC;
  text-decoration: none;
}

.archive-header .btn-invers:hover {
  background: #666;  
  color: #fff;
  border: 2px solid #666;
  text-decoration: none;
}

.btn-tag,
.event-tags a,
.sidebar-tags a {
  background: #444;
  color: #fff;
  border: 0;
  font-size: 12px;
  width: auto;
  padding: 2px 5px;
}

.btn.btn-stupen_skoly {
  background: #aaa;
}

.btn.btn-druh_seminare,
.btn.btn-typ-materialu {
  background: #777;
}

.btn-tag:hover,
.event-tags a:hover,
.sidebar-tags a:hover {
  border: 0;
  background: #B5B5B5;
}

.btn-back {
  display: block; 
  width: 80%;
  margin: 2em 0;
}

.single .entry-content a.btn,
.single .entry-content a.btn:hover {
  color: #fff;
}

.single .entry-content a.btn:hover {
  text-decoration: none;
}


/* front */

#front-topics .container,
.school-level-icons,
.front-event-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px; 
}

#front-topics,
#front-feature  {
  background-color: #c8e5fe;
  color: #193c7e;
  padding-bottom: 40px;
}

#front-feature .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  
}

#front-events h2,
#front-news h2 {
  text-align: center;
}

.home h1 {
  padding: 0.7em 0;
}

.box-item {
  background-color: #fff;
  border-radius: 20px 0 20px 20px;
  padding: 20px;
}

.feature-photo {
  display: block;
  margin: 0 auto;
}

.box-item h2 {
  padding: 0 0 0.8em 0;
}

.box-item p,
.event-perex,
.news-perex {
  color: #7c8287;
  line-height: 1.4;
}

.event-perex {
  font-size: 15px; 
}

.school-level-icons {
  gap: 10px; 
}

.page-numbers {
  display: inline-block;
  padding: 2px 8px;
}

.page-numbers,
.school-level {
  border-radius: 4px;
  border: 1px solid #0063fa;
  color: #0063fa;
  text-align: center;
}

.current,
.page-numbers:hover,
.school-level:hover {
  border: 1px solid #0063fa;
  background-color: #0063fa;
  color: #fff;
}

.page-numbers.dots:hover {
  border: 1px solid #7c8287;
  background-color: #fff;
  color: #7c8287;
}

.topics-icons img {
  width: 60px;
  height: 48px;
  text-align: center;
}

.front-event-content {
  grid-template-columns: repeat(2, 1fr);
}

.front-event,
.front-news {
  display: inline-block;
  background-color: #f8f8f8;
  margin-bottom: 25px;
  padding: 0 20px 20px 20px;
  width: 100%;
  box-sizing: border-box;
}

.search-results .front-news {
  padding-top: 20px;
}

.home .front-event-content,
.home .front-news {
  display: flex;
  padding: 0;
}

.home .front-event .entry-thumbnail {
  width: 50%;
}

.home .front-news .entry-thumbnail {
  width: 35%;
}

.home .front-event .entry-content {
  width: 50%;
  padding: 0 0 1em 0;
}

.home .front-news .entry-content {
  width: 65%;
  padding-right: 25px;
}

.event-title,
.news-title {
  line-height: 1.4;
  font-size: 21px;
}

.event-meta,
.news-tags {
  padding-bottom: 1em;
}

.event-title a,
.news-title a {
  color: #193c7e;
}

.event-title a:hover,
.news-title a:hover {
  color: #4D92FC;
}

.event-date {
  font-size: 12px;
}

.front-event h3 {
  padding: 0.5em 0;
}

.front-event img,
.front-news img {
  display: block;
  width: 100%;
  height: auto;
}

.front-news .entry-thumbnail {
  padding-right: 25px;
}

.news-about {
  text-align: center;
  margin-bottom: 25px;
}


/* archive */

.archive-tema-header,
.archive-header,
.sidebar-image {
  min-height: 200px;
}

.archive-header h1 {
  padding-left: 20px;
}

.sidebar-image {
  margin: 31px auto 0 auto;
}

.sidebar-image img {
  width: 100%;
  height: auto;
}

.page-tema .archive-header {
  min-height: 120px;
}

.post-type-archive-akce .archive-header h1,
.page-tema .archive-header h1 {
  width: 50%;
  float: left;
}

.post-type-archive-akce .archive-header .btn-invers,
.page-tema .archive-header .btn-invers {
  float: right;
  margin-top: 32px;
}

.box-topic h2,
.box-article h2,
.box-material h2,
.box-event h2,
.page-id-15516 h1,
.page-id-15525 h1,
.post-type-archive-book h1,
.post-type-archive-materialy h1,
.post-type-archive-akce h1 {
  color: #bd1e4e;
  text-indent: 90px;
  background: url(/wp-content/uploads/2024/04/clanek-icon.svg) left center no-repeat;
  padding: 0;
  margin: 1em 0;
  font-size: 31px;
}

.box-topic h2,
.box-article h2,
.box-material h2,
.box-event h2 {
  text-indent: 65px;
  padding: 0;
  margin: 0.2em 0 0.7em 0;
  font-size: 27px;
}

.box-article h2 {
  text-indent: 70px;
}

.box-material h2 {
  text-indent: 50px;
}

.box-topic h2 {
  background: url(/wp-content/uploads/2024/04/tema-icon.svg) left center no-repeat; 
}

.post-type-archive-clanek h1 span,
.post-type-archive-materialy h1 span,
.post-type-archive-akce h1 span {
  color: #626262;
}

.box-material h2,
.page-id-15525 h1,
.post-type-archive-materialy h1 {
  color: #5959f5;
  background: url(/wp-content/uploads/2024/04/materialy-icon.svg) left center no-repeat;
}

.box-event h2,
.post-type-archive-akce h1 {
  color: #0097ff;
  background: url(/wp-content/uploads/2024/04/kurzy-akce-icon.svg) left center no-repeat;
}

.archive-description {
  color: #193c7e;
}

.post-type-archive-akce .archive-description {
  clear: both;
}

.archive-icon {
  width: 60px;
  height: 60px;
  display: inline-block;
}

.results-count {
  color: #193c7e;
  font-weight: bold;
  margin-bottom: 1em;
}

.article-items  {
  -moz-column-count: 2;
  -webkit-column-count: 2;
  column-count: 2;
  -moz-column-gap: 20px;
  -webkit-column-gap: 20px;
  column-gap: 20px;
}

.related-articles,
.blog .article-items,
.toggle-sidebar .post-type-archive-materialy .article-items,
.toggle-sidebar .post-type-archive-akce .article-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap:20px;
} 

.archive .news-title {
  font-size: 22px;
}

.page-id-15525 .article-items article, 
.post-type-archive-materialy .article-items article {
  border-top: 1px solid #5959f5; 
}

.post-type-archive-book .article-items article {
  border-top: 1px solid #bd1e4e;
}

.page-id-15529  .article-items article,
.post-type-archive-akce .article-items article {
  border-top: 1px solid #0097ff;
}


/* content */

.feature-photo img,
.entry-thumbnail img,
.entry-content img {
  max-width: 100%;
  height: auto;
}

.type-akce .btn {
  margin-bottom: 1em;
}

.pdf-icon,
.video-icon {
  background: url('/wp-content/uploads/2024/05/pdf-icon.png') no-repeat left center;
  display: block;
  line-height: 25px;
  height: 25px;
  text-indent: 30px;
}

.content-files .pdf-icon {
  margin-bottom: 1em;
}

.video-icon {
  background: url('/wp-content/uploads/2024/06/video-icon.png') no-repeat left center;
  margin-bottom: 1em;
}

.entry-content .accordion_head {
  background-color: #c8e5fe;
  padding: 0 10px 0 20px;
  margin-bottom: 1em;
}


/* custom box */

.clean-filters .btn-invers {
  margin: 0 1em 1em 0;
}

.clean-filters .btn-invers, 
.page-tema .clean-filters .btn-invers {
  padding: 3px 6px 2px 6px;
  font-size: 12px;
  border: 1px solid #0063fa;
}

.btn-invers:hover {
  border: 1px solid #4D92FC;
}

.dashicons, .dashicons-before::before {
  font-size: 24px !important;
  line-height: 1.2 !important;
}

.btn-invers .dashicons, 
.btn-invers .dashicons-before::before {
  line-height: 1 !important;
}

.clean-filters .btn-invers .dashicons, 
.clean-filters .btn-invers .dashicons-before::before {
  font-size: 16px !important;
}


/* custom box */

.zarovnani-vlevo, 
.zarovnani-vpravo,
.nastred-plna-sirka,
.nastred-pul-sirky {
  display: block;
  width: 100%;
}

.single .meta-img,
.zarovnani-vlevo, 
.zarovnani-vpravo {
  width: 48%;
}

.zarovnani-vlevo {
  float: left;
  margin-right: 2%;
}

.single .meta-img,
.zarovnani-vpravo {
  float: right;
  margin-left: 2%;
}

.zarovnani-vlevo img, 
.zarovnani-vpravo img,
.nastred-plna-sirka img,
.nastred-pul-sirky img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.nastred-pul-sirky img {
  width: 50%;
}

.text-dva-sloupce {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tip-bublina-modra,
.tip-bublina-cervena {
  padding-left: 90px;
  background: url('/wp-content/uploads/2024/05/tip-bublina.png') -15px -12px no-repeat;
}

.tip-bublina-cervena {
  background: url('/wp-content/uploads/2024/05/tip-bublina.png') -15px -89px no-repeat;
}

.page-id-8727 table {
  width: 100%;
}

.entry-content #ez-toc-container {
  display: none !important;
}


/* taxonomy filtered by content */

.content-book .archive-header h1 {
  color: #bd1e4e;
}

.content-book .article-items article {
  border-top: 1px solid #bd1e4e;
}

.content-materialy .archive-header h1 {
  color: #5959f5;
}

.content-book .article-items article {
  border-top: 1px solid #0097ff;
}

.content-akce .archive-header h1 {
  color: #0097ff;
}



/* bubble */

[data-title]:hover:before {
  opacity: 1;
  transition: all 0.1s ease 0.5s;
  visibility: visible;
}
[data-title]:before {
  content: attr(data-title);
  background-color: #c8e5fe;
  color: #193c7e;
  position: absolute;
  padding: 2px 5px;
  bottom: 1.5em;
  left: 10%;
  opacity: 0;
  z-index: 99999;
  visibility: hidden;
  border-radius: 5px;
  max-width: 250px;
}
[data-title] {
  position: relative;
}


/* menu search */

#search-form-container {
  display: none;
  transition: all 1s ease;
  flex-grow: 1;
  justify-content: flex-end;
}

.site-header.active #search-form-container {
  display: flex;
}

.site-header.active .main-navigation {
  display: none;
}

#search-icon {
  cursor: pointer;
  display: inline-block;
  padding: 0 10px;
  margin-top: -2px;
}

#search-icon .dashicons {
  color: #193c7e;
  transition: all 1s ease;
}

.site-header .dashicons-search {
  display: block;
}

.site-header.active .dashicons-search {
  display: none;
}

.site-header .dashicons-no {
  display: none;
}

.site-header.active .dashicons-no {
  display: block;
}


/* search */

.search-results #content form {
  margin: 2em auto 1em auto;
}

.search-results .article-items {
  -moz-column-count: 3;
  -webkit-column-count: 3;
  column-count: 3;
}

.content-type-book,
.content-type-materialy,
.content-type-akce {
  background: url(/wp-content/uploads/2024/04/clanek-icon.svg) center center no-repeat;
  width: 45px;
  height: 45px;
  display: block;
  margin-right: 1em;
}

.content-type-materialy {
  background: url(/wp-content/uploads/2024/04/materialy-icon.svg) center center no-repeat;
  width: 38px;
  height: 38px;
}

.content-type-akce {
  background: url(/wp-content/uploads/2024/04/kurzy-akce-icon.svg) center center no-repeat;
}

.search-results h3 {
  font-size: 18px;
  padding: 0.8em 0;
}

.searchwp-live-search-result--title {
  margin-bottom: 0;
}

.pager {
  text-align: center;
}


/* sidebar */

.filter-button {
  display: none;
}

.widget-area {
  margin-right: 30px;
}

.widget-area h3 {
  color: #626262;
}

#ez-toc-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  display: block !important;
}

div#ez-toc-container .ez-toc-title {
  font-family: "Roboto Slab", serif;
  font-size: 20px !important;
  color: #626262;
  padding: 1em 0;
  display: block !important;
}

.related-box .event-title,
.sidebar-worklist,
div#ez-toc-container ul li {
  font-size: 14px;
  line-height: 1.4;
  padding-bottom: 0.5em;
}

.related-box .event-title {
  padding-bottom: 0;
}

.sidebar-event {
  padding-bottom: 0.5em;
}


#ez-toc-container li a {
  color: #0097ff;
}

#ez-toc-container a:visited {
  color: #0097ff;
}

.related-box a {
  color: #0097ff;
}

#ez-toc-container,
.related-box {
  padding-bottom: 1em !important;
  border-bottom: 1px solid #7c8287 !important;
}

.mobile-search {
  display: none;
}

.blog .search-form,
.page .search-form,
.archive .search-form,
.sidebar-kontakt {
  padding-top: 31px;
}

.home .search-form {
  padding-top: 25px;
}

.search-results header .search-form,
.page header .search-form,
.archive header .search-form {
  padding-top: 0;
  padding-left: 30px;
}

.filter-tema h3 {
  color: #193c7e;
}

.filter-materialy h3 {
  color: #5959f5;
}


/* filters */

.container-filter {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.5em;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container-filter input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 4px;
  border: 1px solid #7c8287;
}

/* On mouse-over, add a grey background color */
.container-filter:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container-filter input:checked ~ .checkmark {
  background-color: #0063fa;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container-filter input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container-filter .checkmark:after {
  left: 6px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.filter-box-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
} 


/* footer */

footer {
  background-color: #bd1e4e;
  color: #fff;
}

footer a {
  color: #fff;
}

footer a:hover {
  text-decoration: underline;
  color: #dc5e84;
}

footer .container {
  display: flex;
}

footer .container .item {
  width: 50%;
}

footer .item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

footer .box {
  padding-right: 1.5em;
}

footer .box article {
  margin-bottom: 0.5em;
}

.item.about,
.item.newsletter {
  display: block;
}

.item.about {
  text-align: justify;
}

.item.about p {
  padding-right: 1.5em;
}

#footer-newsletter {
  background-color: #ffde00;
  padding: 25px 0 0 0;
  display: none;
}

#footer-menu,
#footer-about {
  background-color: #c8e5fe;
  font-size: 15px;
}

#footer-menu {
  color: #193c7e;
  padding-bottom: 30px;
}

#footer-menu a {
  color: #193c7e;
}

#footer-menu a:hover {
  text-decoration: underline;
  color: #4D92FC;
}

#footer-about {
  background-color: #bd1e4e;
}

.plusminus {
  float:right;
  color: #193c7e;
  cursor: pointer;
  height: 32px;
  padding: 1em;
  font-size: 20px;
}

.social-icons {
  padding-bottom: 1em;
  float: right;
  padding: 1.8em 1em 0 0;
}

.social-icons a {
  padding: 3px 8px 3px 0;
}

.dashicons-linkedin {
  line-height: 1 !important;
}

.social-icons a:hover {
  text-decoration: none;
}

footer h4 {
  font-size: 20px;
}

.copyright {
  padding: 20px;
  font-size: 14px;
  text-align: center;
}

.copyright a {
  color: #ddd;
}

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

/* admin */

.toplevel_page_wpseo_workouts {
  display: none;
}


#ec-v-form-slider-handle a {
  font-size: 17px !important;
  font-weight: bold;
}

/* for notebooks 1220 */


@media screen and (max-width: 1440px) {

  
}


/* for notebooks 1220 */

@media screen and (max-width: 1220px) {

  .container {
    width: 1080px;
  }

  .box-topic h2, 
  .box-article h2, 
  .box-material h2, 
  .box-event h2 {
    text-indent: 55px;
    font-size: 24px;
  }

  .ec-v-form-submit button {
    border-radius: 5px !important;
    font-weight: 400 !important;
    padding: 6px 0 !important;
    background-color: #0063fa;
    border: 0;
    color: #fff;
    width: 300px;
  }

.ec-v-form-submit button:hover {
  background-color: #193c7e !important;
}

input[type="text"].ec-v-forms-form-control,  
input[type="email"].ec-v-forms-form-control {
    max-width: 300px;
    padding: 7px 16px;
    font-size: 14px;
    line-height: 24px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
}  

.newsletter-text {
  color: #193c7e;
  font-family: "Roboto Slab", serif;
  font-weight: bold;
  text-align: center;
}

.newsletter-preferences {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

.ec-v-form-input-block-label {
  display: none !important;
}

footer .container {
  display: block;
}

footer .container.social-icons {
  display: flex;
  justify-content: flex-start;
  padding-right: 0;
}
  
footer .container .item {
   width: 100%;
}

}

/* for netbooks 960 */

@media screen and (max-width: 1080px) {

.container {
  width: 960px;
}

.post-type-archive-book h1, 
.post-type-archive-materialy h1, 
.post-type-archive-akce h1,
h1 {
  font-size: 25px;
}

h2 {
  font-size: 21px;
}

h3,
.event-title, 
.news-title {
  font-size: 18px;
}

.headertext span {
  display: inline-block;
  height: 40px;
  width: 300px;
  background: url('/wp-content/uploads/2024/08/logotyp-is.svg') no-repeat center center;
  text-indent: -9999px;
}

.home .search-form {
  display: none;
}

#front-topics .container, 
.front-event-content {
  grid-template-columns: repeat(2, 1fr);
}

#front-feature .container {
  display: block;
}

.front-event {
  display: block;
}

.home .front-news .entry-thumbnail,
.home .front-event .entry-thumbnail,
.front-event .entry-thumbnail {
  width: 100%;
}

.home .front-news .entry-content,
.home .front-event .entry-content,
.front-event .entry-content {
  width: auto;
}

.home .front-news .entry-thumbnail, 
.home .front-news .entry-content {
  width: 50%;
}

.home .front-news .entry-content {
  padding-left: 0;
}

.front-news .entry-thumbnail {
  padding-right: 0;
}

.front-event-content {
  display: block;
}

.archive-tema-header, 
.archive-header, 
.sidebar-image {
  min-height: auto;
}

.home .front-news .entry-content,
.home .front-event .entry-content {
  padding: 1em;
}

.social-icons {
  padding: 0.2em 1em 0 0;
}

}


/* for tablets 768 */

@media screen and (max-width: 960px) {

  .container {
    width: 768px;
  }

  .headertext span {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    width: 300px;
    background: url('/wp-content/uploads/2024/08/logotyp-is.svg') no-repeat center center;
    background-size: auto;
    background-size: auto;
    background-size: cover;
    text-indent: -9999px;
    margin-top: 5px;
  }

  #content,
  #sidebar {
    width: 100%;
  }

  .sidebar-image,
  #footer-menu {
    display: none;
  }

  .widget-area {
    margin-right: 0;
    margin-bottom: 25px;
  }

  footer .item {
    display: block;
  }

  #primary.container {
    flex-direction: column;
  }
  
  .single #sidebar {
    order: 2; /* Na menších obrazovkách sidebar jako druhý */
  }
  
  .single #content {
    order: 1; /* Na menších obrazovkách content jako první */
  }

  /* Sbalování filtrů */


.mobile-search {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

.archive .widget-area,
.toggle-sidebar .widget-area {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.archive .widget-area.open,
.toggle-sidebar .widget-area.open {
  display: block;
  opacity: 1;
}

.mobile-search .search-form {
  padding-top: 20px;
}

.filter-button {
  display: block;
  height: 40px;
  width: 100px;
  line-height: 38px;
  border-radius: 5px;
  border: 1px solid #7c8287;
  color: #7c8287;
  text-align: center;
  cursor: pointer;
  margin-top: 20px;
}

#footer-newsletter {
  display: block;
}

}


/* for smartphones 460 */

@media screen and (max-width: 768px) {
 
.container {
  width: 460px;
}

.page-tema .archive-header {
  height: auto;
}

.page-tema .archive-header h1 {
  width: 100%;
  float: none;
}

.archive-header, 
.sidebar-image {
  height: auto;
}

.related-articles, .article-items {
  -moz-column-count: 1;
  -webkit-column-count: 1;
  column-count: 1;
} 

.related-articles, 
.toggle-sidebar .post-type-archive-materialy .article-items, 
.toggle-sidebar .post-type-archive-akce .article-items {
  display: block;
}

.home .front-event-content,
#front-topics .container, 
.front-event-content {
  display: block;
}

.box-item {
  margin-bottom: 25px;
}

.home .front-event .entry-content {
  padding: 0.8em 0;
}

.front-event, .front-news {
  padding: 0 5px;
}

.home .front-news .entry-thumbnail,
.home .front-news .entry-content {
  width: 100%;
  padding-left: 0;
}

.related-articles {
  display: block;
}

.home .front-event, 
.home .front-news,
.post-type-archive-materialy .article-items, 
.post-type-archive-akce .article-items {
  display: block;
}

.page-tema .archive-header .btn-invers {
  float: none;
  margin-top: 0;
  margin-bottom: 2em;
}

.entry-content iframe {
  width: 100%;
  height: auto;
}

.single .meta-img, 
.zarovnani-vpravo {
  float: none;
  margin-left: 0;
}

.single .meta-img, 
.zarovnani-vlevo, 
.zarovnani-vpravo {
  width: 100%;
}

.zarovnani-vlevo,
.zarovnani-vpravo {
  float: none;
  margin-right: 0;
  margin-left: 0;
}

.zarovnani-vlevo img, 
.zarovnani-vpravo img,
.nastred-plna-sirka img,
.nastred-pul-sirky img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.nastred-pul-sirky img {
  width: 100%;
}

.text-dva-sloupce {
  display: block;
}

.post-type-archive-akce .archive-header h1, 
.page-tema .archive-header h1 {
  width: 100%;
}

.post-type-archive-akce .archive-header .btn-invers, 
.page-tema .archive-header .btn-invers {
  margin-top: 25px;
}

.post-type-archive-akce h1 {
  text-indent: 70px;
}

}


/* for smartphones 300 */

@media screen and (max-width: 460px) {

  .container {
    width: 300px;
  }

  .mobile-search input[type="search"] {
    width: 150px;
  }

  .mobile-search input[type="submit"],
  .mobile-search .filter-button {
    width: 70px;
  }

  .post-type-archive-akce .archive-header h1, 
  .page-tema .archive-header h1 {
  width: 100%;
  }

.post-type-archive-akce .archive-header .btn-invers, 
.page-tema .archive-header .btn-invers {
  margin: 1em 0;
  float: none;
}

}
