/* Reset & základní nastavení */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: #111;
  background-color: #f9f9f9;
}

/* Hlavička */
header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}
.header-wrapper {
  background-color: #f1f8e9;
  padding: 10px 15px;
}
.header-container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;/*space-between;*/
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo img {
  height: 64px;
  width: auto;
}
.org-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  line-height: 1.3;
  max-width: 400px;
}
.org-name {
  font-weight: 450;
  color: #111;
}
.org-phone {
  font-weight: 400;
  color: #111;
  font-size: 0.85rem;
}
.org-phone a {
  color: #111;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
}
.org-phone a:hover {
  color: #14A085;
  text-decoration: underline;
}

/* Hamburger tlačítko */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
/*=== drobečková navigace ===*/
.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 1em;
  color: #111;
}
.breadcrumb a {
  color: #0055a5;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #111;
}
.breadcrumb-wrapper {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 0 30px;
}
.breadcrumb {
  font-size: 0.95rem;
  color: #222;
}
.breadcrumb a {
  color: #0055a5;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #111;
}




/*==dokumenty==*/
.doc-date small {
  font-size: 0.85em;
  color: #333;
  display: block;
  margin-top: 0.2em;
}

/* == img projekty ==*/
.projekty img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/*=== video ===*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1em;
  margin-top: 1em;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}
.gallery-videos {
  margin-top: 2em;
  display: grid;
  gap: 1.5em;
}
.video-block {
  background: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
}
.video-caption {
  margin-top: 0.5em;
  font-style: italic;
  text-align: center;
}
/*menu*/
.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #111;
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/*články*/
.akce-clanek {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5em;
  margin-bottom: 2em;
  flex-wrap: wrap;
}
.akce-obsah {
  flex: 1 1 60%;
  min-width: 250px;
}
.akce-img {
  flex: 0 0 200px;
  max-width: 200px;
  margin-left: auto;
}
.akce-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.akce-rozdeleni {
  margin-top: 2em;
  font-size: 1.2em;
  color: #222;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3em;
}

.akce-fulltext {
  margin-bottom: 2em; /* nebo třeba 3em podle vizuálního dojmu */
}

@media (max-width: 600px) {
  .akce-clanek {
    flex-direction: column;
  }

  .akce-img {
    margin-left: 0;
    margin-bottom: 1em;
    max-width: 100%;
  }
}

/* Navigace */
nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  list-style: none;
}
nav ul li {
  position: relative;
}
nav ul li a {
  color: #111;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease;
}
nav ul li a:hover,
nav ul li.active a {
  color: #14A085;
}

/* Podmenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  white-space: normal;
  overflow-x: hidden;
}
nav ul li:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.submenu li {
  margin: 0;
}
.submenu li a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  text-transform: none;
  line-height: 1.6;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}
.submenu li a:hover {
  background-color: #f0f8ff;
  color: #14A085;
}
.submenu li.active > a {
  background-color: #e6f7f7;
  color: #14A085;
  font-weight: 600;
}
/* Carousel */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px 25px;
  border-radius: 6px;
  max-width: 600px;
  text-align: left;
  gap: 10px;
}
.carousel-caption h1 {
  font-size: 1.4em;
  font-weight: 700;
  color: #1C1D21;
  margin-bottom: 8px;
  white-space: normal;
}
.carousel-caption p {
  font-size: 1.1em;
  color: #111;
  margin: 0; 
} 
.carousel-button {
  display: inline-block;
  background: linear-gradient(to right, #2e7d32, #43a047);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-top: 15px;         /* posune tlačítko dolů pod text */
  float: right;             /* zarovná tlačítko doprava */
  transition: background 0.3s ease;
}
.carousel-button:hover {
  background: linear-gradient(to right, #43a047, #66bb6a);
}
.custom-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.custom-indicators button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background-color: #a5d6a7; /* světlá zelená */
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.custom-indicators button.active,
.custom-indicators button:hover {
  background-color: #2e7d32; /* tmavší zelená */
  opacity: 1;
}

/*Ohlasy*/
.feedback-list {
  list-style: none;       /* ✅ odstraní puntíky */
  padding-left: 0;        /* ✅ zarovná vlevo */
  margin: 0;
}
.feedback-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.6;
  font-style: italic;
  color: #222;
}
.feedback-list li::before {
  content: "❝";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 22px;
  color: #6c757d;
}
/*podtrzení + tlačítko - pro rodiče*/
.school-choice {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap; /* ✅ umožní zalomení na menších obrazovkách */
}
.school-link {
  flex: 1 1 300px; /* ✅ rovnoměrná šířka, ale přizpůsobivá */
  background-color: #c5e1a5;
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 1.1rem;
  text-align: center;
}
.school-link:hover {
  background-color: #aed581;
}
.school-icon {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* 404.php */
.custom404-wrapper {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}
.custom404-box {
  max-width: 700px;
  width: 100%;
  background-color: #f9fbe7;
  border: 1px solid #c5e1a5;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.custom404-title {
  font-size: 2.5rem;
  color: #c62828;
  margin-bottom: 20px;
}
.custom404-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #111;
}
.custom404-button {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  transition: background 0.3s ease;
}
.custom404-button:hover {
  background-color: #388e3c;
}
.custom404-search {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.custom404-input {
  padding: 10px;
  width: 250px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.custom404-submit {
  padding: 10px 20px;
  background-color: #43a047;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.custom404-submit:hover {
  background-color: #66bb6a;
}
.custom404-item {
  margin-bottom: 20px;
}
.custom404-excerpt {
  margin: 8px 0 0 0;
  font-size: 0.95rem;
  color: #222;
}

/*hlavicka-template*/
 .hero-banner {
  max-width: 1536px;
  margin: 0 auto;
  overflow: hidden;
}
.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/*TABULKA*/
table.rozvrh {
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  border-collapse: collapse;
  background-color: #f9fbe7;
  border: 1px solid #c5e1a5;
  font-size: 1.05rem;
  line-height: 1.6;
}
.rozvrh th,
.rozvrh td {
  padding: 12px 16px;
  border: 1px solid #dce775;
  text-align: left;
  vertical-align: top;
}
.rozvrh thead th {
  background-color: #dce775;
  color: #33691e;
  font-weight: 600;
  text-transform: uppercase;
}
.rozvrh tbody tr:nth-child(even) {
  background-color: #f1f8e9;
}

/*PODSTRÁNKY*/
.subpage {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f9fbe7;
  border: 1px solid #c5e1a5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #111;
}
.subpage h1 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 20px;
}
.subpage h2 {
  font-size: 1.6rem;
  color: #388e3c;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid #c5e1a5;
  padding-left: 12px;
}
.subpage h3 {
  font-size: 1.3rem;
  color: #33691e;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}
.subpage ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.subpage a {
  color: #111; /* nebo #0055a5 pro modrý odkaz */
  text-decoration: none;
}

.subpage a:hover {
  color: #0e5f55;
  text-decoration: underline;
}


.subpage a.custom404-button {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.subpage a.custom404-button:hover {
  background-color: #388e3c;
}
/*cookies*/
.cookie-banner {
  background-color: #0e6f62;
  color: #fff;
  padding: 1.5em;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  text-align: center;
}
.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}
.cookie-buttons {
  margin-top: 1em;
}
.cookie-buttons button {
  margin: 0 0.5em;
  padding: 0.5em 1em;
  background-color: #14A085;
  color: #fff;
  border: none;
  cursor: pointer;
}
.cookie-buttons button:hover {
  background-color: #117a6e;
}

/*GALERIE*/
.gallery {
  padding: 40px 20px;
  text-align: center;
}
.gallery h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #111;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.gallery-grid a img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.gallery-grid a img:hover {
  transform: scale(1.05);
}

/*Pruh*/
.section-header {
  background: linear-gradient(to left, #2e7d32, #43a047, #a5d6a7, #f9f9f9);
  color: white;
  padding: 20px 30px;
  border-radius: 8px;
  margin: 40px 0; /* ← horní a dolní odsazení */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.section-content {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Ikonové boxy */
.icon-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  flex-wrap: wrap;
  background-color: #fff;
  margin-top: clamp(10px, 5vh, 40px);
}
.icon-box {
  width: 220px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.icon-box:hover {
  transform: translateY(-5px);
}
.icon-box img {
  width: 50px;
  margin-bottom: 10px;
}
.icon-box p {
  font-weight: 600;
  color: #fff;
}
/* Barevné varianty ikonových boxů */
.icon-box.c1 { background-color: #0e5f55; } /* tmavší zelenomodrá */
.icon-box.c2 { background-color: #2e7d32; } /* tmavší zelená */
.icon-box.c3 { background-color: #1565c0; } /* tmavší modrá */
.icon-box.c4 { background-color: #880e4f; } /* tmavší růžová */

/* Sekce „O škole“ */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #f0f8ff;
  text-align: left;
}
.about h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #111;
}
.about p {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1.1em;
}

/* Footer 
footer {
  background-color: #14A085;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
} */

/* Patička */
.site-footer {
  background-color: #0e5f55;
  color: #fff; 
  padding: 2em 1em;
  margin-top: 40px;
  text-align: center;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  text-align: left;
}

.footer-column {
  flex: 1 1 300px;
}
.footer-column h3 {
  margin-bottom: 0.5em;
  color: #fff;
  font-size: 1.1em;
}

.footer-column p,
.footer-column ul,
.footer-column li {
  margin: 0.4em 0;
  list-style: none;
}

.footer-column p{
  padding-left: 1.8em;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}


/* Styl pro rozbalené menu z menu.php můžeš definovat podle jeho struktury */
.footer-menu-bar {
  background-color: #0e6f62;
  color: #fff;
  width: 100%;
  padding: 2em 1em;
  text-align: center;
}

.footer-menu-bar nav.mobile-menu {
  display: inline-block;
  text-align: left;
}

.footer-menu-bar nav.mobile-menu ul,
.footer-menu-bar nav.mobile-menu ul.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: none !important;
}

.footer-menu-bar nav.mobile-menu li {
  margin: 0.5em 0;
}

.footer-menu-bar nav.mobile-menu a {
  color: #fff;
  text-decoration: none;
  display: block;
  background: none !important;
}

.footer-menu-bar nav.mobile-menu a:hover {
  text-decoration: underline;
}

.footer-menu-bar nav.mobile-menu ul.submenu {
  display: block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/*=== fotogalerie ===*/

.album-year {
    font-size: 1.5em;
    margin: 30px 0 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    color: #444;
}

.album-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.album-preview {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    text-decoration: none;
    border: 1px solid #ccc;
    padding: 10px;
    background: #f9f9f9;
    transition: background 0.2s ease;
}

.album-preview:hover {
    background: #eef;
}

.album-preview img {
    width: 120px;
    height: auto;
    margin-right: 15px;
    object-fit: cover;
    border-radius: 4px;
}

.album-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

/* Responzivita */
@media (max-width: 768px) {
  
.logo {
  max-width: 350px;
}

  /* Hamburger tlačítko */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: none;
    border: none;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #111;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobilní menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 80px 20px;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  .mobile-menu.open {
    right: 0;
  }
  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mobile-menu li {
    position: relative;
  }
  .mobile-menu li a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
  }
  .mobile-menu li a:hover {
    background-color: #f0f8ff;
    color: #14A085;
  }

  /* Šipka u položek s podmenu */
  .mobile-menu li > a::after {
    content: "▶";
    font-size: 0.7em;
    margin-left: 6px;
    color: #666;
  }

  /* Podmenu */
  .mobile-menu .submenu {
  position: relative;
  left: 0;
  margin-top: 5px;
  background-color: #fff;
  box-shadow: none;
  display: none;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
  .mobile-menu li:hover > .submenu,
  .mobile-menu li.open > .submenu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-menu .submenu li a {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #111;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .mobile-menu .submenu li a:hover {
    background-color: #e6f7f7;
    color: #14A085;
  }

  /* Ostatní mobilní úpravy */
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  .carousel-caption {
    left: 10px;
    right: 10px;
    max-width: 90%;
    padding: 10px 15px;
  }
  .icon-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Animace */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.akce-navigace {
  display: flex;
  justify-content: space-between;
  margin: 2em 0;
  gap: 1em;
  flex-wrap: wrap;
}
.akce-nav-button {
  display: inline-block;
  background-color: #0055a5;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}
.akce-nav-button:hover {
  background-color: #003d7a;
}
.akce-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: #0055a5;
  text-decoration: none;
  padding: 0.6em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  transition: all 0.2s ease;
}
.akce-nav-link:hover {
  background-color: #e6f0ff;
  border-color: #0055a5;
  color: #003d7a;
}
.akce-nav-link span {
  font-size: 1.2em;
  line-height: 1;
}

@media (max-width: 768px) {
  .subpage h3 {
    color: #33691e;
  }
}
