body {
  background-color: var(--cor_fundo);
  margin: 0px;
  /* font-family: Arial; */
}

.header {
  background-color: var(--cor_principal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.company-name {
  color: var(--cor_fonte_header);
  /* font-size: 1.8rem;
    font-weight: 600; */
}

.card-title,
.card-text,
.dashboard-title {
  color: var(--cor_texto_principal);
}

.banner {
  background-color: #4e73df;
  color: white;
  transition: transform 0.3s ease;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  z-index: 1;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(78, 115, 223, 0.7), rgba(78, 115, 223, 0.8));
  z-index: -1;
}

.banner:hover {
  transform: translateY(-5px);
}

.banner-secondary {
  background-color: transparent;
}

.banner-secondary::before {
  background: linear-gradient(rgba(28, 200, 138, 0.7), rgba(28, 200, 138, 0.8));
}

.banner h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.banner p {
  opacity: 0.9;
}

.btn-primary,
.banner .btn-light,
.banner .btn-dark {
  background-color: var(--cor_principal);
  color: var(--cor_fonte_header);
  border-color: var(--cor_principal);
}

.btn-primary:hover,
.banner .btn-light:hover,
.banner .btn-dark:hover {
  background-color: var(--cor_fonte_header);
  color: var(--cor_principal);
  border-color: var(--cor_principal);
}

.btn-outline-primary {
  background-color: var(--cor_fonte_header);
  color: var(--cor_principal);
  border-color: var(--cor_principal);
}

.btn-outline-primary:hover {
  background-color: var(--cor_principal);
  color: var(--cor_fonte_header);
  border-color: var(--cor_fonte_header);
}

.profile-btn {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  box-sizing: border-box;
  border: none;
}

.notifications-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 40vw !important;
  max-width: 40vw !important;
  height: 100vh !important;
  background-color: white !important;
  border-left: 1px solid #dde3ee !important;
  border-radius: 0 !important;
  box-shadow: -6px 0 24px rgba(15, 23, 42, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  z-index: 2000 !important;
  transform: translateX(100%) !important;
  visibility: hidden !important;
  transition: transform 0.3s ease !important;
  pointer-events: none !important;
}

.notifications-sidebar.active {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


.notifications-header {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 8px;
}

.notifications-content {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}

.notifications-content .alert {
  margin-bottom: 1rem;
}

.notifications-content h6 {
  margin-bottom: 0.5rem;
}

.notifications-content small {
  display: block;
  color: #6c757d;
  margin-top: 0.5rem;
}

.notifications-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-count {
  font-size: 0.75rem;
}

.footer {
  /* background-color: var(--cor_principal); */
  background-color: white;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, .1);
}

.footer h5 {
  color: var(--cor_fonte_header);
  margin-bottom: 1rem;
}

.footer p {
  /* color: var(--cor_fonte_header); */
  color: black;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--cor_fonte_header);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #2c3e50;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--cor_fonte_header);
}

.social-links a:hover {
  color: #2c3e50;
}

@media (max-width: 991.98px) {
  .notifications-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    border-left: 0 !important;
  }
}

/* Chat Styles */
#chat-container {
  position: fixed;
  bottom: 0;
  right: 15px;
  display: flex;
  align-items: flex-end;
  z-index: 1050;
}

#online-users-bar {
  width: 250px;
  background-color: #f8f9fa;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  margin-right: 15px;
}

.online-users-header {
  padding: 10px;
  background-color: var(--cor_principal, #007bff);
  color: var(--cor_fonte_header, #ffffff);
  font-weight: bold;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

#online-users-list {
  list-style: none;
  padding: 5px 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  /* Hidden by default */
}

#online-users-list li {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
}

#online-users-list li:hover {
  background-color: #e9ecef;
}

#online-users-list li::before {
  content: '●';
  color: #28a745;
  /* Green dot for online status */
  margin-right: 8px;
  font-size: 0.8em;
}


.chat-window {
  width: 300px;
  background-color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  margin-left: 15px;
}

