* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --cor-primaria: #1a5077;
  --cor-secundaria: #f9bb2a;
}

.bg-primary {
  background-color: var(--cor-primaria) !important;
}

.text-primary {
  color: var(--cor-primaria) !important;
}

html {
  font-family: "Ubuntu Condensed", sans-serif;
}

body {
  font-size: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.dark-mode {
  background: #16171d !important;
  color: #fff !important;
  border-color: #fff !important;
}

.dark-mode-nav {
  background: #16171d !important;
  color: #fff !important;
  border-color: #fff !important;
  border: 1px solid #fff !important;
}

/* Menu Accessibility  */

.btn-accessibility {
  background-color: var(--cor-primaria);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.btn-accessibility data-bs-toggle[tooltip] {
  display: none;
}

.btn-accessibility:hover {
  color: var(--cor-secundaria);
}

/* Navbar  */

.nav-item {
  position: relative;
  padding: 10px 0;
  width: min-content;
  font-size: 1.2em;
}

.nav-link {
  padding: 0 !important;
}

.nav-item a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  height: 3px;
  background-color: var(--cor-secundaria);
  border-radius: 4px;
  scale: 0 1;
  transform-origin: right;
  transition: scale 0.35s;
}

.nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 100%;
  height: 3px;
  background-color: var(--cor-secundaria);
  border-radius: 4px;
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.35s;
}

.nav-item a:hover::before,
.nav-item a:hover::after {
  scale: 1;
}

.nav-item .active {
  pointer-events: none;
  border-bottom: 3px solid var(--cor-secundaria);
  border-top: 3px solid var(--cor-secundaria);
  font-weight: bold;
}

.nav-item a:not(.active) {
  transition: 0.35s;
  opacity: 0.8;
}

.nav-item a:hover {
  opacity: 1;
}

.fixed-in-top {
  width: 100%;
  max-width: 1400px;
  position: fixed;
  top: 0;
  z-index: 50;
}

/* Carousel container  */

.carousel,
.carousel-inner,
.carousel-inner img {
  height: 406px !important;
}

.carousel-caption,
.carousel-indicators {
  z-index: 10;
}

.carousel-indicators [data-bs-target] {
  border-bottom: 0px !important;
}

.carousel-item .carousel-caption {
  left: 0;
  padding: 0 20px;
}

.carousel-caption a h5,
.img-overlay .card-text {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.2em;
}

.background-caption {
  position: absolute;
  width: 100%;
  height: 65px;
  bottom: 0;
  background-color: rgb(0, 0, 0, 0.7);
  z-index: 1;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}

/* Menu lateral carousel */

#fs-menu-carousel {
  font-size: 1.2em;
}

.list-group button {
  transition: 0.3s;
}

.list-group button:hover {
  background-color: var(--cor-secundaria) !important;
  color: var(--cor-primaria) !important;
}

/* Card news */

#fs-cardnews {
  font-size: 1.2em;
}

.card-body h5 {
  font-size: 1.2em;
}

.card-news:hover > :not(:hover) {
  opacity: 0.4;
  transform: scale(0.9);
  transition: 0.3s;
}

.card-news .cards .card {
  cursor: pointer;
}

/* Menu right card news  */

#fs-menu-cardnews {
  font-size: 1.2em;
}

/* Fotos and Vídeos */

#fotos,
#videos {
  font-size: 1.2em;
}

#fotos h3,
#videos h3 {
  font-size: 1.5em;
}

.img-overlay {
  position: absolute;
  width: 100%;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.img-overlay:hover {
  background-color: var(--cor-primaria) !important;
  /* cursor: pointer; */
}

.fotos {
  object-fit: cover;
  overflow: hidden;
}

.fotos img:hover {
  transform: scale(1.5);
  transition: 0.3s;
}

#videos > iframe {
  width: clamp(200px, 100%, 515px) !important;
  border-radius: 5px;
}

/* Home more news  */

#fs-morenews {
  font-size: 1.2em;
}

#fs-morenews h3 {
  font-size: 1.5em;
}

.home-news .list-group-item-action:hover {
  color: var(--cor-primaria) !important;
}

.news-btn a:hover {
  background-color: var(--cor-secundaria) !important;
  transition: 0.3s;
}

/* Home Secretaries  */

.secretaries-card {
  /* border-left: 6px solid var(--cor-primaria); */
  position: relative !important;
}

