/* Základní reset a nastavení */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Test 
.desktop-nav { background: yellow !important; }
.search-icon { background: red !important; }*/

/* Přidání odsazení pro kotvy */
#aktivity, #novinky, #kontakt {
  scroll-margin-top: 80px; /* Nastavte hodnotu podle výšky vašeho menu */
}

/* Pro plynulé skrolování */
html {
  scroll-behavior: smooth;
}



body {
    font-family: 'Inconsolata', 'Inter', 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.main-home {
  padding-top: 100px;
}
.main-detail {
  padding-top: 40px;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}
a:hover {
    color: #004080;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

section {
  margin: 4em 0;
}


.divider-3d {
  height: 1px;
  background: #e0e0e0;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin: 4em auto;
  max-width: 45%;
}

.industrial-divider {
  height: 2px;
  border: none;
  background: repeating-linear-gradient(
    45deg,
    #71797E,
    #71797E 10px,
    #8E8E8E 10px,
    #8E8E8E 20px
  );
  box-shadow: 5px 0px 5px -5px rgba(0,0,0,0.5), 
              -5px 0px 5px -5px rgba(0,0,0,0.5);
  margin: 30px 0;
  position: relative;
  border-radius: 2px;
  box-shadow: 5px 0px 5px -5px rgba(0,0,0,0.5), 
              -5px 0px 5px -5px rgba(0,0,0,0.5),
              inset 0 1px 3px rgba(255,255,255,0.2),
              inset 0 -1px 3px rgba(0,0,0,0.2);
margin: 4em auto;
  max-width: 45%;
}

/* .industrial-divider::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #444;
  border-radius: 2px;
}

.industrial-divider::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
} */



/* Tlačítka */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #004080;
    color: white;
}
.btn-outline {
    background-color: transparent;
    border: 2px solid #0066cc;
    color: #0066cc;
}
.btn-outline:hover {
    background-color: #0066cc;
    color: white;
}

/* Header a navigace */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80px;
}
.logo img {
    height: 60px;
}
.desktop-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.desktop-nav li {
    margin-left: 30px;
}
.desktop-nav a {
    color: #333;
    font-weight: 500;
    position: relative;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}
.desktop-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s ease;
}
.desktop-nav a:hover:after,
.desktop-nav a:focus:after {
    width: 100%;
}
.desktop-nav a:hover,
.desktop-nav a:focus {
    color: #0066cc;
}
.desktop-nav .search-icon {
    display: flex;
    align-items: center;
    margin-left: 30px;
}
.desktop-nav .search-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    font-size: 1.35em;
    color: #333;
    position: relative;
    transition: color 0.2s;
    padding: 0 2px;
}
.desktop-nav .search-icon a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.2px;
    bottom: -5px;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s;
}
.desktop-nav .search-icon a:hover:after,
.desktop-nav .search-icon a:focus:after {
    width: 100%;
}
.desktop-nav .search-icon a:hover,
.desktop-nav .search-icon a:focus {
    color: #0066cc;
}

/* Hamburger menu pro mobil */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}
.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    border-radius: 2px;
    display: block;
    transition: all 0.3s;
}

/* Mobilní menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.mobile-nav.active {
    display: block;
    transform: translateY(0);
}
.mobile-nav ul {
    padding: 0;
    margin: 0;
}
.mobile-nav li {
    margin-bottom: 15px;
}
.mobile-nav a {
    color: #333;
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 5px 0;
    text-decoration: none;
}
.social-mobile {
    display: flex;
    margin-top: 20px;
}
.social-mobile a {
    margin-right: 15px;
    font-size: 20px;
    color: #333;
    transition: color 0.2s;
}
.social-mobile a:hover {
    color: #0066cc;
}

/* Responzivita MENU */
@media (max-width: 992px) {
  header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    height: 64px;
    padding: 0 20px;
    position: relative;
  }
  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  .logo img {
    height: 40px;
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    border-radius: 2px;
    display: block;
    transition: all 0.3s;
  }
  .mobile-nav {
    top: 64px;
    padding: 20px;
  }
}

/* Textova cast pod sliderem */
.project-description-box {
        background-color: #ffffff;
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    }

    .project-description-box h2 {
        color: #333;
        margin-bottom: 20px;
        font-weight: 600;
    }

    .project-content {
        line-height: 1.6;
    }

    .project-content p {
        margin-bottom: 10px;
    }
	
	

/* Hero sekce */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0066cc, #00a3cc);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Quick links */
.quick-links {
    padding: 40px 0;
    background: #f5f8fb;
}

.quick-links .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* místo 3 */
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}


.category-box {
  cursor: pointer;
}

.box-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/*   */

.link-box {
    background: #fff;
    border-radius: 14px;
    border: 2px solid;
    box-shadow: 0 4px 16px rgba(0, 28, 64, 0.08);
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
    cursor: pointer;
    color: inherit;
}

