body {
    background-image: url(../images/afe.png);
    background-repeat: no-repeat;
    background-size: cover; 
    background-attachment: fixed; 
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
  }


.container-news {
    display: flex;
    flex: 1;
    flex-wrap: wrap; /* Ensures posts wrap to the next line */
    gap: 20px; /* Spacing between posts */
    justify-content: space-between; 
    margin: 20px auto; 
    margin-left: 20px;
    max-height: 80vh; 
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.747); 
    border-radius: 10px;
    
}

.post {
    flex: 1 1 calc(33.33% - 40px); /* Flex basis adjusts to fit the available space */
    max-width: 100%; /* Prevent horizontal overflow */
    min-width: 250px; /* Ensure posts don't shrink too small */
    min-height: 200px; /* Maintain consistent height */
    text-align: center;
    padding: 10px;
    margin: 10px;
}

.Add {
    flex-shrink: 0;
  }

.Add img{
    border: 5px solid rgb(255, 80, 80);
    animation: blink-border 1s infinite; /* Apply the blinking animation */
    width: 365px;
    padding: 10px;
}

  @keyframes blink-border {
    0% {
      border-color: rgb(247, 34, 34);
    }
    50% {
      border-color: transparent; /* Makes the border disappear */
    }
    100% {
      border-color: rgb(238, 44, 44);
    }
  }



/* Optional: Scrollbar styles for better UI */
.container-news::-webkit-scrollbar {
    width: 0px;
}



@media (max-width: 800px) {
    .wrapper {
      flex-direction: column; /* Stack elements vertically */
    }

    .Add {
      order: 1; /* Make the Add section appear first */
    }

    .container-news {
      order: 2; /* Make the container-news appear second */
      margin-left: 0; /* Remove horizontal margin */
    }

    .Add img{
        width: 70%;
    }
  }