:root {
  --white: #ffffff;
  --dark-blue: #115063;
  --blue: #196583;
  --light-blue: #1b6e8e;
  --yellow: #f4d708;
}

/* Font Family Setup */

@font-face {
  font-family: 'GoldplayRegular';
  src: url('/fonts/Goldplay-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GoldplayBold';
  src: url('/fonts/Goldplay-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'GoldplaySemibold';
  src: url('/fonts/Goldplay-SemiBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GoldplayMedium';
  src: url('/fonts/Goldplay-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Apply Font to texts */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'GoldplayBold', sans-serif;
  font-weight: bold;
}

p,
a,
span,
select,
option {
  font-family: 'GoldplayRegular', sans-serif;
  font-weight: normal;
}

.bold {
  font-family: 'GoldplayBold', sans-serif !important;
  font-weight: bold;
}

.semi-bold {
  font-family: 'GoldplaySemibold', sans-serif !important;
  font-weight: normal;
}

.family-medium {
  font-family: 'GoldplayMedium', sans-serif !important;
  font-weight: normal;
}

.bold a {
  font-weight: bold;
}

.text-justify {
  text-align: justify !important;
}

.underline {
  text-decoration: underline;
}

/* Text colors */

.text-white {
  color: var(--white) !important;
}

.text-dark-blue {
  color: var(--dark-blue) !important;
}

.text-blue {
  color: var(--blue) !important;
}

.text-light-blue {
  color: var(--light-blue) !important;
}

.text-yellow {
  color: var(--yellow) !important;
}

/* Background colors */

.bg-white {
  background-color: var(--white) !important;
}

.bg-dark-blue {
  background-color: var(--dark-blue) !important;
}

.bg-blue {
  background-color: var(--blue) !important;
}

.bg-light-blue {
  background-color: var(--light-blue) !important;
}

.bg-yellow {
  background-color: var(--yellow) !important;
}

/* Navbar */

.dropdown-menu,
.dropdown-submen,
.dropdown-submenu-2 {
  background-color: var(--blue);
  border: none;
}

.dropdown-menu {
  min-width: 10.24rem;
}

.dropdown:hover>.dropdown-menu {
  margin-top: -3px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-top: 3px solid var(--yellow);
  display: block;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-submenu-2 {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
  display: none;
}

.dropdown-submenu:hover>.dropdown-submenu-2 {
  display: block;
  padding-left: 0;
}

/* Para o submenu no mobile */
@media (max-width: 991px) {
  .dropdown-submenu>.dropdown-submenu-2 {
    left: auto;
    display: block;
    padding-left: 0rem;
  }
}

.dropdown-item:focus,
.dropdown-item:hover {
  color: inherit;
  background-color: inherit;
}

.dropdown-submenu-2>li::marker {
  content: none;
}

.logo {
  width: 9rem;
}

.navbar-search-bar {
  background-color: var(--dark-blue);
  border-radius: 10px;
}

.navbar-search-bar input {
  background-color: var(--dark-blue);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border: none;
  color: var(--white);
}

.navbar-search-bar button:focus {
  box-shadow: none;
}

.navbar-search-bar input:focus {
  box-shadow: none;
  background-color: var(--dark-blue);
  color: var(--white);
}

.navbar-search-bar input[type="search"]::placeholder {
  color: white !important;
  opacity: 1;
}

.navbar-search-bar {
  flex-grow: 1;
}

.nav-link.active {
  border-bottom: 3px solid var(--yellow);
}

@media (max-width: 991px) {
  .dropdown-submenu>.dropdown-submenu-2 {
    position: static !important;
    display: block !important;
    padding-left: 1rem;
    background-color: transparent;
    z-index: auto !important;
  }

  .dropdown-submenu-2 a {
    position: static !important;
  }
}


/* Footer */

.footer {
  border-radius: 30px;
}

.footer .logos img {
  max-width: 110px;
  height: 80px;
}

@media screen and (max-width: 790px) {
  .footer .logos img {
    max-width: 90px;
    height: 60px;
  }
}

footer a {
  text-decoration: none;
  color: var(--white);
}

footer a:hover {
  font-weight: bold;
  color: var(--white);
}

.border-bottom-white {
  border-bottom: 1px solid var(--white);
  width: 100%;
}

/* Homepage (Sobre o Portal) */

.bg-home {
  position: relative;
  width: 100%;
  overflow: hidden;
  /*max-height: 500px;*/
}

.video-overlay {
  position: relative;
  /*filter: brightness(50%);*/
}

.home-call-to-action {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
}

@media (max-width: 991px) {
  .video-overlay img {
    min-height: 265px;
  }

  .home-call-to-action {
    top: 60%;
  }
}

.home-call-to-action button {
  padding: 8px 20px;
  font-size: 1rem;
  color: var(--yellow);
  background-color: var(--dark-blue);
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

.home-call-to-action button a {
  font-family: 'GoldplayAltBold', sans-serif;
  font-weight: bold;
  color: var(--yellow);
  text-decoration: none;
}

.axis-image {
  width: 90%;
  cursor: pointer;
}

/* Rodapé */

.news-ticker {
  width: 90%;
  /*background-color: var(--blue);*/
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

.ticker-container {
  width: 100%;
  overflow: hidden;
}

.ticker {
  display: inline-block;
  animation: ticker 36s linear infinite;
  padding-left: 100%;
}

.ticker i {
  font-size: 7px;
}

.ticker-item {
  padding-right: 50px;
  padding-left: 50px;
  display: inline-block;
}

@keyframes ticker {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  @keyframes ticker {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(-50%);
    }
  }
}

/* Children and Youth page */

.children-and-youth img {
  max-width: 25rem;
  height: auto;
}

#children-and-youth-form input,
#children-and-youth-form textarea {
  background-color: var(--dark-blue);
  border-radius: 8px;
  border: none;
  color: var(--white);
}

#children-and-youth-form button:focus {
  box-shadow: none;
}

#children-and-youth-form input:focus {
  box-shadow: none;
  background-color: var(--dark-blue);
  color: var(--white);
}

#children-and-youth-form input::placeholder,
#children-and-youth-form textarea::placeholder {
  color: white !important;
  opacity: 1;
}

#children-and-youth-form button[type="button"] {
  border: none;
  background-color: var(--dark-blue);
  color: var(--white);
  padding: .5em 2em;
}

#children-and-youth-form button[type="button"].active {
  border: 2px solid var(--yellow);
}

