/* ===== Oznamy + Telemedicína split ===== */
.info-split{
  width: 100%;
  background: #FBF0EE;
  color: #000;
  padding: 70px 18px;
}

.info-split-wrap{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 26px;
  align-items: start;
}

/* Left column */
.info-left{
  padding: 8px 6px;
}

.info-title{
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.info-lead{
  margin: 0 0 22px;
  font-size: 1.08rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 70ch;
}

/* Right column “panel” */
.info-right{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* Right header strip */
.info-right-head{
  background: rgba(247, 183, 198, 0.65);
  border-bottom: 1px solid rgba(0,0,0,0.14);
  padding: 22px 22px 18px;
}

.info-right .info-title{
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin-bottom: 6px;
}

/* Telemed content */
.tm-block{
  padding: 18px 22px 0;
}

.tm-lines{
  margin: 0;
  padding-left: 18px;
  line-height: 1.75;
  font-size: 1.04rem;
  opacity: 0.92;
}

.tm-lines li{ margin-bottom: 10px; }

.tm-muted{
  opacity: 0.75;
  margin-left: 6px;
}

.tm-highlight{
  font-weight: 900;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding: 0 2px;
}

.tm-link{
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-link:hover{ opacity: 0.8; }

/* Buttons */
.tm-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px 10px;
}

.tm-btn{
  display: inline-block;
  font-size: clamp(0.1rem, 5vw, 0.875rem);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.92);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, filter .18s ease;
}

.tm-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.tm-btn-outline{
  background: rgba(255,255,255,0.6);
  color: #000;
}

/* Note */
.tm-note{
  margin: 0;
  padding: 10px 22px 20px;
  font-size: 0.98rem;
  opacity: 0.75;
  line-height: 1.5;
  border-top: 1px solid rgba(0,0,0,0.10);
}

/* ===== Announcements list ===== */
.ann-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;

  /* IMPORTANT: capped by JS (Telemedicína height * 1.5) */
  max-height: var(--ann-cap, 900px);
  overflow: hidden; /* no scrolling, pages only */
}

.ann-card{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);

  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;

  /* allow text wrapping inside grid */
  min-width: 0;
}

.ann-card.no-img{
  grid-template-columns: 1fr;
}

.ann-img{
  background: rgba(255,255,255,0.35);
}

.ann-img img{
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: contain; /* nicer for logos */
  display: block;
  padding: 12px;
}

.ann-body{
  padding: 16px 18px 18px;
  min-width: 0;
}

.ann-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  min-width: 0;
}

.ann-title{
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;

  /* prevent long titles breaking layout */
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.ann-date{
  white-space: nowrap;
  font-weight: 800;
  opacity: .7;
  font-size: .95rem;
  flex: 0 0 auto;
}

.ann-sub{
  margin-top: 6px;
  font-weight: 700;
  opacity: .8;

  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.ann-text{
  margin: 10px 0 0;
  line-height: 1.55;
  opacity: .9;

  /* keep newlines AND wrap insane strings */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;

  min-width: 0;
}

.ann-empty, .ann-skeleton{
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.45);
  opacity: .85;
}

/* ===== Pager ===== */
.ann-pager-wrap{
  margin-top: 14px;
}

.ann-pager{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ann-page{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  cursor: pointer;

  font-weight: 900;
  color: rgba(0,0,0,0.85);
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}

.ann-page:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.ann-page.is-active{
  background: rgba(247, 183, 198, 0.75);
  border-color: rgba(0,0,0,0.28);
}

/* ===== Responsive ===== */
@media (max-width: 1100px){
  .info-split-wrap{ grid-template-columns: 1fr; }
  .info-right{ order: 2; }
  .ann-card{ grid-template-columns: 1fr; }
  .ann-img{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .tm-btn, .ann-page{ transition:none; }
}
/* Make sure ultra-long strings wrap instead of overflowing */
.ann-title,
.ann-sub,
.ann-text{
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Cards behave better inside a capped container */
.ann-list{
  max-height: var(--ann-cap, 900px);
  overflow: hidden; /* no scrollbars, only pages */
}

/* Pager is always visible when multiple visual pages exist */
.ann-pager-wrap[hidden]{
  display: none;
}
