/* ============================================================
   boxy
============================================================ */
/* Styl pro celý box */
.box-item {
list-style: none; /* odstraní tečku */ padding: 16px; margin-bottom: 20px; background-color: #fee; /* jemné pozadí */ border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);.box-item {
  list-style: none;              /* odstraní tečku */
  padding: 16px;                 /* vnitřní okraje */
  margin-left: auto;
  margin-right: auto;  
  margin-bottom: 20px;           /* mezera mezi boxy */
  background-color: #fee;        /* jemné růžové pozadí */
  border: 1px solid #ddd;        /* světlý rámeček */
  border-radius: 8px;            /* zaoblené rohy */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* jemný stín */    
}
}

@media (max-width: 768px) {
  .box-item {
    list-style: none;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #fee;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    width: 100%;
    max-width: 100%;
    margin: 0;                   /* žádné horizontální mezery */
    box-sizing: border-box;
  }
  .boxes-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;           /* žádné vnitřní odsazení */
    margin: 0;            /* žádné vnější odsazení */
  }   
}

/* Styl pro nadpis v boxu */
.box-item .box-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: bold;
  color: #333;
}

/* Styl pro text uvnitř boxu */
.box-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}
/* ============================================================
   ČLÁNKY A VÝPISY – MOBILNÍ VERZE (výchozí styly)
============================================================ */
body.t-page[class*="p-aktuality-"] main #content h1 {
  color: #cc0000;
  font-weight: bold;
}

.article-navigation {
  padding-bottom:30px;
}

.list-item.article-preview {
  margin-bottom: 30px;
  border-radius: 6px;
  background-color: #fff;
  border: #cc0000 1px solid;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.list-item.article-preview:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.list-title {
  padding: 12px 15px;
  height: auto;
  box-sizing: border-box;
  display: block;
  background-color: rgba(200, 0, 0, 1);
  color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: 0;  
}

.list-title a {
  font-size: 0.75em;
  font-weight: bold;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: visible;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #ffffff;
  text-decoration: none;
}

.list-title a:hover {
  text-decoration: underline;
}

.list-perex {
  padding: 10px 15px;
  font-size: 0.95em;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  line-height: 1.6;
  overflow: hidden;
}

.list-perex *:last-child {
  margin-bottom: 0;
}

.list-perex a {
  width: 100%;
  height: auto;
  float: none;
  margin: 0 0 15px 0;
  border: 1px solid #dcdcdc;
  overflow: hidden;
  display: block;
}

.list-perex-image {
  width: 100%;
  min-width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  float: none;
}

ul.list-info {
  padding: 10px 15px;
  font-size: 0.85em;
  flex-direction: column;
  gap: 0.4em;
  list-style: none;
  color: #000;
  background-color: #fff;
  font-style: italic;
  border-top: #cc0000 1px solid;
  display: flex;
}

ul.list-info li {
  padding-right: 0;
}

ul.list-info li:after {
  display: none;
}

ul.list-info a {
  color: gray;
  text-decoration: none;
}

ul.list-info a:hover {
  text-decoration: underline;
}

ul.list-info strong {
  font-weight: normal;
}

/* ============================================================
   ČLÁNKY A VÝPISY – MOBILNÍ OBRAZEK
============================================================ */
@media (max-width: 768px) {
  .article-perex img.article-perex-image {
    float: none;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin: 0 auto 15px;
  }
}

