/* Main */

#content-core {
    font-size: 1rem;
}

/* Mural */

.mural {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
  justify-items: center;
}

.mural-card {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  background: white;
  margin: 0 auto
}

.mural-card:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mural-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Porlets */

#column-two > .portletWrapper > .portlet > .portletItem{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.portletItem img, .__saturate {
  border-radius: 16px;
  filter: saturate(100%);
  transition: 0.5s;

  &:hover {
    filter: saturate(120%);
    transform: scale(1.05);
  }
}

/* Table */

#content-core table.listing td,
#content-core table.listing th{
    border: none;
}

#content-core table{
    border-collapse: separate;
    background-color: white;
}

#content-core table.listing {
    margin: auto;
    min-width:300px;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    border-radius: 16px;
    overflow: hidden;
}


/* Header */

#content-core table.listing th{
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
    padding: 8px 30px;
    text-align: center;
    letter-spacing: 1px;
}


#content-core table.listing h2 {
  color: white;
}

/* Line */

#content-core table.listing tbody tr td {
    padding: 16px 25px;
    color: #2d3748;
    font-size: 15px;
}

#content-core table.listing tbody tr{
    text-align:center;
    background-color: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

#content-core table.listing a:link,
#content-core table.listing a:visited{
    color:#29a56d;
}    
/* Odd */
#content-core table.listing tbody tr.odd td{
    background-color: #ffffff;
    transition: all 0.25s ease;
}

/* Even */
#content-core table.listing tbody tr.even td{
    background-color: #f8fff8;
    transition: all 0.25s ease;
}

/* Ano */

.flex-ano-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.anos-content-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 100px));
    gap: 15px;
    padding: 20px;
    margin: 0 auto;
    max-width: 560px;
}

.ano-content {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2ecc71;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ano-content:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    z-index: 1;
}

#content .ano-content a:hover {
color: inherit !important;
}

.ano-content a:link, .ano-content #content, .ano-content a:visited{
    color:white !important;
}


/* Ex-presidentes */

.mural-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px;
}

.photo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(46, 125, 50, 0.15);
  transition: transform 0.3s ease;
}

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

.photo-image a{
  width: 100%;
  height: 300px;
  background-color: #c8e6c9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #388e3c;
  font-weight: bold;
  overflow: hidden;
}

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

.photo-info {
  padding: 18px;
  text-align: center;
}

.photo-name {
  color: #000000;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.photo-date {
  color: #000000;
  font-size: 0.95rem;
  font-weight: 500;
}



/* Responsividade */

@media (max-width: 1440px) {
    .mural-card img {
      height: 325px;
    }
}
@media (max-width: 768px) {
    .anos-content-container {
        grid-template-columns: repeat(3, 100px);
    }
    
    #content-core table.listing{
        margin-bottom: 15px;
    }
    
    .mural {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .mural-card img {
        height: 320px;
      }
    
    .listing {
        border-collapse:collapse;
        width:100%
    }
    
    .listing tr.mobile-pair {
        display:flex;
        justify-content:space-between;
        border-bottom:1px solid #eee;
    }
    
    .mobile-label {
        flex:0 0 40%;
        text-align:center;
        padding:0px;
    }
    
    .mobile-value {
        flex:1;
        text-align:center;
        padding: 0px;
    }
    
    .mural {
      max-width: 200px;
    }
    
    .mural-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-image a{
      height:430px;
    }
    
}

@media (max-width: 480px) {
    .anos-content-container {
        grid-template-columns: repeat(2, 100px);
    }
    
    .mural {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
      }
    
    .mural-card img {
        height: 280px;
      }
}