:root {
  --segsmart-primary: #0030c6;
  --segsmart-secondary: #0077ff;
}

img {
  max-width: 100%;
}

.element-loading {
  position: relative;
  min-height: 50px;
}

.element-loading:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
}

.element-loading:after {
  content: '';
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  border: 5px solid #888;
  border-top-color: var(--segsmart-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.form-search {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 1px solid #777;
  border-radius: 2rem;
  overflow: hidden;
}

form.form-search input {
  border: 0;
  background: transparent !important;
}

textarea:hover, input:hover, a:hover, button:hover,
textarea:focus, input:focus, a:focus, button:focus,
textarea:active, input:active, a:active, button:active {
  outline: none !important;
  box-shadow: none !important;
}

form.form-search button {
  border-radius: 0;
  border: 0;
  border-left: 1px solid;
}

.btn-custom {
  position: relative;
  background: var(--segsmart-primary);
  color: #fff;
  overflow: hidden;
}

.btn-custom span {
  position: relative;
  z-index: 1;
}

.btn-custom:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  background-image: linear-gradient(90deg, transparent 35%, #fff5);
  z-index: 0;
  transition: .2s ease-in-out;
}

.btn-custom:hover:before {
  left: -50%;
}

.btn-outline-custom {
  position: relative;
  background: transparent;
  color: var(--segsmart-primary);
  border-color: var(--segsmart-primary);
  overflow: hidden;
}

.btn-postar {
  white-space: nowrap;
}

.btn-outline-custom span {
  position: relative;
  z-index: 1;
}

.btn-outline-custom:before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 150%;
  height: 100%;
  background-image: linear-gradient(90deg, transparent, #fff5);
  z-index: 0;
  transition: .2s ease-in-out;
  opacity: 0;
}

.btn-outline-custom:hover {
  color: #fff;
  background-color: var(--segsmart-primary);
  border-color: var(--segsmart-primary);
}

.btn-outline-custom:hover:before {
  opacity: 1;
}

.post-preview-profile img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 50%;
}

.item-post-header img.post-profile-picture {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 40px;
  border: 3px solid #7775;
}

.item-post-body {
  width: 100%;
  min-height: 300px;
  border: 1px solid #3331;
  border-radius: 5px;
  padding: 0;
  margin: 0;
}

.item-post-body .item,
.item-post-body video {
  border-radius: 5px;
  overflow: hidden;
}

.item-post-body .item {
}

.item-post-body video {
  width: 100%;
  height: 100%;
  max-height: 575px;
}

form.post-comment {
  position: relative;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #7778;
}

form.post-comment input {
  padding: 5px 75px 5px 10px;
  border: 0;
  outline: none;
  box-shadow: none;
  width: 100%;
}

form.post-comment button {
  position: absolute;
  height: 100%;
  right: 0;
  text-decoration: none;
  color: var(--segsmart-primary);
}

form.post-comment button:hover {
  color: var(--segsmart-secondary);
}

.post-form {
  height: 80vh;
  max-height: 80vh;
  display: block;
}

.post-form .post-chose-type {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  height: 100%;
  align-items: center;
}

.post-form .post-chose-type button {
  width: fit-content;
}

.post-fotos,
.post-video {
  height: 375px;
  position: relative;
  z-index: 0;
}

.post-fotos input, .post-video input {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block !important;
  z-index: 9999;
  opacity: 0;
  cursor: pointer;
}

.item-post-body .post-fotos,
.item-post-body .post-video {
  height: 600px;
}

.post-fotos .post-fotos-list label:has(.aviso-fotos),
.post-video .post-video-list label:has(.aviso-video) {
  padding: 35px 0;
  border: 2px dashed;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #f0f0f0;
}

.post-fotos .aviso-fotos {
  text-align: center;
}

.post-fotos .aviso-fotos div {
  font-size: 1.3rem;
}

.post-fotos .aviso-fotos div i {
  font-size: 5rem;
}

#modalPostar textarea {
  border: 0;
  border-radius: 0;
  height: 100px;
}

div#modalPostar .modal-content {
  border-radius: 20px;
}

.post-fotos-list,
.post-video-list {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  max-height: 65vh;
  overflow: hidden;
}

.post-video-list video {
  width: 100%;
  height: 100%;
}

.post-fotos-list .owl-post-previa .owl-item {
  width: 100%;
  height: 100%;
}

.post-fotos-list .owl-post-previa .owl-item img {
  max-width: 100%;
  height: 375px;
  margin: auto;
  object-fit: cover;
  object-position: center;
}

.post-fotos-list .owl-nav button, .owl-post-photos .owl-nav button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  z-index: 999;
  border-radius: 50% !important;
  border: 1px solid #fff !important;
  font-size: 2rem !important;
  line-height: 1rem !important;
  background: #fff7 !important;
  cursor: pointer;
}

.post-fotos-list .owl-nav button.owl-prev, .owl-post-photos .owl-nav button.owl-prev {
  left: 15px
}


.post-fotos-list .owl-nav button.owl-next, .owl-post-photos .owl-nav button.owl-next {
  right: 15px
}

.post-fotos-list .owl-dots, .owl-post-photos .owl-dots {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.owl-post-photos img {
  height: 600px;
  object-fit: cover;
  object-position: center;
}

.item-post-comment {
  position: relative;
}

.item-post-comment .item-post-comment-profile {
  width: 50px;
  height: 50px;
  overflow: hidden;
  object-fit: cover;
  border-radius: 30px;
  border: 3px solid #7775;
}

.item-post-comment .item-post-comment-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-post-comment .btn-delete-comment {
  opacity: 0;
  transition: .2s ease-in-out;
}

.item-post-comment:hover .btn-delete-comment {
  opacity: 1;
}

.post-section-comments {
  height: 375px;
  overflow-y: auto;
  overflow-x: hidden;
}

#posts-details-section .item-post-body,
#posts-details-section .item-post-body .owl-post-photos img {
  height: 570px;
  object-fit: contain;
  background: #9991;
}

.item-post .owl-nav {
  margin-top: 0;
}

.item-post {
  position: relative;
}

.item-post .btn-delete-post {
  position: absolute;
  right: 0;
  transition: .2s ease-in-out;
  opacity: 0;
}

.item-post:hover .btn-delete-post {
  opacity: 1;
}

.js-bs-select-dropdown .dropdown-menu {
  max-height: 250px;
  overflow: auto;
  max-width: 300px;
  padding: 5px 0 !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (min-height: 1080px) {
  #posts-details-section .item-post-body,
  #posts-details-section .item-post-body .owl-post-photos img {
    height: 850px;
  }

  .post-section-comments {
    height: 650px;
  }
}