.content{
    padding: 2rem;
}
.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--colorTextPrimary); /* nastavuje barvu SVG i textu */
  padding-bottom: 1rem;
}
.heading-card h4{
    color: var(--colorLowlight);
    font-weight: bold;
}
.icon {
  width: 24px;
  height: 24px;
}
.responsive-heading {
  /* clamp(min, preferred, max) */
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  font-weight: bold;
  margin: 0;
}

.news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.2s;
}

.news-item:hover {
  transform: translateY(-3px);
}

.news-image {
  max-width: 300px; /* maximální šířka obrázku na desktopu */
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
}

.news-date {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.25rem 0;
}

.news-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--colorTextSecondary);
}

.news-excerpt {
  margin: 0 0 0.5rem 0;
  color: var(--colorTextPrimary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.news-link {
  font-size: 0.95rem;
  color: var(--colorLowlight);
  text-decoration: none;
  font-weight: bold;
}

.news-link:hover {
  text-decoration: underline;
}

.file-group {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.file-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.file-group .bi {
    font-size: 3rem;
    color: #0d6efd;
}
.file-item {
    transition: background-color 0.2s ease;
}
.file-item:hover {
    background-color: #eef4ff;
}
.file-item i {
    font-size: 1.8rem;
    width: 2rem;
}

.teacher-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.teacher-card h5{
    color: var(--colorLowlight);
}
.teacher-icon {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid var(--colorPrimary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden; /* 👉 Klíčové – ořízne obsah podle tvaru */
}

.teacher-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👉 Zachová proporce a vyplní celý kruh */
}

.teacher-icon i {
    font-size: 2.5rem;
    color: var(--colorPrimary);
}
.teacher-email {
    font-size: 0.9rem;
    color: var(--colorTextPrimary);
}
.impoText{
    text-align: center;
    color: var(--colorLowlight);
    font-size: 1.3rem;
}
.spp-icon{
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.envelope-icon{
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color:var(--colorPrimary);
}
h5 ,h3{
    font-weight: bold;
}
 h3, #event-list h5{
    color: var(--colorLowlight) !important;
    
}
.list-group-item h5 a{
    color: var(--colorLowlight) !important;
}
.panel-link {
    margin-bottom: 20px; /* mezera pod panelem, pokud je více řádků */
    transition: transform 0.2s;
}
.panel-link:hover {
    transform: scale(1.05); /* jemné zvýraznění při hover */
    text-decoration: none; /* zruší podtržení odkazu */
}
.project-panel {
  margin-bottom: 20px; /* mezera mezi panely */
}
.projects .panel{
    border: 1px solid var(--colorLowlight);
    border-radius: 8px;
    padding: 1rem;
    text-align: justify;
}
.project-titlePhoto{
    margin: auto 0 !important;
}

.no-gutter {
  margin-left: 0;
  margin-right: 0;
}

.no-gutter > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.project-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.day-cell {
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.day-cell:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.day-cell.active {
  box-shadow: inset 0 0 0 3px var(--colorPrimary);
}
.card img {
  object-fit: cover;
  height: 200px;
}
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.btn-outline-primary {
  color: var(--colorPrimary); /* tvá barva textu */
  border-color: var(--colorPrimary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--colorPrimary);
  color: #fff;
  border-color: var(--colorPrimary);
}

.calendar-table td {
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  border: 1px solid lightgrey !important; /* vlastní rámeček */
  padding: 0.5rem;
}

h6.card-title{
    color: var(--colorLowlight) !important;
    font-weight: bold !important;
}

/* Obrázek je standardně zobrazený */
.carousel-img {
    max-height: 400px;
    object-fit: cover;
    object-position: top;
}

/* Panel přes obrázek */
.overlay-caption {
    background: rgba(0,0,0,0.5); /* poloprůhledné pozadí */
    color: white;
}

/* Malé obrazovky: obrázek skryt, panel bílé pozadí, černý text */
@media (max-width: 767.98px) { /* md breakpoint Bootstrap */
    .carousel-img {
        display: none !important;
    }
    .carousel-indicators{
        bottom: -35px;
    }
    .overlay-caption {
        background: white !important;
        color: black !important;
        position: static;
        padding: 1rem;
    }

    .overlay-caption h5 {
        font-size: 1.2rem;
    }

    .overlay-caption p {
        font-size: 1rem;
    }

    .overlay-caption .btn {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }
}


.carousel-indicators > button{
    background-color: var(--colorSecondary) !important;
}
.carousel-indicators .active{
    background-color: var(--colorPrimary) !important;
}
.carousel-control-next-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2361AB00'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2361AB00'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
}
.carousel-item .btn{
    background-color: var(--colorPrimary) !important;
    border-color: var(--colorPrimary) !important;
}
.carousel-item .btn:hover,  .card .btn:hover{
    background-color: var(--colorSecondary) !important;
    border-color: var(--colorSecondary) !important;
    text-decoration: none !important;
}
.page-link{
    color: var(--colorSecondary) !important;
}
.active > .page-link{
    color: #fff !important;
    background-color: var(--colorPrimary) !important;
    border-color: var(--colorPrimary) !important;
}





/* Responzivní nastavení pro mobilní zařízení */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;  /* přepnutí na sloupec */
    align-items: stretch;    /* obsah se roztáhne na šířku */
  }

  .news-image {
    max-width: 100%;         /* obrázek zabere celou šířku */
    width: 100%;             /* zajistí skutečnou šířku 100% */
    margin-bottom: 1rem;     /* mezera pod obrázkem */
    flex-shrink: unset;      /* zruší omezení zmenšení */
  }

  .news-content {
    width: 100%;             /* text se roztáhne pod obrázek */
  }
}

@media (max-width: 768px) {
  .contentBlock .container {
    max-width: 100% !important;
  }
}
@media (max-width: 576px) {
  .contentBlock .container {
    max-width: 100% !important;
  }
}