.link-box h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: inherit;
}

.link-box-blue   { border-color: #0068A2; color: #0068A2; }
.link-box-orange { border-color: #F27930; color: #F27930; }
.link-box-green  { border-color: #008547; color: #008547; }

.link-box-blue:hover {
    background: #e6f0fa;
    border-color: #0068A2;
    color: #0068A2;
}
.link-box-orange:hover {
    background: #fbeee3;
    border-color: #F27930;
    color: #F27930;
}
.link-box-green:hover {
    background: #e3f8ef;
    border-color: #008547;
    color: #008547;
}
.link-box:hover, .link-box:focus {
    box-shadow: 0 8px 32px 0 rgba(0, 28, 64, 0.13);
    transform: translateY(-4px) scale(1.03);
    text-decoration: none;
    outline: none;
}

@media (max-width: 992px) {
    .quick-links .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .quick-links .container { grid-template-columns: 1fr; }
    .link-box { padding: 1.2rem 0.7rem; }
}


/* Aktuality – moderní, čistý styl */

.news {
  padding: 60px 0 40px 0;
  background: #f9f9f9;
}


.row.row-cols-md-3.g-4 {
  /* Bootstrap grid, není třeba upravovat */
}

.news-item-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.news-item {
  background: #fff;
  border: 1px solid #e1e8ef;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 28, 64, 0.07);
  padding: 1.8rem 1.4rem 1.3rem 1.4rem;
  min-height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.news-item-link:hover .news-item,
.news-item-link:focus .news-item {
  box-shadow: 0 8px 32px rgba(0, 28, 64, 0.13);
  border-color: #b2c6db;
  transform: translateY(-2px) scale(1.02);
}

.news-item h3 {
  font-size: 1.35rem;
  font-weight: 400;
  color: #0068A2;
  margin: 0 0 0.7rem 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.news-item h4 {
  font-size: 1rem;
  font-weight: 400;
  color: #6c757d;
  margin: 0 0 0.7rem 0;
}

.news-content {
  padding-top: 1.1rem;
}

.obsah-preview {
  color: #3c4a5d;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  padding-top: 1.1rem;
  padding-left: 0.2em;
  padding-right: 0.2em;
  position: relative;
  min-height: 3.5em;
}

.fade-out {
  display: inline;
  background: linear-gradient(to right, #3c4a5d 60%, rgba(60,74,93,0.0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  opacity: 0.5;
  transition: opacity 0.2s;
}

/* Šipka v zaobleném čtverci */
.news-arrow-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0068A2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-top: 1.2rem;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,104,162,0.10);
}
.news-arrow-box svg {
  width: 20px;
  height: 20px;
  display: block;
}
.news-arrow-box svg path {
  stroke: #fff;
  transition: stroke 0.18s;
}
.news-item-link:hover .news-arrow-box,
.news-item-link:focus .news-arrow-box {
  background: #00446a;
  box-shadow: 0 4px 16px rgba(0,104,162,0.15);
}

@media (max-width: 992px) {
  .row-cols-md-3 > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 768px) {
  .row-cols-md-3 > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .news-item {
    padding: 1.2rem 0.8rem 1rem 0.8rem;
    min-height: unset;
  }
}


/* Team preview */
.team-preview {
    padding: 60px 0;
}

/* .team-preview h2 { */
    /* text-align: center; */
    /* margin-bottom: 40px; */
/* } */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.team-preview .btn {
    display: block;
    width: 200px;
    margin: 0 auto;
}

/* Kontakty */

/* Základní styl pro kontaktní sekci */
.kontakt-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.qr-kod {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.qr-kod img {
  max-width: 80%;
  height: auto;
}

.kontakt-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Styl pro odkazy - zachování černého textu */
.kontakt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000; /* Černý text */
  text-decoration: none;
}

.kontakt-link:hover {
  text-decoration: underline;
}

/* Barevné ikony */
.fas.fa-envelope {
  color: #e74c3c; /* Červená */
}

.fas.fa-link {
  color: #2980b9; /* Tmavě modrá */
}

/* Alternativní barvy ikon, které můžete vyzkoušet */
/* 
.fas.fa-envelope {
  color: #9b59b6; /* Fialová */
}

.fas.fa-link {
  color: #27ae60; /* Zelená */
}
*/

/* 
.fas.fa-envelope {
  color: #f39c12; /* Oranžová */
}

.fas.fa-link {
  color: #16a085; /* Tyrkysová */
}

 


/* Footer */
footer {
  background: #181c26;
  color: #e7eaf0;
  padding: 36px 0 18px 0;
  border-top: 1px solid #23273a;
  font-size: 1rem;
  margin: 1em 0;
}

footer .container {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.footer-logo img {
  height: 75px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  color: #e7eaf0;
  font-size: 1.4rem;
  transition: background 0.18s, color 0.18s;
}

.footer-social a:hover,
.footer-social a:focus {
  background: #fff;
  color: #181c26;
}

.footer-divider {
  width: 80%;
  margin: 18px auto;
  border-bottom: 1.5px solid #44495b;
}

.footer-tacr {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}

.footer-tacr img {
  width: 90%; /* Nastavíme šířku na procento z rodičovského prvku */
  height: auto; /* Výška se přizpůsobí automaticky podle poměru stran */
  max-width: 700px; /* Maximální šířka, aby logo nebylo příliš velké na širokých obrazovkách */
  display: block;
  filter: grayscale(100%) brightness(1.1);
  margin: 0 auto; /* Vystředí obrázek */
}

@media (max-width: 600px) {
  footer .container {
    padding: 0 8px;
  }
  .footer-row {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .footer-divider {
    width: 95%;
  }
}


/** Carusel */
/* Logo carousel */
.logo-carousel {
  padding: 60px 0;
  background-color: #f5f5f5;
}

/* .logo-carousel h2 { */
  /* text-align: center; */
  /* margin-bottom: 40px; */
  /* color: #333; */
/* } */

#logoCarousel .carousel-item {
  padding: 0 15px;
}

#logoCarousel img {
  max-height: 100px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

#logoCarousel img:hover {
  filter: grayscale(0%);
}

#logoCarousel .carousel-control-prev,
#logoCarousel .carousel-control-next {
  width: 5%;
}

#logoCarousel .carousel-control-prev-icon,
#logoCarousel .carousel-control-next-icon {
  background-color: #0066cc;
  border-radius: 50%;
  padding: 10px;
}

