.New_footer{
    background-color: #000000;
    color: white;
}

.firstlastfooter{
    padding: 5px;
}
.lastfooter{
    display: flex;
    justify-content: end;
    align-items: center;
    background-color: #000;
    padding-right: 20px;
   
}
.lastfooter ul{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3px;

}

.lastfooter ul li{
    list-style: none;
}

.lastfooter ul li a{
    text-decoration: none;
    color: white;
    margin: 7px;
    font-size: 13px;
    font-weight: normal;

}
.lastfooter ul li a:hover{
    border-bottom: 1px solid white;
    
}
footer a:hover{
    color: #fff !important;
}

footer{
background-color: #0000;
}
@media screen and (max-width: 768px) {
  .lastfooter {
    display: none;
  }
}

.magazine-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
}

.magazine-item {
  position: relative;
  border: 1px solid #fff;
  padding: 8px;
  border-radius: 6px;
  background-color: #000;
  width: auto;
  flex: 1 0 calc(12.5% - 16px);
  max-width: calc(12.5% - 16px);
}

.custom-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.magazine-item:hover .overlay {
    opacity: 1;
}

/* Responsive layout: 2 per row on small screens */
@media (max-width: 768px) {
  .magazine-item {
    flex: 0 0 calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
  }
}

/* Tablet view */
@media screen and (max-width: 1024px) {
  .magazine-item {
    flex: 0 0 calc(25% - 16px);
    max-width: calc(25% - 16px);
  }
}