/* ============================================================
   ČLÁNKY A VÝPISY – DESKTOP (min-width: 769px)
============================================================ */
@media (min-width: 769px) {
  .list-item.article-preview {
    margin-bottom: 40px;
    border-radius: 8px;
  }

  .list-title {
    padding-left: 20px;
    padding-top: 5px;
    height: 45px;
    max-width: 1200px;
  }

  .list-title a {
    font-size: 0.9em;
  }

  .list-perex {
    padding: 0 20px 15px;
    display: block;
  }

  .list-perex a {
    width: 300px;
    height: 200px;
    float: left;
    margin: 8px;
    display: block;
  }

  .list-perex-image {
    width: 300px;
    height: 200px;
    float: left;
    display: block;
  }

  .article-perex img.article-perex-image {
    width: 100%;
    max-width: 300px;
    display: block;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
    float: right;
    margin-left: 20px;
  }

  ul.list-info {
    padding: 3px 20px 3px 20px;
    font-size: 0.9em;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2em;
    margin-bottom: 0px;  
  }

  ul.list-info li {
    padding-right: 0.5em;
  }

  ul.list-info li:after {
    content: "|";
    padding-left: 0.5em;
    display: inline;
  }

  ul.list-info li:last-child:after {
    display: none;
  }

  .article-info {
    width: 100%;
    box-sizing: border-box;
    clear: both;
    margin-top: 2em;
    border: 1px solid #cc0000;
    border-radius: 3px;
    padding: 10px 15px;
    background-color: #fff;
  }

  .article-info li {
    display: inline-flex;
    align-items: center;
  }
}


/* ============================================================
   STRÁNKOVÁNÍ
============================================================ */
.paging {
  clear: both;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: #c00;
}

.paging-label {
  margin-right: 10px;
  font-weight: normal;
  color: #000;
}

.paging-pages a,
.paging-pages span {
  display: inline-block;
  padding: 4px 8px;
  margin: 0 2px;
  border: 1px solid #c00;
  background-color: #fff;
  color: #c00;
  text-decoration: none;
  border-radius: 3px;
}

.paging-pages a:hover {
  background-color: #fee;
  border-color: #900;
  color: #900;
}

.paging-pages a.act {
  background-color: #fee;
  border-color: #900;
  color: #900;
}

.paging-pages .current {
  background-color: #fee;
  border-color: #900;
  color: #900;
  font-weight: bold;
}
.paging-next,
.paging-last-addon,
.paging-last {
  color: #000;
}

.paging-last {
  display: inline-block;
  padding: 4px 8px;
  margin: 0 2px;
  border: 1px solid #c00;
  background-color: #fff;
  color: #c00;
  text-decoration: none;
  border-radius: 3px;
}

/* ============================================================
   FORMULÁŘE
============================================================ */
.inputmedium { width: 370px; }
.inputsmall { width: 177px; }
.areamedium { height: 150px; width: 495px; }
.areasmall { height: 100px; width: 370px; }
.searchform input.q { width: 100px; }

/* ============================================================
   UŽIVATELSKÉ PROFILY
============================================================ */
.avatar {
    border: 1px solid #ededed;
    vertical-align: middle;
    border-radius: 50%;
}
.profiletable .avatartd { padding: 5px; }
.profiletable .note {
    overflow: auto;
    padding: 0 5px 5px 0;
    width: 375px;
}
.profiletable td { padding: 3px 10px; }

/* ============================================================
   ZPRÁVY A KOMENTÁŘE
============================================================ */
.messages-menu a {
    padding: 0 6px;
    text-decoration: none;
}
.messages-menu a.active { font-weight: bold; }
.messages-table {
    border: 1px solid #dcdcdc;
    width: 100%;
}
.messages-table a { text-decoration: none; }
.messages-table a.notread { font-weight: bold; }
.messages-table th,
.messages-table td {
    padding: 5px 15px;
}
.messages-table td:first-child { width: 10px; }