.chat-header {
  padding: 10px;
  background-color: var(--cor_principal, #007bff);
  color: var(--cor_fonte_header, #ffffff);
  font-weight: bold;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.chat-actions button {
  background: none;
  border: none;
  color: var(--cor_fonte_header, #ffffff);
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 5px;
}

.chat-body {
  display: flex;
  flex-direction: column;
  height: 280px;
}

.chat-messages {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f1f1f1;
  font-size: 0.9rem;
}

.chat-messages .message {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  max-width: 85%;
}

.chat-messages .message.sent {
  background-color: #dcf8c6;
  align-self: flex-end;
  text-align: right;
  margin-left: auto;
}

.chat-messages .message.received {
  background-color: #fff;
  align-self: flex-start;
  text-align: left;
}

.chat-input {
  border: none;
  border-top: 1px solid #ddd;
  padding: 10px;
  width: 100%;
}

.chat-input:focus {
  outline: none;
}

.menu-lateral {
  color: gray;
}

.hover-lift {
  transition: all 0.2s ease-in-out;
}


.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Moved from layout_hub/head.php */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1055;
}

.toast.success {
  background-color: #d4edda;
  color: #155724;
}

.toast.error {
  background-color: #f8d7da;
  color: #721c24;
}

.modal.fade.modal-slide .modal-dialog {
  transform: translateY(-50px);
  transition: transform 0.3s ease-out;
}

.modal.fade.modal-slide.show .modal-dialog {
  transform: translateY(0);
}

main {
  background-color: var(--cor_fundo);
}

main.flex-grow-1 {
  overflow-x: hidden;
}

/* Ajuste de altura para o logo, para manter a proporção da imagem original */
.logo-footer {
  height: 4rem;
  /* 64px */
}

/* Estilo para os links dos ícones sociais */
.social-link {
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 0.8;
}

/* Estilo para os pontinhos do Slick Carousel */
.slick-dots li button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--cor_principal);
  margin: 0 5px;
  padding: 0;
  border: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.slick-dots li.slick-active button {
  opacity: 1;
}

/* Ajuste de espaçamento para os pontinhos do Slick Carousel */
.slick-dots {
  margin-top: -20px;
  /* Ajuste este valor conforme necessário */
  /* Ensure dots are visible on mobile */
  display: block !important;
  /* Make sure dots are displayed */
  position: absolute;
  /* Position relative to the carousel container */
  bottom: 0px;
  /* Adjust as needed */
  width: 100%;
  text-align: center;
  z-index: 10;
  /* Ensure dots are above the image */
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767.98px) {

  /* Para dispositivos móveis */
  .slick-carousel {
    height: auto !important;
    /* Garante que o contêiner do carrossel se ajuste */
    overflow: hidden;
    /* Adicionado para conter o conteúdo */
  }

  .slick-carousel .slick-list {
    height: auto !important;
    /* Garante que a altura se ajuste ao conteúdo */
    overflow: hidden;
    /* Garante que o conteúdo que exceder a altura seja cortado */
  }

  .slick-carousel .slick-slide img {
    max-height: 306px;
    /* Altura máxima da imagem no mobile */
    width: auto;
    /* Garante que a largura se ajuste proporcionalmente */
    margin: 0 auto;
    /* Centraliza a imagem se ela for menor que a largura total */
  }
}

@media (min-width: 992px) {

  body {
    min-height: 100vh;
  }

  /* Para dispositivos large (lg) */
  .slick-carousel .slick-slide img {
    min-height: 351px;
  }

  /* Estilos para header fixo no desktop */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  main.flex-grow-1 {
    padding-top: 100px;
    /* Ajuste este valor se a altura do header for diferente */
  }
}

/* Estilos para o menu lateral */
.sidebar {
  position: fixed;
  top: 88px;
  /* Altura do header */
  left: 0;
  width: 280px;
  height: calc(100vh - 88px);
  background-color: #f0f2f5;
  padding: 1rem;
  padding-top: 1.75rem;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #050505;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.sidebar-item:hover {
  background-color: #e4e6e9;
}

.sidebar-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.sidebar-item span {
  font-weight: 500;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .sidebar {
    display: none;
    /* Oculta o menu lateral em telas menores */
  }

  main.flex-grow-1 {
    width: 100%;
    /* Garante que o conteúdo principal ocupe toda a largura disponível em telas menores */
    margin-left: 0;
    /* Remove a margem esquerda quando o sidebar está oculto */
    margin-bottom: 70px;
    /* Espaço para não colar no bottom-nav fixo */
  }
}

@media (min-width: 992px) {
  main.flex-grow-1 {
    width: calc(100% - 280px);
    margin-left: 280px;
    /* Largura do sidebar */
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Estilos para a barra de navegação inferior */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  padding: 0.35rem 0;
  z-index: 1030;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #65676b;
  text-decoration: none;
  min-width: 0;
}

.bottom-nav-item.active {
  color: var(--cor_principal);
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-right: 0;
  margin-bottom: 0.1rem;
}

.bottom-nav-item span {
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.1;
  max-width: 75px;
}

.floating-sidebar {
  position: fixed;
  top: 88px;
  width: 300px;
  height: calc(100vh - 88px);
  background-color: #fff;
  padding: 1rem;
  padding-top: 1.75rem;
  overflow-y: auto;
  z-index: 1020;
  display: none;
  border-left: 1px solid #ddd;
  border-radius: 0.5rem;
}

.floating-sidebar.active {
  display: block;
}

.notificacao {
  font-size: 35px;
}

.status-chat-icon {
  font-size: 35px;
}

.notifications-btn {
  background-color: transparent !important;
  border: none;
  color: var(--cor_fonte_header);
  text-align: center;
  padding: 0;
}

.notifications-btn .position-relative {
  display: inline-block;
}

.notifications-btn .notification-count {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(25%, -25%);
}

.notification-label {
  font-size: 12px;
  display: block;
  margin-top: -5px;
  color: var(--cor_fonte_header);
}

.profile-dropdown .dropdown-toggle::after {
  display: none;
}

.profile-image-container {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}


.profile-caret {
  position: absolute;
  bottom: 0;
  right: 0;
  color: white;
  background-color: #212529;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Header Utilities */
.header-logo-img {
  max-height: 40px;
}

@media (min-width: 992px) {
  .header-logo-img {
    max-height: 50px;
  }
}

.header-logo-text {
  font-weight: bold;
  color: var(--cor_fonte_header);
  font-size: 1.2rem;
}

.bg-principal-color-header {
  background-color: var(--cor_principal) !important;
  color: var(--cor_fonte_header) !important;
}


/* Offcanvas Menu */
.nav-link-custom {
  background-color: var(--cor_principal);
  color: var(--cor_fonte_header);
}

/* InstitutionsPages Styles */

.gallery-card {
  position: relative;
}

.gallery-card .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gallery-img,
.gallery-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.img-placeholder {
  background-color: #6c757d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.brand-stats,
.brand-stats ul {
  font-size: 16px;
  color: gray;
  list-style: none;
}

.brand-stats li {
  display: flex;
  align-items: center;
  min-height: 24px;
  /* Garante uma altura mínima para ajudar na centralização */
}

.brand-stats a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-stats i {
  margin-right: 0.35rem;
  font-size: 1.2rem;
  /* Aumenta levemente os ícones de texto (local/prédio) */
}

.brand-stats a i {
  font-size: 1.5rem;
  /* Tamanho dos ícones de redes sociais */
  margin-right: 0;
  /* Remove margem extra para ícones que são apenas o link */
}

/* Nav Tabs Overrides */
.nav-tabs .nav-link.active {
  font-weight: 600;
  border-bottom: 3px solid var(--cor_principal);
}

.nav-tabs .nav-link {
  color: black;
}

/* Utilities extracted from inline styles */
.banner-bg {
  background-color: transparent !important;
}

.banner-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .banner-img {
    height: auto;
    aspect-ratio: 21 / 5;
    /* Proporção aproximada do banner desktop (ex: 1050x250) */
    object-fit: contain;
    /* Garante que a imagem inteira apareça no espaço */
    background-color: #29235c;
    /* Preenche com a cor do fundo caso a imagem original tenha outra proporção */
  }
}

.organization-logo-large {
  width: 192px;
  height: 96px;
  object-fit: contain;
}

.mini-icon-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.content-thumb-container {
  height: 64px;
  width: 96px;
  flex-shrink: 0;
  overflow: hidden;
  /* Ensure no spillover even with rounded corners issues */
}

.content-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Job Card Styles */
.employer-logo {
  width: 128px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.job-card {
  border: none;
  border-radius: 0.75rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.company-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
}

.card-title-link {
  text-decoration: none;
  color: inherit;
}

.card-title-link:hover {
  color: #0d6efd;
}

.bookmark-icon {
  font-size: 1.5rem;
  color: #ffc107;
}

.detail-icon {
  font-size: 0.9rem;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Datepicker Normalization */
.datepicker,
.datepicker-dropdown {
  z-index: 9999 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-family: Arial, sans-serif !important;
}

.datepicker table tr td,
.datepicker table tr th {
  padding: 4px 5px !important;
}

/* Profile Picture Icons replacement */
.profile-picture-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  vertical-align: middle;
}

.feed-module .profile-picture-icon {
  width: 48px;
  height: 48px;
  font-size: 24px;
  margin-right: 0.75rem;
}

.comment-profile-picture-icon,
.feed-preview-module .profile-picture-icon,
.modal-body .profile-picture-icon {
  width: 40px;
  height: 40px;
  font-size: 18px;
  margin-right: 0.5rem;
}

.flash-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
}

.flash-container .alert {
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  animation: flash-slide-in 0.25s ease-out;
}

@keyframes flash-slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}