#children-and-youth-form button[type="submit"] {
  border: none;
  font-family: 'GoldplayAltBold', sans-serif;
  font-weight: bold;
  background-color: var(--yellow);
  color: var(--dark-blue);
  padding: .5em 2em;
  border-radius: 5px;
  font-weight: bold;
}

/* Families */

.families img {
  max-width: 25rem;
  height: auto;
}

.modules-see-all button {
  background-color: var(--dark-blue);
  color: var(--white);
  border-radius: 2px;
  padding: 0.5rem 1rem;
  border: none;
}

img.modules-arrows-buttons {
  cursor: pointer;
  max-width: 30px;
  height: 30px;
}

.families .carousel-item a {
  text-decoration: none;
}

.families .carousel-item .card {
  border: none;
}

.families .carousel-item .card img {
  width: 200px;
  height: 150px;
  border-radius: 8px;
}

.carousel-item {
  display: none;
}

.families .carousel-item:first-child {
  display: flex;
}

.carousel-item {
  display: flex;
  flex-wrap: wrap;
  /* Permite que os itens se ajustem dentro da largura */
  gap: 1rem;
  /* Ajuste o espaçamento entre as colunas */
  overflow: hidden;
  /* Impede que o conteúdo transborde */
}

.carousel-item .col-lg-6 {
  max-width: 100%;
  /* Garante que as colunas respeitem o tamanho do container */
  padding: 0;
  /* Remove possíveis margens internas */
}


@media screen and (max-width: 790px) {
  .carousel-item:first-child {
    display: flex;
    flex-direction: column;
  }

  .families .carousel-item .card img {
    max-width: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
  }
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--dark-blue);
  border-radius: 50%;
  display: inline-flex;
  cursor: pointer;
}

.dot.active {
  background-color: yellow;
}

.container.families-features {
  background-color: var(--dark-blue);
  border-radius: 20px;
  border: none;
}

.families-features img {
  max-width: 100px;
}

.checks img {
  max-width: 70px;
}

/* Modules */

#carousel-wrapper {
  width: 100%;
  position: relative;
}

#carousel-slides {
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.modules-back-to-families a {
  text-decoration: none;
}

.modules-back-to-families img {
  max-width: 40px;
}

.modules .carousel-group .card img {
  width: 100%;
  max-height: 200px;
}

.modules .carousel-group a {
  text-decoration: none;
}

.modules .carousel-group {
  display: none;
}

.modules .carousel-group.active {
  display: flex;
}

.modules .carousel-group .card {
  border: none;
}

.modules .carousel-group .card:hover {
  border: 1px solid var(--white);
}

.modules .carousel-group {
  display: flex;
  width: 100%;
  flex-shrink: 0;
}

.modules .card-wrapper {
  flex: 0 0 33.33%;
  padding: 0 10px;
}

.modules .card {
  width: 100%;
}

.date-filter .active {
  padding-bottom: 5px;
  border-bottom: 3px solid var(--yellow);
}

.date-filter p {
  cursor: pointer;
}

@media (max-width: 768px) {
  #carousel-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .carousel-group {
    min-height: 500px;
    /* Garante espaço para 3 módulos */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.modules button {
  border: 1px solid var(--yellow);
  background-color: var(--dark-blue);
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.modules button a {
  color: var(--white);
  text-decoration: none;
}

#modules-wrapper select {
  border: 1px solid var(--yellow);
  background-color: var(--dark-blue);
  padding: 0.5rem 2rem;
  border-radius: 5px;
  color: var(--white);
  text-decoration: none;
}

/* Resources */

#resources-container {
  max-height: 700px;
  overflow-y: auto;
}

#resources-container img {
  border-radius: 10px;
}

@media screen and (max-width: 590px) {
  #resources-container {
    max-height: unset;
  }
}