/* ============================================================
   PŘÍSPĚVKY
============================================================ */
.posts {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #dcdcdc;
}
.posts-pm { margin-top: 0; }
.posts h2 { margin-bottom: 10px; }
.posts-form { padding-bottom: 10px; }
.posts-form-controls > span {
    margin-left: 10px;
}
.posts-form-controls > span:first-child {
    margin-left: 0;
}
.posts-form-controls a.bbcode-button {
    background: url("images/bbcode/button-body.png") left top no-repeat;
    display: inline-block;
    height: 16px;
    padding: 3px 4px;
    width: 16px;
}
.posts-form-controls a.bbcode-button img {
    vertical-align: top;
}
.posts-form-controls img {
    vertical-align: middle;
}
.post-list {
    border-top: 1px solid #dcdcdc;
}
.post {
    padding: 5px 5px 0 5px;
    margin: 10px 0;
    clear: both;
}
.post:target {
    background-color: #fceef1;
}
.post:target .post-body {
    border-bottom: none;
}
.post-author { text-decoration: none; }
.post-author-guest { color: gray; }
.post-info, .post-info a {
    color: gray;
    font-size: 12px;
}
.post-actions a {
    font-size: 12px;
    text-decoration: none;
    margin: 0 3px;
}
.post-actions a:hover {
    text-decoration: underline;
}
.post-answer {
    margin: 20px 0 20px 50px;
}
.post-answer .post-body {
    border-bottom: 0;
    padding-bottom: 4px;
}
.post-answer .post-body-withavatar .post-body-text {
    border-left: none;
    padding-left: 3px;
}
.post-body {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #dcdcdc;
}
.post-body-text {
    line-height: 150%;
}
.post-body-withavatar {
    min-height: 75px;
    padding-left: 60px;
}
.post-body-withavatar img.avatar {
    float: left;
    margin: 5px 0 0 -60px;
    max-width: 50px;
}

/* ============================================================
   DISKUZE A TÉMATA
============================================================ */
.topic-hl,
.topic-table thead th {
    background-color: #F7F7F7;
}
.topic-icon-cell {
    border-right: none;
    padding-right: 0;
    width: 41px;
}
.topic-main-cell {
    border-left: none;
    white-space: nowrap;
    width: 50%;
}
.topic-pages {
    margin-left: .5em;
}
.topic-pages a {
    background-color: #fff;
    border: 1px solid #ededed;
    display: inline-block;
    margin: 0 2px;
    padding: 0 4px;
    text-decoration: none;
}
.topic-table {
    background-color: #FAFAFA;
    border-collapse: collapse;
}
.topic-table td,
.topic-table th {
    border: 1px solid #ededed;
    padding: 5px;
}
.topic h2 { margin-bottom: 0; }
.topic .post { margin: 0; }
.topic .post-body { border: 0; }

/* ============================================================
   ANKETY A SHOUTBOX
============================================================ */
.poll,
.sbox {
    margin: 1em 0;
    border: 1px solid #dcdcdc;
    background-color: #fafafa;
}
.poll { max-width: 300px; }
.poll-answer {
    border-top: 1px solid #dcdcdc;
    padding: 6px 0 5px;
}
.poll-answer .votebutton {
    margin: 3px 4px 2px 0;
}
.poll-answer div {
    background: url("images/votebar.gif") repeat-x;
    height: 11px;
    margin: 6px 2px 4px 0;
}
.poll-answer input {
    margin: 0;
    padding: 0;
}
.poll-content,
.sbox-content {
    padding: 5px;
}
.poll-question div {
    color: #a4a4a4;
    font-size: 11px;
}
.poll-question,
.sbox-title {
    padding-bottom: 5px;
    text-align: center;
}
.sbox form,
.sbox table {
    margin: 0;
    padding: 0;
}
.sbox table {
    border-collapse: collapse;
    width: 90%;
}
.sbox table th { width: 44px; }
.sbox-input { width: 90%; }
.sbox-item {
    border-top: 1px solid #dcdcdc;
    padding: 10px 5px 10px 0
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;  
}

.center img {
  max-width: 100%;
  height: auto;
  display: block;
}

.user-menu {
  display: flex;
  gap: 15px; /* Přidá mezeru 15px mezi každou položku */
  list-style: none;
  padding: 0;
  margin: 0;
}