.secretaries-card::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 100%;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: var(--cor-primaria) !important;
  top: 0;
  left: 0;
  z-index: 1;
}

.secretaries-card div > .card-title,
.secretaries-card:hover div > .bi {
  z-index: 1;
}

.secretaries-card:hover::before {
  width: 100% !important;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: all 0.3s;
}

.secretaries-card:hover div > .card-title,
.secretaries-card:hover div > .bi {
  color: #fff !important;
  transition: all 0.3s;
}

.secretaries-card:hover div > .bi {
  rotate: y 360deg;
}

/* Important links */

.section-news-links .side-menu .list-group-item-action,
.cards .card {
  box-shadow: 1px 1px 3px #121212;
}

/* SWIPER PAGE FOTOS */

.swiper {
  width: 100%;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.mySwiper2 {
  height: 80%;
  width: 100%;
}

.mySwiper {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
}

.mySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Redes sociais */

.icons-social i {
  transition: 0.3s ease;
}

.icons-social i:hover {
  color: var(--cor-secundaria) !important;
  cursor: pointer;
}

.sharing a:hover {
  opacity: 0.7;
}

/* Page news */

.card-noticias {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border: none;
  transition: 0.3s ease;
}

.card-noticias:hover {
  box-shadow: rgba(149, 157, 165, 0.7) 0px 8px 24px;
}

/* Page one news  */

.text-one-news img {
  width: 50%;
  padding: 10px 0;
}

.list-noticias {
  position: relative;
}

/* Page Secretariado  */

.myImg {
  cursor: pointer;
  transition: 0.3s;
}

.myImg:hover {
  opacity: 0.7;
}

/* The Modal (background) */
.secretaries {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 50px;
  /* Sit on bottom */
  padding-bottom: 20px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
}

/* Modal Content (image) */
.secretaries .modal-content {
  margin: auto;
  display: block;
  width: 50%;
  max-width: 300px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.secretaries .modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* The Close Button */
.secretariesClose {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.secretariesClose:hover,
.secretariesClose:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Loader All News  */

.loader {
  margin-top: 20px;
  animation: is-rotating 1s infinite;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 7px solid transparent;
  border-top-color: var(--cor-primaria);
  display: block;
}

@keyframes is-rotating {
  to {
    transform: rotate(1turn);
  }
}

/* Mapa Site  */

.menu-map-site li a:hover {
  color: var(--cor-secundaria) !important;
  border-bottom: 1px solid var(--cor-secundaria);
}

/* Modal Search  */

.dialogSearch {
  width: 100%;
  height: 100vh;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  background-color: rgba(18, 18, 18, 0.9);
  border: 0;
  border-radius: 4px;
}

.dialogSearch span {
  font-size: 3rem;
  cursor: pointer;
}

.dialogSearch span:hover {
  opacity: 0.7;
}

.search-content {
  width: 80%;
  margin: 0 auto;
  margin-top: 90px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.search-content form {
  width: 100%;
  display: flex;
  justify-content: center;
}

.input-search {
  width: 100%;
  position: relative;
  width: clamp(80px, 100%, 700px);
}

.input-search input {
  width: clamp(100px, 100%, 700px);
  outline: 0;
  border: 0;
  background: transparent;
  border-bottom: 2px solid #fff;
  padding: 1rem 1rem 0.5rem 0.5rem;
  color: #fff;
  outline: none;
}

.input-search label {
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  bottom: 5px;
  font-weight: bold;
  pointer-events: none;
  transition: 0.5s ease-in-out;
}

.input-search input:valid,
.input-search input:focus {
  border-bottom: 2px solid cornflowerblue;
}

.input-search input:is(:focus, :valid) ~ label {
  transform: translate(-35px, -25px) scale(0.7);
}

/* Redes Sociais  */

.redes-sociais .dropdown a:hover > i {
  color: var(--cor-secundaria) !important;
}

.redes-sociais .dropdown a i {
  font-size: 1.5rem;
}

.redes-sociais .dropdown-item:hover {
  background-color: var(--cor-secundaria);
  color: var(--cor-primaria);
}

@media (max-width: 1100px) {
  .btn-accessibility {
    display: flex;
    flex-direction: column;
  }
  .btn-accessibility span {
    margin: 0 auto;
  }
}

@media (max-width: 930px) {
  .text-accessibility {
    display: none;
  }

  .redes-sociais .dropdown a i {
    font-size: 1rem;
  }
}
