:root {
    --primary: #1e7f4f;
    --dark: #1a1a1a;
    --light: #f5f7fa;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
.container2 {
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px 0px 15px;
    background: #1e7f4f;
    color: white;
    position: sticky;
    top: 0;
}

/* Příprava pozice pro šikmou čáru */
.navbar .ve {
  position: relative;
  padding-right: 50px; /* Prostor pro šikmou čáru */
  display: inline-block;
  vertical-align: middle;
}

/* Vytvoření šikmé čáry */
.navbar .ve::after {
  content: "";
  position: absolute;
  right: 5px;        /* Vzdálenost čáry od textu školy */
  top: 1%;
  bottom: 1%;
  width: 3px;         /* Tloušťka čáry */
  background-color: #ffffff; /* Barva čáry (bílá) */
  transform: rotate(30deg);  /* Sklon čáry */
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    margin-left: 10px;
}

.navbar a {
    color: white;
    font-weight:bold;
    text-decoration: none;
}
.logo {width:100px;
    margin-left:10px;
    margin-right:10px;}
    
.divnav {padding: 0px 0px 0px 15px;
    margin:0px;    
    background: #1e7f4f;
    color: white;
}
.drob {font-size: 12px;
  text-decoration: none;
  font-weight: bold;
  padding-left: 5px;
  color: #ffcc00;
  }
.b {color:white;}      

/* HERO */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.0)),
                url('/obrazky/zaci2.jpg') center/cover;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.primary {
    background: var(--primary);
    color: white;
}
.ve {font-size:1.15em;
    font-weight:bold;}
.ma {font-size:0.8em;
    font-weight:normal;}
.veli {font-size:1.15m;
    font-weight:bold;}    

/* PROGRAMS */
.programs {
    padding: 30px 0;
    text-align: center;
}

.grid {
    margin-top: 30px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid1 {
    margin-top: 0px;
    display: grid;
    gap: 0px;
    grid-template-columns: repeat(1, minmax(250px, 1fr));
}
.grid2 {
    margin-top: 30px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
}
.grid3 {
    margin-top: 0px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, minmax(250px, 1fr));
}
.grid4 {
    margin-top: 0px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, minmax(250px, 1fr));
    float:left;
}
.grid5 {
    margin-top: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items:left;
}
.grid6 {
    margin-top: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    justify-items: center;
}
.gridfoto {
    margin-right: 80px;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    align-content: start;
    height: auto;
}
.gridfoto a {
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
}
.foto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
/* Tablet */
@media (max-width: 992px) {
    .foto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */
@media (max-width: 600px) {
    .foto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.fl {float:left;}
.fr {float:right;}
.fn {float:none;}
.ma {margin:20px;}
.j {justify-items: center;}
.o {margin:0px;
    padding:0px;}
.grantlogo {height:50px;}
.li {display: inline-block;
    width:100px;}
.lz {display: inline-block;
    margin-left:100px;}       
.g1m {
   grid-column: 1;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; 
}
.g1menu {
   grid-column: 1;
    width: 180px;
    max-width: 400px;
    box-sizing: border-box; 
}
.g2menu {
  grid-column: 2;
    width: 180px;
    max-width: 400px;
    box-sizing: border-box;
}
.g3menu {
  grid-column: 3;
    width: 180px;
    max-width: 400px;
    box-sizing: border-box;
}
.g4menu {
   grid-column: 4;
    width: 180px;
    max-width: 400px;
    box-sizing: border-box; 
}
.g5menu {
   grid-column: 5;
    width: 180px;
    max-width: 400px;
    box-sizing: border-box; 
}
.g6menu {
   grid-column: 6;
    width: 180px;
    max-width: 400px;
    box-sizing: border-box; 
}
.g1 {
  grid-column: 1; 
}
.g2 {
  grid-column: 2; 
}
.g3 {
  grid-column: 3; 
}
.card {
    background-image: linear-gradient(#ffffff,#DEDEDE);
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
.cardmenu {
    background-image: linear-gradient(#ffffff,#DEDEDE);
    padding: 5px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
.cardm {
    background-image: linear-gradient(#ffffff,#C0FF90);
}
.cardv {
    background-image: linear-gradient(#ffffff,#D0D0FF);
}
.cardr {
    background-image: linear-gradient(#ffffff,#FFE090);
}
.cardz {
    background-image: linear-gradient(#ffffff,#FFF080);
}

.card:hover {
    transform: translateY(-5px);
}
.cardmenu:hover {
    transform: translateY(-5px);
}
/* NEWS */
.news {
    background: #e8f5ee;
    padding: 10px 0;
}
.news-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

/* Hlavní obal pro celou sekci (Novinky + Odkazy vpravo) */
.news-layout-wrapper {
    display: grid;
    /* Rozdělení: Levý sloupec (novinky) roste podle potřeby, pravý (odkazy) má pevných 300px */
    grid-template-columns: 1fr 228px; 
    gap: 25px;
    margin-top: 20px;
    align-items: start; /* Zabrání deformaci odkazů, pokud jsou kratší než novinky */
    text-align:center;
}

/* Mřížka pro samotné aktuality (4 vedle sebe) */
.news-grid {
    display: grid;
    /* Natvrdo definuje 4 stejně široké sloupce vedle sebe */
    grid-template-columns: repeat(1, 1fr); 
    gap: 20px;
}

/* Samostatný podlouhlý boční panel s odkazy vpravo */
.news-sidebar {
    background-color: #fafcfa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    /* Volitelné: zajistí vysoký vzhled odshora dolů */
    min-height: 500px; 
}


/* RESPONSIVITA: Aby se web nerozbil na menších monitorech a mobilech */
@media (max-width: 1400px) {
    .news-grid {
        /* Na středních monitorech skočí novinky do 2 sloupců nad sebe */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 992px) {
    .news-layout-wrapper {
        /* Na tabletech a mobilech skočí panel s odkazy pod aktuality */
        grid-template-columns: 1fr; 
    }
    .news-grid {
        /* Na mobilech bude každá aktualita na celou šířku */
        grid-template-columns: 1fr; 
    }
}
.slideshow {
    max-width: 100%;
border-radius: 3px;
}
.textb {font-weight: bold;}
.cerven {color:red;}
.l {text-align:left;}
.r {text-align:right;}
.c {text-align:center;}
.ulno {list-style: none;}
.rad {line-height: 1.2em;}
.rad2 {line-height: 2em;}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    padding: 10px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-top: 5px;
}