html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content {
  flex: 1 0 auto; 
  padding-bottom: 200px; 
}

footer {
  flex-shrink: 0; 
}

#hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 0px !important;
}

.text-content {
  transition: color 1.5s ease-in-out;
}

.image-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.image-container.visible {
  opacity: 1;
}


#page-title{
  text-align: center;
}

#item-name{
  text-align: center;
}

.slide-img {
  width: 100%;
  height: 400px; 
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.swiper-slide{
  padding-bottom: 15px;
}

.text-xl, .font-semibold, .text-gray-800{
  padding-bottom: 15px;
}
.swiper-slide-active img {
  transform: scale(1.05);
  transition: transform 0.6s ease;
}
.swiper-slide-active h3 {
  opacity: 1;
  transform: translateY(0);
  transition: all .6s ease;
}
.swiper-slide-next h3,
.swiper-slide-prev h3 {
  opacity: 0.3;
  transform: translateY(20px);
}

:root {

    --swiper-theme-color: black !important;
}

#imagem-conteudo-pequeno{
  display: block;
  margin: auto;
  width: 40%;
}
#imagem-conteudo-grande{
  display: block;
  margin: auto;
  width: 70%;
}

.spacer {
  height: 0;
  transition: height 0.3s ease;
}

#orgaos-row {
  display: flex;
  align-items: stretch;
  gap: 2rem; 
}

.orgao-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  box-sizing: border-box;
}
.inner-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-section, .row > .content-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.subtitle {
  margin-bottom: 0.25rem;
}

th{
  padding-right: 5px;
}

#conteudo{
  padding-top:40px;
}

#carrossel-item-description{
  padding-bottom:15px;
}


.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.title-text {
  font-weight: bold;
  text-align: center;
  margin: 0;
}

.subtitle h4 {
  margin: 0;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

.arrow {
  padding-left: 10px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}



.arrow.open {
  transform: rotate(180deg);
}

.hidden-content {
  display: none;
  padding-top: 0.5rem;
}

    .buttons button {
      margin: 5px;
      padding: 10px;
    }
    .hidden {
      display: none;
    }
    .content {
      margin-top: 20px;
      padding: 10px;
      border: 1px solid #ccc;
    }

#banner {
  margin-top: 66px;
  margin-bottom: 0px !important;
}

.subtitle-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  cursor: pointer;
  gap: 0.5rem;
}


body {
  font-family: sans-serif;
  background: #f9f9f9;
}

details {
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem;
  border-radius: 6px;
}
summary {
  font-weight: bold;
  cursor: pointer;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 0.5rem;
}
.grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.grid img:hover {
  transform: scale(1.03);
}

  .hover-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .hover-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  .text-button {
  display: inline-block;
  font-weight: bold;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
  cursor: pointer;
}

.text-button:hover {
  transform: scale(1.1);
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
}
  
.dog-image {
  max-height: 250px;
  width: auto;
  object-fit: contain;
}


.row.mb-4 {
  display: flex;
  align-items: stretch;  
}


.subsection-col {
  display: flex;
  flex-direction: column;
}


.subsection-col > .mb-4,
.subsection-col > .nested-section,
.subsection-col > .hidden-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}




.nested-section-posts .nested-post p,
.nested-section-posts .nested-post h1,
.nested-section-posts .nested-post h2,
.nested-section-posts .nested-post h3,
.nested-section-posts .nested-post h4,
.nested-section-posts .nested-post h5,
.nested-section-posts .nested-post h6 {
    margin: 0;
    padding: 0;
}

.hidden-admin {
    opacity: 0.5;          
    filter: grayscale(30%);
    border: 1px dashed #ccc; 
}

.quadrienio-entry p{
  font-size: 15px;
}

body.modal-open{
 padding-right: 0 !important; 
}

#page-title{
  border-bottom:  3px double rgb(215, 215, 215);
  padding-bottom: 0.4rem;
}

details {
  border: none;      
  padding: 0;        
  margin-bottom: .5rem;
}

summary {
  list-style: none;  
  cursor: pointer;
  font-weight: bold;
  padding: .25rem 0;
}


summary::-webkit-details-marker {
  display: none;
}

footer p {
  white-space: nowrap;
}
.quadrienio-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  
  gap: 10px;                
}


#search-results-container, 
#search-results-container p, 
#search-results-container a, 
#search-results-container li {
    word-break: break-word;                                                                                                             /*for long strings*/
    overflow-wrap: anywhere;                                                                                     /* modern, works for URLs without spaces */
}


#myModal .modal-dialog {
    max-width: 90vw;                                                                                                               /*modal within viewport*/
}

#myModal .modal-body {
    max-height: 70vh;                                                                                                                    /*vertical scroll*/
    overflow-y: auto;
    overflow-x: hidden;                                                                                                         /*hide horizontal overflow*/
}


.new-slide-trigger:hover {
    background-color: rgba(144, 238, 144, 0.3); 
    color: green; 
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}
.text-muted {
  opacity: 0.7;
}