.resources .card {
  border: none;
  box-shadow: none;
}

.resources .card:hover {
  background-color: var(--dark-blue) !important;
  border-radius: 20px;
}

#resources-wrapper select {
  border: 1px solid var(--yellow);
  background-color: var(--dark-blue);
  padding: 0.5rem 2rem;
  border-radius: 5px;
  color: var(--white);
  text-decoration: none;
}

/* News-Events */

#news-events-container {
  max-height: 500px;
  overflow-y: auto;
}

#news-events-container img {
  border-radius: 10px;
}

@media screen and (max-width: 590px) {
  #news-events-container {
    max-height: unset;
  }
}

.news-events .card {
  border: none;
  box-shadow: none;
}

.news-events .card:hover {
  background-color: var(--dark-blue) !important;
  border-radius: 20px;
}

#news-events-wrapper select {
  border: 1px solid var(--yellow);
  background-color: var(--dark-blue);
  padding: 0.5rem 2rem;
  border-radius: 5px;
  color: var(--white);
  text-decoration: none;
}

.news-events a {
  color: var(--yellow) !important;
}

/* Contactos */

.contactos img {
  width: 80px;
  height: auto;
}

.horario {
  background-color: var(--dark-blue);
  border: 1px solid var(--yellow);
  border-radius: 20px;
  padding: 0.5rem 1rem;
}

.contactos a {
  text-decoration: none;
}

/* Search-results page */

.search-results a {
  text-decoration: none;
  color: var(--white);
}

/* General Styling */

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
}

.dashboard-container {
  padding: 2rem;
  background-color: #f4f7fc;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-actions a {
  margin-left: 10px;
}

.dashboard-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.section {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section-content {
  display: flex;
  flex-direction: column;
}

.card {
  background-color: #f9f9f9;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary {
  color: white;
}

.btn-edit {
  background-color: #ffc107;
  color: white;
  margin-top: 10px;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
  margin-top: 10px;
}

.view-all-link {
  text-decoration: none;
  color: #007bff;
  margin-bottom: 1rem;
}

.delete-form {
  margin-top: 10px;
}

.axis-number-title h2 {
  margin-bottom: 0;
}

@media screen and (max-width: 790px) {

  .wave-1 {
    margin-bottom: -3%;
  }

  .wave-2 {
    margin-top: -3%;
  }
}

@media screen and (max-width: 412px) {

  .wave-1 {
    margin-bottom: -4%;
  }

  .wave-2 {
    margin-top: -4%;
  }

}

@media screen and (max-width: 360px) {

  .wave-1 {
    margin-bottom: -6%;
  }

  .wave-2 {
    margin-top: -5%;
  }
}

@media screen and (max-width: 300px) {
  .wave-1 {
    margin-bottom: -7%;
  }

  .wave-2 {
    margin-top: -6%;
  }

}

/* Estilos para o Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--yellow);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.title-wrapper {
  width: 50%;
}

@media screen and (max-width: 790px) {
  .title-wrapper {
    width: 100%;
  }
}

a.card-wrapper {
  text-decoration: none;
}

img.aspect-ratio-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

.line-height-1 {
  line-height: 1.2;
}

#scrollTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--yellow);
  color: var(--light-blue);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

.module-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 500;
  color: #fff;
}

.module-status-1 {
  background-color: #28a745;
}

.module-status-2 {
  background-color: #007bff;
}

.module-status-3 {
  background-color: #fd7e14;
}

.module-status-4 {
  background-color: #dc3545;
}

.force-full-justification p {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
  margin-bottom: 0 !important;
}

.force-full-justification p::after {
  content: "";
  display: inline-block;
  width: 100%;
}

[lang="pt"] {
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

@media (min-width: 992px) {
  .force-full-justification p {
    word-spacing: 0.0005em;
    letter-spacing: -0.01em;
  }
}

/* Cookies and Privacy*/

#accordionPrivacy .accordion-item,
#accordionCookies .accordion-item {
  background-color: var(--blue);
  color: var(--white);
}

#accordionPrivacy .accordion-button,
#accordionCookies .accordion-button {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* Modal Resource Image Standardization */
.modal-media-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.modal-resource-image-container {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.modal-resource-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.modal-resource-image:hover {
  opacity: 0.8;
}

.modal-resource-video {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 4px;
}

.modal-link-text {
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  margin-top: 8px;
}

.modal-link-text a {
  color: #ffc107 !important;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
}

.modal-link-text a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Responsive adjustments for modal images */
@media (max-width: 768px) {
  .modal-media-wrapper {
    max-width: 100%;
  }
  
  .modal-resource-image-container {
    height: 250px;
  }
  
  .modal-resource-video {
    max-height: 250px;
  }
  
  .modal-link-text {
    padding: 6px 10px;
    margin-top: 6px;
  }
  
  .modal-link-text a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .modal-resource-image-container {
    height: 200px;
  }
  
  .modal-resource-video {
    max-height: 200px;
  }
  
  .modal-link-text {
    padding: 4px 8px;
    margin-top: 4px;
  }
  
  .modal-link-text a {
    font-size: 0.75rem;
  }
}