﻿body {
  padding-top: 50px;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.ui.button {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #4E5BC1;
  font-weight: 400;
  text-transform: uppercase;
}

h3, h4, h5 {
  color: black;
}

h2 {
  line-height: 35px;
  margin-bottom: 15px;
}

.homepage h2 {
  line-height: 35px;
  /*margin-bottom: 35px;*/
}


h3 {
  font-size: 1.5rem;
}

h1.main {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/*.ui .header {
  font-family: Montserrat, Arial, Helvetica, sans-serif !important;
}*/

a {
  color: #4E5BC1;
}

a:hover, a:active, a:focus {
  color: #4754A8;
}

p {
  margin-bottom: 25px;
  font-size: 20px;
  line-height: 30px;
}

p.gray {
  color: #707070 !important;
}

p.primary {
  color: #4E5BC1;
}

.ui.button:not(.buttons), .ui.label:not(.attached), .ui.basic.buttons {
  border-radius: 4px !important;
  text-transform: uppercase;
}

.ui.buttons .button:first-child, .ui.buttons.basic .button:first-child {
  border-radius: 0px !important;
  border-top-left-radius: 5px !important;
  border-bottom-left-radius: 5px !important;
}

.ui.buttons .button:last-of-type, .ui.buttons.basic .button:last-of-type {
  border-radius: 0px !important;
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
}

.card p, .item p, .segment p, .small p, .modal p, .message p,
.card ul, .item ul, .segment ul, .small ul, .modal ul, .message ul {
  margin-bottom: 10px;
  font-size: 1.15em !important;
  line-height: 1.6;
}

/*.card p {
  white-space: pre-line;
}*/

.form .field p {
  font-size: 0.9em !important;
  color: gray !important;
  padding-top: 5px;
}

span.extra {
  color: rgba(0, 0, 0, .4);
}

.ui.card, .ui.cards > .card, .ui.menu, .ui.segment, .ui.message, .ui.table, .ui.attached.segment {
  box-shadow: none !important;
  border: none;
  /*border: 1px solid lightgray !important;*/
}

.ui.card > .content .header:not(.ui), .ui.cards > .card > .content .header:not(.ui) {
  font-weight: 400;
  font-size: 1.4em;
  /*margin-top: 3px;*/
  line-height: 1.28571429em;
}

.ui.card > .content > .header, .ui.cards > .card > .content > .header {
  color: #4E5BC1;
}

.ui.card > .content:not(.extra) {
  border: 0px !important;
}

.bordered-tabs > .segment
{
  border: 1px solid #4E5BC1 !important;
  border-top: none !important;
}

.ui.huge.tabular.menu {
  width: 100% !important;
  border: none !important;
}

.ui.huge.tabular.menu .item {
  border-top: 0px !important;
  border-bottom: 1px solid #4E5BC1 !important;
  width: 50%;
  border-radius: 0 .28571429rem 0 0;
  color: rgba(0, 0, 0, 0.6);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.ui.huge.tabular.menu .item.active {
  border: 1px solid #4E5BC1 !important;
  border-bottom: none !important;
  color: #4E5BC1 !important;
  background-color: white;
  font-weight: 500;
}

.ui.table tr td small.green {
  color: #21ba45 !important;
}

.ui.table tr td small.red {
  color: #db2828 !important
}

.ui.table thead tr:not(:first-of-type) th {
  color: gray;
  font-weight: 400;
}

.grid.small-padding {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.grid.small-padding .column {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.button-place {
  text-align: right;
}

a.report {
  color: rgba(0, 0, 0, .3);
}

.ui.list > .item > .content > .header {
  color: #4E5BC1 !important;
}

.ui.list .list > a.item, .ui.list > a.item {
  color: #4E5BC1;
}

.ui.list .list > a.item:hover, .ui.list > a.item:hover,
.ui.list .list > a.item:active, .ui.list > a.item:active,
.ui.list .list > a.item:focus, .ui.list > a.item:focus {
  color: #4754A8;
  background-color: #FAFAFA;
}

.ui.list .list > a.item p, .ui.list > a.item p {
  color: black;
}

.ui.cards .card > a.item, .ui.cards > a.card {
  color: #4E5BC1;
}

.ui.cards .card > a.item:hover, .ui.cards > a.card:hover,
.ui.cards .card > a.item:active, .ui.cards > a.card:active,
.ui.cards .card > a.item:focus, .ui.cards > a.card:focus {
  color: #4754A8;
  background-color: #FAFAFA;
}

.ui.cards .card > a.item p, .ui.cards > a.card p {
  color: black;
}

.ui.menu .ui.dropdown .menu > .active.item {
  font-weight: 600 !important;
}

.fluid.filter.selection.dropdown {
  font-size: 1.2em;
  /*border-radius: 20px;*/
  font-weight: 500;
  border: none;
}

.filter.selection.dropdown .menu > .item {
  font-size: 1.2rem !important;
}

.main.menu, .sec.menu {
  height: 50px;
  line-height: 50px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.5s ease;
  border-bottom: 1px solid rgba(34, 36, 38, .15) !important;
}

.ui.main.menu:not(.scrolled) {
  background-color: transparent !important;
}
.ui.main.menu.scrolled {
  background-color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.main.menu.affix {
  background-color: white !important;
  box-shadow: 0px -10px 20px gray !important;
}

.main.menu .item, .sec.menu .item {
  color: #4E5BC1;
  font-size: 13pt;
}

.main.menu .item:before {
  background: none;
}

.sec.menu .item:last-child:before {
  background: none;
}

.main.menu .item.active, .sec.menu .item.active {
  color: #4754A8;
  background-color: rgba(78,91,193,0.08) !important;
}

.main.menu .item:hover, .main.menu .item:focus, .sec.menu .item:hover, .sec.menu .item:focus {
  color: #4754A8;
  background-color: rgba(78,91,193,0.08) !important;
}

.main.menu .item .label.alert {
  margin-left: -5px;
  margin-top: -10px;
  z-index: 10;
}

.main.menu .item.header {
  border: 0px !important;
  font-size: 16pt;
  font-weight: normal;
}

.main.menu .fitted.comments.icon,
.main.menu .fitted.user.circle.icon,
.main.menu .fitted.bars.icon {
  font-size: 1.3em;
}

.ui.vertical.menu {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.ui.vertical.menu .item {
  font-size: 1.2em;
  color: #4E5BC1;
  font-weight: 400;
}


/* PRIMARY */
.ui.primary.button, .ui.primary.buttons .button {
  background-color: #6669D0 !important;
}

.ui.primary.button:hover, .ui.primary.buttons .button:hover {
  background-color: #5456af !important;
}

.ui.primary.button:active, .ui.primary.buttons .button:focus, .ui.primary.button:focus, .ui.primary.buttons .button:focus {
  background-color: #494b9a !important;
}

.ui.primary.button.basic, .ui.primary.buttons .button.basic {
  background-color: transparent !important;
  border: 1px solid #6669D0 !important;
  color: #6669D1 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.ui.primary.button.basic:hover, .ui.primary.buttons .button.basic:hover {
  background-color: transparent !important;
  border: 1px solid #5557a9 !important;
  color: #5557a9 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* ORANGE (dříve primary) */
.ui.orange.button, .ui.orange.buttons .button {
  background-color: #FF9375 !important;
}

.ui.orange.button:hover, .ui.orange.buttons .button:hover {
  background-color: #EA8A5B !important;
}

.ui.orange.button:active, .ui.orange.buttons .button:focus, .ui.orange.button:focus, .ui.orange.buttons .button:focus {
  background-color: #BD7359 !important;
}

/* YELLOW */
.ui.yellow.label, .ui.yellow.button, .ui.yellow.buttons .button, .ui.yellow.labels .label {
  background-color: #FADC80 !important;
}

/* GREEN */
.ui.green.label, .ui.green.button, .ui.green.buttons .button, .ui.green.labels .label,
.ui.positive.label, .ui.positive.button, .ui.positive.buttons .button, .ui.positive.labels .label {
  background-color: #ABC96C !important;
}

.ui.green.button:hover, .ui.green.buttons .button:hover,
.ui.positive.button:hover, .ui.positive.buttons .button:hover {
  background-color: #9AB561 !important;
}

.ui.green.button:active, .ui.green.buttons .button:focus, .ui.green.button:focus, .ui.green.buttons .button:focus,
.ui.positive.button:active, .ui.positive.buttons .button:focus, .ui.positive.button:focus, .ui.positive.buttons .button:focus {
  background-color: #889F55 !important;
}


/* BLUE */
.ui.blue.label, .ui.blue.button, .ui.blue.buttons .button, .ui.blue.labels .label {
  background-color: #73C7FA !important;
}

.ui.blue.button:hover, .ui.blue.buttons .button:hover {
  background-color: #68B3E1 !important;
}

.ui.blue.button:active, .ui.blue.buttons .button:focus, .ui.blue.button:focus, .ui.blue.buttons .button:focus {
  background-color: #5A9CC6 !important;
}

/* RED */
.ui.red.label, .ui.red.button, .ui.red.buttons .button, .ui.red.labels .label {
  background-color: #E07C6A !important;
}

.ui.red.button:hover, .ui.red.buttons .button:hover {
  background-color: #CE7160 !important;
}

.ui.red.button:active, .ui.red.buttons .button:focus, .ui.red.button:focus, .ui.red.buttons .button:focus {
  background-color: #B96455 !important;
}

i.violet.icon {
  color: #4E5BC1 !important;
}

header {
  margin-top: -50px;
  padding: 90px 0 20px 0;
  /*background-color: #E4F0FF;*/
  background-color: #FAFAFA !important;
}

header.cover {
  margin-top: 0px;
  position: relative;
  min-height: 50%;
  /*background-image: url('https://a.cdn-hotels.com/gdcs/production38/d1731/633a29f0-c012-11e7-90f2-0242ac110004.jpg');*/
  /*background-position: center;
background-size: cover;*/
}

header.cover h1 {
  font-size: 5em;
}

header.cover .content {
  position: static;
}

header.cover .content .inner {
  text-align: center;
}

header.homepage {
  min-height: 500px;
  background-color: white !important;
  background: url('/files/bg.jpg') right center no-repeat;
  background-size: 46% auto;
}

header.homepage .title-holder {
  height: 320px;
}

header.homepage .title-inner {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
}

main {
  padding-top: 20px;
  padding-bottom: 100px;
  /*background-color: #E4F0FF;*/
  background-color: #FAFAFA;
}

main.form-padding {
  padding-bottom: 100px;
}

main.homepage {
  padding-bottom: 0;
  padding-top: 0;
}

main.homepage .container.fluid {
  padding: 0 30px;
}

main.homepage .segment.half {
  max-width: 500px;
  margin: auto;
}

section {
  padding: 50px 0px;
}

section.orange {
  background-color: #FCEDE5;
}

section.orange .ui.statistic .value, section.orange .ui.statistic .label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #EA8A5B;
}

section.white {
  background-color: white;
}

section.gray {
  background-color: #FAFAFA;
}

section.gray .ui.statistic .label, section.darkgray .ui.statistic .label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 1.2rem;
}

section.gray .ui.statistic .value, section.darkgray .ui.statistic .value {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #5458CA;
}

section.darkgray {
  background-color: #F6F6F6;
}

/*main .container:first-child {
  margin-top: 40px;
}*/

/*.requests.list {
}

  .requests.list .item {
    padding: 20px 0px !important;
  }

    .requests.list .item .header {
      margin-bottom: 10px;
    }

    .requests.list .item h4, .request.card h4 {
      display: inline-block;
      margin: 0px;
      margin-bottom: 10px;
      font-size: 1.15em;
      margin-top: -8px;
      padding-right: 3px;
    }

    .requests.list .item p {
      margin-bottom: 10px;
      font-size: 1.1em;
    }

    .requests.list .item .subline {
      color: darkblue;
    }*/

.ui.card > .content .star.icon {
  opacity: 1;
  pointer-events: none;
}

.request.card h3, .service.card h3 {
  margin-bottom: 8px;
  margin-top: 8px;
}

.request.card h3 {
  text-transform: none !important;
}

.request.card .subtag {
  color: #F48A68;
  font-size: 1.1em;
}

.request.card .cost {
  color: black;
  font-size: 1.1em;
}

.request.card .info {
  color: rgba(0, 0, 0, .4);
  margin-bottom: 5px;
}

.request.card .labels > .label {
  color: rgba(0, 0, 0, .6);
  margin-bottom: 5px;
  font-weight: 400;
  border-color: #b1aeae;
  color: #b1aeae;
  /*border-color: #FF9375;
  color: #FF9375;*/
}

.request .image.grid {
  max-width: initial;
}

.request .image.grid .column {
  padding: 0px !important;
}

.request .image.grid .img-upload {
  position: absolute;
  width: 100%;
  margin-top: -30px;
  color: gray;
}

.request.card .avatar.holder, .profile.card .avatar.holder {
  position: relative;
  width: 12em !important;
  height: 12em !important;
  margin: auto;
  margin-top: -9em;
  margin-bottom: -10px;
  border-radius: 50%;
  z-index: 3;
  background: white;
}

.request.card .avatar.holder {
  width: 10em !important;
  height: 10em !important;
  margin: auto;
  margin-top: -9em;
  margin-bottom: -10px;
}

.request.card .avatar.holder img.avatar, .profile.card .avatar.holder img.avatar {
  width: 12em !important;
  height: 12em !important;
  border: 3px solid white;
}

.request.card .avatar.holder img.avatar {
  width: 10em !important;
  height: 10em !important;
}

.request.card .avatar.holder .hover, .profile.card .avatar.holder .hover {
  position: absolute;
  top: 0px;
  bottom: 0px;
  right: 0px;
  left: 0px;
  border-radius: 50%;
  padding-top: 30%;
  text-align: center;
  vertical-align: middle;
  padding: 1em;
  background-color: rgba(255, 255, 255, .85);
  opacity: 0;
  line-height: 1;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  -webkit-transition: background-color .5s linear;
  transition: background-color .5s linear;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  will-change: opacity;
  z-index: 2;
}

.request.card .avatar.holder .hover, .profile.card .avatar.holder .hover:hover {
  opacity: 1;
}

.request.card .avatar.holder .hover, .profile.card .avatar.holder .hover .inner {
  padding-top: 70%;
}

@media (max-width: 786px) {
  .request.card .avatar.holder, .profile.card .avatar.holder {
    width: 10em !important;
    height: 10em !important;
    margin-top: -7em;
  }

  .request.card .avatar.holder img.avatar, .profile.card .avatar.holder img.avatar {
    width: 10em !important;
    height: 10em !important;
  }
}


.request.card .cover.holder, .profile.card .cover.holder {
  position: relative;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.request.card .cover.holder img.cover, .profile.card .cover.holder img.cover {
  width: 100%;
  height: auto;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.profile.card .cover.holder .hover {
  position: absolute;
  top: 0px;
  bottom: 0px;
  right: 0px;
  left: 0px;
  text-align: left;
  vertical-align: middle;
  padding: 1em;
  background-color: rgba(255, 255, 255, .85);
  opacity: 0;
  line-height: 1;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  -webkit-transition: background-color .5s linear;
  transition: background-color .5s linear;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  will-change: opacity;
  z-index: 2;
}

.profile.card .cover.holder .hover:hover {
  opacity: 1;
}

.request.card .header, .profile.card .header {
  border-top: 0px;
}

.request.card .subline, .profile.card .subline {
  font-size: 0.9em !important;
  color: #6669D0;
}

.request.card .bio, .profile.card .bio {
  font-size: 1.1em;
  text-align: left;
  line-height: 1.6;
}

.request.card .description {
  font-size: 1.1em;
  text-align: left;
  line-height: 1.6;
  max-height: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.request.card .show-more-link {
  margin: 10px;
}


.offer.card .cost, .supplier.services .card .cost {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.new.services .card {
  width: auto;
}

.profile.card .info div {
  padding-bottom: 8px;
}

/*.ui.service.card {
  background-size: 100%;
  background-position: center;
  border-radius: 20px !important;
  min-height: 215px;
  transition: background-size 0.2s ease-in;
  -moz-transition: background-size 0.2s ease-in;
  -web-kit-transition: background-size 0.2s ease-in;
  border: 0px !important;
}

.ui.cards a.service.card:hover,
a.ui.service.card:hover {
  background-size: 105%;
  background-position: center;
}

.ui.service.card .content {
  background: white !important;
  margin-top: 100px !important;
  margin-left: 50px !important;
  text-align: left !important;
}

.ui.service.card .header {
  font-size: 21px !important;
  margin-bottom: 10px !important;
}

.ui.service.card > :first-child, .ui.cards > .service.card > :first-child,
.ui.service.card > :first-child, .ui.cards > .service.card > :last-child,
.ui.service.card > :only-child, .ui.cards > .service.card > :only-child {
  border-radius: 18px !important;
  border-bottom-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
}*/

.ui.card.transparent {
  background-color: transparent;
}

.ui.card.transparent .basic.buttons .button {
  background-color: white !important;
}


/*.image.grid {
  min-height: 148px;
}*/
.hoverbox .center {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  height: 100%;
  text-align: center;
  vertical-align: middle;
  padding: 1em;
  background-color: rgba(255, 255, 255, .85);
  opacity: 0;
  line-height: 1;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  -webkit-transition: background-color .5s linear;
  transition: background-color .5s linear;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  will-change: opacity;
  z-index: 2;
}

.hoverbox:hover .center {
  opacity: 1;
}

.hoverbox .center .inner {
  margin-top: 30%;
}

.ui.card .buttons .button:last-of-type {
  margin-right: 0;
  border-top-right-radius: .28571429rem;
  border-bottom-right-radius: .28571429rem
}

.form .field.validation-right .validation-message {
  display: none !important;
}

.ui.form .field > label {
  font-size: 1em;
  line-height: 1.5em;
  font-weight: 600;
}

main.chat {
  overflow: hidden;
  margin: 0px;
  background-color: white;
}

main.chat .container:first-child {
  margin-top: 0px;
}

main.chat .convlist {
  position: absolute;
  top: 50px;
  bottom: 0px;
  left: 0px;
  width: 400px;
  border-right: 1px solid #eaeaea;
  overflow: auto;
}

main.chat .convlist h1 {
  margin: 20px 20px 10px 20px;
}

main.chat .convlist .item {
  padding: 10px !important;
  margin: 5px !important;
  display: block !important;
  border-left: 8px solid #EAEAEA;
  border-radius: 5px;
  color: black;
}

main.chat .convlist .item .header {
  color: #4E5BC1;
  font-weight: 400;
}

main.chat .convlist .item .description {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.05em;
  margin-top: 5px;
  color: rgba(0, 0, 0, 0.4);
}

main.chat .convlist .item .lastmsg {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.05em;
  margin-top: 5px;
  margin-bottom: 0px;
  color: black;
}

main.chat .convlist .item.unread {
  border-left: 8px solid #505EBA;
}

main.chat .convlist .item.unread .header {
  font-weight: bold;
}

main.chat .convlist .item.active {
  background-color: rgb(220, 236, 255);
}

main.chat .conversation {
  position: absolute;
  top: 50px;
  bottom: 0px;
  right: 0px;
  left: 400px;
}

main.chat .conversation main {
  background-color: white;
  padding: 0px !important;
}

main.chat .conversation .back {
  display: none;
}

main.chat .conversation .post {
  position: absolute;
  bottom: 0px;
  right: 0px;
  left: 0px;
  height: 44px;
  border-top: 1px solid #EAEAEA;
}

main.chat .conversation .post .input {
  height: 100%;
  border-radius: 0px !important;
}

main.chat .conversation .post input[type=text] {
  border: 0px;
  height: 100%;
  border-radius: 0px !important;
}

main.chat .conversation .post a, main.chat .conversation .post button {
  border: 0px;
  height: 43px;
  border-radius: 0px !important;
  background-color: rgb(220, 236, 255) !important;
}

main.chat .conversation .topbar {
  position: absolute;
  top: 0px;
  right: 0px;
  left: 0px;
  height: 60px;
  padding: 20px;
  border-bottom: 1px solid #EAEAEA;
}

main.chat .conversation .topbar .header {
  font-weight: bold;
  font-size: 1.2em;
  padding-right: 20px;
  color: #4E5BC1;
}

main.chat .conversation .topbar .info {
  padding-right: 20px;
}

main.chat .conversation .topbar .details {
  display: inline-block;
}

main.chat .conversation .topbar .links {
  float: right;
  display: inline-block;
  margin-top: -9px;
}

main.chat .conversation main {
  position: absolute;
  top: 60px;
  right: 0px;
  left: 0px;
  bottom: 44px;
  overflow: auto;
  margin: 0px;
}

main.chat .conversation main .inner {
  padding: 20px;
  height: 100%;
  overflow: auto;
}

main.chat .conversation main .msg {
  margin: 0px 0px;
  text-transform: none !important;
}

main.chat .conversation main .msg.first {
  margin-top: 25px;
}

main.chat .conversation main .msg .label {
  padding: 10px !important;
  text-transform: none !important;
  max-width: 75%;
  text-align: left;
  font-weight: normal;
  font-size: 12pt;
  line-height: 1.3;
  background-color: rgb(220, 236, 255);
  color: black;
  border-radius: 5px !important;
  margin: 1px !important;
}

main.chat .conversation main .msg.notmy .label {
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

main.chat .conversation main .msg .extra {
  color: darkgray;
  font-size: 9.5pt;
  margin-left: 0px 10px;
}

main.chat .conversation main .my.msg {
  text-align: right;
}

main.chat .conversation main .my.msg .label {
  background-color: #505EBA;
  color: white;
  text-transform: none;
  border-top-left-radius: 20px !important;
  border-bottom-left-radius: 20px !important;
}

main.chat .conversation main .msg.first .label {
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  margin-top: 10px;
}

main.chat .conversation main .msg.last .label {
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
  margin-bottom: 10px;
}

main.chat .conversation main .actions {
  margin-top: 20px;
}

/*.desktop-only {
  display: block !important;
}

.mobile-only {
  display: none !important;
}*/

@media only screen and (max-width: 767px) {
  /*.desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }*/
  header.homepage {
    background: white;
  }

  header .cover {
    min-height: 100%;
  }

  header.cover h1 {
    font-size: 3em;
  }

  header.homepage .title-holder {
    height: auto;
  }

  header.homepage .title-inner {
    position: relative;
    top: 0px;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    width: 100%;
  }

  header.homepage .title-inner .ui.button {
    margin-bottom: 10px;
  }

  /* Hero buttons on mobile — natural Fomantic width, just add gap when wrapped */
  header.homepage .title-inner .hero-btn {
    margin: 0 4px 10px;
  }

  .user-menu.item {
    padding: 10px !important;
  }

  main.homepage .container.fluid {
    padding: 0px 5px;
  }

  main.chat .convlist {
    width: 100%;
  }

  main.chat.expanded .convlist {
    display: none;
  }

  main.chat .conversation {
    display: none;
  }

  main.chat.expanded .conversation {
    display: block;
    left: 0px;
  }

  main.chat .conversation .back {
    display: inline-block;
    margin-right: 10px;
    vertical-align: top;
    margin-top: -8px;
  }

  main.chat .conversation .info {
    display: none;
  }

  main.chat .conversation main .msg .label {
    max-width: 90%;
  }

  .button-place {
    text-align: center;
  }

  .ui.card .grid, .ui.segment .grid {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .ui.card .grid .column, .ui.segment .grid .column {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .ui.card .button.fluid-mobile {
    width: 100%;
  }

  /*.ui.stackable.cards > .service.card {
    min-height: 50px;
    padding-top: 5px !important;
  }

  .ui.service.card .content {
    margin-top: 20px !important;
    margin-left: 50px !important;
  }*/
  .request .image.grid {
    max-width: initial;
    padding: 0px !important;
  }

  .request .image.grid .column {
    padding: 0px !important;
  }

  .ui.selection.dropdown .menu {
    max-height: 14em;
  }

  .profile.card .cover.holder .hover, .profile.card .avatar.holder .hover
  {
    opacity: 1;
    background: none;
  }
}

.ui.checkboxes .checkbox {
  padding-right: 10px;
}

.mobile.main.menu, .mobile.sec.menu {
  display: none;
}

.desktop.main.menu, .desktop.sec.menu {
}

@media only screen and (max-width: 767px) {
  
  header
  {
    padding: 90px 0 20px 0;
  }
  
  .mobile.main.menu {
    display: block;
  }

  .mobile.main.menu .item {
    height: 50px;
    padding: 15px;
  }

  .ui.menu.main.menu .ui.dropdown .menu > .item:hover
  .ui.menu.main.menu .ui.dropdown .menu > .item.username,
  .ui.menu.main.menu .ui.dropdown .menu > .item.username,
  .ui.menu.main.menu .ui.dropdown .menu > .item.username:hover {
    color: #4E5BC1 !important;
    cursor: default !important;
  }

  .mobile.main.menu .header.active, .mobile.main.menu .header:hover {
    background-color: transparent !important;
  }

  .desktop.main.menu {
    display: none;
  }

  .mobile.sec.menu {
    display: block;
    margin: 0px;
    border-radius: 0px;
    background-color: white !important;
  }

  .mobile.sec.menu .grid {
    margin: 0px;
  }

  .mobile.sec.menu .item {
    height: 50px;
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid rgba(34, 36, 38, .15) !important;
  }

  .ui.menu.sec.menu .ui.dropdown .menu > .item:hover
  .ui.menu.sec.menu .ui.dropdown .menu > .item.username,
  .ui.menu.sec.menu .ui.dropdown .menu > .item.username,
  .ui.menu.sec.menu .ui.dropdown .menu > .item.username:hover {
    color: #4E5BC1 !important;
    cursor: default !important;
    background-color: rgba(0, 0, 0, 0.5);
  }

  /*.mobile.sec.menu .header.active, .mobile.sec.menu .header:hover {
    background-color: transparent !important;
  }*/
  .mobile.sec.menu .item:active, .mobile.sec.menu .item:hover {
    background-color: #FAFAFA;
  }

  .desktop.sec.menu {
    display: none;
  }

  .mobile.middle.aligned {
    text-align: center !important;
  }
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.my-reconnect-modal > div {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  background-color: #fff;
  opacity: 0.8;
  text-align: center;
  font-weight: bold;
}

.components-reconnect-hide > div {
  display: none;
}

.components-reconnect-show > div {
  display: none;
}

.components-reconnect-show > .show {
  display: block;
}

.components-reconnect-failed > div {
  display: none;
}

.components-reconnect-failed > .failed {
  display: block;
}

.components-reconnect-refused > div {
  display: none;
}

.components-reconnect-refused > .refused {
  display: block;
}

/*  SCHEMA   */

.schema h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.schema .circle {
  border-radius: 50%;
  border: 5px solid #4E5BC1;
  padding: 23px;
  height: 120px;
  width: 120px;
  margin: auto;
}

.schema p {
  font-size: 1.2rem;
  line-height: 25px;
  color: gray;
  margin-bottom: 10px;
}

.schema.grid:not(:first-of-type) {
  margin-top: -14%;
}

.schema .step:not(:last-of-type) {
  margin-bottom: 50px;
}

.schema .large-circle {
  position: relative;
  width: 100%;
  border-radius: 50%;
  border: 3px solid #4E5BC1;
  margin: auto;
}

.schema .large-circle:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.schema .large-circle .content {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 10%;
}

.schema .large-circle .content h3 {
  margin-bottom: 20px;
  margin-top: 10px;
}

.schema .arrow {
  width: 75px;
}

.schema .arrow.right-down {
  transform: rotate(25deg);
  position: absolute;
  right: -75px;
  top: 65%;
}

.schema .arrow.left-down {
  transform: rotate(-205deg);
  position: absolute;
  left: -75px;
  top: 65%;
}

.schema .line {
  margin-top: 10px;
  width: 55px;
  background: #4E5BC1;
  height: 10px;
  float: left;
}

.schema .point {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 20px solid #4E5BC1;
  float: right;
}

.schema .comments.icon {
  margin-top: 35px;
}

@media (max-width: 1200px) {
  .schema .arrow.right-down {
    transform: rotate(30deg);
    right: -68px;
    top: 75%;
  }

  .schema .arrow.left-down {
    transform: rotate(-210deg);
    left: -68px;
    top: 75%;
  }
}

@media (max-width: 992px) {

  .schema.grid:not(:first-of-type) {
    margin-top: 5%;
  }

  .schema .arrow.right-down {
    transform: rotate(54deg);
    right: -6px;
    top: 96%;
  }

  .schema .arrow.left-down {
    transform: rotate(-234deg);
    left: -6px;
    top: 96%;
  }
}

@media (max-width: 786px) {
  .schema.grid .column {
    padding: 5px;
  }

  .schema.grid .column.hidden-mobile {
    display: none;
  }

  .schema .comments.icon {
    margin-top: 0px;
  }

  .schema.grid:not(:first-of-type) {
    margin-top: 18%;
  }

  .schema .arrow.right-down {
    transform: rotate(63deg);
    right: -3px;
    top: 105%;
  }

  .schema .arrow.left-down {
    transform: rotate(-243deg);
    left: -3px;
    top: 105%;
  }
}

@media (max-width: 600px) {
  .schema.grid .column {
    padding: 5px;
  }

  .schema.grid .column.hidden-mobile {
    display: none;
  }

  .schema .comments.icon {
    margin-top: 0px;
  }

  .schema.grid .icon {
    font-size: 2rem;
  }

  .schema.grid h3 {
    font-size: 1.5rem;
  }

  .schema.grid:not(:first-of-type) {
    margin-top: 18%;
  }

  .schema .arrow.right-down {
    transform: rotate(63deg);
    right: -3px;
    top: 105%;
  }

  .schema .arrow.left-down {
    transform: rotate(-243deg);
    left: -3px;
    top: 105%;
  }

  .schema.grid .button {
    display: none;
  }
}

@media (max-width: 350px) {
  .schema.grid .column {
    padding: 5px;
  }

  .schema.grid .column.hidden-mobile {
    display: none;
  }

  .schema.grid .icon {
    font-size: 1.5rem;
  }

  .schema.grid h3 {
    font-size: 1.3rem;
  }

  .schema .comments.icon {
    margin-top: 0px;
  }

  .schema.grid:not(:first-of-type) {
    margin-top: 18%;
  }

  .schema .arrow.right-down {
    transform: rotate(63deg);
    right: -3px;
    top: 105%;
  }

  .schema .arrow.left-down {
    transform: rotate(-243deg);
    left: -3px;
    top: 105%;
  }

  .schema.grid .button {
    display: none;
  }
}


/* HELPERS */


.valigned {
  position: absolute !important;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
}

.filtered:before, .overfiltered:after {
  position: absolute;
  top: 0px;
  bottom: 0px;
  right: 0px;
  left: 0px;
  display: block;
}

.filtered:before, .overfiltered:after {
  content: ' ';
}

.filtered * {
  position: relative;
}

.filtered[class*="dark"]:before, .overfiltered[class*="dark"]:after {
  background: black;
}

.filtered[class*="light"]:before, .overfiltered[class*="light"]:after {
  background: white;
}

.filtered[class*="90"]:before, .overfiltered[class*="90"]:after {
  opacity: .9;
}

.filtered[class*="80"]:before, .overfiltered[class*="80"]:after {
  opacity: .8;
}

.filtered[class*="70"]:before, .overfiltered[class*="70"]:after {
  opacity: .7;
}

.filtered[class*="60"]:before, .overfiltered[class*="60"]:after {
  opacity: .6;
}

.filtered[class*="50"]:before, .overfiltered[class*="50"]:after {
  opacity: .5;
}

.filtered[class*="40"]:before, .overfiltered[class*="40"]:after {
  opacity: .4;
}

.filtered[class*="30"]:before, .overfiltered[class*="30"]:after {
  opacity: .3;
}

.filtered[class*="20"]:before, .overfiltered[class*="20"]:after {
  opacity: .2;
}

.filtered[class*="10"]:before, .overfiltered[class*="10"]:after {
  opacity: .1;
}



.ui.request.card .cover.holder{height:250px;overflow:hidden}
.ui.request.card .cover.holder img.ui.cover.image{width:100%!important;height:250px!important;object-fit:cover;display:block}


/* fixed request card cover size */
.ui.request.card .cover.holder{height:250px!important;overflow:hidden!important}
.ui.request.card .cover.holder img.ui.cover.image{width:100%!important;height:250px!important;object-fit:cover!important;display:block!important}



/* Avatar fallback for users without photo */
.avatar-fallback{display:flex;align-items:center;justify-content:center;background:#e8e8f0;color:#8888aa;font-weight:600;font-size:2.5em}

/* Cards grid for listings and requests */
.sj-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 10px 0;
}
@media (max-width: 767px) {
    .sj-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Card equal height in grid */
.sj-cards-grid .ui.request.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sj-cards-grid .ui.request.card .content.description {
    flex: 1;
}

/* Center labels/tags in cards — asymetrické rozestupy: menší nahoře, větší dole */
.ui.request.card .ui.labels {
    text-align: center;
    padding: 2px 15px 14px;
}
.ui.request.card .ui.labels .label {
    margin: 0 3px;
}

/* All card sections — no flex-grow (prevents Fomantic stretching gaps) */
.ui.request.card > .content,
.ui.request.card > .ui.labels,
.ui.request.card > .center.aligned,
.ui.request.card > .show-more-link {
    flex-grow: 0 !important;
}
/* Only description grows to equalize card heights in grid */
.ui.request.card > .content.description {
    flex-grow: 1 !important;
}
/* Bio + description — tight spacing, no borders */
.ui.request.card .content.bio {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.5;
    padding: 8px 15px 2px !important;
    border: none !important;
}
.ui.request.card .content.description {
    padding: 2px 15px 10px !important;
    border: none !important;
}

/* Fix card grid alignment */
.sj-cards-grid {
    align-items: start;
}
.sj-cards-grid > .ui.request.card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Description overflow — match original (165px, Fomantic default padding) */

/* Ensure all cards same structure height */
.sj-cards-grid > .ui.card,
.sj-cards-grid > .ui.request.card {
    width: 100% !important;
}

/* Match original h3 size (21px computed) */
.ui.request.card h3 {
    font-size: 1.5em !important;
}
.ui.request.card .subline {
    font-size: 1em !important;
}
.ui.request.card .ui.labels .label {
    font-size: 0.78em !important;
    padding: 0.35em 0.75em !important;
}
.ui.request.card .content.description {
    font-size: 1.1em !important;
    line-height: 1.6;
    max-height: 165px;
}
.ui.request.card .show-more-link a {
    font-size: 1em;
}
.ui.request.card .extra.content {
    font-size: 0.95em !important;
}

/* Center show-more-link */
.ui.request.card .show-more-link {
    text-align: center !important;
    margin: 10px 0;
}

/* ========== Global button classes ========== */
.btn-purple { background-color: #6669D0 !important; color: white !important; }
.btn-purple:hover { background-color: #5558b8 !important; }
.btn-green { background-color: #B5B840 !important; color: white !important; }
.btn-green:hover { background-color: #a3a639 !important; }
.btn-orange { background-color: #e07b39 !important; color: white !important; }
.btn-orange:hover { background-color: #cc6d2f !important; }

/* ========== Service cards ========== */
.svc-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.svc-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.svc-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.svc-card-title { flex: 1; min-width: 0; }
.svc-name {
  font-size: 1.2em;
  font-weight: 600;
  color: #4E5BC1;
  text-decoration: none;
  display: block;
}
.svc-name:hover { text-decoration: underline; }
.svc-meta { margin-top: 4px; font-size: 0.9em; color: #888; }
.svc-category { color: #8B9D3A; font-weight: 500; }
.svc-location { margin-left: 10px; color: #999; }
.svc-card-body { color: #555; line-height: 1.6; margin-bottom: 15px; font-size: 0.95em; }
.svc-card-footer { color: #999; font-size: 0.85em; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.svc-card-footer i.icon { color: #bbb; }

/* Services page: single column layout (override sj-cards-grid 2-col) */
.sluzby-page .sj-cards-grid {
  grid-template-columns: 1fr !important;
}

/* Service cards — match original spojimese.cz/sluzby */
.sj-service-card { padding:0 !important; }
.sj-service-card > .content { padding:18px 22px !important; border:none !important; }
.sj-service-card h3.header { font-size:1.2em !important; margin:0 0 4px !important; }
.sj-service-card h3.header a { color:#4E5BC1 !important; text-decoration:none; }
.sj-service-card h3.header a:hover { text-decoration:underline; }
.sj-service-meta { font-size:0.9em; color:#888; margin-top:2px; }
.sj-service-meta .sj-service-cat { color:#6669D0; }
.sj-service-meta .sj-service-region { margin-left:12px; color:#888; }
.sj-service-meta .sj-service-region .icon { color:#6669D0; margin-right:2px; }
.sj-service-footer .sj-service-contacts { color:#888; }
.sj-service-footer .sj-service-contacts .icon { color:#6669D0; margin-right:4px; }

/* Service avatar (left side of card) */
.sj-service-avatar-col { display:flex !important; align-items:center; justify-content:center; padding-right:6px !important; }
.sj-service-avatar { width:70px; height:70px; border-radius:50%; object-fit:cover; border:2px solid #f0f0f0; background:#fff; display:flex; align-items:center; justify-content:center; }
.sj-service-avatar-placeholder { background:#f0f1ff; color:#6669D0; }
.sj-service-avatar-placeholder .icon { font-size:1.8em; margin:0; color:#6669D0; }
@media(max-width:767px){
  .sj-service-avatar { width:52px; height:52px; }
  .sj-service-avatar-placeholder .icon { font-size:1.4em; }
}
.sj-service-card > .content:nth-of-type(2) { padding-top:0 !important; color:#444; font-size:0.95em; line-height:1.5; }
.sj-service-card > .content:nth-of-type(2) p { margin:0; }
.sj-service-footer { padding:10px 22px !important; background:#fafafa; color:#888; font-size:0.85em; border-top:1px solid #f0f0f0; }
.sj-service-card .ui.positive.button { background:#ABC96C; color:#fff; font-weight:600; padding:10px 18px; }
.sj-service-card .ui.positive.button:hover { background:#9AB561; }
/* Identicon avatar (generated) */
.sj-service-avatar-initials { color:#fff !important; font-weight:600 !important; font-size:1.4em !important; font-family:Montserrat,sans-serif !important; border:none !important; letter-spacing:0.5px; }
/* Multiple categories */
.sj-service-meta .sj-service-cat { color:#6669D0; margin-right:10px; display:inline-block; }
.sj-service-meta .sj-service-cat + .sj-service-cat::before { content:'• '; color:#bbb; margin-right:6px; margin-left:-4px; }
@media(max-width:767px){ .sj-service-avatar-initials { font-size:1em !important; } }

/* Sidebar active style */
.ui.vertical.fluid.menu .item.active {
  border-left-color: #4E5BC1 !important;
  color: #4E5BC1 !important;
  font-weight: 600 !important;
}

.svc-footer-item { margin-left: 15px; }
.svc-contact-btn {
  background: #B5B840;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.svc-contact-btn:hover { background: #a3a639; }

/* Sidebar items */
.svc-sidebar-item { color: #4E5BC1; font-weight: 500; padding: 12px 15px; border-left: 3px solid transparent; }
.svc-sidebar-header { font-weight: 600; }
.svc-region-filter { padding: 15px; border-top: 1px solid #eee; margin-top: 10px; }
.svc-region-select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }

/* ========================================
   Unified header (logo) — applied to ALL static pages
   ======================================== */
.ui.top.fixed.desktop.main.menu .header.item { padding-top: 0 !important; padding-bottom: 0 !important; display: flex !important; align-items: center !important; }
.ui.top.fixed.desktop.main.menu .header.item img { height: 26px !important; width: auto !important; display: block; }

/* ========================================
   Unified footer — applied to ALL static pages
   ======================================== */
.ms-footer { margin-top: 0 !important; font-family: Montserrat, Arial, sans-serif; }
.ms-footer-top { background: #fafafa; border-top: 1px solid #ececec; padding: 28px 0; }
.ms-footer-wrap { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.ms-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; }
.ms-footer h4 { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: #4e4e4e; }
.ms-footer a { color: #6666c9; text-decoration: none; line-height: 1.8; }
.ms-footer a:hover { text-decoration: underline; }
/* Chat button — matches blog.spojimese.cz original (.btn.btn-orange.sr-button) */
.ms-footer-chat-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  background: #FF9375;
  color: #fff !important;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-size: 13px;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.ms-footer-chat-btn:hover { background: #e8874e; text-decoration: none !important; }
@media(max-width:900px) { .ms-footer-grid { grid-template-columns: 1fr; } }

/* Nav avatar + username */
.sj-nav-avatar { width: 28px !important; height: 28px !important; min-width: 28px; min-height: 28px; object-fit: cover !important; border-radius: 50% !important; vertical-align: middle; flex-shrink: 0; }
.sj-nav-username { margin-left: 6px; vertical-align: middle; }

/* Global popup overlay */
.sj-popup-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 9999; justify-content: center; align-items: center; }
.sj-popup-box { background: #fff; border-radius: 12px; padding: 30px 35px; max-width: 420px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* ========== Blog cards & pages ========== */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 10px 0;
}
@media (max-width: 992px) {
  .blog-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-cards-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.blog-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}
.blog-card-cover-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-cover-placeholder i {
  font-size: 2.5em;
  color: rgba(255,255,255,0.5);
}
.blog-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-cat {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8B9D3A;
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card:hover .blog-card-title { color: #4E5BC1; }
.blog-card-excerpt {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}
.blog-card-date {
  font-size: 0.8em;
  color: #999;
}

/* Blog category tabs */
.blog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.blog-tab {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.blog-tab:hover { border-color: #4E5BC1; color: #4E5BC1; }
.blog-tab.active {
  background: #4E5BC1;
  color: #fff;
  border-color: #4E5BC1;
}

/* Blog article detail */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}
.blog-article-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 24px;
}
.blog-article-back {
  display: inline-block;
  color: #888;
  font-size: 0.9em;
  text-decoration: none;
  margin-bottom: 8px;
}
.blog-article-back:hover { color: #4E5BC1; }
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px 0;
}
.blog-article-date {
  color: #888;
  font-size: 0.9em;
}
.blog-article-badge {
  display: inline-block;
  background: #f0f1f3;
  color: #555;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
}
a.blog-article-badge:hover {
  background: #e4e6ff;
  color: #4E5BC1;
}
.blog-article-badge-cat {
  background: #eef0ff;
  color: #4E5BC1;
}
a.blog-article-badge-cat:hover {
  background: #dce0ff;
}
.blog-article-cat {
  background: #f0f1f3;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  color: #4E5BC1;
}
.blog-article h1 {
  font-size: 2em;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin: 8px 0 16px;
  text-transform: none;
}
.blog-article-excerpt {
  font-size: 1.2em;
  line-height: 1.6;
  color: #444;
  font-weight: 500;
  margin: 0 0 24px 0;
  padding: 0;
  background: none;
  border: none;
}
.blog-article-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444;
  font-family: Montserrat, Arial, sans-serif;
}
.blog-article .blog-article-content h1,
.blog-article .blog-article-content h2 {
  font-size: 1.5em !important;
  color: #4E5BC1 !important;
  font-weight: 400 !important;
  margin: 1.8em 0 0.6em !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}
.blog-article .blog-article-content h3 {
  font-size: 1.25em !important;
  color: #4E5BC1 !important;
  font-weight: 500 !important;
  margin: 1.5em 0 0.5em !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}
.blog-article .blog-article-content h4 {
  font-size: 1.1em !important;
  color: #4E5BC1 !important;
  font-weight: 600 !important;
  margin: 1.2em 0 0.4em !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}
.blog-article .blog-article-content h5,
.blog-article .blog-article-content h6 {
  font-size: 1em !important;
  color: #4E5BC1 !important;
  font-weight: 600 !important;
  margin: 1em 0 0.3em !important;
  text-transform: none !important;
}
.blog-article-content p {
  margin: 0 0 1.1em 0;
  font-size: 1.1em;
  line-height: 1.8;
  color: #444;
}
.blog-article-content p.lead,
.blog-article-content .lead {
  font-size: 1.18em;
  color: #333;
  font-weight: 500;
  margin-bottom: 1.4em;
}
.blog-article-content strong { font-weight: 600; color: #222; }
.blog-article-content em { font-style: italic; }
.blog-article-content ul, .blog-article-content ol {
  padding-left: 1.6em;
  margin: 1em 0 1.2em;
}
.blog-article-content ul { list-style: disc; }
.blog-article-content ol { list-style: decimal; }
.blog-article-content li { margin-bottom: 0.5em; line-height: 1.7; }
.blog-article-content li > p { margin: 0 0 0.4em 0; }
.blog-article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 8px;
}
.blog-article-content a { color: #6669D0; text-decoration: underline; }
.blog-article-content a:hover { color: #4E5BC1; }
.blog-article-content blockquote {
  border-left: 3px solid #6669D0;
  padding: 4px 16px;
  margin: 1.2em 0;
  color: #555;
  font-style: italic;
}
.blog-article-content hr {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 2em 0;
}
.blog-article-content table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
}
.blog-article-content table td, .blog-article-content table th {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
}

/* Kompatibilita se starým obsahem — Bootstrap-styl třídy v blog obsahu */
.blog-article-content .btn,
.blog-article-content a.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s;
}
.blog-article-content .btn.btn-orange,
.blog-article-content a.btn-orange {
  background: #FF9375 !important;
  color: #fff !important;
}
.blog-article-content .btn.btn-orange:hover,
.blog-article-content a.btn-orange:hover {
  background: #e07b39 !important;
  color: #fff !important;
}
.blog-article-content .btn.btn-purple,
.blog-article-content a.btn-purple {
  background: #6669D0 !important;
  color: #fff !important;
}
.blog-article-content .btn.btn-purple:hover,
.blog-article-content a.btn-purple:hover {
  background: #5558b8 !important;
  color: #fff !important;
}
.blog-article-content .img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
}
.blog-article-content .text-center { text-align: center; }
.blog-article-content .col-sm-offset-3 {
  margin-left: 0;
  text-align: center;
}
.blog-article-content .section-heading {
  color: #4E5BC1;
}
/* Prázdné odstavce ze starého obsahu nezabírají místo */
.blog-article-content p:empty { display: none; }

/* Blog CTA box */
.blog-cta {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
  border-radius: 12px;
  text-align: center;
}
.blog-cta h3 { font-size: 1.3em; color: #333; margin-bottom: 8px; }
.blog-cta p { color: #666; margin-bottom: 16px; }

/* Blog related articles */
.blog-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}
.blog-related h3 {
  font-size: 1.15em;
  color: #333;
  margin-bottom: 16px;
}
.blog-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-related-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.blog-related-item:hover { background: #f5f5f5; }
.blog-related-item-title { font-weight: 600; color: #333; }
.blog-related-item:hover .blog-related-item-title { color: #4E5BC1; }
.blog-related-item-excerpt { font-size: 0.85em; color: #888; margin-top: 4px; }

/* Blog pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.blog-pagination a, .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  color: #555;
  border: 1px solid #ddd;
  transition: all 0.15s;
}
.blog-pagination a:hover { border-color: #4E5BC1; color: #4E5BC1; }
.blog-pagination .active {
  background: #4E5BC1;
  color: #fff;
  border-color: #4E5BC1;
}

/* Legal page (smluvni podminky, gdpr) */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #444;
}
.legal-page h1 { font-size: 1.8em; color: #333; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.25em; color: #333; margin-top: 1.5em; margin-bottom: 0.5em; }
.legal-page p { margin-bottom: 0.75em; }
.legal-page ul { padding-left: 1.5em; margin-bottom: 1em; }
.legal-page li { margin-bottom: 0.3em; }
.legal-page-updated { margin-top: 2em; padding-top: 1em; border-top: 1px solid #eee; font-size: 0.85em; color: #999; }

/* ===== Bottom Navigation (mobile) ===== */
.sj-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: transform 0.3s ease;
}
.sj-bottom-nav-hidden {
  transform: translateY(100%);
}
.sj-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #888;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  gap: 2px;
  min-width: 60px;
}
.sj-bottom-nav-item svg {
  width: 22px;
  height: 22px;
}
.sj-bottom-nav-item:hover {
  color: #6669d0;
  background: rgba(102,105,208,0.06);
}
.sj-bottom-nav-item.active {
  color: #6669d0;
  font-weight: 600;
}
.sj-bottom-nav-item.active svg {
  stroke-width: 2.5;
}

@media (max-width: 768px) {
  .sj-bottom-nav {
    display: flex;
  }
  /* Přidej spodní padding pro obsah aby nebyl zakrytý */
  body {
    padding-bottom: 70px;
  }
}

/* Fix: avatar and cover images must preserve aspect ratio */
.request.card .avatar.holder img.avatar,
.request.card .avatar.holder img.ui.avatar.image,
.profile.card .avatar.holder img.avatar,
.profile.card .avatar.holder img.ui.avatar.image {
  object-fit: cover !important;
  border-radius: 50% !important;
}
.request.card .cover.holder img,
.profile.card .cover.holder img {
  object-fit: cover !important;
}

/* Homepage 3-column grid */
.sj-cards-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 991px) {
  .sj-cards-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .sj-cards-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .sj-latest-requests, .sj-latest-listings {
    padding: 0 16px;
    box-sizing: border-box;
  }
  .sj-cards-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* === Request detail page === */
.sj-detail-cover {
  position: relative;
  height: 250px;
  background: center/cover no-repeat;
  border-radius: 12px 12px 0 0;
}
.sj-detail-avatar-wrap {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
}
.sj-detail-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sj-detail-avatar-fb {
  width: 100px;
  height: 100px;
  background: #e8e8f0;
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  color: #8888aa;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sj-detail-profile {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 16px;
}
.sj-detail-name {
  color: #4E5BC1 !important;
  text-transform: none !important;
}
.sj-detail-profile .subline {
  font-size: 0.9em !important;
  color: #6669D0;
  margin: 4px 0;
}
.sj-detail-bio {
  color: #555;
  max-width: 500px;
  margin: 8px auto 0;
  line-height: 1.5;
  font-size: 1.05em;
}
.sj-detail-breadcrumb {
  padding: 0 0 16px;
}
.sj-detail-breadcrumb a {
  color: #4E5BC1;
}
.sj-detail-card {
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sj-detail-title {
  color: #4E5BC1;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 14px;
}
.sj-detail-section-title {
  color: #4E5BC1;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 14px;
}
.sj-detail-section-title i.icon {
  color: #6669D0;
  margin-right: 6px;
}
.sj-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sj-card-footer.sj-detail-footer {
  margin: 14px -22px 0;
  padding: 10px 22px 0;
  border-top: 1px solid #f0f0f0;
}
.sj-detail-description {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #444;
  font-size: 1.05em;
}
.sj-detail-time {
  margin-top: 16px;
  color: #aaa;
  font-size: 0.85em;
}
.sj-detail-report {
  text-align: center;
  margin-top: 16px;
}
.sj-detail-report a {
  color: #999;
  font-size: 0.85em;
}
/* === Profile request/listing cards === */
.sj-profile-item {
  border-radius: 8px;
  margin-bottom: 16px;
}
.sj-profile-item-title {
  font-size: 1.1em;
  font-weight: 400;
  color: #4E5BC1;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}
.sj-profile-item-title:hover {
  color: #3a3d9e;
  text-decoration: underline;
}
.sj-profile-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
}
.sj-profile-item-desc {
  color: #444;
  line-height: 1.6;
  margin-bottom: 12px;
}
.sj-profile-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.sj-profile-item-footer .time {
  color: #aaa;
  font-size: 0.85em;
}
.sj-profile-item-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
}
.sj-profile-item-status.active {
  background: #b5cc18;
  color: #fff;
}
.sj-profile-item-status.pending {
  background: #fbbd08;
  color: #fff;
}
.sj-profile-item-status.rejected {
  background: #db2828;
  color: #fff;
}
.sj-profile-item-status.archived {
  background: #999;
  color: #fff;
}
.sj-profile-section-title {
  color: #4E5BC1;
  font-weight: 400;
  font-size: 1.3em;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}
.sj-profile-section {
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  padding: 18px 22px;
  margin: 20px 0;
}
.sj-profile-section .sj-req-card {
  box-shadow: none;
  border: 1px solid #eee;
}
.sj-profile-section .sj-profile-item {
  border: 0;
  box-shadow: none;
  padding: 16px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
}
.sj-profile-section .sj-profile-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.sj-profile-section .sj-profile-item:first-child {
  padding-top: 0;
}
.sj-listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.9em;
  margin-top: 8px;
}
.sj-listing-price {
  color: #4E5BC1;
  font-weight: 600;
}
.sj-listing-price.free {
  color: #888;
  font-weight: 400;
}
.sj-listing-date {
  color: #aaa;
}
.sj-listing-date .icon {
  color: #aaa;
  margin-right: 3px;
}

/* --- Karta žádosti (vzhled podle originálu spojimese.cz) --- */
.sj-req-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sj-req-card-body {
  padding: 20px 24px 16px;
}
.sj-req-title {
  display: block;
  color: #4E5BC1;
  font-size: 1.35em;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 10px;
}
.sj-req-title:hover {
  color: #3a3d9e;
  text-decoration: underline;
}
.sj-req-category {
  color: #FF8A65;
  font-size: 0.95em;
  margin-bottom: 6px;
}
.sj-req-category .icon {
  color: #FF8A65;
  margin-right: 2px;
}
.sj-req-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #6669D0;
  font-size: 0.92em;
  margin-bottom: 12px;
}
.sj-req-meta .icon {
  color: #6669D0;
  margin-right: 2px;
}
.sj-req-desc {
  color: #333;
  line-height: 1.55;
  margin: 2px 0 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.sj-req-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.88em;
  color: #888;
}
.sj-req-footer .icon { margin-right: 3px; color: #aaa; }
.sj-req-action {
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.sj-req-btn-ended {
  background: #e8e8e8;
  color: #777;
}
.sj-req-btn-ended:hover {
  background: #dcdcdc;
  color: #555;
}
.sj-req-btn-active {
  background: #ABC96C;
  color: #fff;
}
.sj-req-btn-active:hover {
  background: #9AB561;
  color: #fff;
}
.sj-req-btn-action {
  background: #FF9375;
  color: #fff;
  padding: 0;
}
.sj-req-btn-action .sj-req-action-inner {
  width: 100%;
  background: transparent;
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: inherit;
}
.sj-req-btn-action:hover { background: #EA8A5B; }

.sj-detail-report-input {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: inherit;
}

/* Card bio paragraph - shown below subline in request cards */
.ui.request.card .card-bio {
  text-align: center;
  color: #777;
  font-size: 0.9em;
  margin: 2px 0 0;
  padding: 0 15px;
}

/* Card spacing — use Fomantic defaults to match original */

/* ========================================
   Mobile top bar — split nav + user menu
   ======================================== */

.ms-mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fff;
  z-index: 1001;
  border-bottom: 1px solid rgba(34, 36, 38, .15);
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.ms-mobile-topbar .ms-mobile-logo img {
  height: 30px;
  width: auto;
}

.ms-mobile-topbar .ms-mobile-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ms-mobile-topbar .ms-mobile-user-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: #4E5BC1;
  font-weight: 500;
  border-radius: 6px;
  position: relative;
  text-decoration: none;
}

.ms-mobile-topbar .ms-mobile-user-trigger:active {
  background: #f0f0ff;
}

.ms-mobile-topbar .ms-mobile-user-trigger img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.ms-mobile-topbar .ms-mobile-user-trigger .ms-mobile-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 16px;
}

.ms-mobile-topbar .ms-hamburger-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  font-size: 20px;
  color: #4E5BC1;
}

.ms-mobile-topbar .ms-hamburger-btn:active {
  background: #f0f0ff;
  border-radius: 6px;
}

/* Mobile nav dropdown (hamburger) */
.ms-mobile-nav-dropdown {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  border-bottom: 1px solid #eee;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
}

.ms-mobile-nav-dropdown.open {
  display: block;
}

.ms-mobile-nav-dropdown a {
  display: block;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 500;
}

.ms-mobile-nav-dropdown a:active {
  background: #f8f8ff;
}

.ms-mobile-nav-dropdown a.active {
  color: #4E5BC1;
  font-weight: 600;
}

/* Mobile user dropdown */
.ms-mobile-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 200px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  border-radius: 6px;
  overflow: hidden;
}

.ms-mobile-user-dropdown.open {
  display: block;
}

.ms-mobile-user-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.ms-mobile-user-dropdown a:last-child {
  border-bottom: none;
}

.ms-mobile-user-dropdown a:active {
  background: #f8f8ff;
}

/* Mobile overlay */
.ms-mobile-overlay {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .3);
  z-index: 999;
}

.ms-mobile-overlay.open {
  display: block;
}

@media only screen and (max-width: 767px) {
  .ms-mobile-topbar {
    display: flex;
  }
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}


/* ========================================
   Request/Listing/Service Cards (api-connector)
   ======================================== */

.sj-card { background:#fff; border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,0.08); margin-bottom:24px; overflow:hidden; display:flex; flex-direction:column; }
.sj-card-cover { height:250px; background:linear-gradient(135deg,#dce3f0 0%,#c5cae9 40%,#b3c7e8 100%); display:flex; align-items:center; justify-content:center; background-size:cover; background-position:center; }
.sj-card-cover-icon { font-size:4em; color:rgba(255,255,255,0.4); }
.sj-card-avatar-wrap { text-align:center; margin-top:-70px; }
.sj-card-avatar { width:140px; height:140px; border-radius:50%; border:3px solid #fff; background:#f5f5f5; margin:0 auto; overflow:hidden; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,0.12); }
.sj-card-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.sj-card-avatar-icon { font-size:3em; color:#ccc; margin:0; }
.sj-card-name { text-align:center; padding:10px 24px 0; }
.sj-card-name-text { font-size:1.35em; color:#4a4a8a; font-weight:600; font-family:Montserrat,sans-serif; }
.sj-card-info-line { font-size:0.9em; color:#7b7bb8; margin:6px 0 2px; text-align:center; }
.sj-card-badge-wrap { text-align:center; padding:0 24px 14px; }
.sj-badge { display:inline-block; padding:2px 10px; border:1px solid #ccc; border-radius:4px; color:#888; font-size:0.75em; }
.sj-card-bio { padding:4px 24px 8px; color:#444; font-size:0.95em; line-height:1.5; overflow-wrap:break-word; max-height:120px; overflow:hidden; }
.sj-card-description { padding:0 24px 16px; color:#555; font-size:0.95em; line-height:1.5; overflow-wrap:break-word; max-height:100px; overflow:hidden; flex:1; }
.sj-card-link { text-align:center; padding:0 24px 6px; }
.sj-card-link a { color:#7b7bb8; font-size:0.95em; }
.sj-card-action { text-align:center; padding:8px 24px 16px; }
.sj-card-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px; padding:12px 24px; border-top:1px solid #f0f0f0; color:#aaa; font-size:0.85em; margin-top:auto; }
.sj-card-spacer { height:4px; }
.sj-listing-tag { color:#FF9375; border-color:#FF9375; }
.sj-card-listing { display:flex; flex-direction:column; }
.sj-card-listing-header { padding:20px 24px 10px; }
.sj-card-listing-title { font-size:1.4em; font-weight:400; color:#4E5BC1; text-decoration:none; line-height:1.28em; }
.sj-card-listing-title:hover { text-decoration:underline; }
.sj-card-service-meta { padding:0 24px 12px; }
.sj-card-service-meta-item { color:#666; font-size:0.9em; line-height:1.8; }
.sj-card-service-meta-item i.icon { color:#bbb; width:1.3em; }
.sj-region-select { width:100%; padding:8px 10px; border:1px solid #ddd; border-radius:4px; font-size:13px; font-family:Montserrat,Arial,sans-serif; background:#fff; color:#333; cursor:pointer; }
.sj-api-filter-bar { margin-bottom:20px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.sj-category-select { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:6px; font-size:14px; font-family:Montserrat,Arial,sans-serif; background:#fff; color:#333; cursor:pointer; margin-top:4px; }
.sj-loader { margin:40px auto; display:block; }

/* Report button in card footer */
.sj-report-btn { color:#bbb; text-decoration:none; margin-left:10px; transition:color 0.15s; font-size:1em; }
.sj-report-btn:hover { color:#e74c3c; }

/* Card footer layout (inside .extra.content) */
.request.card .extra.content .sj-card-footer { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:0; border:0; color:#888; font-size:0.9em; flex-wrap:wrap; }
.sj-card-footer-left { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sj-card-footer-right { display:flex; align-items:center; gap:6px; }

/* Request state badge */
.sj-state-badge { display:inline-block; padding:2px 8px; border-radius:10px; color:#fff; font-size:0.78em; font-weight:600; line-height:1.3; }

/* Tag label on card (secondary vs category) */
.sj-tag-label { background:#f4f2ff !important; color:#6669D0 !important; border-color:#e0dcf5 !important; }

/* Category filter: sidebar on desktop, dropdown on mobile */
.sj-cat-sidebar { display:block !important; }
.sj-cat-sidebar a.item { display:block !important; padding:10px 14px !important; }
.sj-cat-select-mobile-wrap { display:none; margin-bottom:16px; }
.sj-cat-select-mobile-label { font-weight:600; color:#4E5BC1; margin-bottom:6px; font-size:15px; }
.sj-cat-select-mobile-label i.icon { margin-right:6px; }
.sj-cat-select-mobile { width:100%; padding:12px 14px; border:1px solid #d0d4e4; border-radius:6px; font-size:15px; font-family:Montserrat,Arial,sans-serif; background:#fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234E5BC1' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center; background-size:10px; color:#333; cursor:pointer; -webkit-appearance:none; -moz-appearance:none; appearance:none; }
.sj-cat-select-mobile:focus { outline:none; border-color:#4E5BC1; box-shadow:0 0 0 2px rgba(78,91,193,0.15); }
@media (max-width: 767px) {
  .sj-cat-select-mobile-wrap { display:block; }
  .sj-cat-sidebar { display:none !important; }
}

/* Bio readonly block (předvyplněné bio z profilu) */
.sj-bio-readonly { margin-bottom:18px; }
.sj-bio-readonly label { display:block; margin-bottom:6px; font-weight:600; color:#555; font-size:13px; }
.sj-bio-readonly-text { background:#f5f5f5; border:1px solid #e0e0e0; border-radius:6px; padding:12px 14px; color:#555; white-space:pre-wrap; font-size:14px; line-height:1.5; cursor:not-allowed; user-select:text; }
.sj-bio-readonly-hint { display:block; margin-top:6px; color:#888; font-size:12px; line-height:1.4; }
.sj-bio-readonly-hint a { color:#d9534f; text-decoration:underline; }

/* === Sdílené formulářové třídy (login, registrace, pozadat-o-pomoc, nabidnout-zbozi, profil) === */
.sj-form-wrap { max-width:450px; margin:40px auto; padding:0 15px; }
.sj-form-wrap-wide { max-width:720px; margin:40px auto; padding:0 15px; }
.sj-form-wrap h2 { text-align:center; margin-bottom:30px; color:#4E5BC1; font-family:Montserrat,sans-serif; font-weight:400; }
.sj-form-wrap-wide h2 { text-align:center; margin-bottom:30px; color:#4E5BC1; font-family:Montserrat,sans-serif; font-weight:400; }
.sj-form-box { background:#fff; border-radius:8px; padding:30px; box-shadow:0 1px 2px rgba(34,36,38,0.15); border:1px solid rgba(34,36,38,0.15); }
.sj-form-divider { text-align:center; color:#888; margin:25px 0; position:relative; font-size:12px; text-transform:uppercase; letter-spacing:1px; }
.sj-form-divider::before, .sj-form-divider::after { content:""; position:absolute; top:50%; width:calc(50% - 30px); height:1px; background:#e5e5e5; }
.sj-form-divider::before { left:0; }
.sj-form-divider::after { right:0; }
.sj-form-subtext { text-align:center; margin-top:15px; color:#555; }
.sj-form-subtext a { color:#6669D0; text-decoration:none; }
.sj-form-subtext a:hover { text-decoration:underline; }
.sj-form-subtext p { font-weight:400; margin-bottom:10px; color:#555; }

/* Sdílená tlačítka — kanonické barvy z design.md */
.sj-btn-primary { background-color:#6669D0 !important; color:#fff !important; }
.sj-btn-primary:hover { background-color:#5456af !important; color:#fff !important; }
.sj-btn-primary:active, .sj-btn-primary:focus { background-color:#494b9a !important; color:#fff !important; }
.sj-btn-success { background-color:#ABC96C !important; color:#fff !important; }
.sj-btn-success:hover { background-color:#9AB561 !important; color:#fff !important; }
.sj-btn-success:active, .sj-btn-success:focus { background-color:#889F55 !important; color:#fff !important; }
.sj-btn-accent { background-color:#FF9375 !important; color:#fff !important; }
.sj-btn-accent:hover { background-color:#EA8A5B !important; color:#fff !important; }
.sj-btn-accent:active, .sj-btn-accent:focus { background-color:#BD7359 !important; color:#fff !important; }
.sj-btn-danger { background-color:#E07C6A !important; color:#fff !important; }
.sj-btn-danger:hover { background-color:#CE7160 !important; color:#fff !important; }
.sj-btn-outline { background:#fff !important; color:#6669D0 !important; border:1px solid #6669D0 !important; }
.sj-btn-outline:hover { background:#f0f1ff !important; color:#5456af !important; }

/* Sdílené alerty (chyby/úspěchy) uvnitř formulářů */
.sj-alert-error { display:none; color:#9f3a38; background:#fff6f6; border:1px solid #e0b4b4; border-radius:4px; padding:10px 14px; margin-bottom:15px; text-align:center; }
.sj-alert-success { display:none; color:#2c662d; background:#fcfff5; border:1px solid #a3c293; border-radius:4px; padding:10px 14px; margin-bottom:15px; text-align:center; }

/* Stepper — vícekrokové formuláře (pozadat-o-pomoc, případně další) */
.sj-stepper { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin:0 0 30px; padding:0; list-style:none; }
.sj-stepper-item { flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; position:relative; z-index:1; }
.sj-stepper-circle { width:40px; height:40px; border-radius:50%; background:#fff; border:2px solid #ddd; color:#888; display:flex; align-items:center; justify-content:center; font-family:Montserrat,Arial,Helvetica,sans-serif; font-weight:600; font-size:1em; transition:all 0.3s ease; }
.sj-stepper-item.active .sj-stepper-circle { background:#6669D0; border-color:#6669D0; color:#fff; box-shadow:0 2px 8px rgba(102,105,208,0.35); }
.sj-stepper-item.completed .sj-stepper-circle { background:#ABC96C; border-color:#ABC96C; color:#fff; }
.sj-stepper-label { margin-top:10px; font-family:Montserrat,Arial,Helvetica,sans-serif; font-size:0.85em; font-weight:500; color:#888; line-height:1.3; text-transform:uppercase; letter-spacing:0.02em; }
.sj-stepper-item.active .sj-stepper-label { color:#4E5BC1; font-weight:600; }
.sj-stepper-item.completed .sj-stepper-label { color:#889F55; font-weight:600; }
.sj-stepper-item:not(:last-child)::after { content:""; position:absolute; top:20px; left:calc(50% + 22px); right:calc(-50% + 22px); height:2px; background:#ddd; z-index:-1; transition:background 0.3s ease; }
.sj-stepper-item.completed:not(:last-child)::after { background:#ABC96C; }

/* Informační blok nad formulářem kroku — vysvětluje, co se teď stane */
.sj-step-intro { background:#f0f1ff; border-left:3px solid #6669D0; padding:14px 18px; border-radius:6px; margin-bottom:20px; color:#444; }
.sj-step-intro strong { color:#4E5BC1; font-weight:600; }
.sj-step-intro p { margin:0 0 8px 0; font-size:15px; line-height:1.55; }
.sj-step-intro p:last-child { margin-bottom:0; }

/* Banner "krok dokončen" — zobrazuje se na začátku dalšího kroku */
.sj-step-done { background:#f4f8ec; border-left:3px solid #ABC96C; padding:12px 16px; border-radius:6px; margin-bottom:18px; color:#4a6b1f; font-size:15px; line-height:1.5; display:flex; align-items:flex-start; gap:10px; }
.sj-step-done i.icon { color:#889F55; font-size:1.3em; margin:0; flex-shrink:0; line-height:1; }
.sj-step-done strong { color:#4a6b1f; font-weight:600; }
.sj-step-done p { margin:0; font-size:15px; line-height:1.5; }

@media (max-width:600px) {
    .sj-stepper-label { font-size:0.72em; }
    .sj-stepper-circle { width:34px; height:34px; font-size:0.9em; }
    .sj-stepper-item:not(:last-child)::after { top:17px; left:calc(50% + 19px); right:calc(-50% + 19px); }
    .sj-step-intro, .sj-step-done { font-size:0.9em; padding:12px 14px; }
}

/* =================================================================
   /nadace — stránka neziskové organizace
   Velikosti a rozestupy striktně podle design.md (h1 28px, h2 24px,
   p 15–16px v boxech, žádné ui huge).
   ================================================================= */
.nadace-page { max-width: 960px; margin: 0 auto; padding: 0 16px; font-size: 16px; background: #fff; }

/* Hero */
.nadace-hero { text-align:center; padding: 28px 16px 32px; background: linear-gradient(180deg, #f0f1ff 0%, #ffffff 100%); border-radius: 10px; margin: 16px 0 28px; }
.nadace-hero-logo { max-width: 72px; height:auto; margin: 0 auto 12px; display:block; opacity:0.92; }
.nadace-hero h1 { font-size: 28px; color:#4E5BC1; margin: 0 0 10px; line-height:1.25; text-transform:uppercase; font-weight:400; }
.nadace-hero-lead { font-size: 16px; line-height: 1.55; color:#333; max-width: 640px; margin: 0 auto 18px; font-weight:400; }
.nadace-hero-cta { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* Impact čísla */
.nadace-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.nadace-stat { background:#fff; border:1px solid #eee; border-radius:8px; padding: 16px 12px; text-align:center; }
.nadace-stat-num { font-family:Montserrat,Arial,Helvetica,sans-serif; font-size: 20px; font-weight:600; color:#4E5BC1; line-height:1.1; margin-bottom: 4px; }
.nadace-stat-lbl { font-size: 13px; color:#666; line-height:1.4; }

/* Obecná sekce */
.nadace-section { margin-bottom: 32px; }
.nadace-section h2 { color:#4E5BC1; font-size: 24px; text-transform:uppercase; margin: 0 0 12px; text-align:center; font-weight:400; line-height:35px; }
.nadace-section > p { font-size: 15px; line-height:1.6; color:#333; max-width: 720px; margin: 0 auto 10px; }

/* Pilíře */
.nadace-pillars { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.nadace-pillar { background:#fff; border:1px solid #eee; border-radius:8px; padding: 18px 16px; text-align:center; transition: box-shadow 0.2s ease; }
.nadace-pillar:hover { box-shadow:0 2px 10px rgba(78,91,193,0.08); }
.nadace-pillar-icon { font-size: 28px; margin-bottom: 8px; display:block; line-height:1; }
.nadace-pillar h3 { color:#4E5BC1; font-size: 16px; margin: 0 0 8px; text-transform:uppercase; font-weight:500; }
.nadace-pillar p { font-size: 14px; line-height:1.55; color:#555; margin:0; }

/* Jak přispět */
.nadace-donate { background:#fff; border:1px solid #eee; border-radius:10px; padding: 22px 18px; }
.nadace-donate-options { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.nadace-donate-card { background:#fafbff; border:1px solid #e4e7f7; border-radius:8px; padding: 16px 14px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.nadace-donate-card h3 { color:#4E5BC1; font-size: 14px; margin: 0 0 10px; text-transform:uppercase; font-weight:500; }
.nadace-donate-account { font-family:Montserrat,Arial,Helvetica,sans-serif; font-size: 16px; font-weight:600; color:#4E5BC1; letter-spacing: 0.3px; margin: 4px 0 8px; }
.nadace-donate-hint { font-size: 12px; color:#666; line-height:1.5; margin: 0 0 10px; }
.nadace-qr { max-width: 130px; width:100%; height:auto; margin: 2px 0 8px; border-radius: 4px; }
.nadace-donate-preset { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-top: 6px; }
.nadace-preset { background:#fff; border:1px solid #ABC96C; color:#4a6b1f; padding: 4px 10px; border-radius: 14px; font-size: 12px; font-weight:600; }

/* Transparentnost */
.nadace-transparency { background:#f4f8ec; border:1px solid #dbe6c3; border-radius:10px; padding: 20px 18px; }
.nadace-transparency h2 { color:#4a6b1f; }
.nadace-transp-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.nadace-transp-item { padding: 0 4px; }
.nadace-transp-item strong { display:block; color:#4a6b1f; font-size: 14px; margin-bottom: 6px; font-weight:600; }
.nadace-transp-item p { font-size: 13px; line-height:1.55; color:#333; margin: 0 0 8px; }

/* Final CTA */
.nadace-final-cta { text-align:center; background: linear-gradient(180deg, #4E5BC1 0%, #6669D0 100%); border-radius:10px; padding: 28px 20px; color:#fff; margin-top: 16px; }
.nadace-final-cta h2 { color:#fff; font-size: 24px; margin: 0 0 10px; text-transform:uppercase; font-weight:400; line-height:35px; }
.nadace-final-cta p { color:#e7e9ff; font-size: 15px; line-height:1.55; max-width: 560px; margin: 0 auto 16px; }
.nadace-final-cta .ui.button { margin: 4px 6px; }
.nadace-final-cta .ui.primary.button { background:#fff !important; color:#4E5BC1 !important; }
.nadace-final-cta .ui.basic.button { color:#fff !important; box-shadow:inset 0 0 0 1px #fff !important; background:transparent !important; }
.nadace-final-cta .ui.basic.button:hover { background: rgba(255,255,255,0.1) !important; }

.nadace-legal { text-align:center; font-size: 12px; color:#888; line-height:1.6; margin: 22px auto 16px; max-width: 640px; }
.nadace-legal a { color:#6669D0; }

@media (max-width: 820px) {
    .nadace-stats, .nadace-pillars, .nadace-donate-options, .nadace-transp-grid { grid-template-columns: 1fr; }
    .nadace-hero { padding: 22px 14px 26px; }
    .nadace-hero h1 { font-size: 22px; }
    .nadace-section h2 { font-size: 20px; line-height:28px; }
    .nadace-donate { padding: 16px 14px; }
    .nadace-final-cta { padding: 22px 16px; }
    .nadace-final-cta h2 { font-size: 20px; line-height:28px; }
}

/* Povinné pole: ponech * vedle labelu, ale NE červeně — červená má být rezervovaná pro chybový stav (.field.error). */
.ui.form .required.field > label::after,
.ui.form .required.field > .checkbox::after {
  color: inherit !important;
}

/* Neutralizace všech barevných stavů polí ve formulářích — prohlížeč (zejména Chrome) barví pole při autofillu (žlutě po dokončení, růžově/světle při autofill-preview u prázdných required polí). Musíme přebít všechny varianty. */

/* 1) Základ: všechna pole ve .ui.form mají bílé pozadí. */
.ui.form input[type="text"],
.ui.form input[type="email"],
.ui.form input[type="password"],
.ui.form input[type="tel"],
.ui.form input[type="number"],
.ui.form input[type="url"],
.ui.form input[type="search"],
.ui.form input[type="date"],
.ui.form textarea,
.ui.form select,
.ui.form .ui.input input,
.ui.form .ui.icon.input input {
  background: #fff !important;
  background-color: #fff !important;
}

/* 2) Chrome/Safari autofill (dokončený i preview stav). */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #333 !important;
  caret-color: #333 !important;
  transition: background-color 600000s ease-in-out 0s, color 600000s ease-in-out 0s !important;
}

/* 3) Firefox autofill (růžové pozadí). */
input:autofill,
textarea:autofill,
select:autofill {
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

/* 4) Fomantic UI přebíjí pole stavy :invalid (prázdné required) růžovou (#fff6f6) a .field.error také. Zrušíme — chybový stav bude indikován jen textem .field-error pod polem. */
.ui.form:not(.initial) .field input:invalid,
.ui.form .field input:invalid,
.ui.form .field textarea:invalid,
.ui.form .field select:invalid,
.ui.form .field.error input,
.ui.form .field.error textarea,
.ui.form .field.error select,
.ui.form .fields.error .field input,
.ui.form .field.error .ui.input input,
.ui.form .required.field input,
.ui.form .required.field textarea,
.ui.form .required.field select,
.ui.form .required.field .ui.input input {
  background: #fff !important;
  background-color: #fff !important;
  color: #333 !important;
  border-color: rgba(34,36,38,.15) !important;
}