@media (max-width: 768px) {
  #logoCarousel .carousel-item .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #logoCarousel .carousel-item .col-md-2 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* Styly pro kurzy */
.filter-btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    text-align: center;
   /*  transition: all 0.3s ease; */
    margin: 0 5px 10px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
	background-color: var(--bg-color);
    color: var(--text-color);
}

.filter-btn.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    border: 2px solid white;
}

.filter-btn:hover {
    background-color: #333 !important;
    color: #fff !important;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    align-items: start;
}

.kurz-card {
    break-inside: avoid;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.kurz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-group {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 8px 12px;
}

.btn-youtube {
    background-color: #FF0000;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-youtube:hover {
    background-color: #cc0000;
    color: white;
}

.youtube-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}


/* Ikona vyhledávání v navigaci */
.desktop-nav .search-icon {
  display: flex;
  align-items: center;
  margin: -1.5em .5em;
}


.desktop-nav .search-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  font-size: 1.35em;
  color: #333;
  position: relative;
  transition: color 0.2s;
  padding: 0 2px;
}

.desktop-nav .search-icon a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.2px;
  bottom: -5px;
  left: 0;
  background-color: #0066cc;
  transition: width 0.3s;
}

.desktop-nav .search-icon a:hover:after,
.desktop-nav .search-icon a:focus:after {
  width: 100%;
}

.desktop-nav .search-icon a:hover,
.desktop-nav .search-icon a:focus {
  color: #0066cc;
}

/* Vyhledávací kontejner */
.search-container {
  background-color: #f5f8fb;
  padding: 15px 0;
  display: none;
  border-bottom: 1px solid #e1e8ef;
  position: fixed;
  width: 100%;
  top: 80px;
  z-index: 999;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.search-form {
  width: 100%;
}

.search-input-group {
  display: flex;
  width: 100%;
}

.search-input-group input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e1e8ef;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  outline: none;
}

.search-input-group input:focus {
  border-color: #0068A2;
}

.search-input-group button {
  background-color: #0068A2;
  border: none;
  color: white;
  padding: 0 20px;
  font-size: 18px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-input-group button:hover {
  background-color: #00446a;
}

/* Sekce výsledků vyhledávání */
.search-results-section {
  padding: 40px 0;
  margin-top: 80px;
}

.search-results-section h1 {
  margin-bottom: 10px;
  color: #0068A2;
}

.results-count {
  color: #6c757d;
  margin-bottom: 30px;
}

i.tenka {
  color: #222;
  -webkit-text-stroke: 1px #fff; /* barva pozadí */
  text-stroke: 1px #fff;
}

/* Styly pro responzivní zobrazení */
@media (max-width: 768px) {
  .search-container {
    top: 70px;
  }
  
  .search-results-section {
    margin-top: 70px;
  }
  
  .search-input-group input {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .search-input-group button {
    padding: 0 15px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .search-container {
    padding: 10px 0;
  }
  
  .search-results-section h1 {
    font-size: 1.5rem;
  }
}




