/* === Obecná karta === */
.card {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  padding: 1.1em;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card__hlaseni{
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border-left: 5px solid  var(--color-obyvatel);
  border-right: 5px solid  var(--color-obyvatel);
  border-top: 1px solid  var(--color-obyvatel);
  border-bottom: 1px solid  var(--color-obyvatel);
  aspect-ratio: 3 / 2 ;
}
.aktualita-karta--obyvatel{
  aspect-ratio: 4 / 3 ;
}
.card__parte{
  padding: 1.85rem;
  aspect-ratio: 4 / 3 ;
}

/* Obrázek vlevo */
.card__image {
  flex: 0 0 45%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
    transition: flex 0.6s ease;
}

/* Obsah vpravo */
.card__content {
  flex: 1 1 45%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-navstevnik);
  transition: flex 0.6s ease;
}

/* Nadpis */
.card__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card__title__navstevnik {
  color: var(--color-navstevnik-light);
}

/* Výpis */
.card__excerpt {
  font-size: 1rem;
  color: var(--color-white);
  line-height: 1.6;
    
}
/* Hover efekt: více textu, méně obrázku */
.card:hover .card__image {
  flex: 0 0 47%;
}

.card:hover .card__content {
  flex: 1 1 45%;
}
.card__uredni_deska{
  background-color: var(--color-urad-light);
  border:solid 1px var(--color-urad);
  flex-direction: column;
}

.card__urad{
  border:solid 1px var(--color-urad);
}
.card__kontakt{
  flex-direction: column;
  
}
.card__kontakt__adresa {
  flex: 0 0 30%;
  background-size: cover;
  background-position: center;
  transition: flex 0.6s ease;
  padding: 2rem;
}
.card__kontakt__content {
  flex: 1 1 45%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: flex 0.6s ease;
}

.card__fotoalbum {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
background: rgba(0, 0, 0, 0.4); /* lehké stmavení navíc */
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  aspect-ratio: 1/1;
}

/* Blurový překryv (zůstává pod textem) */
.card__fotoalbum::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  
  z-index: 1;
}
.card__fotoalbum:hover::before {
  backdrop-filter: blur(0);
}
/* Obsah karty */
.card__fotoalbum__overlay {
  position: relative;
  z-index: 2;
  padding: 1rem;
  color: white;
  text-align: center;
  width: 100%;
  background-color: darkcyan;
}

/* Texty zůstávají ostré */
.card__fotoalbum__title {
  margin: 0;
  font-weight: bold;
  color:var(--color-white);
}

.card__fotoalbum__date {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}
.card__zpravodaj {
  background: #fdfdfd;
  padding: 1.5rem;
  border-left: 5px solid var(--color-obyvatel);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: 70vh;
  overflow: hidden;
}

.card__zpravodaj h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card__zpravodaj h3 a {
  text-decoration: none;
  transition: color 0.2s;
}

.card__zpravodaj h3 a:hover {
}

.card__zpravodaj__content {
  font-size: 1rem;
  margin-top: 0rem;
  line-height: 1.6;
  background-color: var(color-white);
  
}
.card__clen{
  flex-direction: column;
}
.card__monitor {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.card__monitor object {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  height: 100%;
  width: 100%;
}
.hospodareni__card {
  align-content: flex-start;
  background-color: #fff;
  padding: 1.0rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.hospodareni__card ul {
  list-style: none;
  padding-left: .8rem;
  margin: 1rem 0 0;
  width: 100%
}

.hospodareni__card li {
  margin-bottom: 0.5rem;
}

.hospodareni__card a {
  text-decoration: none;
  color: #333;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hospodareni__card a:hover {
  color: var(--color-urad);
}

.hospodareni__card time {
  font-size: 0.85rem;
  color: #888;
}
.smutecni-karta {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 4px solid #222;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  gap: 1rem;
  overflow: hidden;
  justify-content: space-between;
}

.smutecni-header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.smutecni-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.smutecni-body embed,
.smutecni-body img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}
/* Styl pro PDF karty */
.smutecni-karta .pdfjs-wrapper {
  width: 100%;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  border-radius: 0.5rem;
  padding: 1rem 0;
}

/* Zmenšení výšky iframe, případně přizpůsobení */
.smutecni-karta .pdfjs-wrapper iframe.pdfjs-iframe {
  width: 100%;
  display: block;
  border: none;
}
.smutecni-karta .smutecni-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.smutecni-karta .smutecni-link:hover {
  background-color: #f5f5f5;
}
/* Responzivní: stack pod sebe */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }

  .card__image,
  .card__content {
    flex: 1 1 100%;
  }

  .card__image {
    min-height: 180px;
  }
}
.news-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 0.375rem;
  overflow: hidden;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-card__image {
  background-size: cover;
  background-position: center;
  height: 250px;
}
.news-card__svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(229, 57, 53, 0);
  padding: 2rem;
  box-sizing: border-box;
}

.news-card__content {
  padding: 1rem 1rem 1rem 1.5rem;
}

.news-card__title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.news-card__excerpt {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.news-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  background: #ddd;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Barevné varianty */
.news-card--navstevnik .news-card__category {
  background: var(--color-navstevnik);
}

.news-card--obyvatel .news-card__category {
  background: var(--color-obyvatel);
}

.news-card--obecni_urad .news-card__category {
  background: var(--color-urad);
}
/* === Levý pruh podle kategorie === */
.news-card--navstevnik {
  border-left: 4px solid var(--color-navstevnik);
}

.news-card--obyvatel {
  border-left: 4px solid var(--color-obyvatel);
}

.news-card--urad {
  border-left: 4px solid var(--color-urad);
}

/* Responsivita */
@media (max-width: 768px) {
  .news-card__image {
    height: 160px;
  }
  .card__monitor {
    height: 725px;
    width: 100%;
  }
}
